/mycelium:analyzefrom mycelium
Runs computational analyses (clustering, PCA/UMAP, differential expression, survival/time-series models, statistical tests) using registered datasets and conventions. Supports new analyses and continuing prior work with planning discussions.
Ships in mycelium. 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.
Read when SKILL.md points to them.
Resolve bundled skills/ and network/ paths relative to the Mycelium plugin
root—the ancestor containing .codex-plugin/ and .claude-plugin/. Resolve
analysis and .living/ paths relative to the user's repository.
Start a new analysis or continue an existing one, routing to the appropriate convention packs installed in this repository.
Read manifests to understand the project:
analysis/ANALYSIS_MANIFEST.md — existing analysesdata/DATA_MANIFEST.md — available dataalgorithms/ALGORITHM_MANIFEST.md — available algorithmsContinuing existing: Navigate to analysis/[name]/ and read its documentation file (UPPER_SNAKE_CASE of folder name, e.g., SNP_ANALYSIS.md).
Offer a planning discussion before the first run. For a new analysis, or new work (a new question, or a new method for its question) in an analysis whose **Planning**: record is missing or pending, ask once in plain text whether the user wants a short planning discussion: at most 5 questions, one at a time, each with the evidence found and a recommended answer, ending in a sourced plan to confirm before anything runs. Yes is the recommended default. If the user skips, ask no planning questions and go straight to the analysis with a short plan built from the request, repository evidence, and labelled defaults. Planning is read-only until the plan is confirmed or skipped. Full procedure: skills/analyze/references/planning.md.
New analysis: Create analysis/[name]/ with documentation file (UPPER_SNAKE_CASE.md), scripts/, outputs/, reports/. If building on a parent analysis, record the lineage in the manifest entry. Record the planning outcome and the plan in the documentation file's ## Plan section.
Route to installed conventions:
.living/conventions/ACTIVE_CONVENTIONS.yaml to see what's installed.skills/core/references/analysis-conventions.md (structure) and skills/core/references/statistical-conventions.md (methodology). These are the baseline.robust-analysis is installed (check .living/conventions/robust-analysis/): Follow its conventions as the primary execution guide. Read .living/conventions/robust-analysis/analysis-conventions.md as the entry point — it links to detail files for strict execution, validation checks, sensitivity sweeps, null hypothesis testing, and adversarial probing. These conventions are non-negotiable when installed.bioinformatics, image-analysis): Consult its analysis-conventions.md for domain-specific methodology. Domain conventions layer on top of robust-analysis..living/conventions.md) > domain > core.Check the data assumptions before running. This step runs either way, whether the planning discussion happened or was skipped. When a statistical test or model depends on the sample table's structure (cohort sizes, unit of replication, pairing across timepoints, batch versus contrast), write those assumptions as a contract in analysis/<name>/data_contract.json and run skills/core/scripts/data_contract_check.py on it before the first analysis run. Take the contract's values from the plan's rows (step 3) or the repository, never from a first look at the data. A blocking alert stops the analysis until the user decides. Never loosen the contract to make it pass (drop a check, change a threshold, add a filter, switch the unit column) without the user's agreement, and log any agreed change to .living/decisions.md. Re-run it when the data changes. Full guide, contract format, and run command: skills/core/references/data-contract-check.md.
Execution standards:
run.sh or run.py that reproduces final outputs.python3 skills/core/scripts/setup_workflow.py --target-dir <repository root> status. Exit 2 means the repository never chose: ask the user, record the answer with the same command ending in choose snakemake, choose dvc, or choose none, and commit .living/workflow.json. With snakemake or dvc, ask the user before the repository's first run through the tool (when it has no Snakefile or dvc.yaml yet): say that you will install the tool if it is missing, create its workflow files, and, for DVC, run dvc init, which stages files in git. Do not ask again if they chose the tool in this conversation after hearing that. Then follow skills/core/references/workflow-guide.md: every result the analysis writes under analysis/<name>/outputs/ or data/processed/ that a report, a registered value, or a later step will use comes from a declared step that lists its inputs (data, the script, config) and outputs, and is run through the tool. run.sh then calls the tool from the repository root, as the guide shows. Quick looks and scratch work need no step. Only one step per analysis may write numbers.json or access.json; the guide says where the register_value and record_ids calls below then go. With none, this item does not apply.register_value at the site that computes them. Any number or short phrase the analysis would expect a future report to quote (sample counts, thresholds, contrast phrases, headline metrics) goes through skills/core/scripts/register_value.py. The call writes analysis/<name>/outputs/numbers.json; the report's Phase-1 merge picks up the fragment automatically, and scitexlintr then catches drift between the manifest value and any quoted snapshot in the .tex source. When the number is read from a file the analysis wrote, pass source={"path": ..., "locator": ...} after writing and closing that file. The number is then hash-linked to those bytes, and the report gates flag it stale-value if the file changes. When the number also depends on a config file that the table does not reflect, such as a threshold, list both files: a threshold change can leave the table byte-identical. At filter, subset and split steps, also call record_ids (same file; R: record_access.R) to record which rows or features the step used or dropped. Only counts and fingerprints are stored. Full guide: skills/core/references/report-values-guide.md. Skip this only for values the report will never cite..living/claims.json (strongly recommended). For any analysis with multiple conclusions, scripts, or sessions, maintain .living/claims.json (skills/core/references/claim-ledger.md). If .living/claims.json does not exist yet and no opt-out is logged in .living/decisions.md, ask once in plain text whether to initialize it now — strongly recommending yes — with python3 skills/core/scripts/claim_ledger.py init --analysis <name> (if the user declines, record the opt-out in .living/decisions.md so later sessions do not re-ask). Link each conclusion via <!-- claim:C1 --> anchors (or conclusion-scoped numbered headings) to its scripts, tables, upstream claims, and shared data_assets. Before /mycelium:review, run python3 skills/core/scripts/claim_ledger.py plan-review --analysis-dir analysis/<name> --write to record the review-time snapshot and scoped focus list, and put that snapshot in the review report header as **Claim ledger snapshot:** <sha256>; after review, bind every Major finding to a claim (or to :hygiene), clear every reviewed unblocked claim, and record full passes with python3 skills/core/scripts/claim_ledger.py ingest-review <review_md> --bind F<n>=<claim>:epistemic ... --clear <claim_ids> [--full] --write. If ingestion reports the evidence changed since the snapshot, re-run the review rather than taking a new snapshot so upstream edits and flagged inputs automatically surface stale downstream claims.Lint with scilintr after writing or modifying analysis code (non-negotiable). This is a fast static analyzer that flags silent scientific commitments — things that look like ordinary software (broad except, positional indexing, unchecked joins, unannotated filters, label leakage, magic thresholds, unseeded RNGs, etc.). The core principle is: scientifically meaningful choices must not be anonymous. Read skills/core/references/scilintr-guide.md before invoking it the first time in a session — it explains the philosophy, the rule catalogue, and (critically) the ANALYSIS_OK[category]: explanation waiver mechanism. Workflow:
python3 skills/core/scripts/setup_linters.py status. Exit 2 means the repository never chose: ask the user, recommending yes, and record the answer with setup_linters.py enable or disable. Check the entry for the analysis language: scilintr for Python, scilintr-r for R. If it is disabled, skip the linting steps below and say so in the analysis notes. If it is enabled, install it when missing without asking again.python3 skills/core/scripts/check_linter_versions.py scilintr reports the installed version and the latest on PyPI; it never installs, and if it is missing, install with pip install scilintr. R: the Python check does not apply (the R package runs as Rscript -e 'scilintr::main()'); Rscript -e 'packageVersion("scilintr")' gives the installed version, and Rscript -e 'op <- old.packages(repos = "https://cloud.r-project.org"); cat(if ("scilintr" %in% rownames(op)) paste("update available:", op["scilintr", "ReposVer"]) else "no newer CRAN release", "\n")' checks CRAN without installing; if it is missing, install with install.packages("scilintr"). If an update is available, tell the user and offer the upgrade — run it only with their agreement, since a newer linter can add rules and change what passes mid-analysis.scilintr <file_or_dir> on the touched files. The CLI is fast (sub-second on most files), so there is no reason to defer.# ANALYSIS_OK[category]: explanation; where the check/assertion lives). A waiver must answer what / why scientifically valid / where it is recorded. Vacuous waivers (# ANALYSIS_OK: fine) are not acceptable.scilintr on the full analysis directory (e.g., scilintr analysis/<name>/) to catch cross-file rules (duplicate-parameter-source, shadow-overwrite, definition drift)./mycelium:review, not a substitute. Lint catches structural patterns cheaply; review catches semantic and statistical issues.Run the post-action hook protocol after significant steps (see /mycelium:core for the full protocol):
analysis/ANALYSIS_MANIFEST.md.living/decisions.md.living/learnings.md. Derive mitigation_type by the rule in skills/core/templates/learning-entry.md: structural if a shipped test, assertion, type constraint, frozenset, or schema validation enforces it; otherwise convention if a .living/conventions.md entry covers it; otherwise ambient-awareness.skills/core/scripts/validate_structure.pyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunrajlaboratory/mycelium --plugin mycelium11 skills in this plugin
/codex-reviewAddress Codex review comments on a pull request. Use when the user asks to respond to Codex, fix what Codex flagged, handle an @codex comment, or supplies a Codex review link. Generalize each comment into an error pattern, audit the whole branch for other instances, fix and test them, then draft a reply. Confirm before posting or re-triggering review. Do not use for a general code or scientific review without Codex feedback.
/coreInitialize and maintain Mycelium living repositories. Use when the user mentions Mycelium, living repos, crystallizing learnings or findings, recording decisions or settling which past decision still binds, installing conventions, tracking todo ideas, migrating an older Mycelium project, or managing the .living knowledge layer. Do not use for report writing, generic refactoring, brainstorming, git initialization, or ordinary folder organization.
/Other plugins' skills for the same job