skills/tools/pixi/pixi-make-offline-channel/SKILL.md
Use when the user wants to create a self-hosted, offline-installable Conda channel (mirror) containing a specific subset of packages using Pixi.
npx skillsauth add igamenovoer/magic-context pixi-make-offline-channelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user asks to:
This skill guides the user to creating a custom, self-hosted Conda channel (mirror) that contains only a selected subset of packages but includes all transitive dependencies. This ensures the channel is fully installable on offline machines.
The workflow uses Pixi's lockfile (pixi.lock) as the source of truth for dependency resolution and rattler-index for generating channel metadata.
Create a temporary "builder" project to define the package set. This project will not be used for running code, but for resolving the dependency tree.
mkdir my-mirror-builder
cd my-mirror-builder
pixi init
Add the target packages you want to mirror. Also add the necessary build tools (rattler-index and pyyaml) to the environment.
# Target packages to mirror
pixi add pandas scikit-learn pytorch
# Tools required for the mirroring process
pixi add rattler-index pyyaml requests
Use a Python script to parse pixi.lock, extract the exact URLs for all resolved dependencies, and download them into a standard channel structure (e.g., channel/linux-64/).
Key Steps for the Script:
pixi.lock (YAML format).packages.url to output_dir/<platform>/<filename>.Ref: See context/hints/howto-create-self-hosted-conda-subset-repo-with-pixi.md for the complete build_mirror.py script.
After downloading all artifacts, use rattler-index to generate the repodata.json. This turns the directory into a valid Conda channel.
pixi run rattler-index local-channel
The channel is now ready. It can be used via file:// or hosted via HTTP.
Verification:
# Create a test env using ONLY the local channel
conda create -n test-offline -c file://$(pwd)/local-channel pandas --offline --override-channels
linux-64 AND osx-arm64), manually edit pixi.toml to include them (platforms = ["linux-64", "osx-arm64"]) and run pixi lock before running the download script.pixi update the builder project, re-run the download script (it should skip existing files), and re-run rattler-index.pixi-pack instead. This skill is for creating a reusable channel.data-ai
Create readable Mermaid diagrams inside Markdown files. Use for flowcharts and sequence diagrams that must render cleanly in common Markdown renderers (e.g., GitHub) without horizontal scrolling. Covers fenced mermaid blocks, init/theme styling, label wrapping with <br/>, and sequenceDiagram layout rules (short IDs, wrapped labels, don’t break identifiers).
development
Manual invocation only; use only when the user explicitly requests `make-program-tutorial` by exact name, OR when the user asks to use a skill to create an SDK/API/library tutorial. Create a clear, reproducible, step-by-step tutorial for a specific API/SDK/library (or a set of functions/classes), with runnable examples, expected outputs, and basic troubleshooting.
tools
Guides the agent to setup a new or existing Pixi environment for compiling C++ and CUDA code. It ensures the correct compilers, toolkits, and CMake configurations are in place for a robust user-space build.
tools
Use when the user says "use pixi to install <some nvidia tool>" (or similar) and wants NVIDIA/CUDA/GPU packages installed via Pixi (no sudo/apt), e.g., CUDA toolkit pieces, cuDNN/NCCL, PyTorch CUDA builds, RAPIDS.