agentleFS
thienanblogthienanblog/awesome-ai-agent-skills/skills/documentation-guidelines/SKILL.md

documentation-guidelines

Skill68 starsChanged 7 months agoApache-2.0View on GitHub

Create, audit, or consolidate durable project documentation, including feature rules, contracts, workflows, and runbooks. Use when documentation is the main deliverable; routine code changes can update their owning docs directly.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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:

    Run in the main conversation by default.

    line 12
  2. Distinctive:

    Avoid docs changes that merely record task activity.

    line 31
  3. Distinctive:

    Follow the repository's layout.

    line 36
  4. Distinctive:

    Use concrete rules, stable searchable headings, examples, and a few source/test anchors.

    line 37
  5. Distinctive:

    Read templates.md for the document type, architecture.md for multi-owner structure, or audit-cleanup.md for consolidation.

    line 41

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

Documentation Guidelines

Capture durable meaning that code alone does not explain: business intent, ownership, invariants, permissions, contracts, and operational decisions. Let source and tests own implementation details and executable evidence.

Delegation

Run in the main conversation by default. Delegation can increase usage: obtain explicit approval for the proposed agent count and scope before using subagents. Reuse that approval within its bounds; ask again before expanding the approved count or scope.

Find the owner and evidence

Read the relevant documentation index and owner when present, then verify affected facts against source, tests, schemas, configuration, and runtime evidence. Follow links needed to understand the changed contract; stop when further reading no longer affects the result. Missing or stale documentation is a reason to inspect source, not a prerequisite that blocks work.

For the scope at hand, identify applicable actors, triggers, rules, state transitions, inputs/outputs, side effects, failure paths, ownership, and compatibility requirements. Omit irrelevant categories; record unresolved material facts without inventing them.

Change docs when durable meaning changes

ChangeDocumentation action
Internal refactor, formatting, or fix restoring documented behaviorUpdate only affected paths or evidence anchors, if any
User behavior, business rule, or workflowUpdate its existing owner
API, schema, permissions, events, or compatibilityUpdate the contract and affected consumer mappings
Setup, migration, deployment, backup, or recoveryUpdate the owning runbook
Entity renamed, moved, or removedRepair discovery routes and stale references
Duplicate or contradictory docsPreserve valid facts in one owner, repair links, then remove stale copies within scope

Avoid docs changes that merely record task activity. Keep transient plans, command logs, and CI output in the task, PR, or an existing evidence surface unless they represent a durable operating requirement.

Write for discovery and maintenance

  • Give each durable fact a clear owner. Consumers link to it and document only their own mapping or constraints.
  • Follow the repository's layout. Add routers, registries, or metadata only when a real discovery or tooling need justifies their upkeep.
  • Use concrete rules, stable searchable headings, examples, and a few source/test anchors. Prefer symbols and paths over brittle line numbers.
  • Separate facts, recommendations, and unknowns. Remove generic tutorials, speculative requirements, copied implementation, and status metadata that will rot.
  • Preserve historical records when they still serve an audit, migration, or operational purpose. Use Git history for superseded tracked content when sufficient.

Read templates.md for the document type, architecture.md for multi-owner structure, or audit-cleanup.md for consolidation.

Verify and report

Trace discovery from the existing entrypoint to the updated owner. Check links, identifiers, commands, evidence anchors, and any affected consumer contracts. Search for contradictory copies and old names. Run focused doc or generation validators plus applicable required gates; application tests are warranted only if the change affects executable behavior or their contract.

Report the durable facts changed, important removals or consolidations, verification, and remaining gaps.

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.