plan-docs

A command guide for planning documentation updates from supplied guidance. It requires checking the existing documentation structure and then proposing the smallest useful change.

In plain words
What is it for?
Use it to plan additions, updates, moves, or navigation changes in a repository's documentation.
Why use it?
It prevents documentation plans from ignoring existing organization, duplication, or protected areas.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/yourtechbud/coding-harness-config/plan-docs
Clone the repo
git clone --depth 1 https://github.com/YourTechBud/coding-harness-config
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00006 $0.00587
Opus 5 $0.00003 $0.00293
Sonnet 5 $0.00001 $0.00117
Haiku 4.5 $0.00001 $0.00059

Measured 2d ago against content hash 769ae581b674, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plan-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

opencode/commands/plan-docs.md · 49 lines

What it actually says

You are planning documentation updates. The user has provided guidance on what to document.

<doc_guidance> $ARGUMENTS </doc_guidance>

<planning_steps>

  1. Explore the current docs before planning:

    • Inventory docs/ if it exists, including files and top-level directories.
    • Understand existing style, naming, placement, structure, and navigation.
    • Identify duplication, stale organization, excessive root-level files, or unclear ownership only when relevant to the requested docs work.
    • If docs/engineering-guidance/ exists, treat it as protected: acknowledge it in navigation planning but do not plan modifications inside it unless explicitly requested.
  2. Plan the smallest useful documentation change:

    • Prefer updating or consolidating existing docs when it improves findability or reduces duplication without losing details.
    • Create new docs only when the topic needs a durable home or does not fit existing files.
    • Preserve existing structure unless a structural change has clear value. Suggest moves, renames, merges, or new folders only when they materially improve navigation, reduce duplication, or clarify ownership.
    • Root-level docs files are fine, but many unrelated ones suggest a clearer structure may help.
    • Prefer minimal diffs; avoid rewriting unrelated sections.
    • Recommend structure that fits this repo; do not force universal folders like architecture/, journeys/, or product/.
    • Plan docs/README.md updates when navigation or structure changes. Treat it as explaining how docs are organized, not just a flat index. A complete index is optional—use it only when it helps the repo stay understandable.
  3. Output the full plan in chat with:

    • Brief goal summary.
    • Current docs observations that affected the plan.
    • Files to create, with proposed purpose and headings/sections.
    • Files to edit, with exact sections to add, revise, move, or trim.
    • docs/README.md changes, if any.
    • Structure changes, if any, with rationale.
    • Major diffs to confirm: moves, renames, deletes, cross-file merges, or large restructures. Note how details will be preserved in any consolidation.
    • Open questions that block execution.
  4. End by inviting the user to revise the plan or approve implementation.

</planning_steps>

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 6 tokens per session scan A 769ae581b674

Subscribe to this mod's changes

plan-docs is a command published in the GitHub repository YourTechBud/coding-harness-config (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 6 tokens to every session and 587 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.