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

documentation-generation-doc-generate

它能做什么

这个工具可以根据项目的代码生成技术文档。它能生成使用指南、图表和参考手册,并让所有内容与代码保持同步更新。

适用场景

  • ✓需要为一个软件项目编写文档时。
  • ✓想要创建用户指南或技术参考手册时。
  • ✓希望通过自动化生成文档,保持文档风格一致时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“为这个项目生成 API 文档,包括一份用户指南和一张架构图。”

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

工作原理

这个工具会分析你的代码、注释和配置文件,提取所需的信息。然后,它把这些信息整理成不同类型的文档,确保用词统一,并遵循清晰的结构。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Compatibility and maintenance

Primary editorial path for this compatibility group. 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.
常见问题

什么是“活文档”(living documentation)?

活文档指的是会随着代码变化自动更新的文档,确保文档永远不会过时。

如果我的项目没有代码,能用这个工具吗?

不能。这个工具需要源代码来提取信息并生成文档。

这个工具会泄露代码中的敏感信息吗?

不会。这个工具在设计上会避免在生成的文档中暴露密钥、内部网址或其他敏感数据。

详情

作者的原始描述

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
排名
#4483
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能