Loading...
Loading...
Compare original and translation side by side
/swarm run/swarm run- [ ]- [ ]undefinedundefinedundefinedundefined| Category | Description | Examples |
|---|---|---|
| Happy Path | Normal expected usage | Valid inputs, correct sequences |
| Bad Path | Invalid inputs, error conditions | Wrong types, missing required fields, invalid states |
| Edge Cases | Boundary conditions | Empty inputs, max values, concurrent access |
| Security | Vulnerability prevention | Injection attacks, auth bypass, privilege escalation |
| Data Leak | Information exposure | Sensitive data in logs, error messages, API responses |
| Data Damage | Data integrity protection | Partial writes, corruption, race conditions |
| 类别 | 描述 | 示例 |
|---|---|---|
| 正常路径(Happy Path) | 预期的正常使用场景 | 有效输入、正确流程 |
| 异常路径(Bad Path) | 无效输入、错误条件 | 错误类型、缺失必填字段、无效状态 |
| 边界场景(Edge Cases) | 边界条件 | 空输入、最大值、并发访问 |
| 安全(Security) | 漏洞防护 | 注入攻击、权限绕过、权限提升 |
| 数据泄露(Data Leak) | 信息暴露 | 日志中的敏感数据、错误信息、API响应 |
| 数据损坏(Data Damage) | 数据完整性保护 | 部分写入、数据损坏、竞态条件 |
undefinedundefinedundefinedundefinedDO:
- Provide health check endpoints
- Return machine-parseable responses (JSON)
- Include test mode / seed data endpoints
- Design idempotent operations
DON'T:
- Require browser interaction for verification
- Depend on visual inspection
- Need manual clicking through UI推荐做法:
- 提供健康检查端点
- 返回机器可解析的响应(JSON格式)
- 包含测试模式/种子数据端点
- 设计幂等操作
不推荐:
- 验证时需要浏览器交互
- 依赖视觉检查
- 需要手动点击UI/intent-plan
↓
┌─────────────────────────────────────┐
│ Gate 1: Interview Check │
│ ✗ → "先跑 /intent-interview" │
└─────────────────────────────────────┘
↓
┌─────────────────────────────────────┐
│ Gate 2: Critique Check │
│ ✗ → "先跑 /intent-critique" │
└─────────────────────────────────────┘
↓
┌─────────────────────────────────────┐
│ Gate 3: Dependency Check │
│ ✗ → "前置任务未完成,无法 plan" │
└─────────────────────────────────────┘
↓
✓ All gates passed → Generate plan.md/intent-plan
↓
┌─────────────────────────────────────┐
│ 关卡1:访谈检查 │
│ ✗ → "先运行 /intent-interview" │
└─────────────────────────────────────┘
↓
┌─────────────────────────────────────┐
│ 关卡2:评审检查 │
│ ✗ → "先运行 /intent-critique" │
└─────────────────────────────────────┘
↓
┌─────────────────────────────────────┐
│ 关卡3:依赖检查 │
│ ✗ → "前置任务未完成,无法制定计划"│
└─────────────────────────────────────┘
↓
✓ 所有关卡通过 → 生成plan.md| Check | How to Verify | If Failed |
|---|---|---|
| INTENT.md exists | File exists in intent directory | Run |
| Structure complete | Has Responsibilities, Structure, API sections | Run |
| Not a stub | Content is substantial, not placeholder text | Run |
❌ Gate 1 Failed: Interview Incomplete
INTENT.md is missing or incomplete:
- [ ] Responsibilities section missing
- [ ] Structure diagram missing
Action required: Run /intent-interview first.| 检查项 | 验证方式 | 失败时操作 |
|---|---|---|
| INTENT.md存在 | 检查intent目录下是否有该文件 | 运行 |
| 结构完整 | 包含职责、架构、API章节 | 运行 |
| 非占位内容 | 内容充实,非占位文本 | 运行 |
❌ 关卡1失败:访谈不完整
INTENT.md缺失或不完整:
- [ ] 缺少职责章节
- [ ] 缺少架构图
需执行操作:先运行/intent-interview。| Check | How to Verify | If Failed |
|---|---|---|
| Critique done | Look for critique markers or changelog | Run |
| Post-modification | If INTENT.md modified after last critique | Run |
| AI assessment | Ask AI if another critique round is needed | Run |
<!-- critique: {date} -->critique.mdCRITIQUE.md"Based on this Intent, is there any sign of over-engineering, premature abstraction, or YAGNI violation that warrants another critique round?"
❌ Gate 2 Failed: Critique Required
Intent has not been critiqued, or was modified after critique:
- Last critique: 2026-01-15
- INTENT.md modified: 2026-01-20 (substantial changes detected)
Action required: Run /intent-critique to review for over-engineering.| 检查项 | 验证方式 | 失败时操作 |
|---|---|---|
| 已完成评审 | 查找评审标记或变更日志 | 运行 |
| 评审后未修改 | 若INTENT.md在最后一次评审后被修改 | 重新运行 |
| AI评估 | 询问AI是否需要再次评审 | 若需要则运行 |
<!-- critique: {date} -->critique.mdCRITIQUE.md"基于此Intent,是否存在过度设计、过早抽象或违反YAGNI原则的迹象,需要再次评审?"
❌ 关卡2失败:需要评审
Intent尚未评审,或评审后被修改:
- 最后一次评审:2026-01-15
- INTENT.md修改时间:2026-01-20(检测到实质性变更)
需执行操作:运行/intent-critique以评审过度设计问题。| Check | How to Verify | If Failed |
|---|---|---|
| Internal deps | Referenced intents have | List blocking intents |
| External deps | Required packages/services exist | List missing dependencies |
| Environment | Required env vars, credentials, access | List missing setup |
## Prerequisites## Dependenciesdepends_on:intent/other-feature/@package/nameintent/auth/ → TASK.yaml status: done ✓ OK
intent/database/ → TASK.yaml status: review ✗ Blocked (not done)
intent/api/ → No TASK.yaml ? Assume not started
@aigne/afs → Check packages/ or deps ✓/✗❌ Gate 3 Failed: Dependencies Not Ready
This Intent cannot be planned because prerequisites are incomplete:
Blocking Intents:
- intent/auth-module/ → status: in_progress (need: done)
- intent/database-setup/ → status: ready (need: done)
Missing External Dependencies:
- @aigne/session-protocol → not found in packages/
Action required: Complete blocking tasks first, or remove dependencies from INTENT.md if not actually needed.| 检查项 | 验证方式 | 失败时操作 |
|---|---|---|
| 内部依赖 | 引用的intent在TASK.yaml中 | 列出阻塞的intent |
| 外部依赖 | 所需的包/服务已存在 | 列出缺失的依赖 |
| 环境配置 | 所需的环境变量、凭证、访问权限已就绪 | 列出缺失的配置 |
## 前置条件## 依赖depends_on:intent/other-feature/@package/nameintent/auth/ → TASK.yaml状态: done ✓ 已就绪
intent/database/ → TASK.yaml状态: review ✗ 阻塞(未完成)
intent/api/ → 无TASK.yaml ? 假设未启动
@aigne/afs → 检查packages/或依赖项 ✓/✗❌ 关卡3失败:依赖未就绪
无法为此Intent制定计划,因为前置条件未完成:
阻塞的Intent:
- intent/auth-module/ → 状态: in_progress(需要: done)
- intent/database-setup/ → 状态: ready(需要: done)
缺失的外部依赖:
- @aigne/session-protocol → 未在packages/中找到
需执行操作:先完成阻塞任务,或若实际不需要则从INTENT.md中移除依赖。✓ Gate 1: Interview complete
✓ Gate 2: Critique done (2026-01-20), no re-critique needed
✓ Gate 3: All 2 dependencies satisfied
Proceeding to generate plan...✓ 关卡1:访谈已完成
✓ 关卡2:评审已完成(2026-01-20),无需再次评审
✓ 关卡3:所有2项依赖已满足
开始生成计划.../intent-plan
↓
Gate 1: Interview Check ──→ ✗ → Stop, require /intent-interview
↓ ✓
Gate 2: Critique Check ───→ ✗ → Stop, require /intent-critique
↓ ✓
Gate 3: Dependency Check ─→ ✗ → Stop, list blockers
↓ ✓
Read Intent file
↓
Analyze scope and complexity
↓
Identify logical phases (0-indexed)
↓
For each phase, define:
- Description
- Tests (6 categories)
- E2E Gate
- Acceptance Criteria
↓
Present plan for approval
↓
User confirms or adjusts
↓
Save to plan.md (same directory as INTENT.md)
↓
Create TASK.yaml (status: ready)/intent-plan
↓
关卡1:访谈检查 ──→ ✗ → 停止,要求运行/intent-interview
↓ ✓
关卡2:评审检查 ───→ ✗ → 停止,要求运行/intent-critique
↓ ✓
关卡3:依赖检查 ─→ ✗ → 停止,列出阻塞项
↓ ✓
读取Intent文件
↓
分析范围与复杂度
↓
确定逻辑阶段(从0开始编号)
↓
为每个阶段定义:
- 描述
- 测试(6类)
- E2E验证关卡
- 验收标准
↓
提交计划待批准
↓
用户确认或调整
↓
保存至plan.md(与INTENT.md同目录)
↓
创建TASK.yaml(状态: ready)undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined| Risk | Mitigation | Contingency |
|---|---|---|
| [风险 1] | [预防措施] | [发生时的应对] |
| 风险 | 缓解措施 | 应急预案 |
|---|---|---|
| [风险1] | [预防措施] | [发生时的应对] |
undefinedundefinedstatus: ready
owner: null
assignee: null
phase: 0/{total_phases}
updated: {UTC_ISO_TIMESTAMP}
heartbeat: null{total_phases}status: ready
owner: null
assignee: null
phase: 0/{总阶段数}
updated: {UTC_ISO_TIMESTAMP}
heartbeat: null{总阶段数}IDD Flow:
/intent-interview # Create Intent (Gate 1 requirement)
↓
/intent-critique # Review for over-engineering (Gate 2 requirement)
↓
/intent-review # Approve Intent (optional but recommended)
↓
/intent-plan # Gate checks → Generate plan.md + TASK.yaml (THIS SKILL)
↓
TaskSwarm Flow:
/swarm run # Execute plan (TDD cycles)
↓
/swarm approve # Human review
↓
/intent-sync # Write back confirmed detailsIDD流程:
/intent-interview # 创建Intent(关卡1要求)
↓
/intent-critique # 评审过度设计问题(关卡2要求)
↓
/intent-review # 批准Intent(可选但推荐)
↓
/intent-plan # 关卡检查 → 生成plan.md + TASK.yaml(本技能)
↓
TaskSwarm流程:
/swarm run # 执行计划(TDD循环)
↓
/swarm approve # 人工评审
↓
/intent-sync # 写入已确认的细节- [ ]- [ ]intent/session-protocol/INTENT.mdintent/session-protocol/plan.mdundefinedintent/session-protocol/INTENT.mdintent/session-protocol/plan.mdundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
**Creates**: `intent/session-protocol/TASK.yaml`
```yaml
status: ready
owner: null
assignee: null
phase: 0/2
updated: 2026-01-27T10:00:00Z
heartbeat: null
**生成文件**:`intent/session-protocol/TASK.yaml`
```yaml
status: ready
owner: null
assignee: null
phase: 0/2
updated: 2026-01-27T10:00:00Z
heartbeat: null