/mycelium-extra:initfrom mycelium-extra
Turn on the plan-approval gate in this repository (creates .mycelium-extra/gate.json).
Ships in mycelium-extra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn on the approval gate in the current repository. The gate uses this plugin's host-specific hooks in hooks/; this skill only writes the file that switches them on.
Install the complete plugin, including hooks. In Codex, use CLI 0.160.0 or later, open /hooks, enable/trust the plugin hooks, and restart before relying on the gate. Standalone skills do not install hooks.
Run a dry run from stdin, from the repository root, so Mycelium's hooks stay closed:
<skill-dir>/../../hooks/mxpy - --dry-run < <skill-dir>/scripts/gate_init.py
Running the script by path opens Mycelium's post-action cycle, so never do that.
If it prints already gated, report the effective config and stop. Changing an existing gate is the user's call: they edit gate.json by hand. Do not offer to loosen it.
analysis/** and nbs/**, the commands sbatch, snakemake, and nextflow, and approvals last 24 hours.WARNING: none of gated_paths exist, the defaults would gate no scripts. List the repository's top-level folders that hold analysis scripts, and ask the user one question: which of them to gate. Do not guess.<skill-dir>/../../hooks/mxpy - [--paths 'scripts/**' 'workflow/**'] [--commands sbatch snakemake] [--hours 24] < <skill-dir>/scripts/gate_init.py
Pass only the options that differ from the defaults; with none, gate.json is {}. The script never overwrites an existing gate.json and never commits.
verify and the approval card run scilintr, and on a cluster neither scilintr nor an Rscript whose R has the scilintr package is usually on PATH. Run, from stdin as above, <skill-dir>/../../hooks/mxpy - --tools < <skill-dir>/scripts/gate_init.py (on a gate that is already on it leaves gate.json alone; in a repository with no gate it also turns the gate on, so run init first). It looks at $MX_SCILINTR, $MX_RSCRIPT, then PATH, checks that each tool works, and writes .mycelium-extra/tools.json. For one it cannot find, ask the user for its path (a venv's bin/scilintr; after module load R, which Rscript) and rerun with --scilintr PATH or --rscript PATH. Never install packages without asking.
When the user asks why the gate seems off, or what this install can see, run <skill-dir>/../../hooks/mxpy - --diagnose < <skill-dir>/scripts/gate_init.py (add --plugin-root DIR if it cannot find the plugin's hooks/). It writes nothing and reports the effective config (invalid values flagged), the hook registrations in hooks/hooks.json and hooks/codex.json (the OpenCode adapter in opencode/ is not checked), the Mycelium version, which of h5py, scilintr, Rscript and sacct are present, and the newest receipt's host and exit status and the last gate error. Pass its output on as printed, including its closing note: a registration or a gate.json does not prove the host has enabled or trusted the hooks. Do not combine it with options that write.
note: Mycelium <version> is installed here... line, passed on as printed: the Mycelium here is not one mycelium-extra was tested with. Do not act on it..mycelium-extra/gate.json, .gitignore, and tools.json when --tools ran) and the effective config, and which linters were found.opencode/ plugin directory in plugins, see the installation page); a session started before the plugin was installed needs a restart.Plan status: READY or READY_WITH_ASSUMPTIONS shows a card with approve plan <hash>; typing approve (or that line) allows the runs it names for approval_hours; a bare approve takes the card shown last. allow explore lets MYCELIUM_EXTRA_EXPLORE=1 runs through for the session; allow explore <plan hash> bounds it to that plan's analysis paths..gitignore; .mycelium-extra/ itself stays untracked.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mdmanurung/mycelium-extra --plugin mycelium-extra35 skills in this plugin
/analysis-mapChart a research program too big for one session as a map of decision tickets, then resolve them one at a time. Plans decisions; runs no analysis./analysis-reportFill the Quarto report new-analysis scaffolds in reports/ after a run. Narrative, quoted script excerpts, a step diagram and inspected figures in Overview, Methods, Results and Reproducibility tabs./ask-extraAsk which Mycelium Extra skill fits your situation. Names one to three skills to type and why; starts none of them./check-firstWrite the check that would catch a wrong result before the analysis code, one step at a time. Use when a step will decide something; not for exploratory looks or figure polishing./data-contract-checkCheck a plan's data assumptions (columns, cohort counts, replication unit, pairing, batch nesting) against the sample table or h5ad obs, read-only. Use when a plan rests on table properties nobody has verified; not for Seurat objects or code./decision-statusWork out which past entry in .living/decisions.md still binds a choice when several cover it, and record the resolution after the user confirms. Use when a decision is contested or grill finds two entries on one choice; not for logging a new decision.