agentleFS
SleepyStewSleepyStew/mstack/skills/documentation/SKILL.md

documentation

Skill0 starsChanged 10 days agoMITView on GitHub

Write, update, audit or reorganise a project's Markdown docs to one flat, indexed convention. Use when adding or changing a file under docs/, when the user asks to document something or to check, tidy or restructure the docs, and when setting up docs in a new project.

125 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use project-preferences, create-media-pack 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.
  • DepressionCenterSkill

    project-preferences

    Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.

    Also in 6 projects that use this

  • DepressionCenterSkill

    create-media-pack

    Create a coordinated project branding and media pack with three accessible design options, approved vector artwork, image exports, a branding guide, and README integration. Use when asked for a repository media pack, brand kit, or complete project visual identity.

    Also in 5 projects that use this

  • thistleknotSkill

    response-style

    Response and prose protocol. Use when drafting user-facing prose, expanding a user's ideas, or tuning tone and format to preserve voice, avoid AI cliches, and maintain coherent answers.

    Also in 7 projects that use this

  • BrowserWorksSkill

    accessibility-frontend-review

    Performs an accessibility code review of a local diff or Phabricator revision in the style of the Firefox accessibility team. Use this skill whenever the user asks to review a Phabricator patch or revision for accessibility issues, mentions a D-number (like D284142) in the context of accessibility review, asks "does this patch have any a11y issues", or wants to check a diff against accessibility guidelines. Also use it when the user says things like "can you review this for a11y", "check this patch", or "give me an accessibility review of D[number]". Invoke proactively when the user pastes a phabricator.services.mozilla.com URL or shares a revision ID alongside any accessibility concern. Invoke when questions about the following topics are raised: aria properties, aria roles, high contrast mode, forced colors, prefers contrast, focus order, screen readers, assistive technology.

    Also in 4 projects that use this

  • BrowserWorksSkill

    android-new-module

    Guide for creating new Android gradle modules in the android-components project.

    Also in 4 projects that use this

  • +7 more from BrowserWorks

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 111 edited versions we read keep these.

  • 6

    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. Very specific:

    Every guide sits at the top level of docs/.

    line 21
  2. Very specific:

    Add a decisions/ record only for a choice someone will question or an agent might undo.

    line 28
  3. Distinctive:

    Leave out what it used to do and what it might do.

    line 48
  4. Distinctive:

    Checkable claims: Every command exists in the package scripts or the tool's help, and every path exists.

    line 51
  5. Distinctive:

    Avoid counts and lists that drift.

    line 53
  6. Distinctive:

    Update the owning guide in the same change as the code.

    line 62
  7. Distinctive:

    Run the checker from the repo root and read its output:

    line 67
  8. Distinctive:

    Read the guides against the code for what a script cannot see: commands and paths that no longer exist, behaviour that changed, two guides …

    line 75

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

A project's docs describe how it works today, in one flat folder that an index maps by task. Keep them few, current and checkable.

Layout

README.md             What the project is and how to run it.
AGENTS.md / CLAUDE.md Short rules for agents, pointing at docs/README.md.
docs/README.md        The index: a table from task to guide.
docs/<topic>.md       Maintained guides. Flat, kebab-case names.
docs/<kind>/          Dated records only, named YYYY-MM-DD-<slug>.md.
  • Every guide sits at the top level of docs/. Do not sort guides into folders by type or area.
  • A subfolder holds one kind of dated record: decisions/ for a choice and its reasons, evidence/ for what a check found on a given day, or another kind the project needs. Each has a README.md saying what it holds. A record describes a moment and is not edited afterwards. A later record supersedes it and links back.
  • Add a decisions/ record only for a choice someone will question or an agent might undo. Most reasons belong in the commit body or the owning guide.
  • Plans, roadmaps and to-do lists are not docs. They go in tasks/ (see the tasks skill) and leave when the work lands. History lives in git.
  • A project with one or two guides needs no index. From three, it does.

A project's own docs rules override this layout. Follow an existing convention that works, and raise the difference with the user before moving files.

Writing a guide

  • One job per guide. A guide is either steps to do something, facts to look up, or an explanation of why the system is shaped as it is. Split a guide that does two, and link the halves.
  • One home per fact. Find the guide that owns a contract and write it there. Everywhere else links to it. The agent file holds the short rule and the guide holds the detail.
  • Present tense, implemented behaviour. Describe what the code does now. Leave out what it used to do and what it might do.
  • Only what the code cannot tell the reader. Contracts, entry points, decisions that are not obvious, and traps. Do not restate the source.
  • Checkable claims. Every command exists in the package scripts or the tool's help, and every path exists. Run a command before you document it. Avoid counts and lists that drift. Do not call remote infrastructure verified on the strength of a config file.
  • Shape. One # title, an opening paragraph saying what the guide covers and who needs it, then sentence-case headings. Relative links whose text says where they go. Code in fences with a language.
  • Prose. Apply the unslop skill.

Changing code

Update the owning guide in the same change as the code. Delete the docs for anything you remove. When you add a guide, add its row to the index.

Audit

  1. Run the checker from the repo root and read its output:

    python3 <this skill's folder>/scripts/check_docs.py .

    It reports broken links and anchors, guides and subfolders missing from the index, and top-level files that look like plans or dated records.

  2. Read the guides against the code for what a script cannot see: commands and paths that no longer exist, behaviour that changed, two guides owning the same fact, and guides nobody would miss.
  3. Fix broken links and index rows directly. Report everything else first, as a list of findings with a proposed change for each, and wait for the user before moving, merging or deleting guides.

Adopting the layout

For a project whose docs do not follow it, propose a mapping from each existing file to its new place (kept, merged, moved to a dated subfolder, turned into tasks, or deleted) and ask before moving anything. Use git mv so history follows, fix the links, and finish with a clean checker run.

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.