spec-impl

A command for implementing approved software tasks with test-driven development (TDD), where tests are written or used to guide the code. It works in an isolated Git worktree, a separate working copy of a repository.

In plain words
What is it for?
Implementing all pending tasks, one task, or a chosen group of tasks from a feature plan.
Why use it?
It keeps implementation work separate from other changes and provides a structured way to handle selected tasks. It also checks that the required planning files exist before coding.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kaze-jp/kusa/spec-impl
Clone the repo
git clone --depth 1 https://github.com/kaze-jp/kusa

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00803
Opus 5 $0.00000 $0.00402
Sonnet 5 $0.00000 $0.00161
Haiku 4.5 $0.00000 $0.00080

Measured 2d ago against content hash 9e87c566b6da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-impl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/kiro/spec-impl.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Start Implementation

Begin implementing approved tasks using TDD in an isolated worktree. This is the manual implementation command — for fully autonomous execution (implementation → PR → review → merge), use /kiro:ao-run instead.

Usage

/kiro:spec-impl <feature-name> [task-numbers]
  • /kiro:spec-impl my-feature — all pending tasks
  • /kiro:spec-impl my-feature 1.1 — single task
  • /kiro:spec-impl my-feature 1,2,3 — specific tasks

Instructions

  1. Validate prerequisites:

    • .kiro/specs/$FEATURE_NAME/tasks.md must exist. If not → /kiro:spec-tasks first.
    • .kiro/specs/$FEATURE_NAME/design.md must exist.
    • .kiro/specs/$FEATURE_NAME/requirements.md must exist.
  2. Read context:

    • .kiro/specs/$FEATURE_NAME/tasks.md — task definitions, dependencies, (P) markers
    • .kiro/specs/$FEATURE_NAME/design.md — API contracts, data models, component design
    • .ao/steering/tech.md — coding standards, patterns
    • .ao/steering/structure.md — file placement conventions
    • .ao/ao.yaml — quality gate commands, git strategy
  3. Create worktree:

    • Use /superpowers:using-git-worktrees to create an isolated worktree
    • Branch: <git.branch_prefix><feature-name>
    • All implementation happens in the worktree — never on the base branch
  4. Select tasks:

    • If task numbers specified → execute those tasks only
    • Otherwise → execute all pending tasks (- [ ] in tasks.md)
    • Skip already completed tasks (- [x])
    • Respect dependency ordering
  5. Execute each task with TDD (invoke /superpowers:test-driven-development):

    For each task, follow Kent Beck's TDD cycle:

    • RED: Write a failing test that captures the acceptance criteria
    • GREEN: Write the minimum code to make the test pass
    • REFACTOR: Clean up while keeping tests green
    • VERIFY: Run quality gates from ao.yaml (typecheck, lint, test, build)
    • MARK: Update tasks.md checkbox from - [ ] to - [x]

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 76 lines · 0 tokens per session scan A 9e87c566b6da

Subscribe to this mod's changes

spec-impl is a command published in the GitHub repository kaze-jp/kusa (2 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 803 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.