agentleFS
queeliusqueelius/claude-anvil/pub-pipeline/CLAUDE.md

claude-anvil / pub-pipeline

CLAUDE.md2 starsChanged 40 days agoMITView on GitHub

A Claude Code plugin (not a software project) that automates publication workflows: - R packages: CRAN (and R-universe), then JOSS, then optionally JSS - Python packages: PyPI publishing via trusted publishers There is no build system, test suite, or compiled code. The plugin is Markdown files with YAML frontmatter. There are no commands/ files: skills are slash-invocable on their own, and inside a plugin a same-name command shadows the skill entirely (the skill never loads). Do not add a command…

The file

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

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    joss-reviewer: read-only; spawns the three specialists in parallel, reviews the paper itself, synthesizes the checklist report.

    line 47
  2. Very specific:

    Never instruct a Bash command that prompts interactively (credentials, devtools::submit_cran()).

    line 71
  3. Distinctive:

    Prefer structured sources over scraping: PyPI JSON API, R-universe JSON API, DOI content negotiation, pandoc citeproc warnings.

    line 72
  4. Distinctive:

    No em-dashes in prose.

    line 73

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

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

A Claude Code plugin (not a software project) that automates publication workflows:

  • R packages: CRAN (and R-universe), then JOSS, then optionally JSS
  • Python packages: PyPI publishing via trusted publishers

There is no build system, test suite, or compiled code. The plugin is Markdown files with YAML frontmatter.

Architecture

.claude-plugin/plugin.json    # Plugin manifest
skills/                       # 5 skills, each also a slash command (/pub-pipeline:<name>)
agents/                       # 5 agents: the JOSS multi-agent system
docs/                         # Reference docs, exemplar, config template

Skills

SkillRole
r-publishR pipeline orchestrator (CRAN, R-universe status, JOSS, JSS)
cran-auditInline CRAN policy audit and gap report
joss-draftThin launcher for the joss-writer agent
joss-auditThin launcher for the joss-reviewer agent
pypi-publishPyPI audit, build, trusted-publisher release

There are no commands/ files: skills are slash-invocable on their own, and inside a plugin a same-name command shadows the skill entirely (the skill never loads). Do not add a command that shares a skill's name. There is no router skill either: the r-publish and pypi-publish descriptions carry the routing hints (including "a standalone LaTeX paper belongs to papermill").

Multi-Agent Architecture (JOSS)

The JOSS workflows live only in the agents; the joss-draft and joss-audit skills just gather config, dispatch, and handle the agents' Decisions Needed blocks in the main session (subagents cannot ask the user), re-dispatching with an <answers> block.

joss-writer (inherit, blue)        joss-reviewer (inherit, red)
  ├─ field-scout (sonnet, cyan)      ├─ software-auditor (sonnet, yellow)
  └─ [writes paper.md + paper.bib]   ├─ community-auditor (haiku, green)
                                     ├─ field-scout (sonnet, cyan)
                                     └─ [synthesizes JOSS checklist report]
  • joss-writer: discovers existing manuscripts, gathers author metadata (dispatcher input, CITATION, DESCRIPTION, config, deets CLI), spawns field-scout, drafts, validates with pandoc citeproc and the openjournals/inara build.
  • joss-reviewer: read-only; spawns the three specialists in parallel, reviews the paper itself, synthesizes the checklist report.
  • field-scout: finds competitors (CRAN, R-universe search API, PyPI JSON, web). BibTeX must come from DOI content negotiation or citation(); anything else is labeled UNVERIFIED.
  • software-auditor: tests, coverage, installation, docs, CI, R CMD check.
  • community-auditor: LICENSE, CONTRIBUTING, issue tracker, development history, the single-author evidence rule. A code of conduct is informational only (JOSS does not require one).

Orchestrators dispatch specialists with the Agent tool by qualified name (pub-pipeline:field-scout) and pass context in XML tags.

Shared User Config

Skills read .claude/pub-pipeline.local.md in the target project. The template is docs/user-config-template.md: YAML frontmatter (author, coauthors, r, ai_usage, related_work, funding) plus free-form notes. If missing, skills offer to create it from ${CLAUDE_PLUGIN_ROOT}/docs/user-config-template.md. Author metadata falls back to the global deets CLI (deets show --format json).

Reference Docs (${CLAUDE_PLUGIN_ROOT}/docs/)

  • cran-reference.md: CRAN Repository Policy, submission checklist
  • joss-reference.md: JOSS requirements, reviewer checklist, paper format (verified 2026-10-21)
  • joss-exemplars.md: one paper verified to use the current JOSS format; add more only after checking their source paper.md
  • pypi-reference.md: PyPI metadata, trusted publisher workflow template

KDP publishing lives in the sibling kdp/ plugin, not here.

Conventions

  • Skills: frontmatter name, description (with routing hints), optional argument-hint; numbered steps with tool annotations (Read tool), (Bash tool).
  • Audit output uses Critical (Must Fix) / Warnings (Should Fix) / Passed, plus Recommended Next Steps. pypi-publish step 7 follows the same pattern.
  • Never instruct a Bash command that prompts interactively (credentials, devtools::submit_cran()). Use env-var tokens or hand the command to the user as ! <command>.
  • Prefer structured sources over scraping: PyPI JSON API, R-universe JSON API, DOI content negotiation, pandoc citeproc warnings.
  • No em-dashes in prose.

Validation

for f in skills/*/SKILL.md; do echo "=== $f ===" && head -8 "$f"; done
for f in agents/*.md; do echo "=== $f ===" && head -12 "$f"; done
grep -roh '\${CLAUDE_PLUGIN_ROOT}/[^`"*]*' skills/ agents/ | sort -u | while read ref; do
  f="${ref/\$\{CLAUDE_PLUGIN_ROOT\}/.}"; [ -f "$f" ] || echo "BROKEN: $ref"; done
grep -rho 'pub-pipeline:[a-z-]*' skills/ agents/ | sort -u   # each must be a skill or agent name
grep -rnP '\x{2014}' --include=*.md . && echo "EM-DASHES FOUND"

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.