agentleFS
AnthonyDelaCruzAnthonyDelaCruz/agent-setup/skills/docs-gen/SKILL.md

docs-gen

Skill0 starsChanged 6 days agoMITView on GitHub

Generate clear, accurate documentation for code, APIs, and projects. Use when asked to document code, write or update a README, create API docs, or add docstrings and JSDoc comments.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. Vyrnexis/nim-agent-template★ 4same name
    2. GlamgarOnDiscord/claude-saas-blueprint★ 2same name
    3. Jinbae10/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Files
SKILL.md

Documentation Generation

Generate concise, accurate documentation that matches existing repository conventions and language standards.

Workflow

  1. Analyze — Inspect the actual implementation, public surface, types, edge cases, and dependencies. Never guess behavior.
  2. Identify scope — Inline comments, function/module docs, README, or API reference.
  3. Match conventions — Follow the repository's existing doc style and language format.
  4. Write — Cover purpose, parameters, return values, errors/exceptions, and concrete examples.
  5. Verify — Confirm every symbol, command, flag, and file path matches the codebase.

Documentation Types

TypeWhen to Use
Inline commentsNon-obvious invariants, trade-offs, and "why" (never narrate obvious code)
Function / module docsPublic APIs, exported types, parameters, return values, errors
READMEOverview, prerequisites, setup, usage examples, architecture pointers
API docsEndpoints, auth, request/response schemas, status codes, error shapes

Language Standards

LanguageFormatKey Elements
JavaScript / TypeScriptJSDoc / TSDoc@param, @returns, @throws, @example
PythonDocstrings (Google / NumPy)Args, Returns, Raises, Examples
GoGoDocComplete sentence starting with the exported symbol name
JavaJavadoc@param, @return, @throws
RustRustdoc///, //!, runnable doc examples

Quality Checklist

  • Purpose and behavior verified directly against source code
  • Parameters, return values, and error conditions documented
  • Realistic usage examples included where helpful
  • Concise and free of redundant filler
  • Formatting matches existing project conventions

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.