Benchmark Pyrefly
facebook/pyrefly
Run Pyrefly benchmarks locally via Buck or Cargo, including PyTorch real-world LSP benchmarks.
Inspect and compare PyTorch models with TorchScan reports, operator FLOPs, and peak-memory workloads.
$ npx skills add frgfm/torch-scan --skill torchscan -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install frgfm/torch-scan torchscan --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/frgfm/torch-scan.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/torchscan .claude/skills/torchscan && 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 "torchscan" agent skill from https://github.com/frgfm/torch-scan/tree/main/.agents/skills/torchscan into .claude/skills/torchscan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "torchscan", 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/frgfm/torch-scan/tree/main/.agents/skills/torchscanType 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 frgfm/torch-scan --skill torchscan -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install frgfm/torch-scan torchscan --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/frgfm/torch-scan.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/torchscan .agents/skills/torchscan && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "torchscan" agent skill from https://github.com/frgfm/torch-scan/tree/main/.agents/skills/torchscan into .agents/skills/torchscan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "torchscan", 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 frgfm/torch-scan --skill torchscan -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install frgfm/torch-scan torchscan --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/frgfm/torch-scan.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/torchscan .cursor/skills/torchscan && 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 "torchscan" agent skill from https://github.com/frgfm/torch-scan/tree/main/.agents/skills/torchscan into .cursor/skills/torchscan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "torchscan", 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/frgfm/torch-scan.git --path .agents/skills/torchscan--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 frgfm/torch-scan --skill torchscan -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install frgfm/torch-scan torchscan --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/frgfm/torch-scan.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/torchscan .gemini/skills/torchscan && 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 "torchscan" agent skill from https://github.com/frgfm/torch-scan/tree/main/.agents/skills/torchscan into .gemini/skills/torchscan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "torchscan", 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 frgfm/torch-scan torchscanInstalls 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 frgfm/torch-scan --skill torchscan -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/frgfm/torch-scan.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/torchscan .github/skills/torchscan && 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 "torchscan" agent skill from https://github.com/frgfm/torch-scan/tree/main/.agents/skills/torchscan into .github/skills/torchscan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "torchscan", 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 frgfm/torch-scan --skill torchscan -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install frgfm/torch-scan torchscan --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/frgfm/torch-scan.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/torchscan .opencode/skills/torchscan && 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 "torchscan" agent skill from https://github.com/frgfm/torch-scan/tree/main/.agents/skills/torchscan into .opencode/skills/torchscan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "torchscan", 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.
torchscanInspect and compare PyTorch models with TorchScan reports, operator FLOPs, and peak-memory workloads.
Torchscan is an agent skill from frgfm/torch-scan. Inspect and compare PyTorch models with TorchScan reports, operator FLOPs, and peak-memory workloads. Use when an agent must analyze model structure, parameters, compute, memory, regressions, unsupported operations, or an owner-provided model budget without inventing completeness.
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires Python 3.11+, PyTorch 2.1+, and the torchscan package. Accelerator claims require matching real hardware.
It sits in AI & LLM Engineering, covering Deep learning. It works with PyTorch and Python. The repository describes itself as: Seamless analysis of your PyTorch models (RAM usage, FLOPs, MACs, receptive field, etc.). The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 73fbc11. 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.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
frgfm.github.ioFrom 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.
Requires Python 3.11+, PyTorch 2.1+, and the torchscan package. Accelerator claims require matching real hardware.
From compatibility in the SKILL.md frontmatter.
Torchscan loads about 1k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 425 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.
The full file from frgfm/torch-scan at commit 73fbc11, republished under its Apache-2.0 licence (© frgfm). 425 words, ~1,021 tokens.
.claude/skills/torchscan/SKILL.md (or your agent's skills folder).Use the smallest API that answers the request:
crawl_module(...): JSON-serializable module report.summary(...): printed table plus the same report.mode="structure" on either API: hierarchy, shapes, calls, parameters, and buffers with less overhead.measure_flops(workload): operator FLOPs for one zero-argument workload call.measure_peak_memory(workload, device=...): backend-specific PyTorch peak memory.measure_peak_rss(command): Linux/macOS child-process lifetime RSS, including loading and imports.profile_workload(workload, device=...): one instrumented operator diagnostic pass; not clean latency.measure_latency(workload, device=..., inputs=...): first-call time, warmed block-average timing, and explicit
work-unit throughput. Unreleased; install main. The callable is invoked repeatedly and owns its state.compare_reports(before, after): pure same-schema comparison.compare_benchmarks(before, after, check=...): compatible workload comparison with an owner-supplied output check.render_report(report): offline model HTML/SVG or benchmark/comparison HTML, without remeasurement.args and kwargs for real calls; use input_shape only for simple synthetic tensors.strict=True when incomplete module metrics must stop automation.summary table.status and preserve diagnostics.complete: use value with its method, unit, scope, and context.partial: known_value is only a lower bound; do not extrapolate.unavailable: report that no measurement was produced.status == "complete".not_requested; strict checks cover requested metrics only.compare_benchmarks for timing and compare_reports for model estimates.For an uncounted operator, preserve the partial result. Supply custom_mapping to crawl_module, summary, or
measure_flops only when the owner can justify that operator's counting convention. For custom module estimates,
use per-analysis custom_modules={ModuleType: ModuleHandler(callback)}. Callbacks receive a complete ModuleCall;
declare inclusive subtree ownership per metric to avoid double-counting children. Keep the module and operator views
separate. Do not create a global registry, baseline store, wrapper service, or automatic budget policy.
In a repository checkout, read ../../../docs/docs/agent-quickstart.md for the full workflow and
../../../docs/docs/report-schema.md for the report contract, and ../../../docs/docs/extensions.md for copyable
extension examples. Outside a checkout, use the published documentation at
https://frgfm.github.io/torch-scan/.
© frgfm, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/torchscan of frgfm/torch-scan.
Open the folder on GitHubat commit 73fbc11
Torchscan 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 |
|---|---|---|---|---|---|---|
| Torchscan this skillfrgfm/torch-scan | 223 | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Benchmark Pyreflyfacebook/pyrefly | 7.1k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Document Public APIspytorch/pytorch | 104k | — | ~4.2k | Automated safety check: Pass | Custom licence | |
| ExecuTorch Cortex-M Backendpytorch/executorch | 5.1k | — | ~872 | Automated safety check: Pass | Custom licence | |
| PyTorch Lightning TrainingOrchestra-Research/AI-Research-SKILLs | 13k | 7 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Ako4allTongmingLAIC/AKO4ALL | 369 | — | ~4k | Automated safety check: Pass | MIT |
facebook/pyrefly
Run Pyrefly benchmarks locally via Buck or Cargo, including PyTorch real-world LSP benchmarks.
pytorch/pytorch
Document undocumented public APIs in PyTorch by removing functions from coverageignorefunctions and coverageignoreclasses in docs/source/conf.py, running Sphinx coverage, and adding the appropriate…
pytorch/executorch
Developer guide for the Cortex-M (CMSIS-NN) backend in ExecuTorch: quantization pipeline, pass manager, tests and adding new ops.
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.
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
wanshuiyin/ARIS-in-AI-Offer
Generate a fact-checked academic personal homepage from a CV, optionally augmented by an existing manual homepage and an assets directory.
Categories
Inspect and compare PyTorch models with TorchScan reports, operator FLOPs, and peak-memory workloads. Torchscan is an agent skill from frgfm/torch-scan. Inspect and compare PyTorch models with TorchScan reports, operator FLOPs, and peak-memory workloads.
Torchscan fits situations like: an agent must analyze model structure; unsupported operations; an owner-provided model budget without inventing completeness.
Run `npx skills add frgfm/torch-scan --skill torchscan -a claude-code`. Or copy the skill folder (.agents/skills/torchscan in frgfm/torch-scan) into .claude/skills/torchscan in your project. Claude Code loads it when a task matches its description.
Run `npx skills add frgfm/torch-scan --skill torchscan -a codex`. Or copy the skill folder (.agents/skills/torchscan in frgfm/torch-scan) into .agents/skills/torchscan 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 frgfm/torch-scan --skill torchscan -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/torchscan, .gemini/skills/torchscan, .github/skills/torchscan and .opencode/skills/torchscan in your project.
SKILL.md names no scripts, command-line tools or credentials: Torchscan is instructions for the agent only. Our summary lists: Python 3. Compatibility (from SKILL.md): Requires Python 3.11+, PyTorch 2.1+, and the torchscan package. Accelerator claims require matching real hardware..
SKILL.md names 1 domain. In commands or code: frgfm.github.io; the agent is likely to contact it when it follows the instructions. 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.
Torchscan is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.1k 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 Torchscan: Benchmark Pyrefly (facebook/pyrefly, 7.1k stars), Document Public APIs (pytorch/pytorch, 104k stars), ExecuTorch Cortex-M Backend (pytorch/executorch, 5.1k stars) and PyTorch Lightning Training (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
frgfm (a GitHub user) maintains it in frgfm/torch-scan, which has 223 GitHub stars. The repository was last updated on October 8, 2026.
Source: frgfm/torch-scan on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.