Borrowing it
Nothing to install: this file belongs to frgfm/torch-scan. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/frgfm/torch-scan/main/.agents/skills/torchscan/SKILL.mdgit clone --depth 1 https://github.com/frgfm/torch-scanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/frgfm/torch-scan/torchscan)<a href="https://agentmods.dev/skills/frgfm/torch-scan/torchscan"><img src="https://agentmods.dev/badge/skills/frgfm/torch-scan/torchscan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/frgfm/torch-scan/torchscan"><img src="https://agentmods.dev/badge/skills/frgfm/torch-scan/torchscan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01296 |
| Opus 5.5 | $0.00022 | $0.00518 |
| Sonnet 5.5 | $0.00011 | $0.00259 |
| Haiku 4.5 | $0.00006 | $0.00130 |
Grade A, and why
torchscan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TorchScan
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_workload(workload, device=..., work_units=...): selected FLOPs, latency/throughput, and PyTorch memory in aBenchmarkReportwith a terminal summary. Optionalprofile=True; RSS needs an explicitrss_command. Unreleased; installmain. Passes share caller state; use a repeatable workload.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; installmain. 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.python -m torchscan.autoresearch workload.json --output RUN: start with the owner's model reference, args/kwargs descriptors or saved inputs with batch size one, and inference workload. Collect latency/throughput, scoped PyTorch peak memory and clean child-process RSS without writing an experiment script. Add--candidate-model module:factoryfor automatic reference checks and repeated keep/discard/inconclusive evaluation. Unreleased; install the development version.render_report(report): offline model HTML/SVG or benchmark/comparison HTML, without remeasurement.
Workflow
- Reuse the project's model and representative inputs. Do not download weights without permission.
- Prefer
argsandkwargsfor real calls; useinput_shapeonly for simple synthetic tensors. - Use
strict=Truewhen incomplete module metrics must stop automation. - Serialize the report directly. Never parse the
summarytable. - Check every metric's
statusand preserve diagnostics. - Ask the owner for thresholds. TorchScan measures; it does not decide whether a model fits.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +15 lines aedeffa279df
- 20d ago Changed 8877ce445dcf
- 27d ago Changed · +3 lines b8e945adced0
- 1mo ago Changed · +10 lines f0c07f5868c1
- 1mo ago Changed · +2 lines e1d1c7304225
- 1mo ago Changed · +2 lines e582fc7e8a66
- 2mo ago First seen · 48 lines · 56 tokens per session scan A bfbfdb6b2916
torchscan is a skill published in the GitHub repository frgfm/torch-scan (221 stars, last pushed yesterday), licensed Apache-2.0. It adds 56 tokens to every session and 1,296 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
torchscan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| torchscanfrgfm/torch-scan | Skill | 221 | yesterday | Apache-2.0 | A | 56 | Claude Code, Codex |
| physicsnemo-shard-tensorNVIDIA/physicsnemo | Skill | 3.4k | yesterday | Apache-2.0 | A | 152 | Claude Code, Codex |
| physicsnemo-discoverNVIDIA/physicsnemo | Skill | 3.4k | yesterday | Apache-2.0 | A | 124 | Claude Code, Codex |
| trlbenchflow-ai/skillsbench | Skill | 1.9k | 2d ago | Apache-2.0 | A | 100 | Claude Code, Codex |
| deep-learningericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 102 | Claude Code, Codex |
| perforatedaiPerforatedAI/PerforatedAI | Skill | 240 | yesterday | Apache-2.0 | A | 133 | Claude Code, Codex |
| single-cell-multi-omics-analysis-scviPharMolix/OpenBioMed | Skill | 1.1k | 3mo ago | MIT | A | 94 | Claude Code, Codex |