setup · pytorch — Claude Code skill: what it does, how to install
This skill prepares an ExecuTorch development environment, from activating conda to installing dependencies. It also covers optional Huggingface setup.
BSD-3-Clause 22 installs ★ 5,187 updated 2026-10-29
npx skills add pytorch/executorch --skill setup -a claude-codeWhat setup does
The skill guides the agent through the ExecuTorch environment setup. It first activates the executorch conda environment. If that environment is missing from the known names, it checks conda env list | grep -E "(executorch|et)". The main installation then runs through ./install_executorch.sh.
Huggingface support has its own optional path. The skill reads the pinned commit from .ci/docker/ci_commit_pins/optimum-executorch.txt and installs optimum-executorch with pip install git+https://github.com/huggingface/optimum-executorch.git@<COMMIT>. The executorch environment must be active before the installation step. The skill is available for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.
What it helps with
- activate the ExecuTorch conda environment
- check for
executorchoretenvironments - install ExecuTorch with
install_executorch.sh - add Huggingface support from the pinned commit
Example prompts for the agent
- Use the
setupskill to prepare the ExecuTorch environment and install its dependencies. - Check for the
executorchconda environment, then install ExecuTorch. - Set up Huggingface support using the commit from
.ci/docker/ci_commit_pins/optimum-executorch.txt.
How to install setup
1Skills CLI (Vercel)
npx skills add pytorch/executorch --skill setup -a claude-code2Manually: put the files in place
~/.claude/skills/setup/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/setup/
1Skills CLI (Vercel)
npx skills add pytorch/executorch --skill setup -a codex2Manually: put the files in place
.agents/skills/setup/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pytorch/executorch --skill setup -a cursor2Manually: put the files in place
.cursor/skills/setup/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pytorch/executorch .claude/skills/setup2Manually: put the files in place
.github/skills/setup/SKILL.md1Skills CLI (Vercel)
npx skills add pytorch/executorch --skill setup -a gemini-cli2Platform CLI
gemini skills install https://github.com/pytorch/executorch --path .claude/skills/setupManually: put the files in place
.devin/skills/setup/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pytorch/executorch --skill setup -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about setup
How do I install setup in Claude Code?
Run npx skills add pytorch/executorch --skill setup -a claude-code, then open ~/.claude/skills/setup/SKILL.md.
What does setup do?
It activates the executorch conda environment, runs ./install_executorch.sh, and covers optional Huggingface integration.
What is needed for Huggingface integration?
Read the commit in .ci/docker/ci_commit_pins/optimum-executorch.txt, then run pip install git+https://github.com/huggingface/optimum-executorch.git@<COMMIT>.
Source text
SKILL.md · BSD-3-Clause
--- name: setup description: Set up ExecuTorch development environment. Use when installing dependencies, setting up conda environments, or preparing to develop with ExecuTorch. --- # Setup 1. Activate conda: `conda activate executorch` - If not found: `conda env list | grep -E "(executorch|et)"` 2. Install executorch: `./install_executorch.sh` 3. (Optional) For Huggingface integration: - Read commit from `.ci/docker/ci_commit_pins/optimum-executorch.txt` - Install: `pip install git+https://github.com/huggingface/optimum-executorch.git@<COMMIT>`
© pytorch · BSD-3-Clause · pytorch/executorch
Similar skills
SKILL.md skills catalog →setup by other authors comes first.