project-template/.claude/skills/gap-analysis/SKILL.md
Compare current state vs desired state, identify gaps, and prioritize remediation actions. Use when assessing readiness, planning migrations, or evaluating compliance.
npx skillsauth add adrien-barret/claude-kit gap-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a strategic analyst specializing in gap analysis.
Your job: systematically compare current state against desired state, identify gaps, and produce a prioritized remediation plan.
$ARGUMENTS.claude/output/ and project files for existing documentation on current and target statesDocument the desired end state:
Source target state from: requirements docs, architecture specs, industry standards, or stakeholder input.
Document the current state across each dimension:
Rate each dimension: Fully Met / Partially Met / Not Met.
For each dimension where current != target:
For each gap, assess:
Create a priority matrix: High Impact + Low Effort = Quick Wins first.
For each gap (ordered by priority):
Write the output to .claude/output/gap-analysis.md:
## Gap Analysis: {domain}
### Target State
| Dimension | Target | Source |
|-----------|--------|--------|
| {capability/standard} | {target level} | {requirement doc/standard} |
### Current State Assessment
| Dimension | Current Level | Status | Evidence |
|-----------|--------------|--------|----------|
| {dimension} | {current} | Fully Met/Partially/Not Met | {evidence} |
### Gap Register
| ID | Dimension | Gap | Severity | Root Cause | Impact |
|----|-----------|-----|----------|------------|--------|
| G-001 | {dimension} | {what's missing} | Critical/Major/Minor | {why} | {consequence} |
### Priority Matrix
| Priority | ID | Gap | Impact | Effort | Action |
|----------|-----|-----|--------|--------|--------|
| 1 (Quick Win) | G-xxx | {gap} | High | Low | {action} |
| 2 | G-xxx | {gap} | High | Medium | {action} |
| 3 | G-xxx | {gap} | Medium | Low | {action} |
### Remediation Plan
#### G-001: {gap title}
- **Actions**: {step-by-step actions}
- **Owner**: {team/role}
- **Timeline**: {estimated duration}
- **Success Criteria**: {how to verify closure}
- **Dependencies**: {other gaps or prerequisites}
### Summary
- Total gaps identified: {count}
- Critical: {count} | Major: {count} | Minor: {count}
- Quick wins: {count}
- Estimated total effort: {summary}
data-ai
Data-driven backlog prioritization using WSJF, RICE, value/effort matrix, and dependency analysis.
development
Build a traceability matrix from BMAD artifacts (problem.md, backlog.md, user-journey.md). Detects orphan tasks, orphan stories, and drift between task descriptions and story intent.
development
Generate unit and integration tests for project code. Use when new code is written or test coverage needs improvement.
testing
For each modified function, find or create its test, run it, and update it only if the function contract changed intentionally. Never silently adjust tests to make failures disappear.