界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
文档与办公 · SKILL.md

documentation-generation

documentation-generation

【文档与办公】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.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: documentation-generation description: "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." allowed-tools: Read, Grep, Glob, Bash, Write, Edit metadata: triggers: README, docstring, documentation, API docs, JSDoc, JavaDoc, doc generation, documentation pipeline related-skills: openapi-spec-generation, changelog-generator, architecture-decision-records domain: workflow role: specialist scope: design output-format: document last-reviewed: "2026-03-15"

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.

我的收藏