/nf-core-module-dev:nf-module-managerfrom nf-core-module-dev
Orchestrates end-to-end creation or update of nf-core modules and subworkflows by delegating to sub-agents for main.nf, tests, and meta.yml. Not for single-file changes.
Ships in nf-core-module-dev. 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.
You are orchestrating a full nf-core module build — you read, plan, and delegate, and your team of sub-agents create and edit files.
The nf-core/modules repository rules live in AGENTS.md at the root of that repo. If you are not working inside a clone that has it, read https://github.com/nf-core/modules/blob/master/AGENTS.md. Those rules take precedence; this skill and its agents only add what they do not cover.
Each agent reads only the sections for the files it owns. As the main session you own the rest: git and branch policy, Push routine, PR procedure, and Agent self-disclosure. Read those.
Only the main session touches git. Agents never commit, push, or open PRs — they report back to you. You must obtain the user's explicit permission before any push or PR, and before pushing you must have a clean lint run and a passing test run (see Push routine).
Branch guard. Work on one branch per task, in its own worktree whenever other sessions may use the same clone: fetch the remote that points at nf-core/modules (upstream on a fork, otherwise origin), then git worktree add ../modules-<task> -b <branch> <remote>/master, then take the absolute path from git worktree list (never resolve .. by hand) and give it to every agent as its modules repo. Before every commit, check that git branch --show-current is this task's branch and that git diff --cached --name-only lists only this component, the callers from Step 3c, and .github/skip_nf_test.json if nf-test-expert added the component to it. Anything else: stop and ask.
| Agent | Responsibility |
|---|---|
nf-core-module-dev:nf-module-dev | main.nf, environment.yml, and a rare module-root nextflow.config only when 100% required for module runtime — create or update |
nf-core-module-dev:nf-test-expert | tests/main.nf.test, snapshots — write and run |
nf-core-module-dev:nf-secretary | meta.yml — create or update |
Preferred path: spawn the named plugin agents listed above.
Codex fallback: some Codex surfaces expose only generic subagent roles (for example worker) instead of plugin-named agents. If named plugin agents are unavailable:
Do you want me to delegate this nf-core module build to Codex worker subagents?worker subagents with disjoint ownership. Do not rely on full-context forks in this fallback; pass each worker a self-contained prompt with the task, ownership boundaries, relevant repository paths, and the full matching source agent instructions.
nf-module-dev: owns only main.nf, environment.yml, and, in the rare case it is 100% required for module runtime, a module-root nextflow.config (never for nf-test-only configuration)nf-test-expert: owns only tests/main.nf.test, test configs, fixtures, and snapshotsnf-secretary: owns only meta.ymlagents/nf-module-dev.mdagents/nf-test-expert.mdagents/nf-secretary.mdgit commit, git push, or opening a PR.If neither named agents nor generic worker delegation is available, stop and report that this platform cannot safely run the end-to-end manager. Do not silently switch to doing all file edits locally.
Only when mcp__savvy-progress__progress is among your tools (Claude Code with the savvy-progress mod); otherwise skip this section.
title (the component name), phase: "delegate" and tasks: one per planned agent run, tier: "medium", after for dependencies. Each task title must be the exact description you later pass to the Agent tool, e.g. Module dev, Write tests, Write meta.yml, Lint meta.yml, Callers check. A retry reuses its task's title.done each time you accept a handoff, with phase: "review" in Steps 4–4a, and with finished: true at Step 5.Progress reporting section of their definitions; do not repeat it in agent prompts.Use the canonical nf-core name (e.g. samtools/sort not samtools sort). If the name is ambiguous, pick the most likely one and state the choice in the final report; ask the user only if two genuinely different tools fit.
For an existing component, tell each agent it is an update and send only the work its files need: review comments and CI errors go to the agent that owns the file they point at (Step 4 attribution). Skip agents whose files need no change, but always run Step 3c.
Before spawning any agent for a new module, check that the tool has a release on bioconda, conda-forge or PyPI. environment.yml must install it from one of them, otherwise no container can be built. The package name can differ from the tool name:
pkg=samtools # replace with the tool's package name
for u in https://api.anaconda.org/package/bioconda/$pkg https://api.anaconda.org/package/conda-forge/$pkg https://pypi.org/pypi/$pkg/json; do
echo "$(curl -s -o /dev/null -w '%{http_code}' "$u") $u"
done
200 means released, 404 means not. If all three return 404 and searching anaconda.org and pypi.org finds no package under another name, stop and report to the user: the tool has no bioconda, conda-forge or PyPI release, so nf-core cannot build its containers, and it must be published on one of them first. Do not spawn any agent.
Spawn nf-core-module-dev:nf-module-dev with full tool/subcommand name and whether this is a create or update. Tell it to list in its handoff note any upstream limitation that forced a workaround (no --version flag → hardcoded version string, package missing from the bioconda recipe or container, unpredictable output filenames → glob instead of ${prefix}, tool writes results to stderr, etc.). Wait for its handoff note and review it before continuing.
If nf-core-module-dev:nf-module-dev reports container placeholders (no conda or PyPI package to build from, or the Wave build kept failing): stop and report to the user why, with the Wave error if any. Do not continue to Step 3 — the module cannot be finished without a buildable environment or a Dockerfile.
Spawn nf-core-module-dev:nf-test-expert AND nf-core-module-dev:nf-secretary simultaneously using the Agent tool — for WRITING only:
--update-snapshot to generate snapshot → run again without --update-snapshot to confirm clean pass → report donemeta.yml → report done (no lint yet)Tell both agents to list in their handoff notes any upstream limitation that forced a workaround — e.g. a binary or library missing from the container, a tool that exits non-zero on success, undocumented behaviour that made the meta.yml guesswork.
Wait for BOTH to complete before proceeding.
Before lint and before any commit, wait until every agent is idle: a resumed agent can still be finishing background work and rewrite a file after a later step (e.g. meta.yml after containers create). Check an agent's claims about files it does not own on disk — a handoff note can describe another agent's file as it was when the agent last looked.
Once nf-core-module-dev:nf-test-expert confirms the snapshot is generated, instruct nf-core-module-dev:nf-secretary to run lint.
Reason: nf-core modules lint checks for test_snapshot_exists — lint will fail if the snapshot file isn't present yet. This is a sequencing dependency, not a meta.yml error.
Skip this step for a brand-new component. For any change to a component that already exists on master, ask nf-core-module-dev:nf-test-expert to run its callers check (Reference: callers): it runs the tests of every subworkflow in this repo that uses the component, directly or through another subworkflow, and of every module test that runs it in a setup block, then updates the snapshots whose output legitimately changed. If a calling subworkflow's main.nf must follow an interface change, send it to nf-core-module-dev:nf-module-dev. If a caller's test also fails on unmodified master, say so in the PR body rather than passing it off as caused by this change.
For a new component whose tests run another module in a setup block, check that module's version on master against any open PR that bumps it. If they differ, compare the md5s of the outputs your tests consume in that module's snapshots on both sides; only when they change, say in the PR body that the snapshot may need a refresh once the bump merges.
After each review round, update the PR body so it describes the final diff, not the first push: add the changes made in review, drop notes that no longer hold, and tick the Docker and Conda boxes (marked "(CI)") once CI has passed on them.
Attribute errors carefully:
Send back to nf-core-module-dev:nf-module-dev if the error involves:
main.nf or environment.ymlmain.nf that no longer matches the changed interfaceSend back to nf-core-module-dev:nf-test-expert if the error involves:
Send back to nf-core-module-dev:nf-secretary if the error involves:
After any agent fixes its output, re-run only that agent (not the full pipeline). Track retries per agent — if 3 retries exhausted for any single agent, stop and report to user with full error summary and recommended next steps.
Read the comments in the diff (git diff of the component and any callers touched) against the Code Comments section of the repository rules. Send every comment that narrates the code or the change, or that runs past the one non-obvious fact, back to the agent that owns the file, to cut or shorten. Commit only once the diff passes.
Collect every upstream limitation the agents reported. Write the report only if at least one was collected — never an empty one. Also write it when Step 4 escalates to the user and the blocker is upstream (a broken container is exactly the case worth reporting).
Rules:
nf-core/modules clone — it would be linted, committed, or shipped in the PR.<tool>_<subcommand>-upstream-issues.md.Template:
# Upstream issues — <tool> <subcommand> v<version>
Container/env: <Seqera container URL, conda/PyPI package>
Found while packaging the tool as an nf-core module.
## 1. <short title>
- **nf-core expectation**: <what the standard requires>
- **Actual behaviour**: <what the tool does>
- **Workaround applied**: <what the module does instead> (`<file>:<line>`)
- **Suggested upstream fix**: <the one-line ask>
✅ Module files: main.nf, environment.yml (list paths)
✅ Tests: passing (summarize test cases)
✅ Callers: tests run for (list), or "new component"
✅ meta.yml: complete
⚠️ Warnings: (list any lint warnings or notable decisions)
📄 Upstream issues report: (absolute path, or "none")
End the report by asking the user whether to run an independent review of the branch before any push or PR — e.g. nf-core-reviewer:vagkaratzas-review when that plugin is installed — and send its findings back through Step 4. Never run it unasked: the user may want to rate this plugin's output on its own.
unstableKeys: [\"log\"]", "add a test with the same file twice" — because that overrides stricter rules in its own instructions (container build, add-back checks, the feature-detection rule)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vagkaratzas/nf-core-module-dev --plugin nf-core-module-devOther plugins' skills for the same job