buildpad-validate-gap
Skill1 starsChanged 27 days agoMITView on GitHub
Analyze implementation gap between requirements and existing codebase. Use when planning integration with existing systems.
In this repository66 other files it gives its agents.
- add-ai-chatSkill
- add-buildpadSkill
- add-commentsSkill
- add-cronSkill
- add-external-oauthSkill
- add-filesSkill
- add-i18nSkill
- add-mcp-serverSkill
- add-microappSkill
- add-microfrontendSkill
- add-microfrontend-zonesSkill
- add-mobile-appSkill
- add-multitenancySkill
- add-usersSkill
- add-workflowsSkill
- amplify-env-varsSkill
- authentication-proxySkill
- buildpad-debugSkill
- buildpad-discoverySkill
- buildpad-implSkill
- buildpad-referenceSkill
- buildpad-reviewSkill
- buildpad-spec-batchSkill
- buildpad-spec-designSkill
- buildpad-spec-initSkill
- buildpad-spec-quickSkill
- buildpad-spec-requirementsSkill
- buildpad-spec-statusSkill
- buildpad-spec-tasksSkill
- buildpad-steering-customSkill
- buildpad-steeringSkill
- buildpad-validate-designSkill
- buildpad-validate-implSkill
- buildpad-verify-completionSkill
- code-simplificationSkill
- context-engineeringSkill
- create-api-routeSkill
- create-collectionSkill
- create-componentSkill
- create-cronSkill
- create-featureSkill
- create-form-builderSkill
- create-migrationSkill
- create-projectSkill
- create-rbacSkill
- create-serviceSkill
- create-testsSkill
- create-workflowSkill
- daas-platformSkill
- debugging-and-error-recoverySkill
- generate-docsSkill
- git-workflow-and-versioningSkill
- grant-module-accessSkill
- hooks-extensionsSkill
- idea-refineSkill
- incremental-implementationSkill
- manage-scopeSkill
- migrate-to-engineSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
If steering/spec context is already available from conversation, skip redundant file reads.
- Very specific: line 29
Read .kiro/specs/{feature}/spec.json for language and metadata
- Very specific: line 30
Read .kiro/specs/{feature}/requirements.md for requirements
- Very specific: line 36
Read rules/gap-analysis.md from this skill's directory for comprehensive analysis framework
- Distinctive: line 47
After all parallel research completes, synthesize findings for gap analysis.
- Distinctive: line 49
Follow gap-analysis.md framework for thorough investigation
- Very specific: line 51
Use language specified in spec.json for output
- Distinctive: line 54
Create comprehensive gap analysis following the output guidelines in gap-analysis.md
- Very specific: line 62
Use the Write tool to save the gap analysis to .kiro/specs/{feature}/research.md
- Very specific: line 63
If the file already exists, append the new analysis (separated by a horizontal rule ---) rather than overwriting previous research
- Distinctive: line 64
Verify the file was written by reading it back
- Distinctive: line 69
Thorough Investigation: Use tools to deeply understand existing codebase
- Very specific: line 71
Context Discipline: Start with core steering and expand only with analysis-relevant steering or use-case-aligned local agent …
- Distinctive: line 75
Grep extensively: Search codebase for patterns, conventions, and integration points
- Distinctive: line 87
Use Markdown headings for clarity
- Distinctive: line 88
Keep summary concise (under 300 words)
- Very specific: line 94
Missing Requirements: If requirements.md doesn't exist, stop with message: "Run /buildpad-spec-requirements {feature} first to generate …
- Distinctive: line 95
Requirements Not Approved: If requirements not approved, warn user but proceed (gap analysis can inform requirement revisions)
- Very specific: line 98
Language Undefined: Default to English (en) if spec.json doesn't specify language
- Very specific: line 104
Run /buildpad-spec-design {feature} to create technical design document
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
buildpad-validate-gap Skill
Role
You are a specialized skill for analyzing the implementation gap between requirements and existing codebase to inform implementation strategy.
Core Mission
- 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
Execution Steps
Step 1: Gather Context
If steering/spec context is already available from conversation, skip redundant file reads. Otherwise, load all necessary context:
- Read
.kiro/specs/{feature}/spec.jsonfor language and metadata - Read
.kiro/specs/{feature}/requirements.mdfor 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
- Relevant local agent skills or playbooks only when they clearly match the feature's host environment or use case and provide analysis-relevant context
Step 2: Read Analysis Guidelines
- Read
rules/gap-analysis.mdfrom this skill's directory for comprehensive analysis framework
Step 3: Execute Gap Analysis
Parallel Research
The following research areas are independent and can be executed in parallel:
- Codebase analysis: Existing implementations, architecture patterns, integration points, extension possibilities (using Grep/Glob/Read)
- External dependency research: Dependency compatibility, version constraints, known integration challenges (using WebSearch/WebFetch when needed)
- Context loading: Requirements, core steering, task-relevant extra steering, relevant local agent skills/playbooks, and gap-analysis rules
After all parallel research completes, synthesize findings for gap analysis.
- Follow gap-analysis.md framework for thorough investigation
- Evaluate multiple implementation approaches (extend/new/hybrid)
- Use language specified in spec.json for output
Step 4: 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
Step 5: Write Gap Analysis to Disk
Write the gap analysis to disk so it survives session boundaries and can be referenced during design phase.
- Use the Write tool to save the gap analysis to
.kiro/specs/{feature}/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 use-case-aligned local agent skills/playbooks
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:
- Analysis Summary: Brief overview (3-5 bullets) of scope, challenges, and recommendations
- Document Status: Confirm analysis approach used
- 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
/buildpad-spec-requirements {feature}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
/buildpad-spec-design {feature}to create technical design document - Or
/buildpad-spec-design {feature} -yto auto-approve requirements and proceed directly
Note: Gap analysis is optional but recommended for brownfield projects to inform design decisions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

