md-docs

Analyze repositories to update documentation files from package manifests and configs.

69|3|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/PaulRBerg/agent-skills --skill md-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-docs
Source: https://github.com/PaulRBerg/agent-skills/tree/main/skills/md-docs
Command: npx skills add https://github.com/PaulRBerg/agent-skills --skill md-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps keep project documentation synchronized with the actual codebase by updating README.md, CLAUDE.md, AGENTS.md, and CONTRIBUTING.md. It reduces drift between documentation and the codebase and minimizes manual editing.

Core Features & Use Cases

  • Detects repository structure, tooling, and workflows from package manifests and config files to generate precise, non-destructive updates.
  • Reads existing context files and applies targeted changes to align with code changes while preserving user-authored sections when requested.
  • Creates backups, provides diff previews (including dry-run mode), and logs what was updated for traceability.

Use cases:

  • Initialize documentation for new projects and maintainers
  • Update context files after refactors or dependency upgrades
  • Audit and correct inconsistencies between code and docs

Quick Start

Use the md-docs skill to update README.md, CLAUDE.md, AGENTS.md, or CONTRIBUTING.md. Start with a dry-run to preview changes: /md-docs:update-readme --dry-run

Frequently Asked Questions about md-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep my README and documentation in sync with code changes?

Documentation drift happens when code evolves but docs don't. This skill analyzes your repository structure, tooling, and dependencies to automatically update README.md, CLAUDE.md, AGENTS.md, and CONTRIBUTING.md, detecting changes from package manifests and config files so docs reflect your actual codebase.

Can I preview documentation changes before applying them?

Yes. The skill supports dry-run mode to show diffs before committing changes, and creates automatic backups of existing files. This lets you review exactly what will update and safely test changes without altering your original documentation.

Does this skill preserve my custom documentation sections?

Yes. The skill preserves user-authored sections when requested, applying only targeted updates to align with code changes. You control which parts stay manual and which get refreshed, avoiding loss of custom guidance or project-specific notes.

When should I update my context files after code changes?

Use this after refactors, dependency upgrades, or structural changes to catch documentation that no longer matches reality. It's also useful for auditing inconsistencies between code and docs, and for initializing documentation on new projects.

What file formats does this skill work with?

The skill updates Markdown files (README.md, CLAUDE.md, AGENTS.md, CONTRIBUTING.md) by reading package manifests and config files like package.json, pyproject.toml, and similar tooling files to extract project metadata for accurate documentation.

How does the skill detect what to update in my documentation?

It scans your repository for package manifests, config files, and project structure to identify tooling, workflows, and dependencies. From this information, it generates precise updates that reflect your actual setup without manual intervention.