跳到正文
cccskills
免费在 GitHub 公开

kiro-validate-gap

Analyze implementation gap between requirements and existing codebase

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Implementation Gap Validation

<background_information>

  • Mission: Analyze the gap between requirements and existing codebase to inform implementation strategy
  • Success Criteria:
    • Comprehensive understanding of existing codebase patterns and components
    • Clear identification of missing capabilities and integration challenges
    • Multiple viable implementation approaches evaluated
    • Technical research needs identified for design phase </background_information>
<instructions> ## Core Task Analyze implementation gap for feature **$1** based on approved requirements and existing codebase.

Execution Steps

  1. Load Context:

    • Read {{KIRO_DIR}}/specs/$1/spec.json for language and metadata
    • Read {{KIRO_DIR}}/specs/$1/requirements.md for requirements
    • Core steering context: product.md, tech.md, structure.md
    • Additional steering files only when directly relevant to the feature's domain rules, integrations, runtime prerequisites, compliance/security constraints, or existing product boundaries
    • Use explicitly requested skills and task-relevant local skills/playbooks, including design, accessibility, and UX. Select by description and read only needed guidance, even for small tasks; preserve required checks and host/project rules.
  2. Read Analysis Guidelines:

    • Read rules/gap-analysis.md from this skill's directory for comprehensive analysis framework

Parallel Research

The following research areas are independent and can be executed in parallel:

  1. Codebase analysis: Existing implementations, architecture patterns, integration points, extension possibilities
  2. External dependency research: Dependency compatibility, version constraints, known integration challenges (when needed)
  3. Context loading: Requirements, core steering, task-relevant extra steering, relevant local agent skills/playbooks, and gap-analysis rules

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.

  1. Execute Gap Analysis:

    • Follow gap-analysis.md framework for thorough investigation
    • Analyze existing codebase using Grep and Read tools
    • Use WebSearch/WebFetch for external dependency research if needed
    • Evaluate multiple implementation approaches (extend/new/hybrid)
    • Use language specified in spec.json for output
  2. Generate Analysis Document:

    • Create comprehensive gap analysis following the output guidelines in gap-analysis.md
    • Present multiple viable options with trade-offs
    • Flag areas requiring further research
  3. Write Gap Analysis to Disk:

    Write the gap analysis to disk so it survives session boundaries and can be referenced during design phase.

    • Save the gap analysis to {{KIRO_DIR}}/specs/$1/research.md
    • If the file already exists, append the new analysis (separated by a horizontal rule ---) rather than overwriting previous research
    • Verify the file was written by reading it back

Important Constraints

  • Information over Decisions: Provide analysis and options, not final implementation choices
  • Multiple Options: Present viable alternatives when applicable
  • Thorough Investigation: Use tools to deeply understand existing codebase
  • Explicit Gaps: Clearly flag areas needing research or investigation
  • Context Discipline: Start with core steering and expand only with analysis-relevant steering or local skills/playbooks selected above </instructions>

Tool Guidance

  • Read first: Load spec, core steering, relevant local playbooks/agent skills, and rules before analysis
  • Grep extensively: Search codebase for patterns, conventions, and integration points
  • WebSearch/WebFetch: Research external dependencies and best practices when needed
  • Write last: Generate analysis only after complete investigation

Output Description

Provide output in the language specified in spec.json with:

  1. Analysis Summary: Brief overview (3-5 bullets) of scope, challenges, and recommendations
  2. Document Status: Confirm analysis approach used
  3. Next Steps: Guide user on proceeding to design phase

Format Requirements:

  • Use Markdown headings for clarity
  • Keep summary concise (under 300 words)
  • Detailed analysis follows gap-analysis.md output guidelines

Safety & Fallback

Error Scenarios

  • Missing Requirements: If requirements.md doesn't exist, stop with message: "Run /kiro-spec-requirements $1 first to generate requirements"
  • Requirements Not Approved: If requirements not approved, warn user but proceed (gap analysis can inform requirement revisions)
  • Empty Steering Directory: Warn user that project context is missing and may affect analysis quality
  • Complex Integration Unclear: Flag for comprehensive research in design phase rather than blocking
  • Language Undefined: Default to English (en) if spec.json doesn't specify language

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add or extend coding-agent support in cc-sdd by executing the SOP in docs/cc-sdd/sop-new-agent.md end-to-end. Use when introducing a new agent, adding a subagent-capable variant, or evaluating migration of an existing supported agent to skills-based templates.

中文简介正在准备中。当前显示原文说明。

gotalab/cc-sdd37252026年10月13日 更新

Investigate implementation failures using root-cause-first debugging. Use when an implementer is blocked, verification fails, or repeated remediation does not converge.

中文简介正在准备中。当前显示原文说明。

gotalab/cc-sdd37252026年10月13日 更新

Entry point for new work. Determines the best action path or work decomposition (update existing spec, create new spec, mixed decomposition, or no spec needed) and refines ideas through structured dialogue.

中文简介正在准备中。当前显示原文说明。

gotalab/cc-sdd37252026年10月13日 更新

kiro-impl

免费

Implement approved tasks in Cascade using TDD and inline review. Runs all pending tasks or selected tasks in the main context.

中文简介正在准备中。当前显示原文说明。

gotalab/cc-sdd37252026年10月13日 更新

kiro-impl

免费

Implement approved tasks using TDD with subagent dispatch. Runs all pending tasks autonomously or selected tasks manually.

中文简介正在准备中。当前显示原文说明。

gotalab/cc-sdd37252026年10月13日 更新

kiro-impl

免费

Implement approved tasks using TDD with native subagent dispatch. Runs all pending tasks autonomously or selected tasks manually.

中文简介正在准备中。当前显示原文说明。

gotalab/cc-sdd37252026年10月13日 更新

查看 gotalab 的全部技能

报告此技能的问题