agentleFS
nclsprsnnclsprsn/architect-claude/skills/gap-analysis/SKILL.md

gap-analysis

Skill1 starsChanged 7 months agoMITView on GitHub

Produce a consulting-grade gap analysis between As-Is and To-Be states. Capability maturity scoring (0–4), typed gaps, dependency precedence (FS/SS/FF), verification criteria, Impact×Effort prioritisation, As-Is/To-Be heat map and swimlane diagrams, H1/H2/H3 roadmap. TOGAF-aware.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Innovation Pressure: Before finalising the gap table, ask: is the target state ambitious enough?

    line 14
  2. Distinctive:

    Three Horizons: Every gap is classified H1 (now → 12 months), H2 (12–24 months), or H3 (24+ months).

    line 16
  3. Distinctive:

    Bold Needs Evidence: Every maturity score, priority, and effort estimate must be justified in one line.

    line 20
  4. Distinctive:

    Highest Standards: Before presenting output, ask: "Does this meet the bar I would set for a client deliverable?" If no, iterate.

    line 24
  5. Distinctive:

    No TOGAF signals → Framework-agnostic mode: domain-neutral gap table with roadmap sequencing.

    line 30
  6. Distinctive:

    Ask only for what is not already provided in context.

    line 34
  7. Very specific:

    Every output MUST satisfy the four rules below.

    line 45
  8. Very specific:

    Use <br> for line breaks inside node labels — never \n

    line 107
  9. Distinctive:

    Keep diagrams scoped to the gaps being analysed — never show the full system

    line 110
  10. Distinctive:

    After completing a gap analysis:

    line 379
  11. Very specific:

    Forward — Phase B/C/D design: if gaps reveal missing architecture content, invoke the relevant phase skill (capability-assessment, …

    line 382

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gap Analysis

You are producing a structured gap analysis. Your job is to make the distance between current state and target state concrete, dependency-ordered, and actionable — not a vague list of "things to improve." A gap table with no maturity scoring, no dependency typing, and no verification criteria is an observation. A gap analysis is a roadmap.

Core Mindset

Working Backwards: Start from the target state and reason backwards. What must be true for the target to be achieved? What is currently false? The gap is the delta between what must be true and what is currently true. Sequence from target back to now, not from now forward to target.

Innovation Pressure: Before finalising the gap table, ask: is the target state ambitious enough? Surface one disruptive alternative — a target that challenges whether the current direction is bold enough, or whether an emerging approach makes the planned target obsolete before it is reached.

Three Horizons: Every gap is classified H1 (now → 12 months), H2 (12–24 months), or H3 (24+ months). H1 must deliver visible business value — not just technical foundations. H2 and H3 items must have explicit triggers that move them forward.

Commoditisation Pressure: Flag any gap where the closure plan involves custom-building something drifting toward commodity. Name the commodity alternative and the cost delta.

Bold Needs Evidence: Every maturity score, priority, and effort estimate must be justified in one line. "High priority" without a rationale is not evidence.

Second-Order Effects: Name at least one second-order effect — a downstream consequence of closing the highest-priority gap that affects a component or team outside the immediate scope.

Highest Standards: Before presenting output, ask: "Does this meet the bar I would set for a client deliverable?" If no, iterate.

TOGAF Detection

TOGAF signals present → TOGAF mode: align gaps to ADM phase B/C/D structure, label building block types, and flag architecture contract status per gap.

No TOGAF signals → Framework-agnostic mode: domain-neutral gap table with roadmap sequencing.

Information to Gather

Ask only for what is not already provided in context. Batch all missing questions into a single message — never ask one at a time.

FieldInfer from context if possibleQuestion if missing
Domains in scopeInfer from the document structure — if a current-state description names systems, infer domains from them"Which domains are in scope? Common choices: Application / Data / Integration / Platform / Security / Governance / Organisation. Or should I infer from the document?"
Target stateLook for a target architecture or vision document; infer ambition level from strategy language"Is the target state defined? If yes, where? If not, should I help define it — or should you describe it in a sentence?"
Planning horizonInfer from project scope signals — "migration" → H1/H2; "transformation" → H1–H3"What planning horizon should this roadmap cover? (A) H1 only — now to 12 months (B) H1 + H2 — up to 24 months (C) Full H1–H3 — strategic roadmap"
Hard deadlinesLook for regulatory, contractual, or go-live dates in context"Are there hard deadlines (regulatory compliance, contract, go-live, audit) the sequencing must respect?"

Output Discipline

Every output MUST satisfy the four rules below. They operationalise the accountability principles (Bias for Action, Earn Trust, Have Backbone, Deliver Results, Broad Responsibility). Skip a rule only by writing N/A — [reason] so the omission is visible.

  1. Confidence marker on every claim, score, and recommendation:
    • [proven] — measured at scale or supported by a published benchmark
    • [informed estimate] — extrapolated from analogous case, reference architecture, or first-principles reasoning
    • [working hypothesis] — directional only; validate with a spike, PoC, or external evidence before commitment
  2. Reversibility tag on every decision and recommendation: one-way door (slow, deliberate, expensive to undo) or two-way door (cheap to undo, move fast and learn fast). Defaults are not neutral — name the door.
  3. Named owner + review trigger on every recommendation, risk, gap, and decision. Owner is a human role (not a team). Review trigger is an evidence threshold or event, not a calendar date.
  4. Broad Responsibility line — one line on the societal, environmental, regulatory, or customers-of-customers implication. Skip with explicit N/A — [reason] only when no plausible downstream impact exists. Never silent.

Capability Maturity Scale

[!info] Practitioner overlay — not TOGAF-native The 0–4 maturity scale below is a CMMI-derived practitioner convention (CMMI Institute). TOGAF does not prescribe a capability maturity model — use this scale as an overlay alongside TOGAF Phase B/C/D gap analysis; cite CMMI if the output is used in a formal assessment context. See references/scoring-conventions.md for the canonical scale definition, RAG thresholds, and how to avoid mixing this scale with the Decision Matrix Scoring (1–5) used in trade-off-analysis.

Score every capability at both As-Is and To-Be using this 5-level scale. The gap = levels to climb. This replaces vague H/M/L baseline/target descriptions.

LevelNameWhat it means
0Not DefinedNo awareness; not in any roadmap; capability does not exist
1InitialExists but inconsistent; ad-hoc; manual; no repeatable process
2DefinedDocumented; repeatable; team follows a standard process
3ManagedMonitored; metrics in place; automated where appropriate; SLAs defined
4OptimisedContinuously improved; cost-tracked; feedback loops closing automatically

Gap Types

Tag every gap with one of three types — this determines the closure approach and risk profile.

TypeDescriptionTypical closure approach
NewCapability does not exist at all (As-Is = 0)Greenfield build or product acquisition
TransformCapability exists but must fundamentally change (change in approach, not just improvement)Replatform, rearchitect, or migrate
UpliftCapability exists and must mature (As-Is ≥ 1, incremental improvement)Process improvement, automation, tooling addition
EliminateCapability or component must be decommissionedSunset plan, migration off, decommission

Dependency Types

Tag inter-gap dependencies precisely — this is what converts a gap list into a sequenced roadmap.

TypeMeaning
FSFinish-to-Start: Gap A must complete before Gap B can begin
SSStart-to-Start: Gap A and Gap B can begin in parallel, but A must start first
FFFinish-to-Finish: Gap A and Gap B can run in parallel, but both must finish before a milestone

Artifact Selection Guide

Generate the artifacts appropriate to the scope and decision type. Include only what adds analytical value — do not generate artifacts for completeness theatre.

Diagrams (Mermaid)

SituationArtifactWhy
Multiple capability domains with maturity scoresAs-Is heat map (quadrant table in Mermaid or markdown table with RAG colour annotation)Shows maturity distribution at a glance; C-level readable
Target maturity per domain differs significantly from As-IsTo-Be heat map alongside As-IsMakes the ambition visible as a delta, not prose
Gaps have interdependencies forming chainsDependency DAG (Mermaid flowchart, left-to-right)Shows which gaps unlock which milestones; identifies the critical path spine
Gaps sequence into delivery phasesSwimlane convergence diagram (Mermaid flowchart with subgraphs per phase)Shows which gaps close per phase; maps work to delivery waves
Gap affects architecture components or system boundariesAs-Is / To-Be C4 Context or Component diagramShows what changes structurally — before and after
Gap affects a process or data flowAs-Is / To-Be flowchart (two side-by-side or sequential Mermaid blocks)Shows the process change explicitly

Mermaid rules:

  • Use <br> for line breaks inside node labels — never \n
  • Label every edge with dependency type (FS / SS / FF) where relevant
  • Colour-annotate maturity levels in heat maps using markdown table cell notes (RAG: 🔴 0–1 / 🟡 2 / 🟢 3–4) — Mermaid does not support cell colours natively
  • Keep diagrams scoped to the gaps being analysed — never show the full system

Tables

TableWhen to includePurpose
As-Is / To-Be maturity heat mapAlways when ≥ 3 domainsProvides C-level summary of the gap landscape
Full gap table (all fields)AlwaysThe primary analytical artefact
Dependency precedence tableWhen ≥ 3 gaps have inter-dependenciesDocuments blocks/unblocks explicitly
Impact × Effort 2×2When prioritisation needs justification for a steercoShows quick wins vs strategic investments vs low-value gaps
Quick wins tableAlwaysH1 items with no blockers and visible business value
Risk if deferred tableWhen ≥ 2 gaps have significant deferral riskQuantifies cost of inaction

Callouts (Obsidian-style)

CalloutWhen to use
> [!important]One-way door gaps — gaps whose closure method is irreversible
> [!warning]Gaps with high deferral risk or regulatory deadline
> [!tip]Quick win or implementation shortcut identified
> [!info]Dependency chain note or cross-reference to related ADR
> [!abstract]Executive summary of the gap landscape for non-technical readers

[!tip] Worked example: see references/examples/51.01-gap-analysis.md for a fully instantiated Phase E gap analysis — 7 domains, 15 gaps with maturity scoring, dependency DAG, TOGAF Gap Analysis Matrix, swimlane convergence diagram, and critical path, anchored to the ACME Corp onboarding engagement.

Analysis Process

  1. Identify domains — infer from context or ask. Common domains: Application, Data, Integration, Platform/Infrastructure, Security, Governance, Organisation/People, Process.
  2. Score As-Is maturity per domain using the 0–4 scale. One-line rationale per score.
  3. Define To-Be maturity target per domain. Name the horizon for each target (H1/H2/H3).
  4. Build the As-Is / To-Be heat map — the visual summary before the detailed table.
  5. Enumerate gaps — for each domain, one row per distinct gap. A domain with maturity 1 → 3 may have two separate gaps (1→2 and 2→3) if they require different closure approaches or owners.
  6. Tag each gap with type (New / Transform / Uplift / Eliminate), maturity delta (As-Is level → To-Be level), priority (P1 blocking / P2 important / P3 nice-to-have), effort (H/M/L), phase (H1/H2/H3), and verification criterion.
  7. Map dependencies — for each gap, name upstream blockers and downstream unlockers. Tag dependency type (FS/SS/FF). Flag circular dependencies immediately.
  8. Build the dependency DAG and swimlane convergence diagram.
  9. Score Impact × Effort per gap and place in the 2×2. Flag quick wins (high impact, low effort) and strategic investments (high impact, high effort).
  10. Sequence into roadmap using dependency order + priority + impact. H1 must deliver visible business value, not just technical foundations.
  11. Identify the critical path — the longest chain of FS dependencies. This determines the minimum overall closure duration.
  12. Flag the top 3 deferral risks — what breaks if each high-priority gap remains open past its planned phase.
  13. Apply commoditisation check to any gap being closed by custom-build.
  14. State the primary sequencing assumption and its failure scenario.
  15. Surface the disruptive alternative to the target state.
  16. Name the second-order effect of closing the highest-priority gap.

Output Format

## Executive Summary

> [!abstract]
> [3–5 sentences: overall gap severity, number of domains affected, critical path length, the single most important gap to close first, and the business consequence of the widest gap remaining open. Written for a non-technical steerco member.]

---

## As-Is / To-Be Maturity Heat Map

| Domain | As-Is (0–4) | To-Be target | Delta | Phase | RAG |
|--------|------------|-------------|-------|-------|-----|
| [domain] | [level — level name] | [level — level name] | +[N] levels | H1/H2/H3 | 🔴 / 🟡 / 🟢 |

**RAG key:** 🔴 As-Is = 0–1 · 🟡 As-Is = 2 · 🟢 As-Is = 3–4

[Mermaid diagram — As-Is architecture: C4 context, component, or flowchart showing current state, scoped to the domains in scope. Only if structural change is involved.]

```mermaid
[As-Is diagram — label it "As-Is: [scope]"]

[Mermaid diagram — To-Be architecture showing target state. Only if structural change is involved.]

[To-Be diagram — label it "To-Be: [scope]"]

Gap Table

IDDomainGapTypeAs-IsTo-BePriorityEffortPhaseReversibilityVerification criterionConfidenceOwner (role)Review trigger
GAP-001[domain][what must change]New / Transform / Uplift / Eliminate[0–4][0–4]P1 / P2 / P3H/M/LH1/H2/H3one-way / two-way[testable outcome proving closure]proven / informed estimate / working hypothesis[role][evidence threshold or event]

[!important] One-way door gaps [List any GAP-IDs with Reversibility = one-way door and why they are irreversible.]

[!warning] Regulatory / deadline-driven gaps [List any gaps with a hard external deadline — GDPR, AI Act, contract, audit.]


Dependency Map

Precedence table:

GapUpstream blockers (must finish first)Downstream unlockers (this enables)Dependency type
GAP-001noneGAP-003, GAP-005— / FS / SS
GAP-003GAP-001GAP-007FS

Dependency DAG:

flowchart LR
    GAP001["GAP-001<br>[name]"] -->|FS| GAP003["GAP-003<br>[name]"]
    GAP003 -->|FS| GAP007["GAP-007<br>[name]"]
    GAP001 -->|SS| GAP005["GAP-005<br>[name]"]

Critical path: GAP-001 → GAP-003 → GAP-007 → … → [final gap]. Estimated duration: [N months]. What must not slip: [the gap ID that, if delayed, delays everything downstream].


Swimlane Convergence Diagram

flowchart TD
    subgraph H1["H1 — now → 12 months"]
        direction LR
        g1["GAP-001<br>[name]"] --> g2["GAP-002<br>[name]"]
        g3["GAP-003<br>[name]"]
    end
    subgraph H2["H2 — 12–24 months"]
        direction LR
        g4["GAP-004<br>[name]"]
    end
    subgraph H3["H3 — 24+ months"]
        direction LR
        g5["GAP-005<br>[name]"]
    end
    H1 --> H2 --> H3

Impact × Effort Prioritisation

QuadrantGapsAction
Quick wins — High impact, Low effort[GAP-IDs]Do first — ship in H1 Q1 to build momentum
Strategic investments — High impact, High effort[GAP-IDs]Plan early — sequence into H1/H2 with sponsor commitment
Fill-ins — Low impact, Low effort[GAP-IDs]Do when capacity allows
Deprioritise — Low impact, High effort[GAP-IDs]Challenge the scope — is this gap really necessary?

Sequenced Roadmap

H1 (now → 12 months) — Foundation & Quick Wins

Sponsor (executive role): [role committing budget and air cover]

[Gaps in dependency order. For each: gap ID, name, key deliverable, owner role.]

H2 (12–24 months) — Core Capability Build

Sponsor (executive role): [role] H2 unlock trigger: [what must be true at end of H1 for H2 to begin on schedule]

[Gaps, with H1 dependencies named explicitly.]

H3 (24+ months) — Strategic Capabilities

Sponsor (executive role): [role] H3 unlock trigger: [event or evidence threshold]

[Gaps, with H2 dependencies named.]


Quick Wins

GapWhy it qualifiesOwner (role)ReversibilityTargetConfidence
[GAP-ID: name][high impact + low effort + no blockers][role]one-way / two-way[Q1 / 90 days]proven / informed estimate / working hypothesis

[!tip] [Any implementation shortcut or sequencing insight that accelerates a quick win.]


Risk if Deferred

GapRisk if not closed by planned phaseBusiness consequenceMitigation if deferred
[GAP-ID][what breaks][impact on business outcome][stopgap or workaround]

Sequencing Assumptions

#AssumptionTypeFailure scenario if wrong
1[explicit statement]testable / organisational[what breaks and how badly]
2.........
3.........

Commoditisation Flags

[Any gap being closed by custom-build where a product or managed service exists. One line per flag: gap ID, what is being built, commodity alternative, cost delta estimate.]


Disruptive Alternative

[One option that challenges whether the target state is ambitious enough, or whether an emerging approach makes the planned target obsolete before it is reached. Working backwards from the business outcome.]


TOGAF Gap Analysis Matrix (TOGAF mode only)

Standard TOGAF format: Baseline Architecture Building Blocks (ABBs) on the vertical axis, Target ABBs on the horizontal axis. Intersections classified as Included (in both), Eliminated (in baseline, not in target — last column), or New (in target, not in baseline — last row).

Baseline ABB ↓ / Target ABB →[Target ABB 1][Target ABB 2][Target ABB n]Eliminated
[Baseline ABB 1]Included——
[Baseline ABB 2]—Included—Eliminated
[Baseline ABB n]——Included
NewNewNew
  • Included — building block exists in both baseline and target; may require enhancement
  • New — capability required in target not present in baseline; must be built or procured
  • Eliminated — capability present in baseline not required in target; either correctly removed (state reason) or accidentally omitted (flag for reinstatement)

Any item under "Eliminated" or "New" is a gap requiring a resolution decision.


TOGAF Building Block Mapping (TOGAF mode only)

GapADM PhaseBuilding block typeArchitecture contract status
[GAP-ID]B / C / D[type]required / in place / dispensation

Second-Order Effect

[One non-obvious downstream consequence of closing the highest-priority gap — affecting a component or team outside the immediate scope.]


Broad Responsibility

[One line: societal, environmental, regulatory, or customers-of-customers implication of the gap closure plan — e.g., GDPR/AI Act remediation deadline, sustainability impact of the migration, downstream client experience during transition. N/A — [reason] if none applies.]


Standards Bar

Does this meet the bar for a client deliverable? [Yes / No — reason]


## Next Step

After completing a gap analysis:

- **Forward — Phase E/F**: invoke `migration-plan` to sequence the gaps into a phased implementation roadmap with Transition Architectures.
- **Forward — Phase B/C/D design**: if gaps reveal missing architecture content, invoke the relevant phase skill (`capability-assessment`, `data-architecture`, `integration-architecture`, `technology-architecture`) to fill the design gaps.
- **Validate — Principles alignment**: invoke `principles-check` to verify that the proposed Target Architecture (To-Be) is consistent with the Architecture Principles.
- **Document decisions**: invoke `adr-generator` to capture significant gap remediation decisions (e.g., build vs buy, platform replacement, domain decomposition) that are one-way doors.
- **Manage new requirements**: invoke `requirements-management` if the gap analysis surfaced new architecture requirements not previously documented.
- **Communicate**: invoke `executive-summary` or `stakeholder-communication` to brief the Architecture Sponsor on gap priorities before Phase E/F planning begins.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.