Loading...
Loading...
Compare original and translation side by side
/intent-normalize [path]
↓
┌───────────────────────────────────┐
│ 1. 扫描 intent/ 和 planning/ │
│ 发现所有 .md 和 .yaml 文件 │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 2. 分析每个文件的合规状态 │
│ - 有无 frontmatter? │
│ - 有无 Anchor? │
│ - 目录结构是否完整? │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 3. 自动修复机械问题 │
│ - 补 frontmatter │
│ - 创建 records/ + INDEX.md │
│ - 创建 _archive/, _data/ │
│ - 规范化文件命名 │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 4. 标记内容问题 │
│ - 缺 Anchor → status: draft │
│ - 超预算 → 标记 needs_critique │
│ - 无法分类 → status: draft │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 5. 输出规范化报告 │
└───────────────────────────────────┘/intent-normalize [path]
↓
┌───────────────────────────────────┐
│ 1. Scan intent/ and planning/ │
│ Discover all .md and .yaml files│
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 2. Analyze compliance status of each file │
│ - Has frontmatter? │
│ - Has Anchor? │
│ - Is directory structure complete? │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 3. Automatically fix mechanical issues │
│ - Add frontmatter │
│ - Create records/ + INDEX.md │
│ - Create _archive/, _data/ │
│ - Standardize file naming │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 4. Mark content issues │
│ - Missing Anchor → status: draft │
│ - Over budget → mark needs_critique │
│ - Unclassifiable → status: draft │
└─────────────┬─────────────────────┘
↓
┌───────────────────────────────────┐
│ 5. Output normalization report │
└───────────────────────────────────┘| 检查项 | 条件 | 修复动作 |
|---|---|---|
| Intent frontmatter | INTENT.md 没有 frontmatter | 添加 |
| Planning frontmatter | planning/ 下 .md 没有 frontmatter | 添加 |
| Anchor 格式 | Anchor 存在但格式不对(不是 blockquote) | 修正为 |
| records/ 目录 | intent 目录下没有 records/ | 创建 |
| _archive/ 目录 | intent/ 下没有 _archive/ | 创建 |
| _data/ 目录 | intent/ 下没有 _data/ | 创建 |
| TASK.yaml 格式 | TASK.yaml 缺少 type 字段 | 添加 |
| Check Item | Condition | Fix Action |
|---|---|---|
| Intent frontmatter | INTENT.md has no frontmatter | Add |
| Planning frontmatter | .md files under planning/ have no frontmatter | Add |
| Anchor Format | Anchor exists but has incorrect format (not a blockquote) | Correct to |
| records/ Directory | No records/ under intent directory | Create |
| _archive/ Directory | No _archive/ under intent/ | Create |
| _data/ Directory | No _data/ under intent/ | Create |
| TASK.yaml Format | TASK.yaml lacks type field | Add |
| 检查项 | 条件 | 标记动作 |
|---|---|---|
| 缺少 Anchor | INTENT.md 没有 Anchor 行 | frontmatter 加 |
| 超预算 | 行数 > 500 | frontmatter 加 |
| 预算警告 | 300 < 行数 ≤ 500 | frontmatter 加 |
| 无 Assumes | 内容中引用了其他 intent 但没有 Assumes 标签 | frontmatter 加 |
| 分类不明 | planning 文件无法自动判断类型 | |
| Check Item | Condition | Marking Action |
|---|---|---|
| Missing Anchor | INTENT.md has no Anchor line | Add |
| Over Budget | Number of lines > 500 | Add |
| Budget Warning | 300 < Number of lines ≤ 500 | Add |
| No Assumes | References other intents in content but no Assumes tag | Add |
| Unclear Classification | Cannot automatically determine the type of planning file | |
needsneedsneeds---
status: active
needs: [anchor, critique]
---needsneeds: [anchor]/intent-interviewneeds: [critique]/intent-critiqueneeds: [review]/intent-reviewneeds: [assumes]needsneedsneeds---
status: active
needs: [anchor, critique]
---needsneeds: [anchor]/intent-interviewneeds: [critique]/intent-critiqueneeds: [review]/intent-reviewneeds: [assumes]needsneedstype:| 关键词/模式 | 推断类型 |
|---|---|
| idea, concept, proposal, brainstorm, what if | |
| research, analysis, comparison, benchmark, study | |
| feedback, user, complaint, request, survey | |
| code analysis, refactor, migration, legacy, improvement | |
| 无法判断 | |
type:| Keywords/Patterns | Inferred Type |
|---|---|
| idea, concept, proposal, brainstorm, what if | |
| research, analysis, comparison, benchmark, study | |
| feedback, user, complaint, request, survey | |
| code analysis, refactor, migration, legacy, improvement | |
| Cannot determine | |
默认扫描当前项目根目录下的:
- intent/ → 所有 INTENT.md 文件(递归,跳过 _archive/ 和 _data/)
- planning/ → 所有 .md 文件
- **/intent/ → 模块级 intent 目录Default scan of the following under the current project root directory:
- intent/ → All INTENT.md files (recursive, skip _archive/ and _data/)
- planning/ → All .md files
- **/intent/ → Module-level intent directories---
status: active
------
status: implemented
------
type: research
------
status: active
------
status: implemented
------
type: research
---| 信号 | 推断 status |
|---|---|
| 有 TASK.yaml 且 status: done | |
| 有对应的 src/ 目录且文件最近没修改 | |
| 文件内容很少(< 50 行)或明显不完整 | |
| 默认 | |
| Signal | Inferred status |
|---|---|
| Has TASK.yaml with status: done | |
| Has corresponding src/ directory and files have not been modified recently | |
| File content is very short (< 50 lines) or obviously incomplete | |
| Default | |
needsneedsundefinedundefined项目: my-project 扫描时间: 2026-02-06
Project: my-project Scan Time: 2026-02-06
| 类型 | 扫描 | 已规范 | 自动修复 | 需 pickup |
|---|---|---|---|---|
| Intent 文件 | 15 | 8 | 5 | 2 |
| Planning 文件 | 7 | 2 | 4 | 1 |
| 目录结构 | — | — | 3 | — |
| Type | Scanned | Normalized | Auto-Fixed | Needs Pickup |
|---|---|---|---|---|
| Intent Files | 15 | 8 | 5 | 2 |
| Planning Files | 7 | 2 | 4 | 1 |
| Directory Structure | — | — | 3 | — |
intent/kernel/proc/INTENT.mdstatus: activeintent/kernel/afs/INTENT.mdstatus: implementedplanning/v2-ideas.mdtype: ideaplanning/legacy-analysis.mdtype: analysisintent/kernel/proc/records/intent/_archive/intent/_data/intent/kernel/proc/INTENT.mdstatus: activeintent/kernel/afs/INTENT.mdstatus: implementedplanning/v2-ideas.mdtype: ideaplanning/legacy-analysis.mdtype: analysisintent/kernel/proc/records/intent/_archive/intent/_data/| 文件 | needs | 建议 |
|---|---|---|
| | 缺少 Anchor,612 行超预算 |
| | 缺少 Anchor |
| — | 无法分类,默认 type: idea |
undefined| File | needs | Suggestion |
|---|---|---|
| | Missing Anchor, 612 lines exceed budget |
| | Missing Anchor |
| — | Cannot be classified, default type: idea |
undefined/intent-normalize/intent-normalize/intent-normalize intent/kernel//intent-normalize intent/kernel//intent-normalize --dry-run/intent-normalize --dry-run/intent-normalize # 先规范化格式(本命令)
↓
TeamSwarm pickup # 自动调度 needs 中的后续 skill
↓
/intent-interview # 处理 needs: [anchor]
/intent-critique # 处理 needs: [critique]
/intent-review # 处理 needs: [review]
↓
/intent-check # 最终合规检查/intent-normalize # First normalize formats (this command)
↓
TeamSwarm pickup # Automatically schedule subsequent skills in needs
↓
/intent-interview # Handle needs: [anchor]
/intent-critique # Handle needs: [critique]
/intent-review # Handle needs: [review]
↓
/intent-check # Final compliance check