Impl
Execute single pending subtask using cc-sdd-impl-agent. This command does not require you to specify the feature name and task number.
マークダウンファイル
以下のコードをコピーして、.claude/commands/ ディレクトリに配置してください。
手動でテキストを選択してコピーしてください
---
description: Execute single pending subtask using cc-sdd-impl-agent. This command does not require you to specify the feature name and task number.
---
# Single Task Executor
## Auto-detect Feature
Find the active feature directory in `.kiro/specs/`:
1. List directories in `.kiro/specs/`
2. Exclude `archives` directory
3. There should be exactly one remaining directory - that's the active feature
If no feature found or multiple features exist (excluding archives), inform user to check spec structure.
## Validate
Check that tasks have been generated:
- Verify `.kiro/specs/{feature}/tasks.md` exists
If validation fails, inform user to complete tasks generation first.
## Task Selection Logic
**Find the first pending subtask**:
1. Read `.kiro/specs/{feature}/tasks.md`
2. Find all unchecked subtasks (`- [ ]` with format like `6.1`, `6.2`, etc.)
3. Select **only the first one** (e.g., if 6.1, 6.2, 6.3 are pending, select only 6.1)
## Invoke Subagent
Delegate TDD implementation to spec-tdd-impl-agent:
Use the Task tool to invoke the Subagent with file path patterns:
```
Task(
subagent_type="spec-tdd-impl-agent",
description="Execute TDD implementation",
prompt="""
Feature: {feature}
Spec directory: .kiro/specs/{feature}/
Target task: {first pending subtask number, e.g., "6.1"}
File patterns to read:
- .kiro/specs/{feature}/*.{json,md}
- .kiro/steering/*.md
TDD Mode: strict (test-first)
IMPORTANT: Execute ONLY this single subtask. Do not proceed to subsequent tasks.
"""
)
```
## Display Result
Show Subagent summary to user, then provide next step guidance:
### Next Steps
After completion:
- Run `/impl` again to execute the next pending subtask
- Run `/kiro:spec-status {feature}` to check overall progress
### Purpose
This command is for executing tasks **one at a time** without specifying task numbers manually.
Use `/kiro:spec-impl {feature} 1.1` if you want to specify a particular task.
