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 JEFF7712/nix-agent --skill nix-agent-initgit clone --depth 1 https://github.com/JEFF7712/nix-agentWrote 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/jeff7712/nix-agent/nix-agent-init)<a href="https://agentmods.dev/skills/jeff7712/nix-agent/nix-agent-init"><img src="https://agentmods.dev/badge/skills/jeff7712/nix-agent/nix-agent-init/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/jeff7712/nix-agent/nix-agent-init"><img src="https://agentmods.dev/badge/skills/jeff7712/nix-agent/nix-agent-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Prompt Injection · line 88 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
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.00081 | $0.02054 |
| Opus 5.5 | $0.00032 | $0.00822 |
| Sonnet 5.5 | $0.00016 | $0.00411 |
| Haiku 4.5 | $0.00008 | $0.00205 |
Grade A, and why
nix-agent-init 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 2mo 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 — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Nix Agent Init
Overview
Make a NixOS/Home Manager config repo agent-ready in one pass. Run
nix-agent inspect-flake once, then generate three artifacts, each derived
from the returned facts and the files you actually read:
AGENT_MAP.md: task-routing table plus search shortcuts.CLAUDE.md(+AGENTS.md): a one-screen repo brief..mcp.json: wiresnix-agentandmcp-nixos.
Everything you write must trace back to an observed fact. A sparse repo gets a short map; a rich repo gets a longer one. Never pad with generic NixOS advice, aspirational structure, or rules the facts do not support. If a fact is null or "unknown", say so or omit the row. Do not invent.
You do not run nix flake show yourself: nix-agent inspect-flake does.
You do read the repo's own files (module dirs, flake.nix) with your native
tools to name real files in the tables.
Step 1: Inspect
Run nix-agent inspect-flake (via Bash); it prints the fact bundle as JSON.
With no argument it auto-resolves the target; if the user named a repo, pass
the path: nix-agent inspect-flake /path/to/repo.
The returned facts drive every decision below:
flake_dir: absolute repo path. Pin.mcp.jsonto this.hosts: nixosConfiguration names.nullmeans flake show failed.home_configurations: standalone HM outputs.hm_integration:"integrated","standalone","none", or"unknown".module_dirs: dirs where module files actually live.auto_import:"import-tree","none", or"unknown".formatter:"treefmt","nixfmt", a passthrough name, or"none".lint_tools: subset of["deadnix", "statix"]on PATH.has_justfile,has_ci: booleans.mcp_json:"present"or"absent".
If hosts is null (flake show failed), note in CLAUDE.md which facts
are unavailable and read note / first_error, then continue with the
file-level facts only (module_dirs, auto_import, has_justfile,
mcp_json). Do not stall.
Read the module_dirs with your native tools so the routing table names
real files (hosts/laptop.nix, modules/nixos/desktop.nix), not
placeholders. If module_dirs is empty, the table stays generic and
short; that is correct, not a gap to fill.
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.
- 2mo ago First seen · 200 lines · 81 tokens per session scan A 509c4ce1dc33
nix-agent-init is a skill published in the GitHub repository JEFF7712/nix-agent (17 stars, last pushed 9d ago), licensed MIT. It adds 81 tokens to every session and 2,054 once invoked, about $0.0003 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.
nix-agent-init compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nix-agent-initJEFF7712/nix-agent | Skill | 17 | 9d ago | MIT | A | 81 | Claude Code, Codex |
| ib-pmcc-advisorstaskh/trading_skills | Skill | 404 | 3d ago | MIT | A | 71 | Claude Code |
| ib-stop-lossstaskh/trading_skills | Skill | 404 | 3d ago | MIT | A | 50 | Claude Code |
| ib-trades-historystaskh/trading_skills | Skill | 404 | 3d ago | MIT | A | 59 | Claude Code |
| ib-trailing-stopstaskh/trading_skills | Skill | 404 | 3d ago | MIT | A | 49 | Claude Code |
| scanner-pmccstaskh/trading_skills | Skill | 404 | 3d ago | MIT | A | 63 | Claude Code |
| ib-find-short-rollstaskh/trading_skills | Skill | 404 | 3d ago | MIT | A | 55 | Claude Code |