claude-anvil / mf
CLAUDE.md2 starsChanged 39 days agoMITView on GitHub
Editing guidance for the mf Claude Code plugin. Read before editing this plugin. mf drives the mf CLI (a separate package at github.com/queelius/mf) to manage metafunctor.com Hugo content: papers, projects, posts, and series. The plugin ships no code of its own; it is the judgment layer (intent to workflow), and the CLI is the mechanics. The skill turns a natural-language request into the right mf CLI invocations. - skills/mf/SKILL.md: mf CLI workflows (intent mapping, command groups, dry-run semantics, site-root resolution).…
In this repository11 other files it gives its agents.
- alex-confidential/CLAUDE.mdCLAUDE.md
- bookwright/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- crier/CLAUDE.mdCLAUDE.md
- kdp/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, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Do not add same-name command wrappers: inside a plugin a command with the same name as a skill wins, and the skill never loads.
- Distinctive: line 34
Read it. Do not copy those facts back into the skill: the previous copy drifted (wrong deploy host, a removed section, a wrong taxonomy …
- Very specific: line 63
Keep .claude-plugin/plugin.json and the mf entry in the root .claude-plugin/marketplace.json in sync (check both before bumping).
≈ “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 (mf plugin)
Editing guidance for the mf Claude Code plugin. Read before editing this plugin.
What this is
mf drives the mf CLI (a separate package at github.com/queelius/mf) to manage
metafunctor.com Hugo content: papers, projects, posts, and series. The plugin
ships no code of its own; it is the judgment layer (intent to workflow), and the
CLI is the mechanics. The skill turns a natural-language request into the right
mf CLI invocations.
Components
skills/mf/SKILL.md:mfCLI workflows (intent mapping, command groups, dry-run semantics, site-root resolution). It is the source of truth for CLI usage only. Keep it factual: verify againstmf --help,mf <group> --help, andmf <group> fields, and prefer pointing at those over hardcoding lists that will drift. The preflight exists because TeX Live's/usr/bin/mf(Metafont) can shadow the CLI; keep it.skills/scribe/SKILL.md: latent-theme discovery across the corpus, its own skill (not part ofmf).- No
commands/. Both skills are invoked directly as/mfand/scribe. Do not add same-name command wrappers: inside a plugin a command with the same name as a skill wins, and the skill never loads. Putargument-hintin the skill frontmatter instead.
Site facts live in the site repo, not here
Taxonomies and their front-matter keys (e.g. linked-books, not
linked_book), front matter fields, bundle types, build/deploy, and site
gotchas are documented once, in the site repo's CLAUDE.md
(~/github/repos/metafunctor/CLAUDE.md). The skill's preflight tells Claude to
Read it. Do not copy those facts back into the skill: the previous copy drifted
(wrong deploy host, a removed section, a wrong taxonomy key). Fix site facts in
the site repo.
Boundary with the crier plugin
mf creates and updates content; the separate crier plugin distributes it.
The pipeline is mf to Hugo to crier. Never reimplement cross-posting here; point
at /crier instead. The scribe skill reads the corpus via mf posts list --json
first (the CLI includes description as of 2026-06-09), with crier's
crier_search and a self-contained Glob path as fallbacks, so it works when
crier is not installed. If you add a hard crier dependency
anywhere, declare it explicitly.
Conventions to preserve when editing the skill
generateverbs (e.g.mf papers generate) are read-only on the database;syncverbs (e.g.mf projects sync) mutate it. Neither is a top-level command. Databases exist only for content whose ground truth lives elsewhere (projects, papers, series, pubs, packages), not for posts/writing.- The global
mf -nis not honored by every group (postsignores it). Keep the skill's per-group dry-run list accurate when the CLI changes. - Site-root resolution order:
MF_SITE_ROOT, then walk up for a.mf/directory, then~/.config/mf/config.yaml. This is why the skill "works from any directory." The~/github/...paths shown in the skill are the author's own environment, not portable references.
Version bumps
Keep .claude-plugin/plugin.json and the mf entry in the root
.claude-plugin/marketplace.json in sync (check both before bumping). Never bump one
without the other.
Validation
# Skill frontmatter
for f in skills/*/SKILL.md; do echo "=== $f ===" && head -5 "$f"; doneDoes 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.

