agentleFS
hidekituxhidekitux/skills/skills/document/write-docs/SKILL.md

write-docs

Skill0 starsChanged 2 months agoApache-2.0View on GitHub

Write or update a project's documentation, such as a README, a guide, a how-to, a contributor document, or a reference page, with every claim checked against the code and the project's own writing rules applied, then hand the change to implement-issue. Use it whenever a user asks to write, update, fix, or bring documentation up to date, including when a README or guide no longer matches the code, even if the request does not mention sources or verification. Do not use it to change code, configuration, or behavior.

43 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images 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.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • LucasMatuszewskiSkill

    audit-agents

    Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.

    Also in 5 projects that use this

  • wolverin0Skill

    audit-decisions

    Standardize remediation decisions, baseline-policy entries, and legal-review banners for accepted, deferred, or policy-blocked audit findings.

    Also in 4 projects that use this

  • rhnfzlSkill

    explore-unknowns

    Walk the user through mapping the unknowns of a task before, during, and after they build it, and hand them a four-quadrant map (settled ground, open decisions, taste, and landmines) they keep. Reach for this eagerly whenever a request is ambiguous or underspecified, the codebase or domain is unfamiliar, the user will "know it when they see it", a reference implementation must be understood before porting, a build-queue or architecture-changing task is about to start, a mid-build deviation needs capturing, or a finished change needs buy-in or verified understanding before merge. Trigger even when the skill is not named: "do a blindspot pass", "find my unknown unknowns", "interview me about this change", "brainstorm the approach for a task I am about to build", "help me scope this", "what am I missing here", "plan this before I build", "I know nothing about X in this codebase". When a territory profile is present it reads memory and the graph first and feeds the map into the build pipeline; without one it degrades to a plain general map. Not for trivial or mechanical tasks with clear acceptance criteria, single-fact lookups, pure debugging of a known symptom, or pure code review, those have their own tools. Do not use it to run the build itself; the map is the deliverable and implementation remains a separate task, whether it has not started or is already underway.

    Also in 5 projects that use this

  • +6 more from dzhng

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write or update the document within the agreed scope.

    line 13
  2. Very specific:

    Verify every claim, command, path, and link, then complete the list only when each claim is verified or listed as unverified.

    line 14
  3. Distinctive:

    Keep exactly one item in progress.

    line 16
  4. Distinctive:

    Stop and ask only when you cannot write the documentation without a decision that is not about wording, such as choosing between two …

    line 32
  5. Very specific:

    Prefer the project's own entry points in examples, such as a mise.toml task or a Makefile target, over raw tool commands, because readers …

    line 45
  6. Distinctive:

    Use the project's glossary terms.

    line 53
  7. Distinctive:

    Keep examples short and runnable as written.

    line 54
  8. Distinctive:

    Keep the existing structure and headings unless the request asks to change them.

    line 55
  9. Distinctive:

    Run each command the document shows when it is safe to run, or check its definition when it is not, and record the result.

    line 60
  10. Distinctive:

    Check that every path and file name exists, and that every internal link and anchor resolves.

    line 62
  11. Distinctive:

    Run the project's documentation checks when it has them, such as a Markdown linter or a link checker.

    line 64

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

Todo List

  1. in progress: Resolve the document, its readers, its scope, and the project's writing rules.
  2. Collect the source in the repository for every claim the document will make.
  3. Write or update the document within the agreed scope.
  4. Verify every claim, command, path, and link, then complete the list only when each claim is verified or listed as unverified; hand off the change to implement-issue.

Keep exactly one item in progress. Mark an item complete only when its evidence exists. Use the host's native Todo List, or keep the same list as a Markdown checklist when no native list is available.

Resolve and Guard

  • This is a document-layer skill. It writes documentation files in the working tree and hands the change to implement-issue, which commits it on the Issue branch. It does not commit, create a branch, an Issue, or a Pull Request.
  • Resolve the target file to write or change, who reads it, and what it must cover, from the request or its Issue. Do not widen the scope to other files.
  • Change documentation only. When the request pairs a documentation change with a code, configuration, or behavior change, write the documentation for the code as it is today, leave the other change undone, record it, and hand it to implement-issue. Do not describe the requested behavior as if it existed.
  • Stop and ask only when you cannot write the documentation without a decision that is not about wording, such as choosing between two conflicting behaviors in the code or stating a policy the project has not set.
  • Find the project's writing rules before writing: a style guide, a glossary, CONTRIBUTING.md, or a linter configuration such as .markdownlint.yaml or .vale.ini. They take precedence; see "Writing quality" for the rules that apply when the project has none.

Collect sources

  • For each claim the document will make, find its source: the function signature, the command definition, the configuration key, the default value, or the test that shows the behavior. Read the source, not an older document.
  • Prefer the project's own entry points in examples, such as a mise.toml task or a Makefile target, over raw tool commands, because readers run what the project supports.

Write

  • State what the reader can do and how, with the command or code they need.
  • Name each thing in full on first mention and use that term throughout. Use the project's glossary terms.
  • Keep examples short and runnable as written.
  • Keep the existing structure and headings unless the request asks to change them.

Verify

  • Run each command the document shows when it is safe to run, or check its definition when it is not, and record the result.
  • Check that every path and file name exists, and that every internal link and anchor resolves.
  • Run the project's documentation checks when it has them, such as a Markdown linter or a link checker.
  • List every claim you could not verify, with the reason.

Handoff

Report the changed files, a table of claims with their sources, every claim left unverified, and every request left undone because it was not documentation. Hand the working-tree change and this record to implement-issue.

Writing quality

These rules bind the documentation files this skill writes into the project and the handoff report. Follow the project's own writing rules. Where the project states none, follow persistent prose.

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.