agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/documentation-generation/SKILL.md

documentation-generation

Skill36 starsChanged 6 months agoMITView on GitHub

Generates project documentation including READMEs, docstrings (JSDoc, JavaDoc, Python docstrings), OpenAPI prose, and CI/CD doc pipelines. Use when asked to generate docs, write docstrings, automate documentation, or create README files.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Read the appropriate reference before writing any documentation.

    line 17
  2. Distinctive:

    If project type cannot be auto-detected, ask the user to specify the stack before loading templates.

    line 44
  3. Distinctive:

    If README exists and appears current, report that and do not overwrite without explicit approval.

    line 45

≈ “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

Iron Law: NO DOC GENERATION WITHOUT READING THE PROJECT-SPECIFIC TEMPLATES FIRST

Read the appropriate reference before writing any documentation.

Process

  1. Detect stack — Check for pom.xml (Java), package.json (NestJS/Angular), pyproject.toml (Python), pubspec.yaml (Flutter)
  2. Load template — Read the matching section in references/readme-templates.md
  3. Apply docstring pattern — Read references/docstring-patterns.md for the correct format per language
  4. Configure CI/CD — Read references/cicd-doc-pipeline.md when setting up automated doc generation

When to Use

  • Creating or refreshing a project README
  • Writing docstrings for public APIs (with /doc-generate)
  • Setting up a CI/CD pipeline that auto-generates API docs on push
  • Generating OpenAPI specs from code annotations (see openapi-spec-generation skill)
  • Creating architecture diagrams (use mermaid-expert agent)

References

FileContentLoad When
references/readme-templates.mdStack-specific README templates for Java/Spring, NestJS, Python FastAPI, FlutterWriting README for Java, NestJS, Python, or Flutter project
references/docstring-patterns.mdJavadoc, JSDoc, Python Google-style, Dart /// patterns with examplesWriting Javadoc, JSDoc, Python docstrings, Dart doc comments
references/cicd-doc-pipeline.mdGitHub Actions workflow for auto-doc generation + Redocly + GitHub PagesSetting up automated doc generation, GitHub Pages, Redocly

Error Handling

If project type cannot be auto-detected, ask the user to specify the stack before loading templates. If README exists and appears current, report that and do not overwrite without explicit approval.

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.