Skip to content

rhaist/marq / skills/grc/gap-analysis

gap-analysis

Verified

Guides comparing current state against a target framework (ISO 27001, NIST CSF, SOC 2, etc.), scoring control maturity, and producing a prioritized gap list. Use when the user asks for a gap analysis, readiness assessment or maturity assessment, or wants to know how far they are from compliance with a standard.

Gap analysis workflow

Measure "where we are" vs "what requires", output a ranked remediation list. Don't lecture on the framework; fetch its current control text and score against it.

1. Fix the target

  • Confirm framework + version: ISO 27001:2022 Annex A, NIST CSF 2.0, SOC 2 TSC, CIS Controls v8.1, PCI DSS v4.0.1 (its future-dated requirements are mandatory since 31 Mar 2025: score against those, not v3.2.1), etc. Versions move: load_skill control-frameworks and web-fetch the live control list; never score against memory.
  • Confirm scope boundary (which systems/org units) before scoring, or gaps are noise.

2. Score each control's maturity

Per control, rate current state on a 0-5 implementation scale:

ScoreState
0Nonexistent: not done, nobody owns it.
1Initial: ad hoc, undocumented, person-dependent.
2Repeatable: done consistently but no written process.
3Defined: documented, communicated, followed.
4Managed: measured, metrics/KPIs, evidence retained.
5Optimised: reviewed and continuously improved.
  • Target maturity is usually 3 (certification floor) unless the org sets higher.
  • Gap = target - current. Only scores below target are gaps.
  • Evidence-back every score: policy doc, config, ticket, findings.md entry. A proven pentest finding caps the related control's score (you can't claim "Managed" access control while an IDOR is open).

3. Prioritise

Rank gaps by: gap size x risk x (low) effort. Quick decision rule:

Gap sizeLinked riskEffortPriority
>=2High/CriticalAnyP1: now
anyHigh/CriticalLowP1: now
>=2MediumLow/MedP2: quarter
1anyanyP3: backlog
  • Cluster gaps that share one fix (one IAM project may close 6 access controls); surface the shared root cause, not 6 line items.

4. Emit the gap list

write_file /work/gap-analysis.md:

Control IDRequirement (short)CurrentTargetGapEvidence/finding refRemediationOwnerPriority
  • Include a one-line coverage summary: X of Y controls at/above target (% compliant).
  • Note explicitly-out-of-scope or not-applicable controls with a reason; silence reads as a miss.
  • For the "Evidence/finding ref" column, map each finding to IEC 62443 / CRA / NIS2 obligations with load_skill finding-control-crosswalk.

Anti-patterns

  • Don't score "compliant/non-compliant" binary; maturity shows trajectory and effort.
  • Don't accept a self-reported score with no artifact; mark it "unverified", treat as <=1.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall