Agent skill

ExecuTorch Knowledge Base

by pytorch in pytorch/executorch

Answers ExecuTorch questions from a local wiki on backends, export pitfalls, quantization recipes, runtime errors and SoC compatibility.

Custom licenceAuto-check passedAI & LLM Engineering

Install ExecuTorch Knowledge Base

skills CLI
$ npx skills add pytorch/executorch --skill executorch-kb -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pytorch/executorch executorch-kb --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pytorch/executorch.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/executorch-kb .claude/skills/executorch-kb && rm -rf skills-src

Use ~/.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/

Facts

Skill name
executorch-kb
GitHub stars
5.1k
Token cost
~1.3k tokens
SKILL.md length
515 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
Custom licence

At a glance

Answers ExecuTorch questions from a local wiki on backends, export pitfalls, quantization recipes, runtime errors and SoC compatibility.

  • Works in 5 steps: Read the index → Pick the right article(s) → Read the matching rules file → …
  • Debugging an ExecuTorch export or runtime error
  • SKILL.md covers Quick Start and Query Mode (default)
  • Reaches docs.qualcomm.com and apple.github.io

What it does

This skill searches a knowledge base distilled from ExecuTorch GitHub issues and discussions. It covers the QNN, XNNPACK, Vulkan, CoreML, Arm and Cadence backends, model export, quantization, and troubleshooting. You call it with a query and the agent works from the repository's .wiki folder.

The flow has four steps. The agent reads the wiki index, picks the relevant articles from a topic table (for example QNN debugging, Ethos-U and TOSA for Arm, torch.export lowering, quantization accuracy, build failures or slow inference), reads the matching short rules file for that area, and then answers. If an internal-modes file exists in the wiki, the first word of the arguments can select one of those extra modes instead.

It is a lookup aid for people debugging ExecuTorch errors, choosing quantization configs, checking backend operator support, or asking about Qualcomm HTP, Snapdragon and Apple Neural Engine behavior.

When your agent uses it

  • Debugging an ExecuTorch export or runtime error
  • Choosing a quantization recipe for a specific backend
  • Checking whether a backend supports a particular operator
  • Looking up Qualcomm HTP or Snapdragon SoC compatibility

Example prompts

  • “Why does my QNN delegate crash on a V73 device after quantization?”
  • “Which quantization recipe should I use for an XNNPACK build of a small vision model?”
  • “Search the knowledge base for torch.export failures when lowering an LLM.”
  • “Is this operator supported by the Vulkan backend?”

Requirements

  • A checkout of the ExecuTorch repository with its .wiki folder

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Read the index
  2. Pick the right article(s)
  3. Read the matching rules file
  4. Answer
  5. Verify against official docs when in doubt

What it can do on your machine

Read from SKILL.md and the folder at commit 27d124f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • docs.qualcomm.com
    • apple.github.io
    • developer.arm.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

ExecuTorch Knowledge Base loads about 1.3k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 515 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

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.

Safety

Auto-check passed

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.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 515 words (~1,269 tokens).

“Synthesized from 2,200+ GitHub issues and 99 discussions. Covers backends (QNN, XNNPACK, Vulkan, CoreML, Arm, Cadence), export, quantization, and troubleshooting.”

