/mf:mf [intent, e.g. 'new post about X', 'sync papers', 'health check']from mf
Use mf (metafunctor) to manage papers, projects, series, packages, publications, and posts for the metafunctor.com Hugo site, plus site health checks. For cross-posting, use the crier plugin. Invoke from ANY repo; mf works globally.
Ships in mf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interpret the user's intent, then run the right mf CLI workflow. mf does the mechanics (database CRUD, Hugo content generation, front matter edits); you do the judgment (choosing and sequencing commands, writing content).
/usr/bin/mf (Metafont) that shadows the metafunctor CLI when the latter is not earlier on PATH. Before the first mf command in a session, run mf --version and expect mf, version .... Anything else (a This is METAFONT banner, or a prompt waiting for input) means the CLI is not on PATH: stop and tell the user to install it with uv tool install -e ~/github/repos/mf (which puts it in ~/.local/bin), rather than running commands against the wrong program.mf config path prints <site root>/.mf/config.yaml (it honors MF_SITE_ROOT and the global config). Then Read <site root>/CLAUDE.md before writing or editing content. It is the single source of truth for taxonomies and their front-matter keys, front matter fields, bundle types, build and deploy, and site gotchas. Do not rely on memory for these. ls <site root>/content/ is the authoritative section list; read a section's _index.md before adding to it.Field lists for the databases come from the CLI itself: mf papers fields, mf projects fields, mf series fields, mf packages fields.
| Content | Ground truth | mf role | Database |
|---|---|---|---|
| Projects | GitHub repos | import/sync + overrides + generate | projects_db.json |
| Papers | Built paper repos (LaTeX) | ingest + set + generate | paper_db.json |
| Series | External source repos (source_dir) | sync (pull by default) + landing pages | series_db.json |
| Publications | Venue lifecycle (submissions, acceptances, DOIs) | add/update/log/pull + generate | pubs_db.json (independent of paper_db) |
| Packages | PyPI/CRAN registries | add/sync + generate | packages_db.json |
| Posts | The .md file | mf posts front matter edits | none |
| Writing, essays, other sections | The .md file | none | none |
Key principle: databases exist only for content whose ground truth lives elsewhere.
| User says... | Workflow |
|---|---|
| "new paper", "add a paper" | New Paper (below) |
| "new project", "add repo" | New Project (below) |
| "new post", "write about X", "synthesis post" | New Post (below) |
| "health check", "audit site" | Health Pass (below) |
| "deploy", "push to prod" | Pre-Deploy (below) |
| "feature X" | mf {type} feature <slug> (--off to unfeature) |
| "star this paper" | mf papers set <slug> stars 5 |
| "tag X with Y" | mf {type} tag <slug> --add Y |
| "sync papers" | mf papers status (staleness), then mf papers ingest <slug> + mf papers generate --slug <slug> |
| "sync projects" | mf projects sync |
| "sync series" | mf series sync <slug> (or --all); --dry-run first |
| "cross-post", "share on socials" | Hand off to the crier plugin (/crier) |
| "what content do I have" | mf analytics summary |
| "find broken links" | mf health links |
| "clean up tags" | mf taxonomy audit, then mf taxonomy normalize --from <old> --to <new> [--field tags|categories] --dry-run, then rerun without --dry-run |
make html pdf there); the slug must already exist in paper_dbmf papers ingest <slug> (pulls the built HTML/PDF into the site)mf papers set <slug> stars 5 (and any other metadata; mf papers fields lists them)mf papers generate --slug <slug>mf pubs add <slug> --title "..." --type "journal article" (both required; mf pubs add --help lists allowed types and statuses), or mf pubs update <slug> --status ... / mf pubs log <slug> --event ... for an existing entry, then mf pubs generate --slug <slug> (the registry does not render on its own)/crierCheck staleness anytime with mf papers status; preview drift with mf papers diff.
.mf/projects_db.json (or mf projects import --user <github-user>)mf projects syncmf posts create --title "Title" -t tag -c Category [--series slug] [--description "..."]; it prints the created path (a date-prefixed bundle) and sets draft: truemf posts set <slug> draft false when ready (<slug> without the date prefix works)/criermf health links: broken internal linksmf health descriptions: posts missing descriptionmf health images: posts missing featured_imagemf health stale: project content whose description diverged from the DBmf integrity check: database consistencymf content audit --extended: linked_project references plus extended checks (--list-checks shows them)mf taxonomy audit: near-duplicate termsmf status: any render drift between DBs and generated pages?mf integrity check: databases ok?docs/: hugo --gc --minify --destination /tmp/mf-check (a bare hugo overwrites the committed docs/). The site CLAUDE.md lists the full validation suite.mf health links: no broken links?make deploy builds docs/; pushing master is the production deploy)Most database groups (papers, projects, series, packages) share a core of list, show, set, unset, feature, tag, fields, stats, diff. The table lists what each group adds or lacks; mf <group> --help is authoritative.
| Group | Distinctive verbs | Notes |
|---|---|---|
papers | ingest, generate, status, zenodo, fetch-cff, cff-status | Built paper repo → DB → Hugo |
projects | import, sync, generate, refresh, hide, make-rich, list-rich, clean, fetch-codemeta, codemeta-status, rate-limit | GitHub → DB → Hugo |
series | create, sync, scan, add, remove, delete, add-featured, add-link, add-related, artifacts, audit, audit-nav, classify-frontmatter | sync pulls by default (--push to push, --ours/--theirs for conflicts, --interactive); diff compares against the source repo |
packages | add, remove, sync, generate | PyPI/CRAN → DB → Hugo |
posts | create, list, set, unset, tag, feature | Direct front matter edits; no show, fields, stats, or diff |
pubs | add, update, log, pull, check, generate, zenodo | Edits go through update/log (no set, unset, feature, tag, fields); migrate is a one-time paper_db seed |
content | match-projects, about, list-projects, audit | Cross-content linking |
taxonomy | audit, orphans, stats, normalize | Tag/category hygiene |
health | links, descriptions, images, drafts, stale | Read-only content checks |
analytics | summary, gaps, tags, timeline, suggestions, projects | Content insights |
integrity | check, fix, orphans | Database consistency |
backup | list, rollback, clean, status | Backup management |
config | show, get, set, path, reset | Configuration |
| (top level) | init, status | init creates .mf/; status is the read-only render-drift dashboard |
sync before generate if you want fresh data, and generate (or sync) before deployingmf status (all modules, -v for pages) or mf <group> diff for one groupmf pubs update/log when venue status changes)mf -n/--dry-run is honored only by papers, projects, packages, pubs, series, and content. posts ignores it and writes anyway: mf -n posts set ... edits the file. Preview a post edit by reading the front matter instead.--dry-run flags: taxonomy normalize, series sync, integrity fix, backup clean, backup rollback, content audit (-n).--regenerate (rebuild Hugo pages after the edit) exists on set, feature, and tag for papers and projects only.--json output is available on posts list, the health checks, integrity check, analytics summary, and content audit.The CLI resolves the site root in this order, which is why it works from any directory:
MF_SITE_ROOT environment variable.mf/ directory~/.config/mf/config.yaml (a site_root: ~/github/repos/metafunctor line; edit the file directly, since mf config set does not manage site_root)Content flows mf (create/update) → Hugo (render) → crier (distribute). After content changes are deployed, suggest cross-posting and hand off to the crier plugin (/crier); it owns the publishing workflow, rewrites, and failure handling.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
2 plugins ship this exact skill · first indexed Oct 24, 2026
Other plugins' skills for the same job
npx claudepluginhub abdulqudduz/claude-anvil --plugin mf