rdocx: Command for Claude Code

.claude/commands/regen-fixtures.md

regen-fixtures is a command for Claude Code from tensorbee/rdocx. It costs 30 tokens per session (908 once invoked), scanned A, original, MIT.

A command for rebuilding generated files such as samples, preset tables, and a deck corpus from their generators. It separates ordinary regeneration from recording new hash baselines, which are reference values used for later comparisons.

In plain words
What is it for?
Use it to regenerate sample output, preset shape data, corpus data, or explicitly selected baselines in the workspace.
Why use it?
It avoids hand-editing generated output and makes changes to checked-in generated data visible for review. The separate baseline step reduces the chance of accepting changed reference values accidentally.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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/regen-fixtures.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 regen-fixtures

README.md
[![agentmods](https://agentmods.dev/badge/commands/tensorbee/rdocx/regen-fixtures/github.svg)](https://agentmods.dev/commands/tensorbee/rdocx/regen-fixtures)
Your own site
<a href="https://agentmods.dev/commands/tensorbee/rdocx/regen-fixtures"><img src="https://agentmods.dev/badge/commands/tensorbee/rdocx/regen-fixtures/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 regen-fixtures

Your own site · 80×15
<a href="https://agentmods.dev/commands/tensorbee/rdocx/regen-fixtures"><img src="https://agentmods.dev/badge/commands/tensorbee/rdocx/regen-fixtures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 908 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.00030 $0.00908
Opus 5.5 $0.00012 $0.00363
Sonnet 5.5 $0.00006 $0.00182
Haiku 4.5 $0.00003 $0.00091

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

Security

Grade A, and why

regen-fixtures 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 26d 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/regen-fixtures.md · 91 lines

How it starts

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

/regen-fixtures [--samples] [--presets] [--corpus] [--baselines]

Rebuild the things in this workspace that are produced by a generator rather than written by hand. With no flag, does --samples only, which is the safe default.

The four targets have very different consequences. Read the target's section before running it.

--samples, safe

samples/ holds generated output. It is gitignored, and it is not a fixture source. Nothing asserts against it, so regenerating it cannot break a test.

cargo run --example <the sample generator>

Use it to eyeball a change by opening the result. If a sample file is what convinced you a change is correct, that belief is not yet a test.

--presets, checked in and diffable

tools/gen-presets/ is an offline generator for the preset shape table, and its output is checked in so a build never needs the generator.

  1. Run the generator. If it has not shipped yet, name the story that owns it and stop. Do not hand-produce a preset table.
  2. Read the diff. An unexpected change in the preset table is the same class of event as an unexpected hash-harness delta, since it feeds geometry for every rendered shape.
  3. If it is empty, say so and stop. That is the expected result unless the generator or its input changed.
  4. If it is not empty, the change is its own labelled commit stating what moved and why. Never fold it into a feature commit.

--corpus, fetched, not committed

The deck corpus lives outside the published crates and is fetched rather than committed, which is why /corpus/ is gitignored.

  1. Fetch it.
  2. Report the resolved version or manifest hash. A corpus round-trip failure with no recent parser change usually means the corpus moved, and .claude/WORKFLOW.md lists that as an escalation trigger. You cannot tell which happened without knowing which corpus you have.
  3. Never let a corpus refresh and a parser change land in one commit.

--baselines, the one that needs a reason

Read the full file on GitHub · 91 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. 26d ago First seen · 91 lines · 30 tokens per session scan A ef5133d8507e

Subscribe to this mod's changes

regen-fixtures is a command published in the GitHub repository tensorbee/rdocx (44 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 908 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.