agentleFS
The-UrcydoThe-Urcydo/Agents-Skills-Roles-Oriented/skills/write-doc/SKILL.md

write-doc

Skill2 starsChanged 22 days agoMITView on GitHub

Create or update a documentation page in the repository's docs system, using the right Diataxis type and a one-sentence summary. Use whenever adding, changing, moving, or deleting documentation.

5 other projects use 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. 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 10

    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:

    Use this when a change makes documentation wrong or incomplete, or when a reader needs a page that does not exist.

    line 12
  2. Distinctive:

    Check the docs index first.

    line 21
  3. Distinctive:

    start with the reader's problem and the outcome.

    line 23
  4. Distinctive:

    keep one job per page;

    line 24
  5. Distinctive:

    use the repository's front matter and summary field.

    line 25
  6. Distinctive:

    Delete or mark deprecated anything the change makes wrong.

    line 28
  7. Distinctive:

    Update the docs index with the repository's method: regenerate it when it is generated, or edit it when it is hand-maintained.

    line 29
  8. Distinctive:

    Verify every command and link on the page.

    line 30
  9. Distinctive:

    Every command, path, and link resolves.

    line 36
  10. Distinctive:

    No page the change made wrong is left active.

    line 37

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

Write a doc

Use this when a change makes documentation wrong or incomplete, or when a reader needs a page that does not exist. Pick one Diataxis type per page; if a page needs two types, write two pages and link them.

Steps

  1. Pick the type by the reader's need:
    • Tutorial: a beginner learns by doing; the steps work every time.
    • How-to: someone who knows the basics solves one task; a recipe.
    • Reference: someone looks up a fact; accurate, complete, no opinions or instructions.
    • Explanation: someone wants to understand why; context, trade-offs, history.
  2. Check the docs index first. Update an existing page instead of adding a near-duplicate.
  3. Write the page:
    • start with the reader's problem and the outcome;
    • keep one job per page;
    • use the repository's front matter and summary field;
    • link related pages and code;
    • state the last verification date when the page describes code.
  4. Delete or mark deprecated anything the change makes wrong. A stale page is worse than no page.
  5. Update the docs index with the repository's method: regenerate it when it is generated, or edit it when it is hand-maintained.
  6. Verify every command and link on the page; run the repository's docs check.

Verify

  • The page has one type and one job.
  • The index lists it with a one-sentence summary.
  • Every command, path, and link resolves.
  • No page the change made wrong is left active.
  • The docs check passes.

In Repo-Template

python3 tools/new_doc.py <tutorial|how-to|reference|explanation> "Title" --summary "One sentence a stranger can judge by."
python3 tools/sync_indexes.py
python3 tools/check.py

Docs live under docs/; the generated index is docs/INDEX.md. Do not link from core docs into optional module folders; use backticks.

Stop and ask

  • The page needs two types; split it instead of guessing.
  • The fact is unverified or the code and docs disagree.
  • The change would delete a page another team owns.
  • The page would contain a secret or a personal path.

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.