— opening of SKILL.md by pytorch, Custom licence
name
executorch-kb
apply_to_path
executorch/**

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/executorch-kb of pytorch/executorch.

Open the folder on GitHubat commit 27d124f

Compare with similar skills

ExecuTorch Knowledge Base 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.

ExecuTorch Knowledge Base compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
ExecuTorch Knowledge Base this skillpytorch/executorch5.1k—~1.3kAutomated safety check: PassCustom licence
The Art of Debuggingstas00/the-art-of-debugging1.7k—~6.1kAutomated safety check: NotesCC-BY-SA-4.0
Fix Issuepytorch/pytorch104k—~2.3kAutomated safety check: PassCustom licence
Pt2 Bug Basherpytorch/pytorch104k—~3.5kAutomated safety check: PassCustom licence
Quark Torch Debugamd/Quark181—~1.9kAutomated safety check: NotesMIT
Ascendcascend-ai-coding/awesome-ascend-skills174—~3.5kAutomated safety check: PassNone

Similar skills

  • 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.

    1.7k GitHub stars~6.1k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Fix Issue

    pytorch/pytorch

    Fix bugs reported in PyTorch GitHub issues by reproducing, root-causing, and implementing a fix in the local working tree.

    104k GitHub stars~2.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Pt2 Bug Basher

    pytorch/pytorch

    Debug PyTorch 2 compiler stack failures including Dynamo graph breaks, Inductor codegen errors, AOTAutograd crashes, and accuracy mismatches.

    104k GitHub stars~3.5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Diagnose failed Quark installation, PTQ execution, script generation, or export attempts.

    181 GitHub stars~1.9k tokensUpdated 9 days ago
    AI & LLM EngineeringAuto-check: notes
  • Ascendc

    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.

    174 GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • PyTorch Lightning Training

    Orchestra-Research/AI-Research-SKILLs

    Shows how to organize PyTorch training with Lightning's LightningModule and Trainer, covering validation, DDP, callbacks and learning-rate scheduling.

    13k GitHub starsUsed in 7 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed

More from pytorch/executorch

All 10 skills in this repo
  • 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.

    5.1k GitHub stars~793 tokensUpdated today
    Auto-check passed
  • ExecuTorch Build Guide

    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.

    5.1k GitHub stars~2.3k tokensUpdated today
    Auto-check: notes
  • ExecuTorch Cortex-M Backend

    pytorch/executorch

    Developer guide for the Cortex-M (CMSIS-NN) backend in ExecuTorch: quantization pipeline, pass manager, tests and adding new ops.

    5.1k GitHub stars~872 tokensUpdated today
    Auto-check passed
  • ExecuTorch PR Review

    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.

    5.1k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • 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.

    5.1k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • ExecuTorch on Zephyr

    pytorch/executorch

    Sets up ExecuTorch as a Zephyr RTOS module, adds board support and debugs west build failures such as linker memory overflow on embedded boards.

    5.1k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Works with

Questions about ExecuTorch Knowledge Base

What does ExecuTorch Knowledge Base do?

Answers ExecuTorch questions from a local wiki on backends, export pitfalls, quantization recipes, runtime errors and SoC compatibility. This skill searches a knowledge base distilled from ExecuTorch GitHub issues and discussions. It covers the QNN, XNNPACK, Vulkan, CoreML, Arm and Cadence backends, model export, quantization, and troubleshooting.

When should I use ExecuTorch Knowledge Base?

ExecuTorch Knowledge Base fits situations like: debugging an ExecuTorch export or runtime error; choosing a quantization recipe for a specific backend; checking whether a backend supports a particular operator; looking up Qualcomm HTP or Snapdragon SoC compatibility.

How do I install ExecuTorch Knowledge Base in Claude Code?

Run `npx skills add pytorch/executorch --skill executorch-kb -a claude-code`. Or copy the skill folder (.claude/skills/executorch-kb in pytorch/executorch) into .claude/skills/executorch-kb in your project. Claude Code loads it when a task matches its description.

How do I install ExecuTorch Knowledge Base in Codex?

Run `npx skills add pytorch/executorch --skill executorch-kb -a codex`. Or copy the skill folder (.claude/skills/executorch-kb in pytorch/executorch) into .agents/skills/executorch-kb in your project. Codex loads it when a task matches its description.

Can I use ExecuTorch Knowledge Base in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pytorch/executorch --skill executorch-kb -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/executorch-kb, .gemini/skills/executorch-kb, .github/skills/executorch-kb and .opencode/skills/executorch-kb in your project.

What does ExecuTorch Knowledge Base need to run?

SKILL.md names no scripts, command-line tools or credentials: ExecuTorch Knowledge Base is instructions for the agent only. Our summary lists: A checkout of the ExecuTorch repository with its .wiki folder.

Does ExecuTorch Knowledge Base access the network?

SKILL.md names 4 domains. In commands or code: docs.qualcomm.com, apple.github.io, developer.arm.com and github.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is ExecuTorch Knowledge Base safe to install?

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.

What licence does ExecuTorch Knowledge Base use?

ExecuTorch Knowledge Base has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does ExecuTorch Knowledge Base use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to ExecuTorch Knowledge Base?

Skills that share tags, products or a category with ExecuTorch Knowledge Base: The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Fix Issue (pytorch/pytorch, 104k stars), Pt2 Bug Basher (pytorch/pytorch, 104k stars) and Quark Torch Debug (amd/Quark, 181 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains ExecuTorch Knowledge Base?

pytorch (a GitHub organization) maintains it in pytorch/executorch, which has 5,081 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 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.