Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ndif-team/skills --skill nnspecgit clone --depth 1 https://github.com/ndif-team/skillsWrote 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/ndif-team/skills/nnspec)<a href="https://agentmods.dev/skills/ndif-team/skills/nnspec"><img src="https://agentmods.dev/badge/skills/ndif-team/skills/nnspec/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/ndif-team/skills/nnspec"><img src="https://agentmods.dev/badge/skills/ndif-team/skills/nnspec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00230 | $0.08215 |
| Opus 5.5 | $0.00092 | $0.03286 |
| Sonnet 5.5 | $0.00046 | $0.01643 |
| Haiku 4.5 | $0.00023 | $0.00822 |
Grade A, and why
nnspec 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 14d 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 — 372 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nnspec
nnspec runs an interpretability experiment on a transformer language model from one JSON document. The
document holds the checkpoint, the data, the forwards and generations, the reads and writes at the model's
components, the ops that score them, and what to save. nnspec run runs it in one nnsight session, naming
components in nnterp's vocabulary, and writes each saved value to a directory that nnspec table prints as rows.
This file is enough for a patch, an ablation, a lens and a steering experiment; every other task has a guide, listed by task under Guides.
Which library
nnspec is the top of three libraries. A request that names a library gets that library, even when a higher row would fit, and a request for a Python script is not a request for an nnspec document. Otherwise take the highest row that fits, and take a row only when its skill is available in this session:
| Use | When |
|---|---|
| nnspec (this skill) | A standard experiment on a transformer language model (lens, patching, ablation, attention, steering, probes, SAEs, DAS) that fits a JSON document. No intervention code to write. |
nnterp skill |
The experiment needs Python that a document cannot express, on a family nnterp knows. One module vocabulary on every family. |
nnsight skill |
nnterp does not know the family, or the work needs access below nnterp's standard values: arbitrary modules, .source, your own or non-transformer models, diffusion, vLLM, tensor parallelism. Also existing nnsight code, and any error an nnsight trace raises. |
Install and check
nnspec is not on PyPI; it installs from a checkout, with Python 3.10 or later:
git clone https://github.com/JadenFiotto-Kaufman/nnspec.git && cd nnspec
uv sync # nnsight, nnterp, torch and the rest, into .venv
source .venv/bin/activate
nnspec describe records # prints the format's records: the install works
- nnterp comes from a checkout of
ndif-team/nnterp(itsv2.0.0branch), at the path[tool.uv.sources]in nnspec'spyproject.tomlnames: point that path at yours beforeuv sync. - Into an environment that already has the dependencies
pyproject.tomllists, that nnterp among them:uv pip install --no-deps -e .from the checkout. - Without the venv activated the command is
<env>/bin/nnspec, beside that environment'spython(there is nopython -m nnspec), oruv run --no-sync nnspec …from the checkout; a plainuv runre-syncs the environment first. - The first run downloads the checkpoint; after it,
HF_HUB_OFFLINE=1runs from the cache.
What ships with it
23 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/ablation-attention-and-experts.md 13 KB
- references/ablation.md 26 KB
- references/attention.md 17 KB
- references/data.md 11 KB
- references/debugging.md 18 KB
- references/featurizers-bundles-and-harvests.md 9.1 KB
- references/featurizers-probes-and-lora.md 15 KB
- references/featurizers-sae.md 16 KB
- references/featurizers-subspaces-and-masks.md 22 KB
- references/featurizers.md 19 KB
- references/generation-teacher-forcing.md 7.5 KB
- references/generation.md 24 KB
- references/lens.md 14 KB
- references/ops.md 13 KB
- references/output.md 9.9 KB
- references/patching-attribution.md 17 KB
- references/patching-heads-neurons-and-paths.md 19 KB
- references/patching.md 22 KB
- references/positions.md 14 KB
- references/running-and-engines.md 12 KB
- references/sites-and-interventions.md 15 KB
- references/steering.md 19 KB
- references/sweeps.md 9.6 KB
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.
- 14d ago Changed · +66 lines b1c5829a00e8
- 15d ago First seen · 306 lines · 230 tokens per session scan A ab6f9669c060
nnspec is a skill published in the GitHub repository ndif-team/skills (16 stars, last pushed 15d ago), licensed MIT. It adds 230 tokens to every session and 8,215 once invoked, about $0.0009 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-11-17.
nnspec compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nnspecndif-team/skills | Skill | 16 | 15d ago | MIT | A | 230 | Claude Code |
| torchdrugK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 64 | Claude Code |
| arboretoK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 55 | Claude Code, Codex |
| deepspot-mK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 70 | Claude Code |
| pyhealthK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 84 | Claude Code, Codex |
| nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 56 | Claude Code |
| tao-validate-recipe-transferNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 179 | Claude Code |