agentleFS
JustinK33JustinK33/foreman/skills/docs/SKILL.md

docs

Skill3 starsChanged 2 months agoMITView on GitHub

Use when the user asks to write, update, or improve documentation, READMEs, API docs, docstrings, ADRs, or runbooks. Also trigger on "/foreman:docs" or "/docs".

83 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, work and 9 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.
  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 4 projects that use this

  • vbrevikSkill

    work

    Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.

    Also in 5 projects that use this

  • iankikuSkill

    gate

    (forwward) Runs lint, typecheck, build, and test in a self-healing loop that reads errors, fixes them, and retries up to 4 times. Triggers on verify, check, make sure it works, pre-commit validation, pre-deploy checks, or any quality gate.

    Also in 3 projects that use this

  • nicolasestremSkill

    git

    Git operations with intelligent commit messages and branch management

    Also in 5 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 5 projects that use this

  • AnthropicSkill

    tech-debt

    Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 7

    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:

    Write the doc a tired engineer at 2am would actually be grateful for, not the one that looks thorough in a demo.

    line 9
  2. Distinctive:

    Don't produce a doc type nobody asked for just because it's available.

    line 19
  3. Distinctive:

    Core concepts / how it works: - only the mental model needed to use it correctly, not the full internals.

    line 25
  4. Distinctive:

    Use concrete specifics over vague superlatives: "handles 10k requests/sec" beats "highly performant and scalable." Name the actual number, …

    line 36
  5. Distinctive:

    Don't manufacture a rule of three ("fast, reliable, and scalable") unless there are genuinely three things worth naming.

    line 38
  6. Distinctive:

    Write from what actually happened or what the code actually does, not generic best-practice language layered on top.

    line 39
  7. Distinctive:

    No em dashes standing in for a comma or period.

    line 41

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

Write the doc a tired engineer at 2am would actually be grateful for, not the one that looks thorough in a demo.

Pick the right artifact for the job

  • README - what the project is, how to run it, how to contribute. Not a full manual.
  • API reference - generated from code where possible (docstrings, OpenAPI/JSDoc/type hints); hand-written only for the parts generation can't cover (why, not just what).
  • Architecture Decision Record (ADR) - one decision, one file, immutable once accepted. Captures context, the decision, and the tradeoff, not a running log.
  • Runbook - operational: what breaks, how to tell, what to do about it. Written for someone paged at 3am with no context, not for someone doing a leisurely read.
  • Inline comments/docstrings - explain why, not what. If the code needs a comment to explain what it does, the fix is usually clearer code, not a longer comment.

Don't produce a doc type nobody asked for just because it's available; a project doesn't need an ADR for every function.

Structure that scales across companies (the actually common pattern)

  1. One-sentence purpose - what this is and why it exists, before anything else.
  2. Quick start - the fastest path to a working state. Copy-pasteable commands, not prose describing commands.
  3. Core concepts / how it works - only the mental model needed to use it correctly, not the full internals.
  4. Reference detail - options, parameters, edge cases. Scannable, not narrative.
  5. Troubleshooting / FAQ - the things people actually get stuck on, sourced from real questions if you have them, not invented ones.
  6. Lessons learned / gotchas - what surprised the people who built it. This is the section people skip writing and then regret.

Cut any section that would be empty or filler; a shorter doc that's all signal beats a template fully filled in with padding.

Writing style: sound like an engineer, not a language model

  • Say the thing directly. Cut "It's important to note that," "In today's fast-paced development environment," and any sentence that exists to sound thorough rather than to inform.
  • Vary sentence length. A string of uniform, medium-length sentences is the most reliable tell of generated prose; short sentences next to longer ones read human.
  • Use concrete specifics over vague superlatives: "handles 10k requests/sec" beats "highly performant and scalable." Name the actual number, tool, or version instead of a generic adjective.
  • Skip the reflexive "Additionally," "Furthermore," "Moreover" at paragraph starts. Most of the time the transition isn't needed at all; when it is, plain "Also" or nothing reads better.
  • Don't manufacture a rule of three ("fast, reliable, and scalable") unless there are genuinely three things worth naming. Two is fine. Five is fine.
  • Write from what actually happened or what the code actually does, not generic best-practice language layered on top. "We tried Redis first and hit eviction issues under load, moved to Postgres" beats "caching strategies were evaluated for optimal performance."
  • Skip the summary paragraph that just restates the doc in different words. If the doc needs restating to be understood, the doc needs editing instead.
  • No em dashes standing in for a comma or period; use the comma, period, or a plain word instead.

Scaffolding practice

When starting docs for a new project or module, scaffold the skeleton (headers, one-line placeholders for each section) and fill in only what's known now; mark unknowns explicitly (TODO: confirm rate limit) rather than inventing plausible-sounding content to fill the gap. A doc with an honest gap is more trustworthy than one that's confidently wrong.

Keeping docs from rotting

Docs that describe behavior belong as close to the code as the tooling allows (docstrings, comments near the decision) so they change in the same diff as the code. A doc that lives far from what it describes is a doc that goes stale; flag this when reviewing where a doc is being added.

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.