doc-maintenance
Skill0 starsChanged 2 months agoMITView on GitHub
Maintain this repository's design, decision, experiment, post-mortem, bilingual, TODO, and operating documentation. Use whenever a change adds or revises behavior, architecture, process, evaluation evidence, public instructions, an escaped failure and its guardrails, or when documentation is reorganized, translated, archived, deduplicated, or audited.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- matt-bat/got-skillstheir own version, first seen Jun 22, 2026
- microsoft/amplifier-app-papercliptheir own version, first seen Jun 5, 2026
- ancilis/bedlamtheir own version, first seen Apr 18, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- ancilis/bedlam★ 15same name
- matt-bat/got-skills★ 4same name
- microsoft/amplifier-app-paperclip★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- complexity-reductionSkill
- nmg-memorySkill
- repo-developmentSkill
- script-reuseSkill
- verification-traceabilitySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 15 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
15
Distinctive
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
- Distinctive: line 8
Keep NMG documentation useful as an interface between users, Agents, design, and implementation.
- Distinctive: line 15
Keep the root bootstrap limited to the discovery protocol and stable shared-work principles.
- Distinctive: line 25
If the necessary section is too large, narrow the action or read it in bounded parts.
- Distinctive: line 27
Keep one authoritative text.
- Distinctive: line 31
After a change, check affected incoming links and applicable workflow triggers.
- Distinctive: line 50
Prefer a gate to a reminder: When a rule must be followed in many places or protected against drift, turn it into one mechanical check at …
- Distinctive: line 53
Keep a new rule reversible and grounded: Prefer a documented convention over entrenched machinery.
- Distinctive: line 106
Find the existing owner: Search titles and relevant terms.
- Very specific: line 145
Put a compact Implementation lineage section in the owning topic document.
- Distinctive: line 151
Leave formatting, generated artifacts, dependency refreshes, ordinary tests, merges, and easy-to-rediscover implementation details in Git.
- Distinctive: line 153
Use the curated lineage index to find owners.
- Distinctive: line 158
Do not copy project facts into this Skill.
- Very specific: line 159
Do not use temporary-todo.md as a changelog or completed-work archive.
- Distinctive: line 160
Do not make every ordinary code change a decision record.
- Distinctive: line 162
Do not make every fixed bug a post-mortem.
- Distinctive: line 165
Do not block a useful change solely because a non-public translation is late.
- Distinctive: line 166
Do not rewrite unrelated experiment reports while reorganizing documentation.
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
Documentation maintenance
Keep NMG documentation useful as an interface between users, Agents, design, and implementation. Use the documentation index to resolve ownership when it is unclear; read its CI contract when changing checks and its bilingual policy when changing paired content.
Content that can be read locally
- Keep the root bootstrap limited to the discovery protocol and stable shared-work principles. Put changing commands and setup at their operational owner.
- A document explains its own subject; describe direct children only by purpose and link to their owners for detail. Do not mirror a directory or symbol inventory already recoverable from source. Add local orientation only where names and structure leave a concrete ambiguity.
- Give sections searchable subject names. Keep a rule's scope, necessary definitions, conditions, and exceptions in the same readable section, or link explicitly to the required definition. Label conditional procedures by their trigger and background links by their purpose; do not imply every link is required. If the necessary section is too large, narrow the action or read it in bounded parts; do not drop a condition or exception to meet a reading budget.
- Keep one authoritative text. Indexes and generated summaries are disposable navigation aids with source references, not new specifications. Link current knowledge by repository-relative path and section; bind historical evidence to a shared revision. Do not make local memory IDs or a prior session necessary.
- After a change, check affected incoming links and applicable workflow triggers. Existing link checks catch broken targets; review must still check meaning and whether the selected section contains the constraints needed to act.
Meta-rule: NMG's own rules are governed
Rules and decisions about NMG are themselves NMG artifacts and follow the same discipline as the code they govern. This is the rule that makes every other rule change deliberate rather than silent.
- A rule change is a non-trivial change. Adding, weakening, or moving a standing rule, Skill convention, or decision convention is itself a decision: state what changed, what it replaces or beats (alternatives), and why, in the owning record, in the same change. Never change a rule silently inside a code edit, a commit body, or a prose aside.
- One home per rule. State each rule once at its owner — an
AGENTS.mdstanding order, the owning Skill, or a decision record — and link elsewhere by relative Markdown path. If the same rule appears twice, delete the copy and link the owner. - Prefer a gate to a reminder. When a rule must be followed in many places or protected against drift, turn it into one mechanical check at its owner rather than restating it. A rule restated everywhere is a rule enforced nowhere.
- Keep a new rule reversible and grounded. Prefer a documented convention over entrenched machinery. A rule that needs new space, or replaces an existing rule, records what it costs and what it beat.
- Most docs need no approval. Approval attaches to normative content that no
check can decide, not to the
docs/**prefix. The test is if this file were wrong, what would fail? — a check means the check approves, nothing means the edit is free. Where a doc has a checkable property and no check yet, write the check instead of asking. See the approval tiers; a record whose substance the user already agreed goes straight intoimplemented/with**Approved:** explicit, and is never parked inproposed/.
One home per fact and the slop checklist
Durable prose follows one home per fact: state each fact once in the surface that owns it (Workflow step 3 lists them) and link elsewhere; if a fact appears twice, delete the copy and link the owner. Keep docs and rules lean because generative Agents read them every session.
Hunt these in any doc you write or touch; a rule restated in two homes, or a fact narrated as history, is drift waiting to happen:
- The same rule or fact in more than one home. Keep one; link the rest.
- Change-history narration in durable prose: "previously / now / no longer / renamed / was moved", or PR/commit positions. State the current fact; put the change story in the commit, decision, or experiment, not in design prose.
- Implementation-status annotations ("implemented! / future: …"). The code and package manifests carry status; it rots in prose.
- Hand-restated catalogs, JSDoc, or inventories of tests/packages when source or a generator is authoritative.
- Reasoning transcripts: step-by-step implementation narration, proof of obvious branches, or rejected local alternatives restated as prose. Keep the resulting contract or rationale; drop the path used to derive it.
- Spec-speak in an implemented decision or note: "should / Proposal / Plan / Acceptance criteria". An implemented record states what is, in the present tense.
- Emphasis inflation: bold, CAPS, or "critically" everywhere means nothing stands out. Reserve it for the clause that changes behavior.
Headers are a closed vocabulary. A record's header block — the lines before
its first ## — carries only the fields its surface documents, and docs:check
rejects anything else. A decision's set is in
decisions/README.md. A design carries
**Status:** draft | current | superseded (absent means current) plus at most
Created, Updated, Authority, Related, Supersedes, Superseded by; a
superseded design lives in docs/design/archived/ and names its successor.
Free-form status sentences are what this replaced.
Workflow
- Classify the change before writing. Decide whether it changes normative behavior, records rationale, reports evidence, changes completion status, adds unresolved work, or changes user instructions.
- Find the existing owner. Search titles and relevant terms. Update the owning document instead of creating another summary. Git preserves editing history. If a detail remains only in Git and would be expensive to rediscover, leave a commit or decision link in the relevant audit or decision document.
- Update the right surface.
- Behavior and architecture:
docs/design/design.mdand, when useful, one owning topic design. - Rationale and alternatives: a record under
docs/decisions/. - Measured results:
docs/experiments/; never promote a result into a design claim without an explicit decision. - Failure narrative: a numbered record under
docs/postmortem/when its triage rule fires, with its index row; when a class is promotable, its consumption rules decide which owner the rule lands in. - Current implementation evidence:
docs/design/completion-audit.md. - Unresolved action only:
docs/design/temporary-todo.md; remove it when done. - User or Agent operation: README, Skill, or operating guide that owns it.
- Behavior and architecture:
- Handle supersession explicitly. Refine an existing owner when possible. Cross-link old and new decisions; archive a fully superseded decision, or state the remaining scope when supersession is partial.
- Maintain useful bilingual coverage. Root and docs indexes stay paired. New or materially changed decisions should normally be paired. Preserve the same decision, warnings, and commands, but do not force paragraph-for-paragraph equivalence. Experiments and internal notes may remain single-language.
- Keep status honest. Separate implemented, validated, enabled, default, deferred, and out-of-scope states. A passing controlled test is not natural product evidence; an experiment result is not a default-policy decision.
- Verify. Apply the CI contract, then run
npm run docs:checkand the code or evaluation checks needed by the underlying change. Review warnings rather than hiding them. If automation policy must change, update the contract first and the verifier second.
Commit lineage
Git remains the exhaustive changelog. Add commit information to an existing owner only when it helps a later Agent rediscover an architectural origin, understand a hardening fix, locate validation evidence, or avoid retrying a superseded design.
- Put a compact
Implementation lineagesection in the owning topic document. - Group related commits; do not narrate every intermediate patch.
- Mark entries as Introduced, Hardened, Validated, or Superseded.
- A validation commit proves only what its evidence measured; it does not imply default activation.
- For supersession, name both the old and replacement commit or decision.
- Leave formatting, generated artifacts, dependency refreshes, ordinary tests, merges, and easy-to-rediscover implementation details in Git.
- Use the curated lineage index to find owners; do not turn it into a duplicate commit database.
Boundaries
- Do not copy project facts into this Skill. Link their canonical owner.
- Do not use
temporary-todo.mdas a changelog or completed-work archive. - Do not make every ordinary code change a decision record. Create one when the rationale, alternatives, compatibility, or consequences will matter later.
- Do not make every fixed bug a post-mortem. The tier's triage rule decides which failures earn a record.
- Do not block a useful change solely because a non-public translation is late.
- Do not rewrite unrelated experiment reports while reorganizing documentation.
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.

