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.
1---2name: gap-analysis-framework3description: 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.4---5
6# Gap Analysis Framework
7
8## Purpose
9
10"What's missing?" - This Skill identifies deficiencies across all aspects of software systems:
11
121. **Requirements vs Implementation** - Missing features or incomplete implementations
132. **Test Coverage Gaps** - Untested code paths and scenarios
143. **Documentation Gaps** - Missing or outdated documentation
154. **Security Posture Gaps** - Vulnerabilities and missing security controls
165. **Performance Gaps** - Performance below targets or benchmarks
176. **Feature Parity** - Comparing with competitors or specifications
187. **Team/Skill Gaps** - Missing expertise or resources
198. **Infrastructure Gaps** - Missing monitoring, redundancy, or scaling
209. **Compliance Gaps** - Regulatory and standards non-compliance
2110. **Accessibility Gaps** - WCAG, ARIA, and inclusive design deficiencies
22
23## When to Use This Skill
24
25Use gap analysis for:
26- Pre-launch readiness assessment
27- Migration planning and competitive analysis
28- Compliance audits and security assessments
29- Test strategy planning and documentation reviews
30- Team planning and infrastructure reviews
31- Accessibility audits and API versioning
32- Dependency audits and coverage analysis
33
34## Quick Start
35
36### 1. Define Your Gap Type
37
38Choose the analysis pattern matching your use case:
39
40| Gap Type | Use Case | Tools |
41|----------|----------|-------|
42| **Requirements** | Missing features or implementations | Code inspection, requirements tracking |
43| **Test Coverage** | Untested code paths | Coverage.py, Jest, Istanbul |
44| **Documentation** | Missing or outdated docs | Docstring analysis, README review |
45| **SWOT** | Strategic capability assessment | Stakeholder interviews, market analysis |
46| **Maturity Model** | Organizational capability level | CMM assessment, process audit |
47| **Security Posture** | Security controls and compliance | SAST/DAST, vulnerability scanning |
48
49### 2. Analyze Current vs Target State
50
51```
52Target State (What should be)
53 ↓
54 ┌────────┐
55 │ GAP │ = Missing, incomplete, deficient
56 │Analysis│
57 └────────┘
58 ↑
59Current State (What is)
60```
61
62### 3. Prioritize Gaps
63
64```
65 │ Easy to Fix │ Hard to Fix │
66─────────┼─────────────┼─────────────┤
67High │ QUICK │ STRATEGIC │
68Impact │ WINS │ GAPS │
69─────────┼─────────────┼─────────────┤
70Low │ OPTIONAL │ IGNORE │
71Impact │IMPROVEMENTS │ FOR NOW │
72─────────┴─────────────┴─────────────┘
73```
74
75### 4. Create Action Plan
76
77For each gap:
781. **Assign Owner** - Who fixes this?
792. **Set Timeline** - By when?
803. **Allocate Resources** - What budget/people?
814. **Define Success** - How to measure closure?
825. **Track Progress** - Regular reviews
83
84## Core Concepts
85
86### Gap Analysis Process
87
881. **Define Target State** - Requirements, standards, best practices
892. **Assess Current State** - Inventory, measure, document capabilities
903. **Identify Gaps** - Compare target vs current, quantify
914. **Prioritize** - Impact/effort matrix, dependencies
925. **Plan Actions** - Assign owners, set timelines, allocate resources
936. **Execute & Monitor** - Regular reviews, adjust as needed
947. **Verify Closure** - Confirm gap resolution
95
96### Maturity Model Levels
97
98Organizational capability evolves across levels:
99
100```
101Level 5: OPTIMIZING │ ████████████ │ Continuous improvement
102Level 4: MANAGED │ █████████░░░ │ Measured and controlled
103Level 3: DEFINED │ ██████░░░░░░ │ Documented processes
104Level 2: REPEATABLE │ ███░░░░░░░░░ │ Basic discipline
105Level 1: INITIAL │ █░░░░░░░░░░░ │ Ad-hoc/chaotic
106```
107
108Maturity gaps show the distance between current and target capability levels.
109
110### SWOT Framework
111
112Gap analysis often uses SWOT to identify strategic gaps:
113
114```
115┌────────────────────────┬────────────────────────┐
116│ STRENGTHS │ WEAKNESSES (GAP) │
117│ ✓ What we do well │ ✗ What's missing │
118├────────────────────────┼────────────────────────┤
119│ OPPORTUNITIES │ THREATS (RISK GAP) │
120│ ⚡ Market potential │ ⚠️ Gaps expose risk │
121└────────────────────────┴────────────────────────┘
122```
123
124## Implementation Patterns
125
126See **PATTERNS.md** for detailed analysis patterns:
1271. Requirements vs Implementation
1282. Test Coverage
1293. Documentation
1304. SWOT Analysis
1315. Capability Maturity Model (CMM)
1326. Security Posture
133
134## Common Gap Analysis Mistakes
135
136See **GOTCHAS.md** for:
137- Analysis paralysis and scope creep
138- Ignoring root causes and constraints
139- Missing stakeholder input
140- No prioritization or metrics
141- One-time snapshots instead of continuous monitoring
142
143## Best Practices
144
145**DO's**:
146- Define clear target state before analyzing
147- Quantify gaps with metrics, not just qualitative assessment
148- Prioritize ruthlessly - focus on critical gaps first
149- Involve stakeholders - get customer, user, and operator input
150- Automate detection - build scripts for continuous monitoring
151- Track over time - gap analysis should be ongoing
152- Root cause analysis - understand *why* gaps exist
153- Create action plans - assign owners and timelines
154- Celebrate progress - acknowledge closed gaps
155- Use industry benchmarks - compare against standards
156
157**DON'Ts**:
158- Compare to perfection - set realistic, achievable targets
159- Analyze without acting - analysis without action is waste
160- Ignore constraints - consider resources, time, budget
161- Blame individuals - focus on systems and processes
162- Scope creep - distinguish gaps from new features
163- Forget context - startup needs differ from enterprise
164- Skip quick wins - balance long-term and immediate actions
165- Ignore stakeholders - technical gaps aren't the only ones
166- Set and forget - reassess regularly as targets evolve
167- Overwhelm teams - pace remediation to avoid burnout
168
169## Gap Analysis Checklist
170
171### Pre-Analysis
172- [ ] Define scope and boundaries
173- [ ] Identify stakeholders
174- [ ] Set clear success criteria
175- [ ] Gather baseline data/metrics
176- [ ] Define target state
177
178### Analysis Phase
179- [ ] Inventory current state
180- [ ] Document capabilities
181- [ ] Identify missing elements
182- [ ] Quantify gaps with metrics
183- [ ] Categorize gaps by type
184- [ ] Assess impact and severity
185- [ ] Estimate effort to close
186
187### Prioritization
188- [ ] Create impact/effort matrix
189- [ ] Identify critical path blockers
190- [ ] Find quick wins
191- [ ] Consider dependencies
192- [ ] Align with business goals
193
194### Action Planning
195- [ ] Assign gap owners
196- [ ] Set realistic timelines
197- [ ] Allocate resources
198- [ ] Define success metrics
199- [ ] Create tracking mechanism
200
201### Execution & Monitoring
202- [ ] Regular progress reviews
203- [ ] Update gap status
204- [ ] Adjust priorities as needed
205- [ ] Celebrate closed gaps
206- [ ] Re-assess periodically
207
208## Key Resources
209
210### Gap Analysis Frameworks
211- [SWOT Analysis](https://www.mindtools.com/pages/article/newTMC_05.htm) - Strategic positioning
212- [Capability Maturity Model](https://en.wikipedia.org/wiki/Capability_Maturity_Model) - Process maturity
213- [Root Cause Analysis](https://asq.org/quality-resources/root-cause-analysis) - Finding underlying issues
214- [SMART Goals](https://www.mindtools.com/pages/article/smart-goals.htm) - Measurable targets
215
216### Analysis Tools
217- **Test Coverage**: Coverage.py, Jest, Istanbul, JaCoCo
218- **Code Quality**: SonarQube, Code Climate
219- **API Docs**: OpenAPI/Swagger specifications
220- **Compliance**: OWASP Top 10, CWE database, WCAG 2.1
221
222## Documentation Map
223
224- **SKILL.md** (this file) - Quick start and essential workflow
225- **PATTERNS.md** - Six detailed analysis patterns with code examples
226- **KNOWLEDGE.md** - Gap analysis theory, methodologies, and frameworks
227- **GOTCHAS.md** - Common mistakes, bias issues, scope management
228- **EXAMPLES.md** - Complete real-world gap analysis scenarios
229- **REFERENCE.md** - Complete framework reference (SWOT, maturity models, scoring)
230
231## Related Skills
232
233- `security-scanning-suite` - For security gap analysis
234- `architecture-evaluation-framework` - For architecture and design gaps
235- `evaluation-reporting-framework` - For comprehensive assessment reports
236- `codebase-onboarding-analyzer` - For documentation and onboarding gaps
237
238## Next Steps
239
2401. **Choose a pattern** from PATTERNS.md matching your use case
2412. **Review examples** in EXAMPLES.md for your gap type
2423. **Reference frameworks** in REFERENCE.md for assessment templates
2434. **Avoid gotchas** listed in GOTCHAS.md
2445. **Use knowledge** in KNOWLEDGE.md for deeper context
245
246---
247
248## Example: Quick Requirements Gap Analysis
249
250**Scenario**: E-commerce site launch in 2 weeks, need to verify completeness.
251
252**1. Identify Requirements**:
253```
254REQ-001: User registration with email
255REQ-002: Product catalog with search
256REQ-003: Shopping cart with checkout
257REQ-004: Order history and receipts
258REQ-005: Admin dashboard for inventory
259```
260
261**2. Assess Implementation**:
262- REQ-001: 100% complete (with tests)
263- REQ-002: 80% complete (search not optimized)
264- REQ-003: 50% complete (cart works, checkout needs payment integration)
265- REQ-004: 0% (missing)
266- REQ-005: 20% (basic scaffolding only)
267
268**3. Identify Gaps**:
269```
270│ Requirement │ Status │ Coverage │ Impact │
271├────────────────────┼─────────────┼──────────┼──────────┤
272│ REQ-001 │ Complete │ 100% │ None │
273│ REQ-002 │ Partial │ 80% │ Medium │
274│ REQ-003 │ Partial │ 50% │ CRITICAL │
275│ REQ-004 │ Missing │ 0% │ CRITICAL │
276│ REQ-005 │ Partial │ 20% │ High │
277```
278
279**4. Prioritize**:
280- CRITICAL: Complete checkout (hard, essential) + Order history (medium effort)
281- HIGH: Admin dashboard improvements (ongoing)
282- MEDIUM: Search optimization (post-launch nice-to-have)
283
284**5. Plan Actions**:
285- Assign payment integration to Backend Lead (3 days)
286- Assign order history to Full-stack Dev (2 days)
287- Assign dashboard to Admin Dev (5 days, starts after launch)
288
289**6. Monitor**:
290- Daily standup on critical gaps
291- Verify acceptance criteria met
292- Launch when critical gaps closed
293
294This 6-step process provides clear visibility on what's missing and what needs immediate attention.