/validate-gap
Analyze implementation gap between requirements and existing codebase
$ npx -y skills add gotalab/cc-sdd --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/validate-gap
Context preview
What this command does when you run it.
Analyze implementation gap between requirements and existing codebase
Command definition
validate-gap.mddescription: 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.
Repo: gotalab/cc-sdd
Other commands on cc-sdd.
- /spec-design
Create comprehensive technical design for a specification
Open command - /spec-impl
Execute spec tasks using TDD methodology
Open command - /spec-init
Initialize a new specification with detailed project description
Open command - /spec-quick
Quick spec generation with interactive or automatic mode
Open command - /spec-requirements
Generate comprehensive requirements for a specification
Open command - /spec-status
Show specification status and progress
Open command

