/research-core:conda-envfrom research-core
Activates Conda environments for Python commands, pip, and conda-dependent tools. Reads project environment declarations and handles activation in the same shell invocation.
Ships in research-core. 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.
Use the project's existing compatible declared runtime. Apply this skill's Conda commands when the project selects Conda or the chosen tool requires it; preserve an established alternative runtime rather than replacing it because a task uses Python.
Initialize and activate Conda in the same shell invocation as the command that needs it. Activation does not persist between tool calls; source the host's setup script before activating.
Read the project environment declaration and any optional site execution profile. Do not infer the Conda setup from the operating system or from the presence of an environment-modules command.
When conda is already discoverable, a portable invocation is:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda activate ENV_NAME && YOUR_COMMAND
If conda is not discoverable, run the setup command documented by the project or selected site
profile first. An HPC profile may load an environment module, but the profile must name the module;
do not invent a scheduler, module, installation path, or environment name.
Read the project's declared runtime and environment:
environment.yml, environment.yaml, or an environment name in the
project's native instructions.List available environments after the declared setup:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda env list
When the selected runtime is Conda, activate that environment in the same invocation before running:
For Conda work, install packages into the selected project environment, never into the system Python or base env.
Prefer conda install — it resolves dependencies against the full environment:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda activate ENV_NAME && conda install PACKAGE
Fall back to pip only within the active Conda environment when the package is unavailable
through the project's declared channels:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda activate ENV_NAME && python -m pip install PACKAGE
Never run bare pip install without first activating the project's conda environment. This would install into the wrong Python and cause confusion.
When suggesting install commands to users (e.g., for students or collaborators), always include the conda activation step.
Record pip installs in environment.yml. When you fall back to pip, add the package under a pip: subsection (and ensure pip is listed as a conda dependency). conda env export --from-history does not capture pip-installed packages, so they are otherwise silently lost:
dependencies:
- python=3.11
- pip # required for the pip: section below
- numpy
- pip:
- some-pip-only-package==1.2.3
Detect what was pip-installed (channel shows as pypi):
source "$(conda info --base)/etc/profile.d/conda.sh" && conda list -n ENV_NAME | awk 'NR>3 && $NF=="pypi" {print $1"=="$2}'
Global Conda settings affect other projects. Change them only as a separately requested machine setup operation, after inspecting the current settings. Do not run this configuration as a side effect of activation, package installation or project scaffolding. Example settings for that setup:
conda config --set channel_priority strict
conda config --set solver libmamba
conda config --add channels conda-forge
defaults.environment.yml is hand-curated and portable. Use --from-history for the conda
packages — it records only explicitly installed packages, not platform-specific transitive
deps:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda env export -n ENV_NAME --from-history
--from-history silently omits pip-installed packages. Capture those separately and
record them under a pip: subsection (with pip listed as a conda dependency):
source "$(conda info --base)/etc/profile.d/conda.sh" && conda list -n ENV_NAME | awk 'NR>3 && $NF=="pypi" {print $1"=="$2}'
Prefer reconciling the existing hand-curated environment.yml (add new conda packages
to dependencies:, new pip packages to the pip: subsection) over overwriting it — a full
conda env export produces pinned, platform-specific build strings that aren't portable.
Hygiene — keep out of environment.yml:
prefix: line — machine-specific absolute path, not portableUse a shared environment only when the project or an optional site profile explicitly declares one. Otherwise use the named environment in the project's environment specification. A reusable public procedure must not assume a lab-wide environment name or package set.
base — use the project's named environment.ipykernel when the project executes Python through Jupyter or Quarto.What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/analysis-distillationDistill exploratory or complex scientific analysis into the smallest readable workflow that supports a phase review, paper, report, or durable handoff. Use when a settled phase result needs consolidation, or selected results need publication-ready code, a newcomer reproduction route, or a maintained analysis path. Do not use to choose an unresolved scientific method, perform ordinary session cleanup, or rewrite a working pipeline merely to impose a preferred structure.
/analysis-review-dashboardBuild or refresh a browser dashboard for independently reviewing a scientific analysis, from a short workflow to a branching pipeline. Organize existing evidence into a pipeline overview, scientific task pages and complete script reviews with file and object previews. Use when the user asks for an analysis review dashboard or linked pipeline/task/script pages. Do not use for a task-status dashboard, source-code distillation alone, or a script audit alone.
/audit-projectReview project documentation, authority, navigation and workflow drift; propose careful, reversible consolidation when useful. Use for project health or documentation reconciliation, not script correctness (audit-script) or skill quality (a separate maintainer audit; use plugin-feedback for a student plugin report).
Other plugins' skills for the same job
npx claudepluginhub musserlab/lab-claude-skills --plugin research-core