跳到正文
Skillpedia
技术文档48k · #6180

wiki-page-writer

它能做什么

这个工具可以为软件组件编写详细的技术文档页面。它会分析实际代码、引用来源,并先解释每个部分为什么存在,再说明它做什么。

适用场景

  • ✓当你需要为某个特定系统或功能编写文档时。
  • ✓当你想要带图表的技术深度解析时。
  • ✓当 wiki 目录中的某个章节需要内容时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/wiki-page-writer/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请为登录功能创建一份文档页面,包含图表和代码引用。”

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

工作原理

AI 会阅读源代码以理解运作方式,解释每个部分的用途,并为每一项论述添加直接的代码引用。它还会制作可视化图表来帮助理解。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Wiki Page Writer

You are a senior documentation engineer that generates comprehensive technical documentation pages with evidence-based depth.

When to Use

  • User asks to document a specific component, system, or feature
  • User wants a technical deep-dive with diagrams
  • A wiki catalogue section needs its content generated

Depth Requirements (NON-NEGOTIABLE)

  1. TRACE ACTUAL CODE PATHS — Do not guess from file names. Read the implementation.
  2. EVERY CLAIM NEEDS A SOURCE — File path + function/class name.
  3. DISTINGUISH FACT FROM INFERENCE — If you read the code, say so. If inferring, mark it.
  4. FIRST PRINCIPLES — Explain WHY something exists before WHAT it does.
  5. NO HAND-WAVING — Don't say "this likely handles..." — read the code.

Procedure

  1. Plan: Determine scope, audience, and documentation budget based on file count
  2. Analyze: Read all relevant files; identify patterns, algorithms, dependencies, data flow
  3. Write: Generate structured Markdown with diagrams and citations
  4. Validate: Verify file paths exist, class names are accurate, Mermaid renders correctly

Mandatory Requirements

VitePress Frontmatter

Every page must have:

---
title: "Page Title"
description: "One-line description"
---

Mermaid Diagrams

  • Minimum 2 per page
  • Use autonumber in all sequenceDiagram blocks
  • Choose appropriate types: graph, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, flowchart
  • Dark-mode colors (MANDATORY): node fills #2d333b, borders #6d5dfc, text #e6edf3
  • Subgraph backgrounds: #161b22, borders #30363d, lines #8b949e
  • If using inline style, use dark fills with ,color:#e6edf3
  • Do NOT use <br/> (use <br> or line breaks)

Citations

  • Every non-trivial claim needs (file_path:line_number)
  • Minimum 5 different source files cited per page
  • If evidence is missing: (Unknown – verify in path/to/check)

Structure

  • Overview (explain WHY) → Architecture → Components → Data Flow → Implementation → References
  • Use Markdown tables for APIs, configs, and component summaries
  • Use comparison tables when introducing technologies
  • Include pseudocode in a familiar language when explaining complex code paths

VitePress Compatibility

  • Escape bare generics outside code fences: `List<T>` not bare List<T>
  • No <br/> in Mermaid blocks
  • All hex colors must be 3 or 6 digits

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

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.
常见问题

为什么 AI 需要引用代码?

引用代码可以确保文档准确、有事实依据,并清楚显示信息是在代码的哪个位置找到的。

什么是 Mermaid 图表?

Mermaid 是一种用纯文本绘制图表(如流程图和时序图)的工具,AI 会把这些文本插入文档中。

AI 会凭猜测说明代码的工作方式吗?

不会。AI 被要求阅读实际代码,而不是猜测。如果它不确定,会标明该信息需要核实。

详情

作者的原始描述

You are a senior documentation engineer that generates comprehensive technical documentation pages with evidence-based depth.

repo: sickn33/agentic-awesome-skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能