Skip to content
Spec-Driven Development
Command

/spec-impl

Execute spec tasks using TDD methodology

From plugin
cc-sdd
3.7k35 skills14 agents35 commands
$ npx -y skills add gotalab/cc-sdd --agent claude-code

Command definition

spec-impl.md
description: Execute spec tasks using TDD methodology
allowed-tools: Read, Task
argument-hint: <feature-name> [task-numbers]

Implementation Task Executor

Parse Arguments

  • Feature name: `$1`
  • Task numbers: `$2` (optional)
  • Format: "1.1" (single task) or "1,2,3" (multiple tasks)
  • If not provided: Execute all pending tasks

Validate

Check that tasks have been generated:

  • Verify `{{KIRO_DIR}}/specs/$1/` exists
  • Verify `{{KIRO_DIR}}/specs/$1/tasks.md` exists

If validation fails, inform user to complete tasks generation first.

Task Selection Logic

**Parse task numbers from `$2`** (perform this in Slash Command before invoking Subagent):

  • If `$2` provided: Parse task numbers (e.g., "1.1", "1,2,3")
  • Otherwise: Read `{{KIRO_DIR}}/specs/$1/tasks.md` and find all unchecked tasks (`- [ ]`)

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: $1
Spec directory: {{KIRO_DIR}}/specs/$1/
Target tasks: {parsed task numbers or "all pending"}

File patterns to read:
- {{KIRO_DIR}}/specs/$1/*.{json,md}
- {{KIRO_DIR}}/steering/*.md

TDD Mode: strict (test-first)
"""
)

Display Result

Show Subagent summary to user, then provide next step guidance:

Task Execution

**Execute specific task(s)**:

  • `/kiro:spec-impl $1 1.1` - Single task
  • `/kiro:spec-impl $1 1,2,3` - Multiple tasks

**Execute all pending**:

  • `/kiro:spec-impl $1` - All unchecked tasks

**Before Starting Implementation**:

  • **IMPORTANT**: Clear conversation history and free up context before running `/kiro:spec-impl`
  • This applies when starting first task OR switching between tasks
  • Fresh context ensures clean state and proper task focus
Read more
@gotalab
Ships withcc-sdd

Package README: English | 日本語 | 繁體中文

3.7k17 skills14 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.7k
Star history of gotalab/cc-sdd on GitHub, a chart by star-history.com

Other commands on cc-sdd.

spec-init

spec-init

Command

Initialize a new specification with detailed project description

@gotalab@gotalabInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Plan-then-execute against SPEC.md. Native Claude Code loop, no sub-agents.

ck2mo1.2k
@juliusbrussee@juliusbrusseeInstall Command
adr-rubber-duck

adr-rubber-duck

Command

ADR(Architecture Decision Record)の壁打ち相手としてヒアリングを通じて意思決定を整理し、ADRドラフトを作成する

tsumiki3mo972
@classmethod@classmethodInstall Command
plan

plan

Command

Plan n8n Linear ticket implementation

n8n11d209k
@n8n-io@n8n-ioInstall Command