block-docs
A Claude Code plugin for creating and maintaining system documentation one building
block at a time. It packages a skill, a writer agent, a verifier agent, reusable
templates, and a structural linter.
The method divides a system by responsibility, states its contracts, separates
required behavior from known gaps, and anchors claims to a source revision. It also
supports writing documentation from a committed design spec before implementation
exists.
What you get
- Skill
block-docs: bootstrap documentation, add a block, refresh a tree, or
audit ownership and evidence.
- Agent
block-docs-writer: write or refresh one assigned block without editing
application code or publishing changes.
- Agent
block-docs-verifier: check a finished block section by section against
the source pin and return a verdict, evidence, and proposed text for each section.
It reads only; it never edits files.
- Templates: root navigation and the recurring pages for each block.
- Linter: check metadata, block structure, overlapping ownership, source
citations, revision pins, and enforcement fields.
The goal is documentation detailed enough to inform a rewrite without treating
unverified assumptions as implemented behavior. This is not an API reference
compiler, a documentation website, or an autonomous background service.
Install
In Claude Code:
/plugin marketplace add kolezka/marketplace
/plugin install block-docs@kolezka
/reload-plugins
The marketplace is installed through Git. If access requires authentication, your
Git credentials must permit cloning the repository.
For local development, clone the repository and load the plugin without a persistent installation:
git clone https://github.com/kolezka/block-docs.git
claude --plugin-dir ./block-docs
DeepSeek Harness
Install the adapter's published runtime before adding the plugin or using a file overlay:
git clone https://github.com/kolezka/block-docs.git
cd block-docs/dsh
bun install --frozen-lockfile
cd ..
dsh plugin add ./dsh
For a file overlay, install in block-docs/dsh first and point the overlay at that
directory. The adapter imports claude-plugin-dsh directly; after changing its
pinned version, run bun install in dsh/ and commit the updated lockfile. To
inspect the adapter after installation, run:
bun x [email protected] inspect .
Do not use the runtime's sync or scaffold commands on this adapter; as of 0.2.1, they
create a vendored runtime copy. Those commands are not part of this workflow.
The plugin ships no hooks, MCP servers, credentials, or permission overrides. The
writer and verifier inherit the session's model unless the coordinator picks another. Structural linting requires Python 3.9 or
newer and has no third-party runtime dependencies. Revision validation also needs
Git and the referenced commits in the local repository.
Use
Create documentation from code:
/block-docs:block-docs Document this repository under docs/. Read the source at HEAD,
identify its building blocks, and create the root pages and each block's page set.
Create documentation before implementation:
/block-docs:block-docs Build docs/ from the committed design in specs/system.md.
Use spec@<commit>, design evidence tags, and planned enforcement. Do not invent code.
Maintain an existing tree:
/block-docs:block-docs Refresh docs/ against HEAD. Check source changes, update the
affected blocks and cross-block links, and re-pin only after completing the review.
Audit without rewriting application code:
/block-docs:block-docs Audit docs/ for stale citations, ownership overlap, missing
contracts, and claims that confuse conventions with enforcement. Report findings.
The skill coordinates the work. Its bundled agent handles one block at a time.
The coordinator supplies the source root, full docs root, block, owned paths,
source pin, evidence mode, and allowed output files. Spec mode also requires the
source-relative design path. Calling the agent directly requires that same brief.
Writing a block does not authorize re-pinning unrelated pages, changing source
code, committing, pushing, or deploying. These are agent instructions, not an
operating-system sandbox; harness permissions still apply.
Every block a writer produces goes to block-docs-verifier before it is accepted.
The verifier ignores the page's evidence tags, rereads the source at the pin, and
checks polarity, quantifiers over the whole source root, reachability, counts,
missing branches, writes from other blocks, and enforcement strength. Wrong or
partial sections get one fix round; what is still unresolved becomes a gap or goes
to the user. This costs one agent run per block. Use a different model for the
verifier than for the writer when one is available.