agentleFS
gualaskgualask/clean-flow/skills/cf-docs/SKILL.md

cf-docs

Skill1 starsChanged 27 days agoMITView on GitHub

Write or audit Markdown documentation. Use when the request writes a Markdown file outside `.cflow/` — a doc, README, CHANGELOG, AGENTS.md or CLAUDE.md, or a design note, including updating, trimming, or reorganizing docs — when it writes, adds to, updates, or checks off a todo.md recording remaining work and open questions, or when it asks to audit or fact-check docs against the code. Not for reading a todo file to answer a question.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this pass when the current request writes a Markdown file, or asks to audit existing docs against the code.

    line 7
  2. Very specific:

    Treat repository state as the source of truth and do not require .cflow/ artifacts.

    line 9
  3. Very specific:

    Use when the request is to review, audit, check, fact-check, or trim existing docs.

    line 17
  4. Very specific:

    Use when the request is to write new documentation or substantially author or update doc content.

    line 22
  5. Very specific:

    Use when the request writes or updates a todo file.

    line 27
  6. Very specific:

    Read only references/todo.md: the todo file's shape, lifecycle, and output, in place of the Output Format.

    line 28
  7. Very specific:

    Use when the request is to reorganize, regroup, or restructure existing docs.

    line 32
  8. Very specific:

    When the target is a CHANGELOG, or an AGENTS.md or CLAUDE.md, also read references/changelog.md or references/agents-md.md: each holds the …

    line 35
  9. Distinctive:

    Leanness: remove only restated content, historical or migration notes that give no reason for the current design, and decorative wording.

    line 43
  10. Distinctive:

    Structure: keep decision and explanation content out of exhaustive reference lists, and do not mix how-to, reference, and explanation in …

    line 44
  11. Distinctive:

    Language: write in the language of the repository's existing docs, even when the request uses another language.

    line 45

≈ “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

Produce docs that are accurate against the code, lean, and free of duplicated concepts.

Use this pass when the current request writes a Markdown file, or asks to audit existing docs against the code. Do not use it otherwise, nor for files under .cflow/: they are artifacts owned by other Cflow skills.

Treat repository state as the source of truth and do not require .cflow/ artifacts.

Flow Selection

Choose exactly one flow from the current request.

Review Flow

Use when the request is to review, audit, check, fact-check, or trim existing docs. Read references/review.md.

Generate Flow

Use when the request is to write new documentation or substantially author or update doc content. Read references/generate.md.

Todo Flow

Use when the request writes or updates a todo file. Read only references/todo.md: the todo file's shape, lifecycle, and output, in place of the Output Format.

Reorganize Flow

Use when the request is to reorganize, regroup, or restructure existing docs. Read references/reorganize.md.

When the target is a CHANGELOG, or an AGENTS.md or CLAUDE.md, also read references/changelog.md or references/agents-md.md: each holds the rules of that file.

Core Rules

Apply these in every flow, except that the Todo Flow keeps only Language and Scope; each flow reference says how.

  • Accuracy: check every checkable claim against the code — versions, paths, command names, constants, thresholds, file and symbol names — and fix or report drift instead of trusting the existing text. If the repository contains no source code to check against, say so in Checks and apply the remaining rules.
  • Duplication: before writing a fact, search the docs for it. A fact another doc already owns gets a link, not a second explanation; when the doc being written becomes the owner, replace the old copy with a link. Remove the same concept restated across docs or within a doc.
  • Leanness: remove only restated content, historical or migration notes that give no reason for the current design, and decorative wording. A fact that no other doc or source comment carries stays in the doc; never delete it.
  • Structure: keep decision and explanation content out of exhaustive reference lists, and do not mix how-to, reference, and explanation in one section.
  • Language: write in the language of the repository's existing docs, even when the request uses another language; AGENTS.md and CLAUDE.md are always in English.
  • Scope: review or edit only the docs the request targets, preserve the author's voice and the project's doc conventions, and do not rewrite untouched docs on preference alone.

Output Format

Return only:

  • Scope: target docs and selected flow.
  • Findings: per doc, accuracy drift, duplication across and within docs, and the leanness and structure issues found.
  • Changes: edits applied or proposed; for each duplicated concept, the owner doc and the links that replace the removed copies; for each removed passage, where its facts now live.
  • Checks: how claims were verified against the code, plus link and anchor validation.
  • Result: what is now accurate and lean, remaining risk, and next action.

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.