nnspec

nnspec is a skill for Claude Code from ndif-team/skills. It costs 230 tokens per session (8,215 once invoked), scanned A, original, MIT.

A JSON-based tool for running interpretability experiments on transformer language models. Interpretability means examining how a model's internal parts contribute to its outputs.

In plain words
What is it for?
Use it for lens, activation, attribution or path patching, ablation, attention, steering, probing, sparse autoencoder, and DAS experiments when they fit its document format.
Why use it?
It lets you describe supported experiments in one document instead of writing intervention code. It records selected results in a directory for later inspection.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the nnspec plugin — 1 skill shipped together

Good fit Use it for lens, activation, attribution or path patching, ablation, attention, steering, probing, sparse autoencoder, and DAS experiments when they fit its document format.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ndif-team/skills/nnspec
Install

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.

Any agent
npx skills add ndif-team/skills --skill nnspec
Clone the repo
git clone --depth 1 https://github.com/ndif-team/skills

Made for: Claude Code.

Or install nnspec, the plugin that ships this one along with the rest of its 1 skill.

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

agentmods badge for nnspec

README.md
[![agentmods](https://agentmods.dev/badge/skills/ndif-team/skills/nnspec/github.svg)](https://agentmods.dev/skills/ndif-team/skills/nnspec)
Your own site
<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.

agentmods 80×15 button for nnspec

Your own site · 80×15
<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>
Per session 230 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 14d ago against content hash b1c5829a00e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/nnspec/skills/nnspec/SKILL.md · 372 lines

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 (its v2.0.0 branch), at the path [tool.uv.sources] in nnspec's pyproject.toml names: point that path at yours before uv sync.
  • Into an environment that already has the dependencies pyproject.toml lists, 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's python (there is no python -m nnspec), or uv run --no-sync nnspec … from the checkout; a plain uv run re-syncs the environment first.
  • The first run downloads the checkpoint; after it, HF_HUB_OFFLINE=1 runs from the cache.

Read the full file on GitHub · 372 lines

Changes

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.

  1. 14d ago Changed · +66 lines b1c5829a00e8
  2. 15d ago First seen · 306 lines · 230 tokens per session scan A ab6f9669c060

Subscribe to this mod's changes

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.

Related

nnspec compared with skills from other repositories

nnspec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nnspecndif-team/skillsSkill1615d agoMITA230Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA64Claude Code
arboretoK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA70Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill4.3ktodayApache-2.0A56Claude Code
tao-validate-recipe-transferNVIDIA/skillsSkill4.3ktodayApache-2.0A179Claude Code