agentleFS
DevelopersGlobalDevelopersGlobal/ai-agent-skills/skills/documentation/SKILL.md

documentation

Skill69 starsChanged 7 months agoMITView on GitHub

Document decisions, not just implementations. ADRs for architectural choices, inline docs for non-obvious code, and runbooks for operational knowledge.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use typescript, oauth and 8 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.
  • MicrosoftSkill

    typescript

    Use this guide when working on TypeScript changes in the FAST monorepo — authoring Web Components, writing templates and styles, working with the observable/reactive system, and testing.

    Also in 5 projects that use this

  • VercelSkill

    oauth

    Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.

    Also in 3 projects that use this

  • MicrosoftSkill

    rust

    Use this guide when working on Rust changes in the FAST monorepo.

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 10 projects that use this

  • SentrySkill

    architecture-review

    Staff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.

    Also in 5 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 13

    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
  1. Distinctive:

    After any significant architectural decision

    line 15
  2. Distinctive:

    Before complex code that future maintainers will question

    line 16
  3. Distinctive:

    When an operational procedure isn't self-evident

    line 17
  4. Distinctive:

    When a non-obvious tradeoff was made

    line 18
  5. Distinctive:

    Write an ADR with:

    line 25
  6. Distinctive:

    Verify: Every significant decision in the last sprint has an ADR.

    line 33
  7. Distinctive:

    Document the WHY, not the WHAT:

    line 37
  8. Distinctive:

    Document non-obvious algorithmic choices.

    line 40
  9. Distinctive:

    Document external constraints (rate limits, API quirks, platform limitations).

    line 41
  10. Distinctive:

    Remove comments that state the obvious — they add noise.

    line 42
  11. Distinctive:

    Verify: Every non-obvious code block has a "why" comment.

    line 44
  12. Distinctive:

    When is this runbook used?

    line 49
  13. Distinctive:

    Verify: Every on-call alert has a linked runbook.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 52 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Code explains what. Documentation explains why. The most valuable documentation records decisions that aren't obvious from reading the code: why this architecture, why this tradeoff, why not the obvious alternative.

When to Use

  • After any significant architectural decision
  • Before complex code that future maintainers will question
  • When an operational procedure isn't self-evident
  • When a non-obvious tradeoff was made

Process

Step 1: Architectural Decision Records (ADRs)

For every significant architectural decision:

  1. Write an ADR with:
    • Context: What was the situation requiring a decision?
    • Decision: What was decided?
    • Alternatives considered: What else was evaluated and why rejected?
    • Consequences: What are the positive and negative consequences?
    • Status: Proposed | Accepted | Deprecated | Superseded
  2. Store ADRs in docs/decisions/ as numbered markdown files.

Verify: Every significant decision in the last sprint has an ADR.

Step 2: Code-Level Documentation

  1. Document the WHY, not the WHAT:
    • ✅ // Using exponential backoff here — the payment API has strict rate limits (3 req/sec)
    • ❌ // Retry the request
  2. Document non-obvious algorithmic choices.
  3. Document external constraints (rate limits, API quirks, platform limitations).
  4. Remove comments that state the obvious — they add noise.

Verify: Every non-obvious code block has a "why" comment.

Step 3: Runbooks

  1. For every production process that humans execute, write a runbook:
    • When is this runbook used?
    • What steps to execute?
    • What does "done" look like?
    • What could go wrong and how to recover?
  2. Runbooks live in docs/runbooks/.

Verify: Every on-call alert has a linked runbook.

Step 4: README Currency

  1. README reflects current state (not v1 state).
  2. Setup instructions work on a fresh machine.
  3. Architecture diagram updated after significant changes.

Common Rationalizations (and Rebuttals)

ExcuseRebuttal
"The code is self-documenting"Code says what; documentation says why. Both are needed.
"I'll document it later"The context in your head right now is irreplaceable. Write it now.
"Docs go stale"Outdated docs are better than no docs. Update when you touch the code.

Verification

  • ADRs written for significant architectural decisions
  • Non-obvious code blocks have "why" comments
  • Every production alert has a linked runbook
  • README is current and setup instructions work

References

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.