agentleFS
ulises-jeremiasulises-jeremias/agent-toolkit/skills/ops/docs-generator/SKILL.md

docs-generator

Skill28 starsChanged 3 months agoMITView on GitHub

'WHAT — Generate or update documentation from code: README.md from repo structure, CHANGELOG.md

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use attack-chain, js-reverse 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.
  • DorianGalloSkill

    attack-chain

    Also in 5 projects that use this

  • DorianGalloSkill

    js-reverse

    Also in 5 projects that use this

  • Roshu18Skill

    pentest-tools

    Tool selection policy for BearStrike based on target type, scan risk, and signal strength.

    Also in 6 projects that use this

  • zhaoxuya520Skill

    ghidra-reverse

    Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.

    Also in 3 projects that use this

  • +8 more from DorianGallo

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invent — always derive from evidence in the repo.

    line 20
  2. Distinctive:

    Does NOT write code — documentation only

    line 31
  3. Very specific:

    Does NOT commit or push — delegate to github-cli-workflow

    line 32
  4. Distinctive:

    Does NOT update external systems (Confluence, Notion) — use their respective skills

    line 33
  5. Very specific:

    Read Makefile / justfile / package.json scripts for commands

    line 40
  6. Very specific:

    Read .github/workflows/ for CI structure

    line 41
  7. Distinctive:

    Always note the spec version and date in the generated doc

    line 61
  8. Very specific:

    Use the template from ~/.local/share//skills-catalog.yaml patterns:

    line 65
  9. Distinctive:

    Do not guess stack or commands — read from actual config files

    line 110
  10. Distinctive:

    Do not generate CHANGELOG from unstaged changes

    line 111
  11. Distinctive:

    Do not overwrite existing README without showing diff first

    line 112

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

Docs Generator (WHAT)

Generate or refresh documentation from the actual code, schema, and git history. Never invent — always derive from evidence in the repo.

When to use

  • README is missing, stale, or doesn't reflect the current stack
  • CHANGELOG needs to be generated from merged PRs or git log
  • API spec (OpenAPI/GraphQL) exists but human-readable docs don't
  • New repo needs an AGENTS.md to onboard AI assistants

Out of scope

  • Does NOT write code — documentation only
  • Does NOT commit or push — delegate to github-cli-workflow
  • Does NOT update external systems (Confluence, Notion) — use their respective skills

Workflow

README.md generation

  1. Inspect repo: package.json / pyproject.toml / Cargo.toml for name, description, stack
  2. Read Makefile / justfile / package.json scripts for commands
  3. Read .github/workflows/ for CI structure
  4. Draft README with: Purpose, Stack, Prerequisites, Quick Start, Development, Testing, Contributing
  5. Apply output-handshake before writing

CHANGELOG.md generation

# Conventional commits format
git log --oneline --no-merges --pretty="format:%h %s" $(git describe --tags --abbrev=0)..HEAD

# Group by type: feat / fix / docs / chore / refactor / perf / test
# Format: ## [Unreleased] with subsections per type

Draft changelog section and ask user to confirm version before finalizing.

API reference generation

  • OpenAPI spec → readable endpoint table with params, responses, auth
  • GraphQL schema → type reference with fields and descriptions
  • Always note the spec version and date in the generated doc

AGENTS.md starter

Use the template from ~/.local/share//skills-catalog.yaml patterns:

  • Purpose and stack
  • Repository inspection order
  • What AI assistants may and must not do
  • Key commands (build, test, lint)
  • Links to key docs

Inline Documentation (why, not what) — per addyosmani/agent-skills documentation-and-adrs 2026-08-12 diff docs/research/diff-394-documentation-and-adrs.md

Comment the why, not the what:

// BAD: Restates the code
// Increment counter by 1
counter += 1;

// GOOD: Explains non-obvious intent
// Rate limit uses a sliding window — reset counter at window boundary,
// not on a fixed schedule, to prevent burst attacks at window edges
if (now - windowStart > WINDOW_SIZE_MS) {
  counter = 0;
  windowStart = now;
}
  • When NOT to comment: self-explanatory code (calculateTotal reduce), week-old TODOs (do it now), commented-out code (delete — git has history).
  • Document Known Gotchas inline where they matter:
/**
 * IMPORTANT: Must be called before first render — after hydration causes FOUC
 * (theme context not available during SSR). See ADR-003.
 */
export function initializeTheme(theme: Theme): void { ... }

Do not invent docs from thin air — derive from code/specs/git history (this skill) vs ADR why (via adr skill). personas/ (HOW agent thinks) vs skills/ (HOW task executes) preserved — see docs/CONCEPTS.md.

Verification (after documenting)

  • ADRs exist for all significant decisions, README covers quick start/commands/architecture (link ADRs), API docs have types, gotchas inline, no commented-out code, CLAUDE.md/AGENTS.md current.
  • Rationalizations table — "code is self-documenting" (reality: code shows what, not why/alternatives), "docs when API stabilizes" (doc is first test of design), "ADRs are overhead" (10-min ADR prevents 2-hour debate).

Anti-patterns

  • Do not guess stack or commands — read from actual config files
  • Do not generate CHANGELOG from unstaged changes
  • Do not overwrite existing README without showing diff first

Delegates to

NeedSkill
Push and create PR with generated docsgithub-cli-workflow
Confirm output destinationoutput-handshake
Repo discoveryassistant

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.