agentleFS
khuynh22khuynh22/agent-dev-team/skills/documentation/SKILL.md

documentation

Skill9 starsChanged 3 months agoMITView on GitHub

Writes documentation for one reader doing one task: READMEs, quickstarts, how-to guides, API reference, runbooks, and changelogs. Use when docs are missing, stale, or unreadable, when a change made existing docs wrong, or when someone new cannot get the project running. Verifies every command and example before publishing.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactoring, typescript 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.
  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 8 projects that use this

  • 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

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 10 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 8

    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:

    Every document has one reader and one task.

    line 13
  2. Distinctive:

    Name the reader and the task in the first two sentences: If you cannot, the document has no scope yet.

    line 31
  3. Distinctive:

    Every command is complete and copy-pasteable: No placeholder the reader has to guess.

    line 33
  4. Distinctive:

    If something is stale and you cannot verify it, remove it and say you did.

    line 41
  5. Distinctive:

    Default to none. The bar is not "is this true" but "would a competent reader be stuck without it".

    line 73
  6. Distinctive:

    Not worth writing: a restatement of the next line, a section banner, a docstring that repeats the signature, or a note about the change you …

    line 79
  7. Distinctive:

    Every command in the document was actually run, and the quoted output is real.

    line 85
  8. Distinctive:

    Every code example runs as written, including imports.

    line 86

“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

Documentation

Every document has one reader and one task. A document that serves everyone serves nobody, and a feature tour is not documentation.

Pick the type first

Reader wantsTypeShape
To get it working nowQuickstartNumbered steps, one path, copy-pasteable, ends in a verifiable result
To do a specific taskHow-toGoal, prerequisites, steps, verification
To look up an exact detailReferenceComplete and uniform. Not a narrative
To understand whyExplanation / ADRProse, trade-offs, what was rejected
To fix production at 3amRunbookSymptom, first check, mitigation, escalation

Mixing two types is the most common documentation failure. A quickstart with a paragraph of rationale in the middle loses the reader who came to paste a command.

Rules

  1. Name the reader and the task in the first two sentences. If you cannot, the document has no scope yet.
  2. Every command is complete and copy-pasteable. No placeholder the reader has to guess; if a value is required, say where to get it.
  3. Every procedure ends with how to know it worked, with the expected output quoted.
  4. Show the common failure too. The error someone will hit, and what it means, saves more time than the happy path.
  5. Link, do not duplicate. Duplicated content goes stale in one place and stays correct in the other, which is worse than missing.
  6. Delete aggressively. Wrong documentation is worse than none, because it is believed. If something is stale and you cannot verify it, remove it and say you did.
  7. Shortest version that works. Length is a cost the reader pays.

README order

Title, then one line saying what this is. Then: the problem it solves, install, a minimal working example, links to deeper docs, how to contribute. Badges and a feature list do not go above the example.

The example is the most-read part of any README. Make it real, small, and runnable as written, including its imports.

Runbook

# Alert: <name>
**Means:** <the user-visible symptom>
**Check first:** <one dashboard or query>
**Common causes:** <ranked, each with its distinguishing signal>
**Mitigation:** <the action that stops the bleeding>
**Escalate to:** <who, and when>

Written for someone woken up with five minutes. No background, no history.

Changelog

Grouped by version, newest first. Entries say what changed for a user, not what changed in the diff. Breaking changes get their own section with one migration line each.

Code comments and docstrings

Default to none. The bar is not "is this true" but "would a competent reader be stuck without it".

Worth writing: a non-obvious why whose absence invites someone to "fix" the code and break it; a cited constraint with its source; a deliberate deviation from convention.

Not worth writing: a restatement of the next line, a section banner, a docstring that repeats the signature, or a note about the change you just made. Before reaching for a comment, try a better name, a smaller function, or an earlier return.

Verification

  • Every command in the document was actually run, and the quoted output is real.
  • Every code example runs as written, including imports.
  • Every link resolves.
  • Nothing contradicts the current code.
  • The document is one type, not two.

Red flags

ThoughtReality
"I'll document what it should do"Document what it does. Aspirational docs are wrong docs.
"The code is self-documenting"Then the reference is cheap. The why is still missing.
"I'll leave the old section, it might still be right"Might-be-right is believed. Verify or delete.
"More detail is more helpful"Length is a cost. Cut what this reader does not need.
"The example is close enough"Run it. A broken example destroys trust in the whole document.
"I'll add a comment explaining this function"Try a better name first.

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.