docs-and-adr
Skill1 starsChanged 46 days agoMITView on GitHub
Language-agnostic framework for writing, structuring, and maintaining technical project documentation, user-facing READMEs, Keep a Changelog updates, and Architecture Decision Records (ADRs). Triggers whenever an agent is asked to "write a README", "document this decision", "add a changelog entry", "write an ADR", "why did we choose this approach?", or "update CHANGELOG.md". Enforces the 30-second README rule, reproducible setup commands, SemVer-aligned changelogs, immutable superseded ADRs, and documentation freshness gates.
In this repository15 other files it gives its agents.
- accessibility-auditSkill
- agent-skills-authoringSkill
- api-designSkill
- ci-cd-pipelineSkill
- code-reviewSkill
- design-system-adapterSkill
- docker-and-containersSkill
- git-commit-workflowSkill
- package-security-vettingSkill
- replicate-apiSkill
- secrets-and-config-managementSkill
- testing-strategySkill
- ui-cloneSkill
- ui-slop-remediationSkill
- universal-coding-standardsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 40
Ensure all installation, Docker, and start commands run without undocumented implicit dependencies.
- Distinctive: line 55
Write for human consumers.
- Distinctive: line 64
When a decision is significant, difficult to reverse, or impacts team-wide architecture:
- Distinctive: line 72
When an architecture evolves or changes direction, never edit or delete the old ADR.
- Distinctive: line 79
Avoid conflating different layers of documentation:
- Distinctive: line 94
If a code change alters environment variables, installation steps, or API contracts, the documentation updates must land in the same pull …
≈ “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
Documentation & Architecture Decision Records (ADRs)
A language-agnostic operational standard for writing project READMEs, user-facing changelogs, and Architecture Decision Records (ADRs).
Sibling Standards:
- For line-level code comments and docstrings, see
universal-coding-standards.- For commit message semantics vs changelog entries, see
git-commit-workflow.- For OpenAPI and contract documentation, see
api-design.
1. README Structure & The 30-Second Rule
Assume the reader gives your repository 30 seconds before deciding whether it solves their problem.
1.1 Essential Sections (In Order):
- Title & Single-Paragraph Pitch: What problem does this project solve, and for whom?
- Key Capabilities: 3–5 bullet points highlighting standout features.
- Prerequisites & Quickstart: Copy-pasteable setup and run commands.
- Testing Instructions: How to execute unit/integration test suites.
- Contributing & License: Pointer to
CONTRIBUTING.mdand the project license.
1.2 Verification Rule:
- 🚫 Never document a command you haven't verified!
- Ensure all installation, Docker, and start commands run without undocumented implicit dependencies.
2. Changelog Conventions (Keep a Changelog + SemVer)
A changelog communicates user-facing value and upgrade paths, not internal Git churn.
- 2.1 Strict Categorization:
- Group all entries under the six standardized headings:
Added,Changed,Deprecated,Removed,Fixed,Security.
- Group all entries under the six standardized headings:
- 2.2 Pair with Semantic Versioning (SemVer):
- MAJOR (v2.0.0): Incompatible breaking API or schema changes.
- MINOR (v1.2.0): Backwards-compatible new features.
- PATCH (v1.1.4): Backwards-compatible bug fixes.
- 2.3 Human-Centric Wording:
- Write for human consumers. Explain what changed and why it matters to them, not raw commit SHA dumps.
3. Architecture Decision Records (ADRs)
ADRs capture the rationale behind critical technical forks so future engineers don't re-litigate decisions or undo intentional trade-offs.
3.1 When to Write an ADR:
- When a decision is significant, difficult to reverse, or impacts team-wide architecture:
- ✅ Choosing a primary database engine (PostgreSQL vs DynamoDB).
- ✅ Introducing an architectural pattern (Event-Driven Architecture, Micro-frontends).
- ✅ Adopting a core framework or authentication protocol (OAuth2 PKCE vs Session Cookies).
- ❌ Do not write ADRs for routine, easily reversible code styling or minor library helper additions.
3.2 ADR Immutability & Lifecycle:
- Once an ADR is marked Accepted, its content is immutable.
- When an architecture evolves or changes direction, never edit or delete the old ADR.
- Mark the old ADR as
Superseded by ADR-XXXX, and write a new ADR detailing what changed and linking back to the original.
4. Documentation Taxonomy: Where Content Lives
Avoid conflating different layers of documentation:
| Documentation Layer | Primary Purpose | Audience | Lifespan / Maintenance |
| Code Comments | Explains why a specific line or non-obvious algorithm exists. | Active code maintainer | Kept in sync with code; deleted when code is refactored. |
| README.md | High-level project pitch, architecture diagram, and onboarding guide. | New team members, external evaluators | Living document; updated whenever onboarding/setup changes. |
| CHANGELOG.md | Chronological record of notable changes between releases. | Developers upgrading versions | Append-only; historical releases are never rewritten. |
| ADR (Architecture Decision) | Captures historical trade-offs, constraints, and decision drivers. | Engineering organization | Append-only; superseded when direction changes. |
| API Contract (OpenAPI) | Precise schema, endpoints, types, and status codes. | Frontend & API consumers | Generated alongside or prior to code changes. |
5. Preventing Documentation Rot
- 5.1 Same-PR Documentation Rule:
- If a code change alters environment variables, installation steps, or API contracts, the documentation updates must land in the same pull request. Never defer documentation to a vague "docs later" ticket.
- 5.2 Conflicting Docs are P1 Bugs:
- Documentation that directly contradicts current software behavior is a high-severity bug that damages engineering trust. Fix immediately.
Detailed References
references/adr-template.md: Ready-to-copy ADR template and a complete worked example (ADR-0004: Adopt Redis Pub/Sub for Live Order Status Updates).references/changelog-template.md: Ready-to-copy Keep a Changelog 1.1.0 template with standard category definitions and human-centric writing examples.
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.

