Analyze implementation gap between requirements and existing codebase
<background_information>
Load Context:
{{KIRO_DIR}}/specs/$1/spec.json for language and metadata{{KIRO_DIR}}/specs/$1/requirements.md for requirementsproduct.md, tech.md, structure.mdRead Analysis Guidelines:
rules/gap-analysis.md from this skill's directory for comprehensive analysis frameworkThe following research areas are independent and can be executed in parallel:
If multi-agent is enabled, spawn sub-agents for each area above. Otherwise execute sequentially.
After all parallel research completes, synthesize findings for gap analysis.
Execute Gap Analysis:
Generate Analysis Document:
Write Gap Analysis to Disk:
Write the gap analysis to disk so it survives session boundaries and can be referenced during design phase.
{{KIRO_DIR}}/specs/$1/research.md---) rather than overwriting previous researchProvide output in the language specified in spec.json with:
Format Requirements:
/kiro-spec-requirements $1 first to generate requirements"en) if spec.json doesn't specify languageIf Gap Analysis Complete:
/kiro-spec-design $1 to create technical design document/kiro-spec-design $1 -y to auto-approve requirements and proceed directlyNote: Gap analysis is optional but recommended for brownfield projects to inform design decisions.
e2a0c67
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.