Ce standards gap analyzer

From Moffran/calibrated_explanations · View interactive version

Ce standards gap analyzer is an AI agent skill from the GitHub repository Moffran/calibrated_explanations. Analyze standards compliance by interpreting the standards's intent, verifying that implementation and RTD satisfy every decision, and producing a dated gap report with only unresolved items.

How to use this skill

Skill file

CE Standards Gap Analyzer

You are verifying that the intent and decisions of a given STD are fully

realized in code and documentation. Your job is not keyword grepping — it is

substantive compliance analysis.


Inputs


Phase 1 — Understand the STD intent

  1. Read the full STD text (development/standards/STD-XXX-*.md). Extract:

enforcement mechanisms, documentation, tests).

whether an implementation satisfies the spirit, not just the letter.

  1. Build a checklist of required outcomes from the decisions. Each outcome

is a testable statement, e.g.:

Phase 2 — Verify implementation against intent

  1. For each required outcome, search and read the codebase (src/,

tests/, configuration files):

and whether it satisfies the STD requirement.

the STD requires them.

specifies them.

  1. For each required outcome, check RTD and documentation (docs/) when

the STD has documentation requirements:

the implementation.

Phase 3 — Classify and score gaps

  1. For each required outcome that is not fully satisfied, record a gap:

(or expected but missing).

  1. Mark outcomes that are fully satisfied as completed — these will be

purged from the output (see Phase 4).

Phase 4 — Record the gap report in the STD itself

There is no shared, continuously-updated Standards status appendix in

development/current-work/ (the pre-v1.0.0 build-out appendix is archived at

development/finished-work/RELEASE_PLAN_status_appendix.md as a historical

record and is not updated further). Record gap results as a dated report

directly in the target Standard's own status note, following the pattern

already used by individual Standards (see the > **Status note (YYYY-MM-DD):**

line near the top of most STD files, e.g. STD-004).

Rules:

  1. Purge completed gaps. When updating a Standard's own gap material:

with zeroed-out scores — delete them entirely.

remaining open rows**, ranks renumbered from 1.

separator, data rows) with a single compliance verification line.

  1. Only unresolved gaps appear. Never list completed, resolved, or

zeroed-out rows in the table.

  1. Date stamp — mandatory on every update. Every time gap status is

updated (single STD or full sweep), stamp today's date:

**Compliance verification (YYYY-MM-DD):** Reviewed code and RTD — no STD-XXX gaps found; STD-XXX is fully compliant. No further action required.

the table.

  1. If NO gaps remain the compliance verification line must be

unambiguous — it replaces the entire table and makes clear that no

further action is required.

  1. If the gap changes what is committed for the release currently being

coordinated, propose a row update in the active

development/current-work/vX.Y.Z_plan.md, or file/link a GitHub issue

when no release is currently scoping this work.


Key principles

Read the STD decisions, understand what they require, and verify that code

and docs deliver. A missing TODO does not mean compliance; present code

does not mean the STD intent is satisfied.

what the STD decided — not when a keyword is absent. A gap is closed when

code and docs genuinely satisfy the requirement — not when someone wrote

COMPLETED next to it.

ambiguous.

their absence). Every compliance claim must cite the evidence that satisfies

the STD requirement.


Files to read

development/standards/STD-XXX-*.md          ← the STD itself (primary source of intent and gap-report target)
development/current-work/vX.Y.Z_plan.md     ← update a row if the gap changes the active release's scope
src/                                         ← implementation evidence
tests/                                       ← test coverage of STD requirements
docs/                                        ← RTD evidence (when STD has doc requirements)

Notes and constraints

Impact/scope ratings are suggestions for STD owner review.

same four phases to every one.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.