claude-anvil
CLAUDE.md2 starsChanged 5 months agoMITView on GitHub
A Claude Code plugin marketplace (queelius). All plugins are distributed as a single git repo. No build system, test suite, or compiled code — the codebase is Markdown files with YAML frontmatter. Install: /plugin marketplace add queelius/claude-anvil Install a plugin: /plugin install repoindex@queelius Note: A profiler/ directory exists locally as a symlink to ~/github/personal/profiles/ but is intentionally not in marketplace.json (the symlink targets an absolute path outside the repo, so a marketplace install would break for other users). Re-add when…
In this repository11 other files it gives its agents.
- bookwright/CLAUDE.mdCLAUDE.md
- crier/CLAUDE.mdCLAUDE.md
- kdp/CLAUDE.mdCLAUDE.md
- locksmith/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
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 61
Not all plugins use every component.
- Distinctive: line 118
After editing any plugin, verify from that plugin's directory:
- Very specific: line 143
Always update both: If marketplace.json isn't bumped, Claude Code won't detect the update.
- Distinctive: line 150
When editing a skill's workflow steps, preserve the existing structure and tool annotations
- Very specific: line 152
All plugins share one git history — use conventional commit prefixes scoped to plugin, e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
A Claude Code plugin marketplace (queelius). All plugins are distributed as a single git repo. No build system, test suite, or compiled code — the codebase is Markdown files with YAML frontmatter.
Install: /plugin marketplace add queelius/claude-anvil
Install a plugin: /plugin install repoindex@queelius
| Plugin | Dir | Purpose | Version |
| papermill | papermill/ | Academic paper lifecycle: thesis, lit survey, experiment, review, venue, submission | 0.8.2 |
| worldsmith | worldsmith/ | Documentation-first fiction worldbuilding (the "Silmarillion approach") | 0.13.2 |
| pub-pipeline | pub-pipeline/ | Publication workflows: R/CRAN/JOSS, Python/PyPI | 0.8.2 |
| mf | mf/ | Metafunctor site management: blog architecture, content workflows, crier | 1.3.0 |
| repoindex | repoindex/ | Agent-driven repository intelligence (repo-doctor, repo-polish, repo-explorer) plus five workflow slash commands. MCP-first over a local git catalog | 2.3.1 |
| alex-confidential | locksmith/ | Confidentiality toolkit: cryptoid, pagevault, gpg encryption | 0.3.0 |
| kdp | kdp/ | Amazon KDP book publishing: manuscript audit, listing craft, submission workflow | 0.6.0 |
| crier | crier/ | Cross-post blog content to multiple platforms via the crier CLI | 1.3.0 |
| research-agent | research-agent/ | Autonomous research agent with parallel sub-agent dispatch and a status/resume/synthesize control surface for managing long runs | 0.5.1 |
| vista | vista/ | Surface salient research directions from highly-cited papers. Live OpenAlex search, PDF section extraction, structured catalog | 0.2.2 |
| bookwright | bookwright/ | Non-fiction book authoring: LaTeX + paired computational notebooks, multi-agent drafting/review, design→plan→draft→integrate workflow | 0.2.3 |
Note: A
profiler/directory exists locally as a symlink to~/github/personal/profiles/but is intentionally not inmarketplace.json(the symlink targets an absolute path outside the repo, so a marketplace install would break for other users). Re-add when the plugin is properly in-tree or a git submodule.
Per-repo plugin scoping (context economy)
The three authoring plugins (papermill, worldsmith, bookwright) are 38 of the marketplace's agents and are mutually exclusive by project type: a repo is a paper, a novel, or a textbook, never all three. They are therefore disabled at user scope ("papermill@queelius-plugins": false etc. in ~/.claude/settings.json under enabledPlugins) and enabled per repo. Settings precedence is user < project < local, so to enable one in a repo, add to that repo's .claude/settings.json:
{ "enabledPlugins": { "papermill@queelius-plugins": true } }or run /plugin enable papermill@queelius-plugins from inside the repo. Everything else (mf, pub-pipeline, repoindex, kdp, crier, research-agent, vista, alex-confidential) stays enabled globally. The former jot plugin was removed from the marketplace entirely (the jot CLI in ~/github/golang/jot is unaffected).
Three plugins say "research" and they do not overlap
vista, research-agent, and papermill all sound like the same thing and are not. They occupy three different stages of the research lifecycle:
- vista (finds the questions). Read-only reconnaissance over the published literature. Mines the Future Work / Limitations / Discussion / Conclusion sections of highly-cited OpenAlex papers and synthesizes candidate directions. The MCP server is deliberately mechanical (returns raw section text plus metadata as JSON, no LLM calls); the in-conversation Claude does the synthesis. It tells you what is worth working on; it does not do the work. Bounded and fast.
- research-agent (attacks a question). An autonomous, fire-and-forget reasoning loop (decompose, hypothesize, attempt, evaluate, reflect) that proves theorems, writes code, runs simulations, and hunts counterexamples, persisting everything to
.research/in the target project. Unbounded; the deliverable is.research/synthesis.md. - papermill (writes the paper). Multi-agent thesis/draft/review/venue lifecycle once you have results to report.
The natural pipeline is vista, then research-agent, then papermill: scope a direction, work it, write it up. The shared word "synthesis" is the main trap: vista synthesizes other people's stated future work, while research-agent synthesizes its own attempt results. (Likewise vista's research-synthesizer agent writes a literature landscape report, whereas research-agent's researcher writes up experimental findings; both dispatch subagents, but the content is unrelated.)
Plugin Anatomy
Each plugin directory follows Claude Code plugin conventions:
<plugin>/
├── .claude-plugin/plugin.json # Manifest: name, version, description, author
├── skills/<name>/SKILL.md # Interactive skills (the core logic)
├── commands/<name>.md # Slash commands (thin wrappers or rich command docs)
├── agents/<name>.md # Autonomous subagents with system prompts
└── CLAUDE.md # Per-plugin editing guidance (read before editing)Not all plugins use every component. Minimal plugins like alex-confidential have only a skill. Larger plugins add extras: worldsmith has hooks/, scripts/; pub-pipeline has docs/ (reference material and design plans).
File Format Conventions
Skills (skills/<name>/SKILL.md)
YAML frontmatter with name and description (description contains trigger phrases for auto-detection). Body style varies by plugin: pub-pipeline/papermill use numbered workflow steps with tool annotations (Read tool); worldsmith uses lean methodology with references/ subdirectories for detailed content.
Commands (commands/<name>.md)
YAML frontmatter with description. Most are minimal (3-5 lines) with a one-line instruction triggering the corresponding skill. Worldsmith commands are richer — they include allowed-tools, argument-hint, and inline rules/awareness for Claude.
Agents (agents/<name>.md)
YAML frontmatter with name, description, tools (list of allowed tools), model, and color. Body is the agent's system prompt.
Agent description policy (context cost). Every enabled plugin's agent descriptions load into the main context of every session; agent bodies load only when spawned. So descriptions follow two tiers. User-facing entry points (the writer/reviewer/rewriter/reviser/iterator orchestrators, surveyor, researcher, joss-writer/joss-reviewer, the repoindex, crier, and vista agents) keep rich descriptions with <example> blocks so auto-delegation can route to them. Internal specialists (section writers, scouts, auditors, checkers: anything an orchestrator dispatches by qualified name via Task) use a single-sentence description ending with "not intended for direct invocation" and NO example blocks; orchestrators reference them by hardcoded plugin:agent name in their own prompt bodies, so a specialist's description buys nothing and costs context in every session.
Agent model policy. Every plugin agent is a subagent (skills spawn the orchestrators via Task; orchestrators spawn specialists). Heavy agents (orchestrators, content writers, judgment auditors) use model: inherit so they run on whatever model the user selected for the session, choose Fable with /model fable. Do NOT pin model: fable in agent frontmatter: a subagent spawn that explicitly requests Fable can be rejected by an availableModels policy, the account's Fable access, or a Claude Code version older than v2.1.170, whereas inherit sidesteps all three and honors the user's choice. Mechanical auditors and cheap analysis agents (spec-auditor, cross-ref-auditor, format-validator, field-scout, software-auditor, community-auditor, surveyor, citation-verifier, repo-doctor, repo-explorer, the crier agents) pin an explicit cheaper tier (sonnet or haiku). vista's PREMIUM_MODEL = claude-fable-5 is exempt: it is a direct Anthropic API call from the vista CLI, not a Claude Code subagent spawn, so the restriction does not apply.
Hooks (hooks/hooks.json)
JSON with event handlers. Worldsmith uses three: SessionStart (command hook for ambient project detection), PostToolUse (prompt hook for propagation reminders on Write/Edit), Stop (prompt hook for completion verification).
Slash-command name collisions
Several plugins share bare command names, which is fine because Claude Code
namespaces every command as plugin:command. Always qualify when documenting or
typing them:
| Bare name | Defined by |
/draft | papermill, worldsmith, bookwright |
/review | papermill, worldsmith, bookwright |
/revise | papermill, worldsmith, bookwright |
/iterate | worldsmith, bookwright |
/check | worldsmith, bookwright |
/init | papermill, bookwright |
/help | worldsmith, bookwright |
/status | papermill, research-agent |
The three authoring plugins (papermill, worldsmith, bookwright) sharing /draft
and /review is the highest-friction case. Prefer the qualified form
(/bookwright:draft) in all docs and examples.
Cross-Plugin Patterns
State files: papermill (.papermill.md), pub-pipeline (.claude/pub-pipeline.local.md), and kdp (.claude/kdp.local.md) use per-project state files with YAML frontmatter + markdown body. These live in the target project, not in this repo.
${CLAUDE_PLUGIN_ROOT} references: Skills reference sibling files via this variable (resolves to plugin installation directory at runtime). When adding references, verify the target file exists.
Router pattern: pub-pipeline has a top-level router skill (skills/pub-pipeline/SKILL.md) that detects project type by indicator files (DESCRIPTION → R, pyproject.toml → Python, .tex+.pdf → academic paper) and delegates to the ecosystem-specific skill. The router has no command — it triggers via natural language.
Author metadata via deets CLI: Plugins needing author info (papermill, pub-pipeline) can fall back to the deets CLI tool (deets show --format json), configured globally. Per-project config files (e.g. .claude/pub-pipeline.local.md) are checked first.
Audit report pattern (pub-pipeline, kdp): Audit skills produce structured gap reports with Critical (Must Fix) / Warnings (Should Fix) / Passed sections.
Propagation discipline (worldsmith): Role-based document system — the plugin thinks in doc roles (timeline authority, lore, systems, characters, style conventions, outline, themes, editorial backlog), not hardcoded filenames. Each target project maps roles to its own file structure. Canonical docs are always updated before manuscript text.
Validation
After editing any plugin, verify from that plugin's directory:
# Skill frontmatter has name and description
for f in skills/*/SKILL.md; do echo "=== $f ===" && head -5 "$f" && echo; done
# Command frontmatter has description
for f in commands/*.md; do echo "=== $f ===" && head -5 "$f" && echo; done
# Agent frontmatter has name, description, tools, model
for f in agents/*.md; do echo "=== $f ===" && head -10 "$f" && echo; done
# ${CLAUDE_PLUGIN_ROOT} references point to existing files
grep -roh '\${CLAUDE_PLUGIN_ROOT}/[^`"]*' skills/ commands/ | sort -u | while read ref; do
resolved="${ref/\$\{CLAUDE_PLUGIN_ROOT\}/\.}"
[ -f "$resolved" ] || echo "BROKEN: $ref"
doneVersion Bumps
Versions live in two places that must stay in sync:
.claude-plugin/marketplace.json— the marketplace catalog (drives update detection)- Each plugin's
.claude-plugin/plugin.json— the plugin manifest
Always update both. If marketplace.json isn't bumped, Claude Code won't detect the update.
Editing Guidelines
- Each plugin has its own CLAUDE.md with plugin-specific conventions — read it before editing that plugin
- Skills should be self-contained and work independently
- Commands are thin wrappers — keep logic in skills, not commands
- When editing a skill's workflow steps, preserve the existing structure and tool annotations
- Agents need well-defined tool lists — only grant tools the agent actually needs
- All plugins share one git history — use conventional commit prefixes scoped to plugin, e.g.
feat(pub-pipeline):,fix(worldsmith):
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.

