跳到正文
FunCoding

doc-writer

Generate README, API docs, or user guides for code and projects. Use when writing documentation, creating a README, documenting an API, or explaining how code works for others.

Star
505
最近提交
2026年4月22日

electron/skills/doc-writer/SKILL.md

在 GitHub 上查看

Doc Writer: Generate Documentation

Create clear, well-structured documentation for the specified code, project, or topic.

Process

Step 1: Understand the Target

  • If a file/project path is given, read the code first using Read/Glob tools
  • Identify the audience (developers, end users, API consumers)
  • Understand the scope (single function, module, full project)

Step 2: Generate Documentation

Choose the appropriate format:

For a Project (README)

  • Project name and one-line description
  • Features list
  • Quick start / installation instructions
  • Usage examples with code blocks
  • Configuration options (if any)
  • License info

For an API / Module

  • Overview of what it does
  • Function/method signatures with parameter descriptions
  • Return values and error cases
  • Usage examples for common scenarios
  • Edge cases or important notes

For a User Guide

  • Step-by-step instructions
  • Common workflows
  • FAQ / troubleshooting section

Writing Style

  • Lead with the most important information
  • Use code examples liberally — show, don't just tell
  • Keep sentences short and scannable
  • Use tables for parameter/option lists
  • Use admonitions (Note, Warning, Tip) sparingly but effectively
  • Write in the user's language (match their input language)

相似的 Skill

精选

pptx

生成、读取和修改演示文稿,也能合并拆分幻灯片。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

docx

创建和编辑 Word 文档,支持目录、页码、页眉等排版。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

pdf

提取文本和表格、合并拆分、填写表单,也能对扫描件做 OCR。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

doc-coauthoring

按步骤协作撰写技术方案、提案和决策文档,逐轮修改。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

xlsx

读写 Excel 和 CSV,处理公式、格式、图表与数据清洗。

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

canvas-design

按设计理念生成海报和视觉作品,输出 PNG 或 PDF。

ANanthropics/skills203k近 7 天新增 3,333 个 star