mcpbeat Sign in

Generating Docs Agent Skill

Generates README.md and DESIGN.md scaffolds by analyzing module structure. Use when creating documentation templates for new modules. Automatically triggered at module creation.

5k tokens
context cost
the whole folder, loaded on every use
3
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
238
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/telagod/code-abyss --skill generating-docs

The instruction itself

4 sections, as written by the author

造典关卡 · 文档生成器

> 生成的是骨架,不是答案。填决策理由是人的工作,工具不能代劳。

何时使用

| 场景 | 跑 | 理由 |

|------|------|------|

| 新模块创建后第一时间 | ✅ | 趁记忆新鲜填决策 |

| verifying-modules 报「缺 README/DESIGN」 | ✅ | 直接补救 |

| 重构后边界变化 | ⚠ | 看是否要重生成或手动改;不要 --force 覆盖已有内容 |

| 已有完整文档 | ❌ | 不要破坏人工写的内容 |

生成内容

README.md(自动可填部分)

| 字段 | 自动来源 | 待人补 |

|------|----------|--------|

| 模块名 | 目录名 | 是否有更好的展示名 |

| 描述 | 顶级 docstring(Python) | 「存在理由」必须人写 |

| 特性 | TODO(占位) | 列 3–5 个核心能力 |

| 依赖 | requirements.txt / package.json / Cargo.toml 等 | 是否有运行时假设 |

| 使用方法 | TODO(占位) | 5 分钟跑通示例 |

| API 概览 | 公开类/函数签名 | 调用顺序、生命周期 |

| 目录结构 | tree 输出 | — |

DESIGN.md(骨架占位)

| 字段 | 自动 | 待人补(最重要) |

|------|------|------------------|

| 设计目标 / 非目标 | TODO | 核心决策驱动力 |

| 架构 | TODO | 含一张图最好 |

| 核心组件 | 公开类/函数列表 | 各组件的协作关系 |

| 决策表 | TODO | 方案对比 + 选择理由 |

| 技术选型 | 依赖列表 | 选 X 不选 Y 的理由 |

| 权衡 | TODO | 牺牲了什么 |

| 安全考量 | TODO | 信任边界、威胁模型 |

语言支持

| 语言 | 提取深度 |

|------|----------|

| Python | 类、函数、docstring、依赖(最完整) |

| Go / TypeScript / Rust | 目录结构 + 依赖 |

| 其他 | 基础目录结构 |

流程

doc_generator.js 生成骨架
        ↓
人工填 TODO(决策理由、使用示例、非目标)
        ↓
verify-module 校验完整性
        ↓
通过则提交

何时不要 --force

  • 目标文件已有人工内容 —— --force 会无差别覆盖。先 diff 旧版,手动合并。
  • CI 环境 —— 生成应在开发机做,CI 只校验,不生成。

与其他 skill 联动

  • 跑完后 → 必跑 verifying-modules
  • 大模块 → 拆分前先 designing-architectures 想清楚边界

使用

node scripts/doc_generator.js <模块路径>
node scripts/doc_generator.js <模块路径> --force   # 强制覆盖(慎用)
node scripts/doc_generator.js <模块路径> --json    # CI 用

收口

工具给骨架,TODO 不补完不算交付。生成后 5 分钟内人工填决策;超过 1 天会忘原因,文档质量陡降。

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take telagod/generating-docs from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.