intent-report

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Intent Report

Intent Report

将技术性的 Intent 文件转换成人类可读的报告文档。
Convert technical Intent files into human-readable report documents.

用途

Use Cases

  • 给 Stakeholder:项目概览、进度、关键决策
  • 给新成员:快速了解项目架构和设计理由
  • 给文档:生成 README、设计文档、架构说明
  • 给会议:项目汇报、技术评审
  • For Stakeholders: Project overview, progress, key decisions
  • For New Team Members: Quickly understand project architecture and design rationale
  • For Documentation: Generate READMEs, design documents, architecture specifications
  • For Meetings: Project presentations, technical reviews

工作流程

Workflow

/intent-report [options]
┌───────────────────────────────────┐
│  读取 Intent 文件                  │
│  - 项目级 + 模块级                 │
│  - 解析结构和元数据                │
└─────────────┬─────────────────────┘
┌───────────────────────────────────┐
│  确定报告类型                      │
│  - overview / architecture /      │
│    progress / full                │
└─────────────┬─────────────────────┘
┌───────────────────────────────────┐
│  生成报告                          │
│  - 重组内容结构                    │
│  - 转换技术语言                    │
│  - 添加可视化                      │
└─────────────┬─────────────────────┘
┌───────────────────────────────────┐
│  输出                              │
│  - Markdown / HTML / PDF          │
│  - 写入文件 or 直接展示            │
└───────────────────────────────────┘
/intent-report [options]
┌───────────────────────────────────┐
│  Read Intent files                │
│  - Project-level + Module-level   │
│  - Parse structure and metadata   │
└─────────────┬─────────────────────┘
┌───────────────────────────────────┐
│  Determine report type            │
│  - overview / architecture /      │
│    progress / full                │
└─────────────┬─────────────────────┘
┌───────────────────────────────────┐
│  Generate report                  │
│  - Restructure content            │
│  - Translate technical language   │
│  - Add visualizations             │
└─────────────┬─────────────────────┘
┌───────────────────────────────────┐
│  Output                           │
│  - Markdown / HTML / PDF          │
│  - Write to file or display directly │
└───────────────────────────────────┘

报告类型

Report Types

1. Overview (概览)

1. Overview

/intent-report --type overview
一页纸项目概览,适合快速了解:
markdown
undefined
/intent-report --type overview
One-page project overview, ideal for quick understanding:
markdown
undefined

[Project] Overview

[Project] Overview

What is this?

What is this?

[一句话说明]
[One-sentence description]

Problem

Problem

[要解决的问题]
[Problem to solve]

Solution

Solution

[解决方案概述]
[Solution overview]

Architecture

Architecture

[简化的架构图]
[Simplified architecture diagram]

Key Modules

Key Modules

ModulePurpose
ModulePurpose

Status

Status

[当前状态和下一步]
undefined
[Current status and next steps]
undefined

2. Architecture (架构)

2. Architecture

/intent-report --type architecture
详细架构文档,适合技术评审:
markdown
undefined
/intent-report --type architecture
Detailed architecture document, ideal for technical reviews:
markdown
undefined

[Project] Architecture

[Project] Architecture

System Overview

System Overview

[架构图]
[Architecture diagram]

Module Dependencies

Module Dependencies

[依赖关系图]
[Dependency diagram]

Data Flow

Data Flow

[数据流图]
[Data flow diagram]

Key Design Decisions

Key Design Decisions

| Decision | Choice | Rationale |
| Decision | Choice | Rationale |

Boundary Rules

Boundary Rules

[模块边界规则]
[Module boundary rules]

API Reference

API Reference

[核心 API 列表]
undefined
[Core API list]
undefined

3. Progress (进度)

3. Progress

/intent-report --type progress
项目进度报告,适合汇报:
markdown
undefined
/intent-report --type progress
Project progress report, ideal for status updates:
markdown
undefined

[Project] Progress Report

[Project] Progress Report

Generated: YYYY-MM-DD
Generated: YYYY-MM-DD

