MCPInstall

docs-specialist

Specialized documentation writer and reviewer with code-to-docs generation and drift detection

Installs
39
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

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

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads docs-specialist automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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
Implemented✅Code matches documentation exactly
Partial⚠️Code exists but differs from docs
Not Implemented❌Documented 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

FAQ

What does the docs-specialist skill do?

Specialized documentation writer and reviewer with code-to-docs generation and drift detection

How do I install docs-specialist?

Run npx skills add https://github.com/mwguerra/claude-code-plugins --skill docs-specialist in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/docs-specialist/ (personal) or .claude/skills/docs-specialist/ (project).

Which AI agents can use docs-specialist?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is docs-specialist safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains docs-specialist?

It is published by mwguerra in mwguerra/claude-code-plugins. It has 39 recorded installs.

More from mwguerra/claude-code-plugins

View all →

filament-resource

mwguerra/claude-code-plugins

Generate FilamentPHP v4 resources with form, table, relation managers, and actions

1.2K installs

resource

mwguerra/claude-code-plugins

Generate FilamentPHP v4 resources with form, table, relation managers, and actions

214 installs

forms

mwguerra/claude-code-plugins

Create FilamentPHP v4 forms with fields, validation, sections, tabs, and relationships

95 installs

tables

mwguerra/claude-code-plugins

Create FilamentPHP v4 tables with columns, filters, sorting, search, and bulk actions

88 installs

actions

mwguerra/claude-code-plugins

Create FilamentPHP v4 actions with modals, confirmation, forms, and bulk operations

76 installs

widgets

mwguerra/claude-code-plugins

Create FilamentPHP v4 dashboard widgets - stats overviews, charts, and custom components

Data & Databases75 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs