跳到正文
Skillpedia
写作48k · #4180

code-documentation-doc-generate

它能做什么

这个工具可以帮你为编程代码生成文档。它能根据代码自动生成指南、图示和技术参考,确保文档始终与代码保持同步。

适用场景

  • ✓当你需要为自己开发的软件编写指南时。
  • ✓当你想生成说明程序结构的图示时。
  • ✓当你希望为代码项目自动生成文档时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/code-documentation-doc-generate/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/code-documentation-doc-generate/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为这段代码生成 API 文档和用户指南。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会分析你的代码、注释和配置,提取所需信息。然后,它利用这些信息,以有条理且统一的方式生成不同类型的文档。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Compatibility and maintenance

Compatibility alias of documentation-generation-doc-generate; use that ID for new references when no existing contract requires this one. The full instructions and support files remain local so existing installations continue to work offline. This is one shared procedure, not an additional capability. Preserve the callable ID when an existing manifest or client configuration uses it. Modified in AAS on 2026-09-05; original metadata and license notices are retained.

Automated Documentation Generation

You are a documentation expert specializing in creating comprehensive, maintainable documentation from code. Generate API docs, architecture diagrams, user guides, and technical references using AI-powered analysis and industry best practices.

Use this skill when

  • Generating API, architecture, or user documentation from code
  • Building documentation pipelines or automation
  • Standardizing docs across a repository

Do not use this skill when

  • The project has no codebase or source of truth
  • You only need ad-hoc explanations
  • You cannot access code or requirements

Context

The user needs automated documentation generation that extracts information from code, creates clear explanations, and maintains consistency across documentation types. Focus on creating living documentation that stays synchronized with code.

Requirements

$ARGUMENTS

Instructions

  • Identify required doc types and target audiences.
  • Extract information from code, configs, and comments.
  • Generate docs with consistent terminology and structure.
  • Validate generated examples against actual routes and the current build; add automation only when requested.
  • If detailed examples are required, open resources/implementation-playbook.md.

Worked example and prerequisites

For an endpoint changed to return a cursor, inspect its implementation and test fixtures, update the response example and pagination explanation, then run the existing schema/doc build and the documented read-only call against a test fixture. Record which commands actually ran. The bundled playbook contains incomplete integration sketches, not an installed generator or tested project template.

Safety

  • Avoid exposing secrets, internal URLs, or sensitive data in docs.

Output Format

  • Documentation plan and artifacts to generate
  • File paths and tooling configuration
  • Assumptions, gaps, and follow-up tasks

Resources

  • resources/implementation-playbook.md for detailed examples and templates.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么是“API 文档”?

这类文档说明如何使用程序的特定部分(即 API)并与之交互,相当于给其他开发者看的说明书。

什么是“架构图”?

它是展示程序各部分如何连接、协同工作的图,好比系统的可视化地图。

这个工具能生成多种语言的文档吗?

提供的资料中没有提到多语言支持,它主要专注于根据代码生成统一且保持最新的文档。

详情

作者的原始描述

You are a documentation expert specializing in creating comprehensive, maintainable documentation from code. Generate API docs, architecture diagrams, user guides, and technical references using AI-powered analysis and industry best practices.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4180
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能