$npx skillfedfor your agent

doccmd

Run commands against code blocks in reStructuredText and Markdown files.

Worth itPyPI DocumentationReleased Jul 2026176.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — doccmd-2026.7.19-py3-none-any.whl
v2026.7.19 · released 2026-07-19 · Python >=3.11 · 9 runtime deps: beartype, charset-normalizer, click, click-compose, cloup, dulwich, pygments, sybil

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and solves a real problem—keeping documentation code examples in sync with your actual codebase standards. Low install friction and broad format support make it a practical choice for projects that care about documentation quality. Install it if you maintain documentation with embedded code examples and want automated validation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later; the command-line tool being invoked (e.g., mypy, shellcheck) must be installed separately and available in PATH.
  • Low friction: pure Python wheel with 9 runtime dependencies including click for CLI, beartype for type checking, and dulwich for version control integration.
  • Active maintenance with a release 26 days ago; repository has 28 stars and recent commits.

License · maintenance · safety

MIT (permissive) — MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-07-19 (26 days) · last repo commit 2026-08-14 · 28 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 175,991 downloads/mo, #10,255 on PyPI

Verify before relying

$ pip install doccmd
$ doccmd --language=python --command="mypy" README.md
$ doccmd --language=shell --command="shellcheck --shell=bash" docs/
  • Whether the tool handles nested or indented code blocks correctly across all supported formats.
  • Performance characteristics when processing large documentation files with many code blocks.
  • Compatibility with custom or non-standard code block syntax extensions.
Same gist for agents: .md · .json

What it is and what it does

doccmd is a command-line tool that extracts code blocks from documentation files and runs external commands (linters, formatters, type checkers) against them. It works with reStructuredText, Markdown, MyST, MDX, Djot, and Norg files, automatically handling language detection and code block extraction so you can validate that the code examples in your documentation actually work and conform to your project's standards.

The tool preserves line numbers in error output by padding code blocks before execution, and can strip Python REPL prompts (>>>) when processing interactive console examples. It's designed to integrate into CI/CD pipelines and pre-commit hooks, letting you catch broken or outdated code examples before they reach users. Dependencies include click for CLI scaffolding, beartype for runtime type validation, and dulwich for version control operations.

Use it for

  • Validate that Python code examples in your README actually pass type checking with mypy or ruff.
  • Ensure shell script snippets in documentation pass linting tools like shellcheck before release.
  • Run formatters (ruff format, gofmt) on code blocks to keep examples style-consistent with your codebase.
  • Test interactive Python sessions (pycon blocks) by stripping prompts, running linters, and restoring them.
  • Integrate into pre-commit hooks to catch broken documentation examples on every commit.
  • Verify code blocks across multiple documentation formats (Sphinx, MyST, plain Markdown) in a single pass.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and solves a real problem—keeping documentation code examples in sync with your actual codebase standards. Low install friction and broad format support make it a practical choice for projects that care about documentation quality. Install it if you maintain documentation with embedded code examples and want automated validation.

Install

doccmd on PyPI

Before you install

Low friction: pure Python wheel with 9 runtime dependencies including click for CLI, beartype for type checking, and dulwich for version control integration. Active maintenance with a release 26 days ago; repository has 28 stars and recent commits.

Requires Python 3.11 or later; the command-line tool being invoked (e.g., mypy, shellcheck) must be installed separately and available in PATH.

License in practice

MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

$ pip install doccmd
$ doccmd --language=python --command="mypy" README.md
$ doccmd --language=shell --command="shellcheck --shell=bash" docs/

Verify before relying

  • Whether the tool handles nested or indented code blocks correctly across all supported formats.
  • Performance characteristics when processing large documentation files with many code blocks.
  • Compatibility with custom or non-standard code block syntax extensions.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
beartypecharset-normalizerclickclick-composecloupdulwichpygmentssybilsybil-extras
MaintenanceActively maintained 26 days since the last release
Last repo commit
First released
Downloads175,991 / month, #10,255 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: doccmd-2026.7.19-py3-none-any.whl

Tags

Capabilities
lint code blocks in documentationrun formatters on markdown rsttest code examples in docsdocumentation code validationembedded code block checkersphinx documentation testingvalidate code snippets
Topics
documentation-testingcode-validationcli-tool
PyPI keywords
markdownrstsphinxtesting

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “lint code blocks in documentation”

  • doccmdRuns linters, formatters, and other command-line tools against code…
  • sphinxcontrib-shellcheckA Sphinx extension that automatically lints shell code blocks in…
  • pytest-examplesA pytest plugin that finds, lints, runs, and validates Python code…

Give your agent the search over MCP, or paste the wish link into any chat.

More Documentation packages

docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
Sphinx Worth it
PyPI · Software Development · released Dec 2025

Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.

BSD-2-Clausepure Python · 3.12+
91.8Mdownloads / mo
griffe Worth it
PyPI · Software Development · released Jun 2026

Griffe extracts the complete structure and signatures of Python programs to generate API documentation or detect breaking changes in your project's public API.

Install it if you need to programmatically inspect Python code structure, generate API docs, or enforce API stability in CI.

ISCpure Python · 3.10+
32.4Mdownloads / mo
sphinxcontrib-serializinghtml With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.

BSD-3-Clausepure Python · 3.9+dormant
30.5Mdownloads / mo
alabaster Worth it
PyPI · Documentation · released Jul 2024

Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.

BSD-3-Clausepure Python · 3.10+dormant
30.4Mdownloads / mo
sphinxcontrib-htmlhelp With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that generates HTML help files from reStructuredText documentation source.

BSD-3-Clausepure Python · 3.9+dormant
27.7Mdownloads / mo

See also blacken-docs · sphinx-lint · rumdl · pytest-markdown-docs · markdown-exec · mdformat-ruff · rstcheck · pytest-examples · myst-parser · sphinx_mdinclude