跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

kiro-validate-gap

Analyze implementation gap between requirements and existing codebase

项目与协作3.7ktools/cc-sdd/templates/agents/antigravity-skills/skills/kiro-validate-gap/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/gotalab/cc-sdd/kiro-validate-gap/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

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>
## 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

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.

相似的 Skill

slack-gif-creator
anthropics/skills180k

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."

项目与协作

observability-and-instrumentation
addyosmani/agent-skills103k

observability-and-instrumentation

Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

项目与协作

understand-diff
Egonex-AI/Understand-Anything86k

understand-diff

Use when you need to analyze git diffs or pull requests to understand what changed, affected components, and risks

项目与协作

skill-share
ComposioHQ/awesome-claude-skills77k

skill-share

A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

项目与协作

slack-gif-creator
ComposioHQ/awesome-claude-skills77k

slack-gif-creator

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

项目与协作

connect-apps
ComposioHQ/awesome-claude-skills77k

connect-apps

Connect Claude to external apps like Gmail, Slack, GitHub. Use this skill when the user wants to send emails, create issues, post messages, or take actions in external services.

项目与协作