claude-anvil / bookwright
CLAUDE.md2 starsChanged 39 days agoMITView on GitHub
This file is internal to the bookwright plugin. It is consumed by Claude Code when working ON the plugin (developing it), not when the plugin is invoked by an end user. bookwright is one plugin in the ~/github/alex-claude-plugins/ (claude-anvil) monorepo. Sibling plugins include worldsmith (fiction) and papermill (academic papers). The soul plugin (voice reference and banned-phrase hooks) is NOT a sibling: it ships from its own soul marketplace (queelius/soul), and bookwright only assumes it is installed alongside. No bookwright agent…
In this repository11 other files it gives its agents.
- alex-confidential/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- crier/CLAUDE.mdCLAUDE.md
- kdp/CLAUDE.mdCLAUDE.md
- mf/CLAUDE.mdCLAUDE.md
- papermill/CLAUDE.mdCLAUDE.md
- pub-pipeline/CLAUDE.mdCLAUDE.md
- repoindex/CLAUDE.mdCLAUDE.md
- research-agent/CLAUDE.mdCLAUDE.md
- vista/CLAUDE.mdCLAUDE.md
- worldsmith/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
All command names use the /bookwright:NAME prefix in user-facing docs.
- Very specific: line 13
Commit messages to this repo use the root convention: conventional prefixes scoped to the plugin, e.g.
- Very specific: line 32
Before releasing, run plugin-dev:plugin-validator against this plugin.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md (bookwright plugin)
This file is internal to the bookwright plugin. It is consumed by Claude Code when working ON the plugin (developing it), not when the plugin is invoked by an end user.
Repository context
bookwright is one plugin in the ~/github/alex-claude-plugins/ (claude-anvil) monorepo. Sibling plugins include worldsmith (fiction) and papermill (academic papers). The soul plugin (voice reference and banned-phrase hooks) is NOT a sibling: it ships from its own soul marketplace (queelius/soul), and bookwright only assumes it is installed alongside.
Development conventions
- Plugin component files (commands, agents, skills) are Markdown with YAML frontmatter.
- All command names use the
/bookwright:NAMEprefix in user-facing docs. - Commit messages to this repo use the root convention: conventional prefixes scoped to the plugin, e.g.
feat(bookwright):,fix(bookwright):. (Thebook:subject prefix in agent prompts is for commits the agents make in the user's book repo, not here.) - 11 agents: orchestrators
writer,reviewer,rewriter,iterator; drafting specialistssection-writer,notebook-author,source-reformulator; auditorsspec-auditor,quality-auditor,math-auditor,cross-ref-auditor. The original design spec and v0.1 implementation plan were removed; git history keeps them. - Shared contracts, each defined once: the auditor verdict enum
PASS / MINOR / SUBSTANTIVE / BLOCKING(every auditor's report ends with it); the rewriter'srevision-summaryYAML block (agents/rewriter.md, read by name by the iterator); notebook execution commands (agents/notebook-author.md); the header comment block template (skills/cross-reference-discipline/SKILL.md). - Project-specific facts (macro package, known corrections, banned phrases, forward-ref baselines) live in the user's book repo (
docs/superpowers/bookwright.config.yaml,docs/superpowers/known-corrections.yaml,book/CLAUDE.md, integration-pass records), never in plugin prompts.
Decision handoff invariant
No bookwright agent asks the author anything: Claude Code removes AskUserQuestion from every subagent, even when listed in tools, so never add it to an agent. Judgment calls travel as data. An agent that needs the author returns a ## Decisions Needed section holding one decisions-needed YAML block (schema and asking procedure defined once, in skills/textbook-methodology/references/decision-handoff.md; commands point to it rather than restating it), in both its report file and its final message. The command that launched it, which runs in the main session, asks via AskUserQuestion and relaunches the agent with a <decisions> block. Entry points: /bookwright:draft and /bookwright:review (ambiguous scope), /bookwright:revise (rewriter judgment calls; a decisions pass writes -revision-decisions.md), and /bookwright:iterate (iterator loop entry hands off, finalize entry applies). Commands that ask must list AskUserQuestion in allowed-tools.
Testing
tests/ contains shell tests. They glob the component files (no hand-kept lists), so adding an agent, command, or skill needs no test edit. The tests and the macro-leak hook (only when it must read a config and its own python3 lacks PyYAML) share one interpreter resolver, hooks/scripts/find_python.sh ($PYTHON, python3, /usr/bin/python3, then uv run --no-project --with pyyaml). To run all:
cd ~/github/alex-claude-plugins/bookwright/tests && for t in test-*.sh; do bash "$t" || exit 1; doneValidation
Before releasing, run plugin-dev:plugin-validator against this plugin.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

