documentation
Skill2 starsChanged 3 months agoMITView on GitHub
Records decisions and documentation. Use when making architectural decisions, changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.
We split this skill into the rules it gives an agent
18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 95 edited versions we read keep these.
18
Distinctive
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 14
Use short paragraphs. Target 1-3 sentences per paragraph.
- Distinctive: line 16
Use direct, cut-to-the-chase sentences.
- Distinctive: line 20
Prefer structure over verbosity:
- Distinctive: line 23
Use bullets for lists, decisions, and acceptance checks
- Distinctive: line 24
Keep examples small but complete
- Distinctive: line 25
Put dense reference material in tables or checklists
- Distinctive: line 27
When compressing text, never compress meaning:
- Distinctive: line 29
Keep exact names for APIs, files, commands, error messages, and statuses
- Distinctive: line 30
Keep ordering when order matters (especially runbooks and migrations)
- Distinctive: line 31
Keep irreversible-action warnings explicit
- Distinctive: line 32
Keep links and cross-references to related ADRs/specs
- Distinctive: line 38
No fluff, no repeated statements
- Distinctive: line 39
No loss of technically important information
- Distinctive: line 48
When you find yourself explaining the same thing repeatedly
- Distinctive: line 50
When NOT to use: Don't document obvious code.
- Distinctive: line 76
Write API docs for fast scanning:
- Distinctive: line 78
Start with one-sentence behavior summary
- Distinctive: line 111
No ADRs in a project with significant architectural choices
“Common” is measured: kept by at least 6 in 10 of the 95 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 and ADRs
Overview
Document decisions, not just code. The most valuable documentation captures the why — the context, constraints, and trade-offs that led to a decision. Code shows what was built; documentation explains why it was built this way and what alternatives were considered. This context is essential for future humans and agents working in the codebase.
Writing Style (Human-First, No Detail Loss)
Use short paragraphs. Target 1-3 sentences per paragraph.
Use direct, cut-to-the-chase sentences. Put key point first, then constraints and trade-offs.
Preserve all critical details. Do not remove rationale, assumptions, risks, alternatives, constraints, or operational caveats.
Prefer structure over verbosity:
- One idea per paragraph
- Use bullets for lists, decisions, and acceptance checks
- Keep examples small but complete
- Put dense reference material in tables or checklists
When compressing text, never compress meaning:
- Keep exact names for APIs, files, commands, error messages, and statuses
- Keep ordering when order matters (especially runbooks and migrations)
- Keep irreversible-action warnings explicit
- Keep links and cross-references to related ADRs/specs
Quality bar for every doc update:
- Easy to skim in under 60 seconds
- Enough depth to execute without tribal knowledge
- No fluff, no repeated statements
- No loss of technically important information
When to Use
- Making a significant architectural decision
- Choosing between competing approaches
- Adding or changing a public API
- Shipping a feature that changes user-facing behavior
- Onboarding new team members (or agents) to the project
- When you find yourself explaining the same thing repeatedly
When NOT to use: Don't document obvious code. Don't add comments that restate what the code already says. Don't write docs for throwaway prototypes.
Solution Architecture Document
A Solution Architecture Document (SAD) is a detailed blueprint that outlines how a technical system or software application will be built to solve a specific business problem. It bridges the gap between business goals and technical execution by detailing system components, data flows, and technologies.
For detailed SAD guidance, see references/solution.md.
Architecture Decision Records (ADRs)
An Architectural Decision (AD) is a justified design choice that addresses a functional or non-functional requirement that is architecturally significant.
An Architecturally Significant Requirement (ASR) is a requirement that has a measurable effect on the architecture and quality of a software and/or hardware system. An Architectural Decision Record (ADR) captures a single AD and its rationale; Put it simply, ADR can help you understand the reasons for a chosen architectural decision, along with its trade-offs and consequences.
The collection of ADRs created and maintained in a project constitute its decision log. All these are within the topic of Architectural Knowledge Management (AKM), but ADR usage can be extended to design and other decisions (“any decision record”).
For detailed guidance on ADRs, see references/decision.md.
Inline Documentation
For detailed guidance on inline documentation, see references/inline-documentation.md.
API Documentation
For public APIs (REST, GraphQL, library interfaces):
Write API docs for fast scanning:
- Start with one-sentence behavior summary
- List required inputs and defaults
- List outputs and side effects
- List failure modes and error types
- Include one minimal real usage example
For detailed API documentation examples, see references/api-documentation.md.
Documentation for Agents
Special consideration for AI agent context:
- CLAUDE.md / rules files — Document project conventions so agents follow them
- Spec files — Keep specs updated so agents build the right thing
- ADRs — Help agents understand why past decisions were made (prevents re-deciding)
- Inline gotchas — Prevent agents from falling into known traps
Common Rationalizations
| Rationalization | Reality |
| "The code is self-documenting" | Code shows what. It doesn't show why, what alternatives were rejected, or what constraints apply. |
| "We'll write docs when the API stabilizes" | APIs stabilize faster when you document them. The doc is the first test of the design. |
| "Nobody reads docs" | Agents do. Future engineers do. Your 3-months-later self does. |
| "ADRs are overhead" | A 10-minute ADR prevents a 2-hour debate about the same decision six months later. |
| "Comments get outdated" | Comments on why are stable. Comments on what get outdated — that's why you only write the former. |
Red Flags
- Architectural decisions with no written rationale
- Public APIs with no documentation or types
- Commented-out code instead of deletion
- TODO comments that have been there for weeks
- No ADRs in a project with significant architectural choices
- Documentation that restates the code instead of explaining intent
Verification
After documenting:
- ADRs exist for all significant architectural decisions
- API functions have parameter and return type documentation
- Known gotchas are documented inline where they matter
- No commented-out code remains
- Rules files (CLAUDE.md etc.) are current and accurate
- Paragraphs are short and skimmable (1-3 sentences)
- Sentences are direct and cut to the chase
- No important details were removed during simplification
- Ordered procedures preserve exact execution order
Other versions106 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 106
- anthropics/knowledge-work-plugins★ 34ksame name
- comet-ml/opik★ 23ksame name
- mozilla-firefox/firefox★ 14ksame name
- microsoft/fast★ 9.7ksame name
- mufeedvh/code2prompt★ 7.7ksame name
- BrowserWorks/waterfox★ 6.3ksame name
- samchon/typia★ 6ksame name
- github/gh-aw★ 5.5ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
96 more not listed
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.
Used alongsideProjects with it also use project-preferences, response-style and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DepressionCenterSkillproject-preferences
Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.
Also in 5 projects that use this
DepressionCenterSkillresponse-style
Write prose in plain, natural English. Apply to every response, design discussion, review comment, commit message, pull request, and document, in any task.
Also in 5 projects that use this
BrowserWorksSkillaccessibility-frontend-review
Performs an accessibility code review of a local diff or Phabricator revision in the style of the Firefox accessibility team. Use this skill whenever the user asks to review a Phabricator patch or revision for accessibility issues, mentions a D-number (like D284142) in the context of accessibility review, asks "does this patch have any a11y issues", or wants to check a diff against accessibility guidelines. Also use it when the user says things like "can you review this for a11y", "check this patch", or "give me an accessibility review of D[number]". Invoke proactively when the user pastes a phabricator.services.mozilla.com URL or shares a revision ID alongside any accessibility concern. Invoke when questions about the following topics are raised: aria properties, aria roles, high contrast mode, forced colors, prefers contrast, focus order, screen readers, assistive technology.
Also in 4 projects that use this
BrowserWorksSkillandroid-new-module
Guide for creating new Android gradle modules in the android-components project.
Also in 4 projects that use this
- +1 more from DepressionCenter
- +7 more from BrowserWorks
In this repositoryOne other file it gives its agents.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