Intent Coverage

Intent Coverage

[覆盖率图表]
[Coverage chart]

Module Status

Module Status

ModuleIntentImplStatus
core80%🟡
ModuleIntentImplStatus
core80%🟡

Recent Updates

Recent Updates

[最近的 Intent 变更]
[Recent Intent changes]

Approval Status

Approval Status

  • Locked: N sections
  • Reviewed: M sections
  • Draft: K sections
  • Locked: N sections
  • Reviewed: M sections
  • Draft: K sections

Blockers & Risks

Blockers & Risks

[风险和阻塞项]
[Risks and blockers]

Next Steps

Next Steps

[下一步计划]
undefined
[Next steps]
undefined

4. Full (完整)

4. Full

/intent-report --type full
完整技术文档,包含所有内容。
/intent-report --type full
Complete technical document containing all content.

输出格式

Output Formats

Markdown (默认)

Markdown (Default)

/intent-report -o report.md
/intent-report -o report.md

HTML

HTML

/intent-report --format html -o report.html
带样式的 HTML 文档,可直接在浏览器查看。
/intent-report --format html -o report.html
Styled HTML document that can be viewed directly in a browser.

Console (直接显示)

Console (Direct Display)

/intent-report
不指定输出文件时,直接在终端展示。
/intent-report
When no output file is specified, display directly in the terminal.

使用示例

Usage Examples

生成项目概览

Generate Project Overview

/intent-report --type overview
/intent-report --type overview

生成架构文档给新成员

Generate Architecture Document for New Members

/intent-report --type architecture -o docs/ARCHITECTURE.md
/intent-report --type architecture -o docs/ARCHITECTURE.md

生成进度报告给 stakeholder

Generate Progress Report for Stakeholders

/intent-report --type progress -o reports/progress-2026-01.md
/intent-report --type progress -o reports/progress-2026-01.md

生成单模块报告

Generate Single Module Report

/intent-report src/core/ --type full
/intent-report src/core/ --type full

内容转换规则

Content Conversion Rules

技术语言 → 人类语言

Technical Language → Human Language

Intent 中报告中
## 职责
"What this module does"
## 非目标
"Out of scope"
## 约束
"Constraints & Rules"
::: locked
"Core Architecture (frozen)"
::: reviewed
"Approved Design"
::: draft
"Work in Progress"
In IntentIn Report
## Responsibilities
"What this module does"
## Non-Goals
"Out of scope"
## Constraints
"Constraints & Rules"
::: locked
"Core Architecture (frozen)"
::: reviewed
"Approved Design"
::: draft
"Work in Progress"

ASCII 图 → 可视化

ASCII Diagrams → Visualizations

  • 保留 ASCII 图(兼容性好)
  • 可选:转换为 Mermaid 图(
    --mermaid
    选项)
  • Retain ASCII diagrams (good compatibility)
  • Optional: Convert to Mermaid diagrams (use the
    --mermaid
    flag)

与其他命令配合

Integration with Other Commands

/intent-init              # 初始化
/intent-interview         # 创建 Intent
/intent-review            # 审批
/intent-report            # ← 生成报告(本命令)
分享给 stakeholder / 团队
/intent-init              # Initialize
/intent-interview         # Create Intent
/intent-review            # Approve
/intent-report            # ← Generate report (this command)
Share with stakeholders / team

高级选项

Advanced Options

/intent-report
  --type <type>           # overview | architecture | progress | full
  --format <format>       # markdown | html
  --output <path>         # 输出文件路径
  --module <path>         # 指定模块
  --include-draft         # 包含 draft sections
  --mermaid               # 转换为 Mermaid 图
  --lang <lang>           # 输出语言 (en | zh)
/intent-report
  --type <type>           # overview | architecture | progress | full
  --format <format>       # markdown | html
  --output <path>         # Output file path
  --module <path>         # Specify module
  --include-draft         # Include draft sections
  --mermaid               # Convert to Mermaid diagrams
  --lang <lang>           # Output language (en | zh)