Documentation generation

From kumaran-is/claude-code-onboarding · View interactive version

Documentation generation is an AI agent skill from the GitHub repository kumaran-is/claude-code-onboarding. 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.

How to use this skill

Skill file

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

References

| File | Content | Load When |

|------|---------|-----------|

| references/readme-templates.md | Stack-specific README templates for Java/Spring, NestJS, Python FastAPI, Flutter | Writing README for Java, NestJS, Python, or Flutter project |

| references/docstring-patterns.md | Javadoc, JSDoc, Python Google-style, Dart /// patterns with examples | Writing Javadoc, JSDoc, Python docstrings, Dart doc comments |

| references/cicd-doc-pipeline.md | GitHub Actions workflow for auto-doc generation + Redocly + GitHub Pages | Setting 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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.