| name | gap-analysis-framework |
| description | Comprehensive gap analysis framework for identifying missing capabilities, coverage, and requirements. Use for requirements vs implementation gaps, test coverage analysis, documentation gaps, security posture assessment, performance benchmarks, feature parity analysis, team capability gaps, infrastructure coverage, compliance gaps, and accessibility analysis. Includes SWOT, maturity models, and automated gap detection. |
| allowed-tools | ["Read","Write","Edit","Bash","Glob","Grep","WebFetch"] |
Gap Analysis Framework
Purpose
"What's missing?" - This Skill identifies deficiencies across all aspects of software systems:
- Requirements vs Implementation - Missing features or incomplete implementations
- Test Coverage Gaps - Untested code paths and scenarios
- Documentation Gaps - Missing or outdated documentation
- Security Posture Gaps - Vulnerabilities and missing security controls
- Performance Gaps - Performance below targets or benchmarks
- Feature Parity - Comparing with competitors or specifications
- Team/Skill Gaps - Missing expertise or resources
- Infrastructure Gaps - Missing monitoring, redundancy, or scaling
- Compliance Gaps - Regulatory and standards non-compliance
- Accessibility Gaps - WCAG, ARIA, and inclusive design deficiencies
When to Use This Skill
Use gap analysis for:
- Pre-launch readiness assessment
- Migration planning and competitive analysis
- Compliance audits and security assessments
- Test strategy planning and documentation reviews
- Team planning and infrastructure reviews
- Accessibility audits and API versioning
- Dependency audits and coverage analysis
Quick Start
1. Define Your Gap Type
Choose the analysis pattern matching your use case:
| Gap Type | Use Case | Tools |
|---|
| Requirements | Missing features or implementations | Code inspection, requirements tracking |
| Test Coverage | Untested code paths | Coverage.py, Jest, Istanbul |
| Documentation | Missing or outdated docs | Docstring analysis, README review |
| SWOT | Strategic capability assessment | Stakeholder interviews, market analysis |
| Maturity Model | Organizational capability level | CMM assessment, process audit |
| Security Posture | Security controls and compliance | SAST/DAST, vulnerability scanning |
2. Analyze Current vs Target State
Target State (What should be)
โ
โโโโโโโโโโ
โ GAP โ = Missing, incomplete, deficient
โAnalysisโ
โโโโโโโโโโ
โ
Current State (What is)
3. Prioritize Gaps
โ Easy to Fix โ Hard to Fix โ
โโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
High โ QUICK โ STRATEGIC โ
Impact โ WINS โ GAPS โ
โโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
Low โ OPTIONAL โ IGNORE โ
Impact โIMPROVEMENTS โ FOR NOW โ
โโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ
4. Create Action Plan
For each gap:
- Assign Owner - Who fixes this?
- Set Timeline - By when?
- Allocate Resources - What budget/people?
- Define Success - How to measure closure?
- Track Progress - Regular reviews
Core Concepts
Gap Analysis Process
- Define Target State - Requirements, standards, best practices
- Assess Current State - Inventory, measure, document capabilities
- Identify Gaps - Compare target vs current, quantify
- Prioritize - Impact/effort matrix, dependencies
- Plan Actions - Assign owners, set timelines, allocate resources
- Execute & Monitor - Regular reviews, adjust as needed
- Verify Closure - Confirm gap resolution
Maturity Model Levels
Organizational capability evolves across levels:
Level 5: OPTIMIZING โ โโโโโโโโโโโโ โ Continuous improvement
Level 4: MANAGED โ โโโโโโโโโโโโ โ Measured and controlled
Level 3: DEFINED โ โโโโโโโโโโโโ โ Documented processes
Level 2: REPEATABLE โ โโโโโโโโโโโโ โ Basic discipline
Level 1: INITIAL โ โโโโโโโโโโโโ โ Ad-hoc/chaotic
Maturity gaps show the distance between current and target capability levels.
SWOT Framework
Gap analysis often uses SWOT to identify strategic gaps:
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโ
โ STRENGTHS โ WEAKNESSES (GAP) โ
โ โ What we do well โ โ What's missing โ
โโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโค
โ OPPORTUNITIES โ THREATS (RISK GAP) โ
โ โก Market potential โ โ ๏ธ Gaps expose risk โ
โโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโ
Implementation Patterns
See PATTERNS.md for detailed analysis patterns:
- Requirements vs Implementation
- Test Coverage
- Documentation
- SWOT Analysis
- Capability Maturity Model (CMM)
- Security Posture
Common Gap Analysis Mistakes
See GOTCHAS.md for:
- Analysis paralysis and scope creep
- Ignoring root causes and constraints
- Missing stakeholder input
- No prioritization or metrics
- One-time snapshots instead of continuous monitoring
Best Practices
DO's:
- Define clear target state before analyzing
- Quantify gaps with metrics, not just qualitative assessment
- Prioritize ruthlessly - focus on critical gaps first
- Involve stakeholders - get customer, user, and operator input
- Automate detection - build scripts for continuous monitoring
- Track over time - gap analysis should be ongoing
- Root cause analysis - understand why gaps exist
- Create action plans - assign owners and timelines
- Celebrate progress - acknowledge closed gaps
- Use industry benchmarks - compare against standards
DON'Ts:
- Compare to perfection - set realistic, achievable targets
- Analyze without acting - analysis without action is waste
- Ignore constraints - consider resources, time, budget
- Blame individuals - focus on systems and processes
- Scope creep - distinguish gaps from new features
- Forget context - startup needs differ from enterprise
- Skip quick wins - balance long-term and immediate actions
- Ignore stakeholders - technical gaps aren't the only ones
- Set and forget - reassess regularly as targets evolve
- Overwhelm teams - pace remediation to avoid burnout
Gap Analysis Checklist
Pre-Analysis
Analysis Phase
Prioritization
Action Planning
Execution & Monitoring
Key Resources
Gap Analysis Frameworks
Analysis Tools
- Test Coverage: Coverage.py, Jest, Istanbul, JaCoCo
- Code Quality: SonarQube, Code Climate
- API Docs: OpenAPI/Swagger specifications
- Compliance: OWASP Top 10, CWE database, WCAG 2.1
Documentation Map
- SKILL.md (this file) - Quick start and essential workflow
- PATTERNS.md - Six detailed analysis patterns with code examples
- KNOWLEDGE.md - Gap analysis theory, methodologies, and frameworks
- GOTCHAS.md - Common mistakes, bias issues, scope management
- EXAMPLES.md - Complete real-world gap analysis scenarios
- REFERENCE.md - Complete framework reference (SWOT, maturity models, scoring)
Related Skills
security-scanning-suite - For security gap analysis
architecture-evaluation-framework - For architecture and design gaps
evaluation-reporting-framework - For comprehensive assessment reports
codebase-onboarding-analyzer - For documentation and onboarding gaps
Next Steps
- Choose a pattern from PATTERNS.md matching your use case
- Review examples in EXAMPLES.md for your gap type
- Reference frameworks in REFERENCE.md for assessment templates
- Avoid gotchas listed in GOTCHAS.md
- Use knowledge in KNOWLEDGE.md for deeper context
Example: Quick Requirements Gap Analysis
Scenario: E-commerce site launch in 2 weeks, need to verify completeness.
1. Identify Requirements:
REQ-001: User registration with email
REQ-002: Product catalog with search
REQ-003: Shopping cart with checkout
REQ-004: Order history and receipts
REQ-005: Admin dashboard for inventory
2. Assess Implementation:
- REQ-001: 100% complete (with tests)
- REQ-002: 80% complete (search not optimized)
- REQ-003: 50% complete (cart works, checkout needs payment integration)
- REQ-004: 0% (missing)
- REQ-005: 20% (basic scaffolding only)
3. Identify Gaps:
โ Requirement โ Status โ Coverage โ Impact โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโค
โ REQ-001 โ Complete โ 100% โ None โ
โ REQ-002 โ Partial โ 80% โ Medium โ
โ REQ-003 โ Partial โ 50% โ CRITICAL โ
โ REQ-004 โ Missing โ 0% โ CRITICAL โ
โ REQ-005 โ Partial โ 20% โ High โ
4. Prioritize:
- CRITICAL: Complete checkout (hard, essential) + Order history (medium effort)
- HIGH: Admin dashboard improvements (ongoing)
- MEDIUM: Search optimization (post-launch nice-to-have)
5. Plan Actions:
- Assign payment integration to Backend Lead (3 days)
- Assign order history to Full-stack Dev (2 days)
- Assign dashboard to Admin Dev (5 days, starts after launch)
6. Monitor:
- Daily standup on critical gaps
- Verify acceptance criteria met
- Launch when critical gaps closed
This 6-step process provides clear visibility on what's missing and what needs immediate attention.