Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

docs-specialist文档专家

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

447

周安装

19

GitHub Stars

29

下载量

157
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:docs-specialist(文档专家)
来源仓库:https://github.com/mwguerra/claude-code-plugins
仓库路径:skills/docs-specialist
安装命令:
npx skills add https://github.com/mwguerra/claude-code-plugins --skill docs-specialist
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mwguerra/claude-code-plugins --skill docs-specialist

简介

提供代码到文档转换、漂移检测与质量验证等专业技术服务。

  • 支持从 routes、models、components 等文件自动提取结构信息。
  • 内置模板引擎确保术语一致性与格式标准化输出。
  • 需先查阅 documentation-patterns.md 参考文件确定写作规范。
  • 重点在于维持文档与实现的一致性而非内容创作本身。

SKILL.md

Documentation Specialist Skill

Overview

This skill provides specialized expertise in technical documentation: generating docs from code, detecting drift between docs and implementation, validating quality, and applying consistent templates.

Documentation Reference

CRITICAL: Before working on documentation tasks, consult:

  • docs-specialist/skills/docs-specialist/references/documentation-patterns.md

Expertise Areas

1. Code-to-Docs Generation

Analyze source code and generate documentation automatically:

Process:

  1. Scan code files (routes, models, components, services)
  2. Extract structure (classes, functions, signatures)
  3. Parse existing comments (JSDoc, docstrings)
  4. Apply appropriate template
  5. Generate formatted documentation

2. Docs-to-Code Sync Detection

Compare documentation against code to find discrepancies:

StatusSymbolMeaning
ImplementedCode matches documentation exactly
Partial⚠️Code exists but differs from docs
Not ImplementedDocumented but missing in code
Undocumented📝In code but not documented

3. Documentation Validation

Check quality, accuracy, and completeness:

  • Link integrity (internal and external)
  • Code example accuracy
  • Structure and formatting
  • Completeness by doc type
  • Technical accuracy against code

4. Template System

Apply consistent templates for different documentation types:

TemplateUse For
readmeProject README
api-endpointREST API endpoint
componentUI component
modelDatabase model
serviceService class
guideHow-to guide
architectureArchitecture decision record
changelogRelease changelog

Commands

CommandPurpose
/docs-specialist:docsValidate, generate, update, and check status
/docs-specialist:syncDetect and fix drift between docs and code
/docs-specialist:templateList, view, and apply documentation templates
/docs-specialist:initCreate documentation folder structure
/docs-specialist:doctorDiagnose and fix documentation issues

See each command's file for full syntax and options.

Working Principles

Accuracy First

  • Always verify against source code
  • Test code examples before documenting
  • Flag assumptions or uncertainties
  • Update immediately when code changes

Code Analysis Approach

When analyzing code for documentation:

  1. Parse file structure (AST when possible)
  2. Extract public interfaces first
  3. Include type information
  4. Find usage examples in tests
  5. Respect existing documentation comments

Sync Detection Approach

When comparing docs to code:

  1. Build inventory of documented items
  2. Build inventory of code items
  3. Match by name/path/signature
  4. Categorize matches (exact, partial, missing)
  5. Detail differences for partial matches

Documentation Standards

File Organization

docs/
├── README.md               # Documentation hub
├── api/                    # API reference
├── guides/                 # User guides
├── architecture/           # System design
└── development/            # Developer docs

Markdown Conventions

  • ATX-style headers (#)
  • Code blocks with language specification
  • Relative links for internal references
  • One sentence per line (for diffs)

Code Examples

  • Complete, runnable examples
  • Include imports/setup
  • Show expected output
  • Highlight key lines

Tool-Specific Files

Keep these in their original locations (DO NOT move to /docs):

  • CLAUDE.md - Root directory
  • .claude/commands/*.md - Command definitions
  • .claude/agents/*.md - Agent definitions
  • .cursorrules - Cursor AI configuration

Version Control

  • Use conventional commits: docs: description
  • Link doc commits to code commits when related
  • Group related documentation updates

Quality Checklist

Before considering documentation complete:

  • All code examples tested and working
  • Technical accuracy confirmed against code
  • Links valid and correct
  • Formatting consistent
  • Procedures complete and actionable
  • Sync check passes
  • Validation score above threshold

Common Workflows

"I wrote new code, need docs"

/docs-specialist:docs generate <path>

"I changed code, update docs"

/docs-specialist:sync check
/docs-specialist:sync fix

"Audit documentation quality"

/docs-specialist:docs validate
/docs-specialist:sync check

"Set up docs for new project"

/docs-specialist:init
/docs-specialist:docs generate all

"Pre-release check"

/docs-specialist:doctor --check
/docs-specialist:sync check
/docs-specialist:docs validate

Success Metrics

Excellent documentation is:

  • Accurate - Reflects current code reality
  • Complete - Covers all necessary topics
  • In Sync - No drift from implementation
  • Clear - Easy to understand
  • Maintainable - Easy to update
  • Actionable - Readers can accomplish goals

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.77%
按下载量换算51

Claude

31.75%
按下载量换算50

Cursor

19.6%
按下载量换算31

Gemini CLI

9.66%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills