doc-writer

GitHub

用于为代码和项目生成清晰、结构化的文档,包括README、API文档和用户指南。通过分析目标受众和范围,提供安装、使用示例及注意事项,确保内容易读且实用。

electron/skills/doc-writer/SKILL.md Qiao-920/claude-desktop-cn

Trigger Scenarios

编写项目 README 创建 API 或模块文档 撰写用户操作指南 解释代码工作原理

Install

npx skills add Qiao-920/claude-desktop-cn --skill doc-writer -g -y
More Options

Non-standard path

npx skills add https://github.com/Qiao-920/claude-desktop-cn/tree/main/electron/skills/doc-writer -g -y

Use without installing

npx skills use Qiao-920/claude-desktop-cn@doc-writer

指定 Agent (Claude Code)

npx skills add Qiao-920/claude-desktop-cn --skill doc-writer -a claude-code -g -y

安装 repo 全部 skill

npx skills add Qiao-920/claude-desktop-cn --all -g -y

预览 repo 内 skill

npx skills add Qiao-920/claude-desktop-cn --list

SKILL.md

Frontmatter
{
    "name": "doc-writer",
    "description": "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."
}

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)

Version History

  • f248671 Current 2026-07-24 11:45

Same Skill Collection

electron/skills/code-review/SKILL.md
electron/skills/create-project/SKILL.md
electron/skills/frontend-design/SKILL.md
electron/skills/skill-creator/SKILL.md
engine/src/skills/bundled/verify/SKILL.md

Metadata

Files
0
Version
f248671
Hash
5857a334
Indexed
2026-07-24 11:45

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 16:29
浙ICP备14020137号-1 $Carte des visiteurs$