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

claude-anvil / crier

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

Editing guidance for the crier Claude Code plugin. Read before editing. crier cross-posts blog content (the blog is the source of truth) to multiple platforms: Dev.to, Hashnode, Bluesky, Mastodon, Medium, Twitter, and more. The plugin is the judgment layer; the mechanics live in an external crier CLI. .mcp.json does NOT bundle a server. It shells out to a globally-installed crier CLI run as crier mcp (pip install crier). The SessionStart hook (hooks/scripts/detect-crier-setup.sh) warns the user if the CLI is missing.…

  • Installs packages

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not grant Bash: the agents do not shell out, and the SessionStart hook runs outside the agents.

    line 32
  2. Very specific:

    Keep .claude-plugin/plugin.json and the crier entry in the root .claude-plugin/marketplace.json in sync (both currently 1.2.0).

    line 66

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

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

CLAUDE.md (crier plugin)

Editing guidance for the crier Claude Code plugin. Read before editing.

What this is

crier cross-posts blog content (the blog is the source of truth) to multiple platforms: Dev.to, Hashnode, Bluesky, Mastodon, Medium, Twitter, and more. The plugin is the judgment layer; the mechanics live in an external crier CLI.

External dependency: the MCP server is not in-tree

.mcp.json does NOT bundle a server. It shells out to a globally-installed crier CLI run as crier mcp (pip install crier). The SessionStart hook (hooks/scripts/detect-crier-setup.sh) warns the user if the CLI is missing. Editors must not expect a bundled server, and must not add ${CLAUDE_PLUGIN_ROOT} to the .mcp.json command: invoking the global crier binary is correct by design.

Components

  • skills/crier/SKILL.md: judgment context the tools cannot encode, namely rewrite guidelines, platform culture, workflow tips.
  • Commands: /crier (quick audit-and-publish), /chronicler (weekly cross-posting catch-up). Keep them thin; logic lives in the skill/agents.
  • Agents: cross-poster (autonomous bulk publishing), auditor (read-only gap, performance, staleness, and failure analysis). Each agent's tools list should grant only the crier MCP tools it uses, plus Read and AskUserQuestion. IMPORTANT: because the server is plugin-bundled, the tools register as mcp__plugin_crier_crier__crier_* (NOT mcp__crier__crier_*); an allowlist with the short prefix matches nothing and locks the agent out. Do not grant Bash: the agents do not shell out, and the SessionStart hook runs outside the agents.

MCP tool inventory and the count-drift trap

The crier MCP server exposes ~20 crier_* tools (archive, article, campaign_plan, campaign_run, check, delete, doctor, failures, list_remote, missing, publications, publish, query, reconcile, record, search, sql, stats, stats_refresh, summary), surfaced in sessions under the mcp__plugin_crier_crier__ prefix. Do NOT hardcode a tool count in any description: an earlier "17 tools" claim went stale. If you must reference the count, keep it in sync or drop the number.

Platform model and contracts

  • Platform modes: API (automatic: devto, hashnode, bluesky, mastodon), import (medium: user imports from the canonical URL), paste (twitter, threads, linkedin: manual).
  • Short-form rewrite contract: short platforms (bluesky 300, mastodon 500, twitter 280, threads 500) need a rewrite. Claude writes it and passes it via rewrite_content; crier appends the canonical URL automatically, so never include the URL in the rewrite.
  • Two-step confirmation for destructive ops (publish, delete): call once without a token to get a preview plus token, then call again with the token to execute. Agents and commands all depend on this.

Boundary with the mf plugin

mf owns creating and updating metafunctor.com content (Hugo); crier owns distribution. The pipeline is mf to Hugo to crier. Do not duplicate site-management logic here.

Version bumps

Keep .claude-plugin/plugin.json and the crier entry in the root .claude-plugin/marketplace.json in sync (both currently 1.2.0).

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.