agentleFS
jamal-gmljamal-gml/anthropica/skills/core-documentation/SKILL.md

core-documentation

Skill0 starsChanged 12 days agoMITView on GitHub

Write or update docs verified against the repo (README, setup and how-to guides, tutorials, reference, explanations, runbooks) using Diataxis and docs-as-code checks. Use when writing or fixing a README, CONTRIBUTING, setup guide, config reference or runbook, or when a change makes docs stale. Not for ADRs (use `plan-architecture`), changelogs (use `ship-release`) or postmortems (use `operate-incident`).

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the smallest correct document that lets the intended reader succeed, and prove every command in it works.

    line 8
  2. Distinctive:

    Gather facts from the repo,: not memory: build files, scripts, CI workflows, env samples, config schemas, entry points, existing docs.

    line 13
  3. Very specific:

    Verify every command and path: run it (or a safe dry-run) in a clean shell/environment where possible.

    line 15
  4. Distinctive:

    Write in second person, present tense, active voice.

    line 45
  5. Distinctive:

    Delete or archive docs that describe removed features.

    line 49
  6. Very specific:

    Keep the README under ~300 lines.

    line 50
  7. Distinctive:

    Prefer text over screenshots (they go stale and can't be searched).

    line 51
  8. Distinctive:

    Never put real secrets, tokens, connection strings, internal hostnames or personal data in docs or examples.

    line 64
  9. Very specific:

    Never invent commands, flags, endpoints, env vars or behaviour.

    line 65
  10. Distinctive:

    Ask before publishing docs to an external site or wiki, or changing docs owned by another team.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

Technical Documentation

Write the smallest correct document that lets the intended reader succeed, and prove every command in it works.

Procedure

  1. Reader and task. Name the reader (new contributor, operator on call, API consumer, evaluator) and the one thing they need to do or understand.
  2. Pick the type (Diataxis, table below). One document = one type; link between types instead of mixing them.
  3. Gather facts from the repo, not memory: build files, scripts, CI workflows, env samples, config schemas, entry points, existing docs. Note anything you cannot verify.
  4. Outline, then write. Start from the templates: README skeleton below; runbook in references/runbook-template.md; other types in references/templates.md.
  5. Verify every command and path: run it (or a safe dry-run) in a clean shell/environment where possible; check paths exist, env var names match the code, versions match the manifest. Mark unverifiable steps TODO(verify): <what>.
  6. Docs-as-code checks: markdown lint, link check, spelling/prose lint if the repo has them; fix what they flag. Read references/templates.md for tool options when the repo has none.
  7. Ship with the change: docs update in the same PR as the code; update or delete the stale parts you found, and only those.

Rules

TypeReader's stateShapeAvoid
TutorialLearning, newA guaranteed-success lesson with one path, concrete steps, visible resultsOptions, edge cases, theory
How-to guideWorking, has a goalNumbered steps to one outcome; prerequisites first; assumes basicsTeaching concepts
ReferenceLooking something upComplete, consistent, structured like the thing it describes (CLI flags, API, config keys, env vars)Narrative, opinions
ExplanationWants to understandContext, design reasons, trade-offs, alternativesStep-by-step instructions

README skeleton (keep it short; link out for depth)

# <Project>
<One sentence: what it is and who it's for.>
## Quick start      <- copy-paste commands to a working result in < 5 minutes
## Requirements     <- runtimes/tools with versions
## Usage            <- the 2-3 most common tasks
## Configuration    <- table: name | required | default | description (or link to reference)
## Development      <- install, test, lint, run locally
## Deployment / Operations <- link to runbooks
## Contributing / License / Support
  • Quick start before reference; the first command block must work as written on a clean machine.
  • Commands in fenced blocks with a language tag; one command per line; show expected output when it confirms success. Separate commands from output.
  • State the platform when commands differ (bash vs PowerShell); don't assume one OS silently.
  • Placeholders are explicit and consistent: <your-api-url>, YOUR_TOKEN; tell the reader where to get the value.
  • Link to canonical sources (generated API docs, config schema, CI file) instead of copying them; copied docs go stale.
  • Write in second person, present tense, active voice; descriptive headings; meaningful link text; alt text for diagrams; tables for mappings.
  • Version-sensitive facts (versions, limits, URLs) belong in one place, referenced elsewhere.
  • Diagrams as code (Mermaid, PlantUML) so they diff and review like text.
  • Runbooks: each alert links to one; every step has the command, the expected result and what to do if it differs; include rollback and escalation.
  • Delete or archive docs that describe removed features; wrong docs are worse than none.
  • Keep the README under ~300 lines; move depth into docs/ by Diataxis type and link it.
  • Prefer text over screenshots (they go stale and can't be searched); date any screenshot you keep.

Doc-update triggers (a code change with any of these needs a doc change in the same PR)

ChangeUpdate
New/renamed env var, config key, CLI flag or defaultReference table, .env.example, README configuration
Changed install, build, test or run commandQuick start, CONTRIBUTING, CI badge/docs
New external dependency (service, queue, API key)Requirements, setup guide, runbook prerequisites
New alert, job, or operational procedureRunbook, linked from the alert
Public API changeAPI reference, migration notes (changelog via ship-release)
Architecture or major design changeExplanation doc; ADR via plan-architecture

Safety gates

  • Never put real secrets, tokens, connection strings, internal hostnames or personal data in docs or examples; use placeholders and point to the secret store.
  • Never invent commands, flags, endpoints, env vars or behaviour; unverified = TODO(verify).
  • Destructive commands in docs (data deletion, force push, production changes) carry a warning, a confirmation step and a rollback note.
  • Ask before publishing docs to an external site or wiki, or changing docs owned by another team.

Output

  • The document(s), plus a short note: reader and type chosen, files changed, commands verified (and how), checks run (lint/link), TODO(verify) items remaining.

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.