speckit-companion-living-coverage
Skill0 starsChanged 50 days agoMITView on GitHub
Report living-spec requirement→test coverage — per requirement, whether its coverage tier maps a test (opt-in, read-only, never halts)
In this repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- speckit-analyzeSkill
- speckit-assess-decideSkill
- speckit-assess-defineSkill
- speckit-assess-intakeSkill
- speckit-assess-researchSkill
- speckit-assess-shapeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-companion-after-convergeSkill
- speckit-companion-after-implementSkill
- speckit-companion-after-planSkill
- speckit-companion-after-specifySkill
- speckit-companion-after-tasksSkill
- speckit-companion-autoSkill
- speckit-companion-before-convergeSkill
- speckit-companion-before-stepSkill
- speckit-companion-classifySkill
- speckit-companion-doctorSkill
- speckit-companion-implementSkill
- speckit-companion-living-adoptSkill
- speckit-companion-living-driftSkill
- speckit-companion-living-moveSkill
- speckit-companion-living-showSkill
- speckit-companion-living-syncSkill
- speckit-companion-living-validateSkill
- speckit-companion-mark-completeSkill
- speckit-companion-planSkill
- speckit-companion-resumeSkill
- speckit-companion-specifySkill
- speckit-companion-statusSkill
- speckit-companion-tasksSkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Verify Python is available by running python3 --version.
- Very specific: line 19
If python3 is not available, warn the user and skip: [companion] Warning: python3 not detected.
- Distinctive: line 21
Do not fail the host command.
- Distinctive: line 25
Run the coverage checker from the repository root:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spec Coverage
Show, for each living-spec capability, which of its requirements have a test mapped in the capability's coverage-tier sibling (the *.coverage.md next to its spec — spec.coverage.md for a centralized capabilities/<name>/<name>.spec.md, or <base>.coverage.md for a colocated spec) and which are still uncovered. A living spec's requirements file says what the area must do; its coverage tier says which test proves each one. This command reads both and reports the gap. Read-only — it never edits anything — and it never fails (always exits success). It's the conformance on-ramp, a signal you act on, not a gate that blocks you (the same contract as speckit.companion.living-drift).
This is opt-in. With living specs disabled (or no config), it reports nothing and exits clean. A capability that ships only a .spec.md with no .coverage.md sibling reports every requirement uncovered — never an error.
Prerequisites
- Verify Python is available by running
python3 --version. - If
python3is not available, warn the user and skip:[companion] Warning: python3 not detected; skipped coverage. Do not fail the host command.
Execution
Run the coverage checker from the repository root:
python3 .specify/extensions/companion/scripts/check-coverage.pyThe script reads the capability registry (living-specs.yml), reuses the
resolver for the capability and tier paths, extracts each requirement id
(FR-NNN / NFR-NNN) from the capability's .spec.md, and looks each id up in
its .coverage.md map. A requirement is covered when its id appears in the
coverage file on a line that also names at least one test (a .test. / .spec.
path, a tests/... reference, or a file::TestCase nodeid); otherwise it's
uncovered.
Restrict to one capability by name, or get a machine-readable object:
python3 .specify/extensions/companion/scripts/check-coverage.py --capability billing
python3 .specify/extensions/companion/scripts/check-coverage.py --jsonWhat to do with the report
Coverage is a signal, not an error. For each uncovered requirement, either add a
test and map it in the capability's .coverage.md, or accept the gap for now. The
command never blocks the pipeline on its own.
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
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.

