md-docs▌
paulrberg/agent-skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Manage project documentation for Claude Code workflows including context files, READMEs, and agent instructions. This skill provides structured automation for maintaining accurate, up-to-date documentation that aligns with actual codebase structure and functionality. Use this skill when initializing new projects, updating existing documentation, or ensuring context files accurately reflect current code.
Markdown Documentation Management
Overview
Manage project documentation for Claude Code workflows including context files, READMEs, and agent instructions. This skill provides structured automation for maintaining accurate, up-to-date documentation that aligns with actual codebase structure and functionality. Use this skill when initializing new projects, updating existing documentation, or ensuring context files accurately reflect current code.
The skill emphasizes verification and validation over blind generation—analyze the actual codebase structure, file contents, and patterns before creating or updating documentation. All generated content should be terse, imperative, and expert-to-expert rather than verbose or tutorial-style.
Prerequisites
Before using any documentation workflow, verify basic project structure:
git rev-parse --git-dir
Ensure the output confirms you are in a git repository. If not initialized, documentation workflows may still proceed but git-specific features will be skipped.
For update workflows, verify target files exist:
ls -la CLAUDE.md AGENTS.md DOCS.md README.md CONTRIBUTING.md
Check which files are present before attempting updates. Missing files will show errors, which helps identify what needs initialization. Note that DOCS.md is optional and only relevant for projects with APIs or public interfaces. CONTRIBUTING.md is optional and only relevant if the repo already defines contribution guidance.
Update Context Files
Verify and fix AGENTS.md, and optionally DOCS.md and CONTRIBUTING.md against the actual codebase. CLAUDE.md is a symlink to AGENTS.md and does not need separate processing. This workflow reads existing context files, analyzes the codebase structure, identifies discrepancies, and updates documentation to match reality. DOCS.md and CONTRIBUTING.md are only processed if they exist in the repository.
Workflow Steps
Parse Arguments
Support the following arguments:
--dry-run: Show what would change without writing files--preserve: Keep existing content structure, only fix inaccuracies--thorough: Perform deep analysis of all files (slower but comprehensive)--minimal: Quick verification focusing on high-level structure only
Verify Git Repository
Confirm working directory is a git repository. If not, warn the user but proceed with limitations (cannot analyze git history or branches).
Read Existing Context Files
Read current AGENTS.md, DOCS.md, and CONTRIBUTING.md (if present) contents. CLAUDE.md is a symlink to AGENTS.md and does not need a separate read:
cat AGENTS.md
cat DOCS.md # if exists
cat CONTRIBUTING.md # if exists
Parse the structure and extract documented information including:
- Project description and purpose
- File structure and organization
- Build and test commands
- Custom tooling or scripts
- Agent configurations and triggers
- API endpoints and methods (from DOCS.md)
- Function signatures and parameters (from DOCS.md)
- Type definitions and interfaces (from DOCS.md)
- Contribution workflow and guidelines (from CONTRIBUTING.md)
- Code review process and standards (from CONTRIBUTING.md)
Analyze Codebase
Scan the project to gather accurate information:
- Directory structure (
ls -la,treeif available) - Package configuration (
package.json,pyproject.toml,Cargo.toml, etc.) - Build scripts and commands
- Test frameworks and configurations
- README badges and metadata
For --thorough mode, also analyze:
- File content patterns (imports, exports, interfaces)
- Code organization conventions
- Dependency relationships
Identify Discrepancies
Compare documented information against actual codebase:
- Outdated file paths or structure
- Incorrect build commands
- Missing or removed features
- Deprecated dependencies
- Stale agent configurations
- Outdated API endpoints or routes (DOCS.md)
- Changed function signatures (DOCS.md)
- Modified type definitions (DOCS.md)
- Outdated contribution guidelines (CONTRIBUTING.md)
- Stale branch naming or PR process (CONTRIBUTING.md)
- Missing
CLAUDE.mdsymlink (should point toAGENTS.md)
Create Backups
Before overwriting, create backup files. CLAUDE.md is a symlink to AGENTS.md and does not need a separate backup:
cp AGENTS.md AGENTS.md.backup
test -f DOCS.md && cp DOCS.md DOCS.md.backup
test -f CONTRIBUTING.md && cp CONTRIBUTING.md CONTRIBUTING.md.backup
Update Context Files
Write corrected versions maintaining the existing structure when --preserve is used, or reorganizing for clarity when not. Ensure the CLAUDE.md symlink exists (ln -sf AGENTS.md CLAUDE.md). For --dry-run, display the diff without writing:
diff -u AGENTS.md.backup AGENTS.md
Generate Report
Display a summary of changes.
When DOCS.md exists:
✓ Updated AGENTS.md
- Fixed outdated build command
- Added new /api directory to structure
- Updated test-runner trigger pattern
✓ Updated DOCS.md
- Fixed outdated endpoint path /api/v1/users
- Updated function signature for createUser()
✓ Updated CONTRIBUTING.md
- Updated branch naming convention
- Fixed outdated PR template reference
✓ CLAUDE.md symlink verified
When optional files are absent:
✓ Updated AGENTS.md
- Fixed outdated build command
✓ CLAUDE.md symlink verified
⊘ DOCS.md not found (skipped)
⊘ CONTRIBUTING.md not found (skipped)
For the complete update context files workflow with verification strategies, diff examples, and edge cases, refer to references/update-agents.md.
Update README
Generate or update README.md based on project structure, package metadata, and codebase analysis. This workflow creates comprehensive, accurate READMEs that reflect the actual state of the project.
Workflow Steps
Parse Arguments
Support the following arguments:
--dry-run: Preview README content without writing--preserve: Keep existing sections, only update outdated information--minimal: Generate minimal README (title, description, installation, usage)--full: Generate comprehensive README with all optional sections
Analyze Project Structure
Gather information from multiple sources:
# Package metadata
cat package.json
cat pyproject.toml
cat Cargo.toml
# Git information
git remote get-url origin
git describe --tags
# Directory structure
ls -la
Extract:
- Project name and description
- Version number
- Repository URL
- License
- Dependencies
- Scripts/commands
Read Existing README
If README.md exists and --preserve is used:
cat README.md
Parse existing sections to preserve custom content while updating technical details.
Read CONTRIBUTING.md (Optional)
If CONTRIBUTING.md exists, read it and treat it as the source of truth for contribution guidance. Do not duplicate detailed contribution steps in README; link to CONTRIBUTING.md instead.
test -f CONTRIBUTING.md && cat CONTRIBUTING.md
Create Backup
Before overwriting existing README:
cp README.md README.md.backup
Generate README Content
Create structured content with appropriate sections:
- Title and badges (version, license, build status)
- Description (concise project summary)
- Installation (package manager commands)
- Usage (basic examples)
- Development (build, test, lint commands)
- Contributing (if applicable; link to CONTRIBUTING.md when it exists)
- License (based on package metadata)
For --minimal mode, include only title, description, installation, and usage.
For --full mode, also include:
- API documentation
- Examples directory listing
- Deployment instructions
- Troubleshooting section
- Credits and acknowledgments
Write README
Save the generated content. For --dry-run, display without writing.
Generate Report
Display summary:
✓ Updated README.md
- Added installation section
- Updated build commands to match package.json
- Added badges for license and version
For the complete update README workflow with section templates, metadata extraction strategies, and formatting examples, refer to references/update-readme.md.
Update CONTRIBUTING
Update CONTRIBUTING.md based on current codebase tooling and workflows. This workflow only runs when CONTRIBUTING.md already exists in the repository. If CONTRIBUTING.md is absent, skip this workflow entirely—do not auto-create contribution guidelines.
Prerequisite Check
Before proceeding, verify the file exists:
test -f CONTRIBUTING.md && echo "exists" || echo "missing"
If missing, report to the user and stop. Do not create CONTRIBUTING.md unless explicitly requested.
Workflow Steps
Parse Arguments
Support the following arguments:
--dry-run: Show what would change without writing files--preserve: Maximum preservation; only fix broken commands/links--thorough: Deep analysis; verify all links and commands work
Read Existing CONTRIBUTING.md
cat CONTRIBUTING.md
Parse the document structure:
- Section headings and organization
- Code blocks with commands
- URLs and file path references
- Mentioned tooling (test runners, linters, formatters)
Gather Codebase Intelligence
Detect current tooling and compare against documented content:
- Package manager (npm, pnpm, yarn, bun) from lock files
- Available scripts from package.json/Makefile/justfile
- Branch conventions (main vs master)
- Linting/formatting tools in use
Identify Discrepancies
Compare documented information against actual codebase:
- Outdated CLI commands (npm → pnpm)
- Incorrect branch references (master → main)
- Broken links to issue templates or docs
- Stale tooling references (Jest → Vitest)
Update Content
Fix technical inaccuracies while preserving:
- Contribution policies (CLA, DCO, licensing)
- Review processes and expectations
- Code of conduct references
- Governance decisions
Generate Report
Display summary:
✓ Updated CONTRIBUTING.md
- Fixed package manager: npm → pnpm
- Corrected branch reference: master → main
- Updated test command
⊘ Policy sections preserved (CLA, review process)
For the complete update CONTRIBUTING workflow with verification strategies and examples, refer to references/update-contributing.md.
Initialize Context
Create project-specific AGENTS.md from scratch based on codebase analysis. This workflow is ideal for new projects or repositories lacking context documentation.
Workflow Steps
Parse Arguments
Support the following arguments:
--dry-run: Preview generated content without writing--minimal: Create minimal context file (project description, structure)--full: Create comprehensive context file with all relevant sections
Verify No Existing AGENTS.md
Check if AGENTS.md already exists:
test -f AGENTS.md && echo "exists" || echo "missing"
If exists, warn the user and suggest using the update workflow instead. Allow override with --force flag.
Analyze Project
Gather comprehensive information:
- Language and framework (detect from files and package configs)
- Directory structure and organization patterns
- Build system (npm, cargo, poetry, gradle, etc.)
- Test framework (jest, pytest, cargo test, etc.)
- Linting and formatting tools
- Environment variables or configuration files
Generate AGENTS.md Content
Create structured sections:
# Context
Brief project description and purpose.
## Structure
Directory organization and key files.
## Build
Commands for building the project.
## Test
Commands for running tests.
## Development
Conventions, patterns, and workflows.
Adapt sections based on project type. For --minimal, include only Context and Structure. For --full, add all applicable sections including deployment, troubleshooting, and custom tooling.
Write AGENTS.md
Save generated content and create CLAUDE.md symlink (ln -sf AGENTS.md CLAUDE.md). For --dry-run, display without writing.
Generate Report
Display summary:
✓ Created AGENTS.md
- Detected Next.js project
- Added npm scripts from package.json
- Documented project structure
- Added testing section for Jest
✓ Created CLAUDE.md symlink
For the complete initialize context workflow with language-specific templates, detection strategies, and customization options, refer to references/init-agents.md.
DOCS.md Initialization
DOCS.md is optional and not created by default. Create DOCS.md manually when the project has:
- Public API endpoints requiring documentation
- Exported functions or classes intended for external use
- Complex type definitions users need to understand
The update context workflow will suggest creating DOCS.md if it detects significant APIs without corresponding documentation.
Additional Resources
For detailed workflows, examples, and implementation guidance, refer to these reference documents:
references/common-patterns.md- Argument parsing, backup handling, writing style, report formatting, file detection, and metadata extractionreferences/update-agents.md- Complete context file update workflow including verification strategies, diff generation, and discrepancy detectionreferences/update-readme.md- Complete README update workflow including section templates, metadata extraction, and formatting conventionsreferences/update-contributing.md- Complete CONTRIBUTING.md update workflow including scope, templates, and validation (only when CONTRIBUTING.md exists)references/init-agents.md- Complete context initialization workflow including language-specific templates, detection strategies, and customization options
These references provide implementation details, code examples, and troubleshooting guidance for each workflow type.
How to use md-docs on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add md-docs
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches md-docs from GitHub repository paulrberg/agent-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate md-docs. Access the skill through slash commands (e.g., /md-docs) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★41 reviews- ★★★★★Sophia Dixit· Dec 28, 2024
Solid pick for teams standardizing on skills: md-docs is focused, and the summary matches what you get after install.
- ★★★★★Oshnikdeep· Dec 16, 2024
We added md-docs from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Xiao Singh· Dec 12, 2024
md-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Hana Rao· Dec 8, 2024
Useful defaults in md-docs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Hana Flores· Nov 27, 2024
I recommend md-docs for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Kiara Bansal· Nov 19, 2024
md-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Ganesh Mohane· Nov 7, 2024
md-docs fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Min Torres· Nov 7, 2024
Keeps context tight: md-docs is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Sofia Kapoor· Nov 3, 2024
Solid pick for teams standardizing on skills: md-docs is focused, and the summary matches what you get after install.
- ★★★★★Rahul Santra· Oct 26, 2024
md-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 41