/harness:decompose <feature-id e.g. F001>from harness
Decomposes test-driven feature implementation into atomic tasks with dependency analysis, wave-based parallel execution, and module stewardship. Generates AGENT.md files for affected modules.
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Parameter: $ARGUMENTS — feature ID (e.g. F001)
approved (or reviewed if spec-review was in the flow)Read all test files for this feature. List every test ID.
Map each test ID (or group of closely related tests) to one atomic task.
Each task must satisfy:
Determine task ordering:
Analyze which code modules each task will touch:
.harness/full-design.mdRead the template from the harness plugin's templates/agent-md-template.md and generate a module-specific AGENT.md:
# Module: {module-name}
## Path: {relative/path}
## Last Updated: {ISO timestamp}
## Responsibilities
{derived from code analysis and design doc}
## Boundaries
- **Owns**: {files in this directory}
- **Depends On**: {modules imported by this module}
- **Depended By**: {modules that import this module}
- **Forbidden Dependencies**: {inferred from architecture — e.g. UI modules should not import from CLI}
## Quality Standards
{derived from project config and existing linting rules}
## Interface Contract
- **Exports**: {detected public API}
- **Data Flow**: {input/output shapes}
## Change History
| Date | Change | Impact | Reviewer |
|------|--------|--------|----------|
Place AGENT.md in the actual module directory (e.g. src/auth/AGENT.md).
.harness/module-graph.json:{
"modules": {
"src/auth": {
"agent_md": "src/auth/AGENT.md",
"depends_on": ["src/db", "src/config"],
"depended_by": ["src/api", "src/middleware"],
"forbidden": ["src/ui"]
}
},
"last_updated": "{ISO timestamp}"
}
Write to .harness/tasks.md:
# Tasks — $ARGUMENTS
## DAG Visualization
Wave 1: [T001] [T002] [T005] ← parallel, no dependencies
Wave 2: [T003] [T006] ← depends on Wave 1
Wave 3: [T004] ← depends on Wave 2
Wave 4: [T007] [T008] ← E2E verification
## Task List
| ID | Name | Wave | Status | Tests | Retries | BlockedBy | Files | Modules |
|----|------|------|--------|-------|---------|-----------|-------|---------|
| T001 | desc | 1 | pending | T001-V1 | 0 | - | src/... | src/auth |
| T002 | desc | 1 | pending | T002-V1 | 0 | - | src/... | src/db |
| T003 | desc | 2 | pending | T003-V1,V2 | 0 | T001 | src/... | src/auth, src/api |
## Module Stewardship
| Module | AGENT.md | Tasks Affecting | Guardian Active |
|--------|----------|----------------|-----------------|
| src/auth | src/auth/AGENT.md | T001, T003 | Yes |
| src/db | src/db/AGENT.md | T002 | Yes |
## Summary
- Total tasks: N
- Waves: M
- Modules affected: K
- AGENT.md files generated: J
- Estimated parallel speedup: Nx → Mx
Append to .harness/progress.md:
## [timestamp] Task Decomposition — $ARGUMENTS
- Total tasks: N
- Waves: M
- Modules with stewardship: K
- Status: awaiting human approval
Present the DAG and module stewardship plan to the user. Ask:
"任务拆解完成:{N} 个原子任务,分 {M} 个 Wave,涉及 {K} 个模块(已生成 AGENT.md)。任务依赖关系是否正确?有需要拆分或合并的任务吗?"
Do NOT proceed until approved.
flow field from the spec📋 SDD 进度 — {FXXX}: {feature name}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ proposal → ✅ tdd-align → ✅ decompose → ⬜ sprint → ...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
当前阶段: decompose (任务拆解 + 责任田) ✅ 已完成
下一阶段: sprint (自动执行)
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/cancel-sprintCancel an active sprint loopnpx claudepluginhub zxdxjtu/harness --plugin harness