The Art of Debugging
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
“Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.”
$ npx skills add pytorch/executorch --skill profile -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pytorch/executorch profile --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/profile .claude/skills/profile && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "profile" agent skill from https://github.com/pytorch/executorch/tree/main/.claude/skills/profile into .claude/skills/profile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "profile", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pytorch/executorch/tree/main/.claude/skills/profileType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pytorch/executorch --skill profile -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pytorch/executorch profile --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/profile .agents/skills/profile && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "profile" agent skill from https://github.com/pytorch/executorch/tree/main/.claude/skills/profile into .agents/skills/profile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "profile", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pytorch/executorch --skill profile -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pytorch/executorch profile --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/profile .cursor/skills/profile && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "profile" agent skill from https://github.com/pytorch/executorch/tree/main/.claude/skills/profile into .cursor/skills/profile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "profile", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pytorch/executorch.git --path .claude/skills/profile--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pytorch/executorch --skill profile -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pytorch/executorch profile --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/profile .gemini/skills/profile && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "profile" agent skill from https://github.com/pytorch/executorch/tree/main/.claude/skills/profile into .gemini/skills/profile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "profile", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pytorch/executorch profileInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pytorch/executorch --skill profile -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/profile .github/skills/profile && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "profile" agent skill from https://github.com/pytorch/executorch/tree/main/.claude/skills/profile into .github/skills/profile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "profile", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pytorch/executorch --skill profile -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pytorch/executorch profile --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/profile .opencode/skills/profile && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "profile" agent skill from https://github.com/pytorch/executorch/tree/main/.claude/skills/profile into .opencode/skills/profile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "profile", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
profileExecuTorch Profiling is a skill in pytorch/executorch (5.1k stars). Its SKILL.md is about 165 tokens. Licence: Custom licence.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 80fb9e3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
ExecuTorch Profiling loads about 165 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 14 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 14 words (~165 tokens).
Just SKILL.md in .claude/skills/profile of pytorch/executorch.
Open the folder on GitHubat commit 80fb9e3
ExecuTorch Profiling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| ExecuTorch Profiling this skillpytorch/executorch | 5.1k | — | ~165 | Automated safety check: Pass | Custom licence | |
| The Art of Debuggingstas00/the-art-of-debugging | 1.7k | — | ~6.1k | Automated safety check: Notes | CC-BY-SA-4.0 | |
| Torch Performance Optimizationalbumentations-team/albucore | 123 | — | ~895 | Automated safety check: Pass | MIT | |
| Magpie Kernel Evaluatoramd/skills | 406 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Worktree Env Setupmeta-pytorch/attention-gym | 1.3k | — | ~858 | Automated safety check: Pass | BSD-3-Clause | |
| Ascendcascend-ai-coding/awesome-ascend-skills | 174 | — | ~3.5k | Automated safety check: Pass | None |
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
albumentations-team/albucore
Optimize or review eager CPU-only Albucore PyTorch runtime paths with benchmark-backed decisions.
amd/skills
Benchmarks LLM inference and drives GPU kernel optimization with Magpie.
meta-pytorch/attention-gym
Sets up an isolated per-worktree Python environment for attention-gym development using nightly PyTorch and the CI-mirroring uv flow.
ascend-ai-coding/awesome-ascend-skills
End-to-end AscendC custom operator development for Ascend NPU in an ascend-kernel (csrc/ops + build.sh + torchnpu PyTorch custom op) project.
ascend-ai-coding/awesome-ascend-skills
面向 Ascend PyTorch Profiler / msprof DB(如 ascendpytorchprofiler.db、msprof.db)的 SQL 分析技能。将自然语言问题(算子耗时、通信、下发、调度、schema/table 查询)转为安全可执行 SQL,并按需从官方文档提取表结构详情。
pytorch/executorch
Measures and shrinks the ExecuTorch runtime binary by building a size test, analyzing it with bloaty and landing each reduction as its own pull request.
pytorch/executorch
Builds ExecuTorch from source: the Python package, C++ runtime, model runners, Android and iOS cross-compilation and backend-specific builds, with environment checks.
pytorch/executorch
Developer guide for the Cortex-M (CMSIS-NN) backend in ExecuTorch: quantization pipeline, pass manager, tests and adding new ops.
pytorch/executorch
Answers ExecuTorch questions from a local wiki on backends, export pitfalls, quantization recipes, runtime errors and SoC compatibility.
pytorch/executorch
Reviews ExecuTorch pull requests or local branches for what CI cannot check, using a checklist, with an optional detailed line-by-line mode.
pytorch/executorch
Helps build, test and extend the Qualcomm AI Engine Direct (QNN) backend in ExecuTorch, with routes for new ops, model export, Buck-vs-CMake parity fixes and per-layer accuracy debugging.
Categories
Run `npx skills add pytorch/executorch --skill profile -a claude-code`. Or copy the skill folder (.claude/skills/profile in pytorch/executorch) into .claude/skills/profile in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pytorch/executorch --skill profile -a codex`. Or copy the skill folder (.claude/skills/profile in pytorch/executorch) into .agents/skills/profile in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pytorch/executorch --skill profile -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/profile, .gemini/skills/profile, .github/skills/profile and .opencode/skills/profile in your project.
SKILL.md names no scripts, command-line tools or credentials: ExecuTorch Profiling is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
ExecuTorch Profiling has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 165 tokens (SKILL.md is roughly 660 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with ExecuTorch Profiling: The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Torch Performance Optimization (albumentations-team/albucore, 123 stars), Magpie Kernel Evaluator (amd/skills, 406 stars) and Worktree Env Setup (meta-pytorch/attention-gym, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pytorch (a GitHub organization) maintains it in pytorch/executorch, which has 5,082 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 9, 2026.
Source: pytorch/executorch on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.