
docs-specialist
Documentation generator that keeps docs in sync with code and flags drift from source.
- version
- 1.0.0
- GitHub stars
- 36
What it does
- Adds 5 commands (
/docs,/doctor,/init,/sync,/template) and adocs-specialistagent with a companion skill - Validates existing docs against source, auto-generates content from code patterns, and syncs outdated sections
- Provides reusable documentation templates so output stays consistent across a project
- Designed for teams that want documentation kept current with the codebase as it changes
Generate and maintain documentation from code with drift detection. Validates docs against source, auto-generates from code patterns, syncs outdated content, and provides reusable templates for consistent documentation.
Add marketplace
/plugin marketplace add mwguerra/claude-code-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install docs-specialist@mwguerra-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDocumentation 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:
- Scan code files (routes, models, components, services)
- Extract structure (classes, functions, signatures)
- Parse existing comments (JSDoc, docstrings)
- Apply appropriate template
- Generate formatted documentation
2. Docs-to-Code Sync Detection
Compare documentation against code to find discrepancies:
| Status | Symbol | Meaning |
|---|---|---|
| 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:
| Template | Use For |
|---|---|
readme | Project README |
api-endpoint | REST API endpoint |
component | UI component |
model | Database model |
service | Service class |
guide | How-to guide |
architecture | Architecture decision record |
changelog | Release changelog |
Commands
| Command | Purpose |
|---|---|
/docs-specialist:docs | Validate, generate, update, and check status |
/docs-specialist:sync | Detect and fix drift between docs and code |
/docs-specialist:template | List, view, and apply documentation templates |
/docs-specialist:init | Create documentation folder structure |
/docs-specialist:doctor | Diagnose 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:
- Parse file structure (AST when possible)
- Extract public interfaces first
- Include type information
- Find usage examples in tests
- Respect existing documentation comments
Sync Detection Approach
When comparing docs to code:
- Build inventory of documented items
- Build inventory of code items
- Match by name/path/signature
- Categorize matches (exact, partial, missing)
- 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
From the mwguerra/claude-code-plugins README
mwguerra Claude Code Plugins
A collection of Claude Code plugins for development workflows.
Installation
# Add the marketplace
/plugin marketplace add mwguerra/claude-code-plugins
# Browse and install plugins
/plugin
Available Plugins
article-writer
Create publication-ready technical articles with author voice profiles, web research, runnable code examples, and multi-language output. Supports interactive single-article creation or autonomous batch processing.
/plugin install article-writer@mwguerra-marketplace
code
Production readiness toolkit with code cleanup, comprehensive analysis, and automated testing. Removes debug artifacts for clean commits, runs Pest and Playwright tests, and prepares apps for deployment.
/plugin install code@mwguerra-marketplace
docs-specialist
Generate and maintain documentation from code with drift detection. Validates docs against source, auto-generates from code patterns, syncs outdated content, and provides reusable templates.
/plugin install docs-specialist@mwguerra-marketplace
docker-local
Expert agent for docker-local (mwguerra/docker-local) Laravel Docker development environment. Manages Docker services, diagnoses issues, checks project conflicts, handles database operations, and troubleshoots environment setup.
/plugin install docker-local@mwguerra-marketplace
docker-specialist
Docker and Docker Compose expert with complete documentation. Generates Dockerfiles, compose configs, database containers, SSL/TLS setup with Traefik or Nginx, and provides troubleshooting.
/plugin install docker-specialist@mwguerra-marketplace
e2e-test-specialist
Comprehensive E2E testing using Playwright MCP. Creates detailed test plans, tests all pages for errors, verifies user flows by role, and runs visual browser tests with full coverage.
/plugin install e2e-test-specialist@mwguerra-marketplace
filament-specialist
Expert FilamentPHP v4 assistant with complete official documentation. Generates resources, forms, tables, actions, widgets, infolists, and Pest tests following v4 patterns.
/plugin install filament-specialist@mwguerra-marketplace
laravel-filament-package-development-specialist
Scaffold and develop Laravel packages and Filament plugins with full testing support. Creates package structure, configures Pest testing, sets up GitHub Actions CI.
/plugin install laravel-filament-package-development-specialist@mwguerra-marketplace
post-development
App launch preparation toolkit with SEO analysis, automated screenshots, buyer persona creation, social media ad generation, technical article writing, and landing page proposals.
/plugin install post-development@mwguerra-marketplace
taskmanager
Plan and execute tasks from PRDs with hierarchical subtasks, dependency tracking, and project memories. Features dashboard visualization, autonomous batch execution, and persistent memory.
/plugin install taskmanager@mwguerra-marketplace
terminal-specialist
Terminal and shell systems expert with comprehensive documentation. Covers TTY/PTY architecture, stdin/stdout/stderr streams, signals, ANSI escape sequences, job control, and terminal modes.
/plugin install terminal-specialist@mwguerra-marketplace
test-specialist
Proactive Pest 4 testing for PHP, Laravel, Livewire, and Filament apps. Auto-generates tests for models, controllers, policies, and Livewire components. Analyzes coverage gaps.
/plugin install test-specialist@mwguerra-marketplace
obsidian-vault
Manage an Obsidian vault as your development knowledge base and automatic work journal. Auto-captures commits, tasks, and Claude Code components with structured frontmatter.
/plugin install obsidian-vault@mwguerra-marketplace
error-memory
Intelligent error tracking and solution recall system. Learns from every error you solve, providing instant access to past solutions with multi-level matching and confidence scores.
/plugin install error-memory@mwguerra-marketplace
prd-builder
Interactive PRD (Product Requirements Document) builder with comprehensive interview-driven discovery, gap analysis, and taskmanager integration.
/plugin install prd-builder@mwguerra-marketplace
my-workflow
Personal workflow management combining assistant, secretary, and executive roles. Tracks sessions, commitments, decisions, and goals. Integrates with GitHub and Obsidian vault. Provides intelligent briefings and productivity insights.
/plugin install my-workflow@mwguerra-marketplace
Reinstall Script
If you need to completely reinstall all marketplace plugins (useful after updates or to fix issues), add this script to ~/.claude/reinstall_marketplace.sh:
#!/bin/bash
# Delete marketplaces cleanup script
# Removes marketplace plugins and related configuration
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "Cleaning up marketplace plugins..."
# Delete installed_plugins.json
if [ -f "$SCRIPT_DIR/plugins/installed_plugins.json" ]; then
rm "$SCRIPT_DIR/plugins/installed_plugins.json"
echo "Deleted: plugins/installed_plugins.json"
else
echo "Not found: plugins/installed_plugins.json"
fi
# Delete marketplaces folder
if [ -d "$SCRIPT_DIR/plugins/marketplaces" ]; then
rm -rf "$SCRIPT_DIR/plugins/marketplaces"
echo "Deleted: plugins/marketplaces/"
else
echo "Not found: plugins/marketplaces/"
fi
if [ -d "$SCRIPT_DIR/plugins/cache" ]; then
rm -rf "$SCRIPT_DIR/plugins/cache"
echo "Deleted: plugins/cache/"
else
echo "Not found: plugins/cache/"
fi
# Remove enabledPlugins from settings.json using jq or sed
if [ -f "$SCRIPT_DIR/settings.json" ]; then
if command -v jq &> /dev/null; then
# Use jq if available
jq 'del(.enabledPlugins)' "$SCRIPT_DIR/settings.json" > "$SCRIPT_DIR/settings.json.tmp" && \
mv "$SCRIPT_DIR/settings.json.tmp" "$SCRIPT_DIR/settings.json"
echo "Removed enabledPlugins from settings.json"
else
# Fallback to Python if jq not available
python3 -c "
import json
with open('$SCRIPT_DIR/settings.json', 'r') as f:
data = json.load(f)
if 'enabledPlugins' in data:
del data['enabledPlugins']
with open('$SCRIPT_DIR/settings.json', 'w') as f:
json.dump(data, f, indent=2)
f.write('\n')
"
echo "Removed enabledPlugins from settings.json"
fi
else
echo "Not found: settings.json"
fi
# Function to reinstall a marketplace and all its plugins
reinstall_marketplace() {
local marketplace_name="$1"
local marketplace_repo="$2"
local marketplace_dir="$SCRIPT_DIR/plugins/marketplaces/$marketplace_name"
echo "Reinstalling marketplace: $marketplace_name"
claude plugin marketplace remove "$marketplace_name"
claude plugin marketplace add "$marketplace_repo"
if [ -d "$marketplace_dir" ]; then
echo "Installing plugins from $marketplace_name..."
for plugin_dir in "$marketplace_dir"/*/; do
local plugin_name=$(basename "$plugin_dir")
# Skip hidden directories (like .git, .claude-plugin)
if [[ "$plugin_name" != .* ]]; then
echo "Installing: $plugin_name@$marketplace_name"
claude plugin install "$plugin_name@$marketplace_name"
fi
done
else
echo "Error: Marketplace directory not found at $marketplace_dir"
return 1
fi
}
# Reinstall marketplaces
reinstall_marketplace "mwguerra-marketplace" "mwguerra/claude-code-plugins"
# Make all .sh files executable in plugins directory
echo "Making .sh files executable in plugins directory..."
find "$SCRIPT_DIR/plugins" -name "*.sh" -type f -exec chmod +x {} \;
echo "Done setting permissions."
echo "Done!"
Usage:
# Make executable
chmod +x ~/.claude/reinstall_marketplace.sh
# Run to reinstall all plugins
~/.claude/reinstall_marketplace.sh
Requirements
- Claude Code
License
MIT
Details
- Marketplace
- mwguerra/claude-code-plugins
- Source
- docs-specialist
- Category
- Documentation
- Keywords
- documentation, docs, technical-writing, code-to-docs, sync, drift-detection, templates, validation, generation, markdown
- Listed since
- Apr 7, 2026
More from mwguerra/claude-code-plugins
All 18- e2e-test-specialistv2.7.0
- error-memoryv1.0.0
- filament-specialistv1.0.0
- laravel-filament-package-development-specialistv1.0.0
- obsidian-vaultv1.0.0
- post-developmentv1.0.0
- prd-builderv1.0.0
- reverb-specialistv1.0.0
- secretaryv1.0.0
- taskmanagerv1.0.0
- terminal-specialistv1.0.0
- test-specialistv1.0.0
- article-writerv1.0.0
- boardv1.0.0
- codev1.0.0
- docker-localv1.0.0
- docker-specialistv1.0.0
Similar to docs-specialist
More Technical Documentation
documentation-generatorPlugindavila7/claude-code-templates24.2K starsAutomated documentation generation with API docs, technical writing, and content management
code-documentationPluginwshobson/agents42.8K starsDocumentation generation, code explanation, and technical writing with automated doc generation and tutorial creation
doc-genSkillruvnet/ruflo744 installsDocumentation generator that detects drift between code and docs and schedules recurring maintenance runs.
scribePluginathola/claude-night-market350 starsDocumentation review, cleanup, and generation with AI slop detection, style learning, and human-quality writing enforcement
ruflo-docsPluginruvnet/ruflo82.2K starsDocumentation generation, drift detection, and API docs automation
documentation-toolkitPluginarmanzeroeight/fastagent-plugins29 starsComprehensive documentation toolkit for README generation, API documentation, and changelog management. Includes docs architect agent for strategic documentatio