rdocx: Command for Claude Code

.claude/commands/design.md

design is a command for Claude Code from tensorbee/rdocx. It costs 15 tokens per session (3,501 once invoked), scanned A, original, MIT.

A planning command that writes a design plan for a feature before any code changes are made. The plan records the feature contract, tests, risks, dependencies, and which high-level design documents it affects.

In plain words
What is it for?
Use it to design an F-ID feature, revise an existing plan, or prepare draft plans for a sprint. An F-ID is the project's identifier for a feature story.
Why use it?
It turns a backlog story into specific work that later implementation and completion steps can check. It also exposes missing dependencies or unanswered questions before coding begins.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

This is tensorbee/rdocx's own configuration. It tells Claude Code how to work on rdocx itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rdocx configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tensorbee/rdocx. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tensorbee/rdocx/main/.claude/commands/design.md
Clone the repo
git clone --depth 1 https://github.com/tensorbee/rdocx

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design

README.md
[![agentmods](https://agentmods.dev/badge/commands/tensorbee/rdocx/design/github.svg)](https://agentmods.dev/commands/tensorbee/rdocx/design)
Your own site
<a href="https://agentmods.dev/commands/tensorbee/rdocx/design"><img src="https://agentmods.dev/badge/commands/tensorbee/rdocx/design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design

Your own site · 80×15
<a href="https://agentmods.dev/commands/tensorbee/rdocx/design"><img src="https://agentmods.dev/badge/commands/tensorbee/rdocx/design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00015 $0.03501
Opus 5.5 $0.00006 $0.01400
Sonnet 5.5 $0.00003 $0.00700
Haiku 4.5 $0.00002 $0.00350

Measured 6d ago against content hash 4200a5757cdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design 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 6d 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.

.claude/commands/design.md · 311 lines

How it starts

The opening of the file, as written. The whole thing — 311 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/design F-XXX [--revise] [--draft]

Write .claude/plans/F-XXX-design.md. No code changes in this command.

The plan is a machine-consumed contract: /start-feature reads its test plan and refuses a vague spec reference, and /complete-feature executes against its HLD impact list. Write it as something that will be acted on, not as prose.

--draft is the mode /run-sprint uses to plan a whole sprint before implementing any of it. It runs every step except interactive questioning in 4 and approval in 7, always writes the plan in 6, records open questions instead of asking them, and leaves the status at draft. A plan left at draft cannot be started.

Steps

  1. Read the story. Find ### F-XXX in docs/hld/14-development-backlog.md. Take its size, dependencies and test gate verbatim. If the F-ID is not there, stop and say so.

  2. Read the cited spec sections. Follow the story into docs/hld/ and read the specific sections it implements. Read the actual code it will touch. Do not design from the backlog entry alone.

  3. Check dependencies. Record actual status from docs/sprints/BACKLOG.md. Drafting may use a pending in-sprint provider's proposed contract, with its assumptions and readiness explicitly pending. Approve dependent designs in topological order only after their provider contracts are approved. Approval is not implementation readiness. /start-feature and /claim-feature still require dependencies to be actually done, including any required dependency-prefix checkpoint. An unfinished external dependency remains a named blocker.

  4. Ask before writing. Collect every open question and ask them in one round using AskUserQuestion. Questions where a wrong guess would mean rewriting the story are blocking. Everything else gets a stated assumption.

    Under --draft, skip this. Write the questions into ## Open questions and carry on, so a sprint's worth of planning produces one consolidated round of questions rather than one per story.

Read the full file on GitHub · 311 lines

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. 6d ago Changed · +185 lines 4200a5757cdd
  2. 11d ago Changed · +4 lines 8af5b9adc5b4
  3. 26d ago First seen · 122 lines · 15 tokens per session scan A 6919a3896965

Subscribe to this mod's changes

design is a command published in the GitHub repository tensorbee/rdocx (44 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 3,501 once invoked, about $0.0001 per session on Opus 5.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-10-04.