check-documentation-gaps
Skill0 starsChanged 3 months agoMITView on GitHub
Compare repository documentation with the current implementation and identify stale, missing, contradictory, or untraceable documentation. Use for documentation audits; an explicit `fix` argument authorizes updating documentation to close confirmed gaps.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend-doc-syncSkill
- check-test-gapsSkill
- commiterSkill
- docs-guardianSkill
- monthly-doc-actualizerSkill
- release-note-writerSkill
- story-checkSkill
- story-guardianSkill
- story-updateSkill
- tech-debtSkill
- test-scenario-guardianSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Read repository documentation rules, templates, and standards before judging format or required sections.
- Distinctive: line 22
If a story is supplied, distinguish acceptance criteria from suggested tests and narrative context.
- Distinctive: line 26
Check command-line behavior, MCP tools, configuration, authentication, crawling, indexing, storage, external services, retries, cleanup, …
- Distinctive: line 38
Use targeted tests, static searches, packaging checks, and runtime inspection as appropriate.
- Distinctive: line 39
Treat tests as evidence of behavior, not automatically as documentation requirements.
- Distinctive: line 41
Do not report style preferences as gaps unless repository standards require them.
- Distinctive: line 45
Prefer the canonical document and avoid duplicating a contract in several places.
- Distinctive: line 47
If implementation and documentation disagree, report the conflict and fix documentation only when current implementation is clearly …
- Distinctive: line 48
Update scenario mappings and changelogs only when required by repository standards.
- Distinctive: line 51
Run repository documentation validators, link checks, scenario traceability checks, and relevant tests when available.
- Distinctive: line 83
If no gaps are found, state the inspected scope and residual uncertainty.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Check Documentation Gaps
Review documentation from the implementation outward. Default mode is audit-only. Only modify documentation when the user explicitly invokes the skill with fix, for example $check-documentation-gaps fix.
Inputs and modes
- Scope may be a feature, module, story, recent change, or the whole repository.
audit(default): report gaps and recommendations; make no writes.fix: update documentation for confirmed gaps, then validate the result. Do not change production code or tests unless separately requested.
Workflow
- Establish the documentation scope.
- Inspect the working tree and recent relevant diffs without reverting user changes.
- Locate canonical product, configuration, operations, architecture, story, and test-scenario documents.
- Read repository documentation rules, templates, and standards before judging format or required sections.
- If a story is supplied, distinguish acceptance criteria from suggested tests and narrative context.
- Derive the source of truth from implementation.
- Inspect relevant
src/, configuration, scripts, packaging files, andtests/. - Check command-line behavior, MCP tools, configuration, authentication, crawling, indexing, storage, external services, retries, cleanup, and operational prerequisites as applicable.
- Inspect relevant
- Compare documentation to behavior.
Look for:
- missing capabilities or contracts;
- stale names, paths, parameters, examples, defaults, or configuration;
- contradictions between canonical documents;
- undocumented security, failure, empty-state, or compatibility behavior;
- documentation that describes intended behavior but is not implemented;
- broken links, wrong file references, missing required template sections, and untraceable scenarios.
- Validate claims.
- Use targeted tests, static searches, packaging checks, and runtime inspection as appropriate.
- Treat tests as evidence of behavior, not automatically as documentation requirements.
- Clearly label claims that are inferred rather than directly verified.
- Do not report style preferences as gaps unless repository standards require them.
- In
fixmode only, close confirmed gaps.- Make the smallest documentation-only edits that accurately describe current behavior.
- Prefer the canonical document and avoid duplicating a contract in several places.
- Preserve user changes and avoid broad rewrites or speculative requirements.
- If implementation and documentation disagree, report the conflict and fix documentation only when current implementation is clearly authoritative.
- Update scenario mappings and changelogs only when required by repository standards; do not fabricate dates, versions, or completed validation.
- Re-check after edits.
- Run repository documentation validators, link checks, scenario traceability checks, and relevant tests when available.
- Inspect the final diff for accidental code/test changes, formatting errors, stale references, and contradictory duplicate contracts.
Gap classification
Rank confirmed gaps:
P0: documented behavior could cause unsafe operation, security misunderstanding, data loss, or a broken release procedure;P1: core user-facing, configuration, authentication, or operational contract is missing or materially wrong;P2: important edge case, error behavior, compatibility detail, or traceability is stale or absent;P3: minor example, wording, link, or maintainability issue.
Each finding must include:
- the inaccurate or missing claim;
- implementation evidence with an absolute file path and line when practical;
- affected documentation file(s);
- whether it is story-required, implementation-inferred, or optional hardening;
- the smallest correction, and whether it was applied (
fixmode) or only recommended (auditmode).
Output
Lead with documentation aligned, partially aligned, or documentation gaps found.
Then provide:
- Findings ordered by priority with file evidence.
- A compact coverage map: implementation area → canonical documentation → status.
- Validation performed and exact results.
- For
fix, a concise list of changed files and any unresolved conflicts. - Recommended follow-up, separating required corrections from optional hardening.
If no gaps are found, state the inspected scope and residual uncertainty. Never claim documentation is current based solely on a story checklist.
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.

