skills/arckit-gap-analysis/SKILL.md
Perform gap analysis — capability matrix, gap severity scoring, workstream mapping
npx skillsauth add tractorjuice/arckit-codex arckit-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 helping an enterprise architect perform a Gap Analysis for TOGAF ADM Phase E (Opportunities & Solutions). This document identifies gaps between current and target architectures, scores their severity, and maps them to workstreams for prioritised delivery.
$ARGUMENTS
Note: Before generating, scan
projects/for existing project directories. For each project, list allARC-*.mdartifacts, checkexternal/for reference documents, and check000-global/for cross-project policies. If no external docs exist but they would improve output, ask the user.
MANDATORY (warn if missing):
$arckit-business-capability-map first. Gap analysis requires a capability baseline.RECOMMENDED (read if available, note if missing):
external/ files) — extract baseline assessments, target architecture descriptions, migration strategiesprojects/000-global/external/ — extract capability maturity models, technology standards, compliance frameworksprojects/{project-dir}/external/ and re-run, or skip.".arckit/references/citation-instructions.md. Place inline citation markers (e.g., [GA-C1]) next to findings informed by source documents and populate the "External References" section in the template.Identify the target project from the hook context. If the user specifies a project that doesn't exist yet, create a new project:
projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)002)projects/{NNN}-{slug}/README.md with the project name, ID, and date — the Write tool will create all parent directories automaticallyprojects/{NNN}-{slug}/external/README.md with a note to place external reference documents herePROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory pathRead the template (with user override support):
.arckit/templates-custom/gap-analysis-template.md exists in the project root.arckit/templates/gap-analysis-template.md (default)Tip: Users can customise templates with
$arckit-customize gap-analysis
Before generating the analysis, ask the user how to weight gap severity scoring:
direct user question: "How should gap severity be weighted?"
Balanced | Strategic-risk | OperationalBalancedWeighting profiles:
Read all available documents identified in the Prerequisites section. Build a mental model of:
Read .arckit/skills/mermaid-syntax/references/flowchart.md and .arckit/skills/mermaid-syntax/references/quadrantChart.md for official Mermaid syntax — node shapes, edge labels, quadrant chart syntax, and styling options.
Create a comprehensive Gap Analysis document following the template structure.
ARC-{P}-GAPA-v1.0 (for filename: ARC-{P}-GAPA-v1.0.md)Build a capability gap matrix comparing current state (from BPCM) against target state (from STRAT/ADMP):
Create a Mermaid quadrant chart plotting gaps by Size (x-axis) vs Urgency (y-axis):
Define workstreams that group related gaps:
Map each gap to associated risks:
If the user indicates this is a UK Government project, include:
If this is a Ministry of Defence project, include:
Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the GAPA per-type checks pass. Fix any failures before proceeding.
GAPA-specific quality requirements:
IMPORTANT: The gap analysis document will be a substantial document (typically 250-400 lines). You MUST use the Write tool to create the file, NOT output the full content in chat.
Create the file at:
projects/{P}/ARC-{P}-GAPA-v1.0.md
Use the Write tool with the complete content following the template structure.
After writing the file, show a concise summary (NOT the full document):
## Gap Analysis Created
**Document**: `projects/{P}/ARC-{P}-GAPA-v1.0.md`
**Document ID**: ARC-{P}-GAPA-v1.0
### Analysis Overview
- **Severity Weighting**: [Balanced / Strategic-risk / Operational]
- **Capabilities Assessed**: [N] capabilities
- **Gaps Identified**: [N] gaps ([Critical] critical, [High] high, [Medium] medium, [Low] low)
### Gap Heatmap Summary
| Quadrant | Count | Priority |
|----------|-------|----------|
| Immediate (Large + High urgency) | [N] | 🔴 Must address |
| Plan (Large + Low urgency) | [N] | 🟡 Plan ahead |
| Monitor (Small + High urgency) | [N] | 🔵 Quick wins |
| Low Priority (Small + Low urgency) | [N] | ⚪ Backlog |
### Workstreams
| WS-ID | Name | Gaps | Duration | Resources |
|-------|------|------|----------|-----------|
| WS-001 | [Name] | [N] gaps | [X months] | [N FTE] |
| WS-002 | [Name] | [N] gaps | [X months] | [N FTE] |
### Top Critical Gaps
1. **[Gap 1]**: [Capability] — [Severity] — assigned to WS-[N]
2. **[Gap 2]**: [Capability] — [Severity] — assigned to WS-[N]
3. **[Gap 3]**: [Capability] — [Severity] — assigned to WS-[N]
### Synthesised From
- ✅ Business Capability Model: ARC-{P}-BPCM-v[N].md
- [✅/⚠️] Architecture Principles: ARC-{P}-APP-v[N].md
- [✅/⚠️] Architecture Strategy: ARC-{P}-STRAT-v[N].md
- [✅/⚠️] Principles: ARC-000-PRIN-v[N].md
### Next Steps
1. Review gap analysis with Architecture Board: `$arckit-architecture-board`
2. Create work packages to close gaps: `$arckit-transition-architecture`
3. Validate workstream sequencing with delivery team
4. Prioritise immediate-action gaps with sponsor
### Traceability
- [N] capabilities assessed against [N] target state requirements
- [N] gaps mapped to [N] workstreams
- [N] workstreams linked to [N] strategic themes
- [N] gaps cross-referenced to risk register
**File location**: `projects/{P}/ARC-{P}-GAPA-v1.0.md`
Evidence-Based, Not Speculative: This command analyses gaps between documented current state (BPCM) and documented target state (STRAT/ADMP). It should NOT invent capabilities or maturity levels without source evidence.
Use Write Tool: The gap analysis document is typically 250-400 lines. ALWAYS use the Write tool to create it. Never output the full content in chat.
Mandatory Prerequisites: BPCM is the only mandatory prerequisite. Without a capability baseline, gap analysis cannot be performed. STRAT and APP are recommended for target state and principle alignment.
Severity Scoring: The severity matrix (Size × Urgency) is the core analytical engine. The user's chosen weighting profile (Balanced/Strategic-risk/Operational) determines which gaps rise to the top.
Workstream Design: Workstreams must be coherent — grouping gaps that share technology, skills, or dependencies. Avoid creating workstreams for single gaps unless they are genuinely standalone.
Traceability is Critical: Every gap, workstream, and risk must trace back to source documents. This ensures the gap analysis is grounded in evidence, not assumptions.
Integration with Other Commands:
$arckit-transition-architecture (Phase F — Migration Planning), $arckit-architecture-board (governance review)$arckit-business-capability-map (BPCM), $arckit-strategy (STRAT), $arckit-principles (PRIN)Version Management: If a gap analysis already exists (ARC-*-GAPA-v*.md), create a new version (v2.0) rather than overwriting. Gap analyses should be versioned to track re-assessment across ADM cycles.
Gap Triage Framework: Use the heatmap quadrants as a decision framework:
Markdown escaping: When writing less-than or greater-than comparisons, always include a space after < or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emoji
After completing this command, consider running:
$arckit-transition-architecture -- Create work packages to close identified gaps$arckit-architecture-board -- Present gap analysis to Architecture Board for prioritizationdatabases
Plan transition architectures with work packages, migration waves, and acceptance criteria
tools
Map business capabilities, value streams, and maturity for Phase A Business Architecture
development
Build architecture repository — patterns library, standards register, reusable building blocks
tools
Create architecture change request with impact assessment and ADM cycle re-entry