agentleFS
queeliusqueelius/claude-anvil/mf/CLAUDE.md

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).…

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
  1. Very specific:

    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.

    line 24
  2. Distinctive:

    Read it. Do not copy those facts back into the skill: the previous copy drifted (wrong deploy host, a removed section, a wrong taxonomy …

    line 34
  3. Very specific:

    Keep .claude-plugin/plugin.json and the mf entry in the root .claude-plugin/marketplace.json in sync (check both before bumping).

    line 63

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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: mf CLI 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 against mf --help, mf <group> --help, and mf <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 of mf).
  • No commands/. Both skills are invoked directly as /mf and /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. Put argument-hint in 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

  • generate verbs (e.g. mf papers generate) are read-only on the database; sync verbs (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 -n is not honored by every group (posts ignores 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"; done

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.