afc-tasks
Task decomposition from plan with dependency tracking
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Task decomposition from plan with dependency tracking
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Code and component analysis — analyze code, trace flows, audit consistency, inspect components
Architecture analysis and design review
Full auto pipeline — run spec-to-clean cycle automatically for new features
Save session state for later resumption
Resolve spec ambiguities with clarifying questions
Pipeline artifact cleanup and codebase hygiene
| name | afc:tasks |
| description | Task decomposition from plan with dependency tracking |
| argument-hint | [constraints/priority directives] |
| user-invocable | false |
| allowed-tools | ["Read","Glob","Grep","Write"] |
| model | sonnet |
Generates an executable task list (tasks.md) from plan.md. Validates coverage with a convergence-based Critic Loop.
Note: In
/afc:auto, task generation runs automatically at implement start. Use this command only for standalone manual control.
$ARGUMENTS — (optional) additional constraints or priority directivesRead .claude/afc.config.md first. If missing: print ".claude/afc.config.md not found. Run /afc:init first." then abort.
From .claude/afc/specs/{feature}/:
Extract from plan.md: phase breakdown, File Change Map, architecture decisions.
- [ ] T{NNN} {[P]} {[US*]} {description} `{file path}` {depends: [TXXX, ...]}
| Component | Required | Description |
|---|---|---|
T{NNN} | Yes | 3-digit sequential ID |
[P] | No | Mandatory parallel execution — no file overlap with other [P] tasks in same phase |
[US*] | No | User Story label from spec.md |
description | Yes | Verb-first clear description |
`file path` | Yes | Primary target file |
depends: | No | Blocking dependency list |
# Tasks: {feature name}
## Phase 1: Setup — type definitions, configuration
## Phase 2: Core — business logic, store, API
## Phase 3: UI — components, interactions
## Phase 4: Integration & Polish — error handling, optimization
[P] candidate[P] is mandatory, not optional — once marked, task MUST run in parallel[P] file overlaps: run "${CLAUDE_SKILL_DIR}/../../scripts/afc-parallel-validate.sh" .claude/afc/specs/{feature}/tasks.md"${CLAUDE_SKILL_DIR}/../../scripts/afc-dag-validate.sh" .claude/afc/specs/{feature}/tasks.md — abort if cycle detected{config.gate} validation task at end of each PhaseIf .claude/afc/memory/retrospectives/ exists, load the 10 most recent files (sorted descending) and check for prior [P] conflict patterns or granularity issues.
Read docs/critic-loop-rules.md first and follow all rules. Safety cap: 5 passes.
| Criterion | Validation |
|---|---|
| COVERAGE | All files in plan.md File Change Map included? All FR-* in spec.md covered? |
| DEPENDENCIES | DAG valid? [P] tasks in same phase have no file overlaps? All depends: IDs exist? |
Verdicts: PASS / FAIL (auto-fix, continue) / ESCALATE (pause for user) / DEFER (record, continue)
On convergence: ✓ Critic converged ({N} passes, {M} fixes, {E} escalations)
On safety cap: ⚠ Critic safety cap ({N} passes). Review recommended.
## Coverage Mapping
| Requirement | Tasks |
|-------------|-------|
| FR-001 | T003, T007 |
| NFR-001 | T012 |
Every FR-/NFR- must map to at least one task.
When not inside /afc:auto, write .claude/afc/memory/checkpoint.md:
/afc:implement)Save to .claude/afc/specs/{feature}/tasks.md, then:
Tasks generated
├─ .claude/afc/specs/{feature}/tasks.md
├─ Tasks: {total} ({[P] count} parallelizable)
├─ Phases: {count}
├─ Coverage: FR {N}%, NFR {N}%
├─ Critic: converged ({N} passes, {M} fixes, {E} escalations)
└─ Next step: /afc:validate (optional) or /afc:implement
depends: prohibited: only reference tasks in same or previous phaseaddBlockedBy auto-unblocking is guaranteed in Agent Teams only; in sub-agent mode the orchestrator must poll manually