Skip to content
Spec-Driven Development
Command

/validate-gap

Analyze implementation gap between requirements and existing codebase

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

Command definition

validate-gap.md
description: Analyze implementation gap between requirements and existing codebase
allowed-tools: Read, Task
argument-hint: <feature-name>

Implementation Gap Validation

Parse Arguments

  • Feature name: `$1`

Validate

Check that requirements have been completed:

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

If validation fails, inform user to complete requirements phase first.

Invoke Subagent

Delegate gap analysis to validate-gap-agent:

Use the Task tool to invoke the Subagent with file path patterns:

Task(
  subagent_type="validate-gap-agent",
  description="Analyze implementation gap",
  prompt="""
Feature: $1
Spec directory: {{KIRO_DIR}}/specs/$1/

File patterns to read:
- {{KIRO_DIR}}/specs/$1/spec.json
- {{KIRO_DIR}}/specs/$1/requirements.md
- {{KIRO_DIR}}/steering/*.md
- {{KIRO_DIR}}/settings/rules/gap-analysis.md
"""
)

Display Result

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

Next Phase: Design Generation

**If Gap Analysis Complete**:

  • Review gap analysis insights
  • Run `/kiro:spec-design $1` to create technical design document
  • Or `/kiro:spec-design $1 -y` to auto-approve requirements and proceed directly

**Note**: Gap analysis is optional but recommended for brownfield projects to inform design decisions.

@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