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.svg" alt="Measured on agentmods" 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 | $0.00041 | $0.01027 |
| Sonnet 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 8d 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.
- 8d 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 (16 stars, last pushed 16d ago), licensed MIT. It adds 81 tokens to every session and 2,054 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
scanner-pmcc
Scan stocks for Poor Man's Covered Call (PMCC) suitability. Analyzes LEAPS and short call options for delta, liquidity, spread, IV, yield, trend direction, and earnings proximity. Use when user asks about PMCC candidates, diagonal spreads, or LEAPS strategies.
ib-trailing-stop
Server-side trailing stop management for stocks and naked LEAPS in IB. Places native TRAIL orders that auto-ratchet the stop as price climbs. Dry-run by default. Requires TWS or IB Gateway running locally.
ib-trades-history
Fetch trade executions from Interactive Brokers filtered by account, date range, or symbol. Supports live API (7 days history) and FlexReport (full history). Use when user asks about their trades, executions, or transaction history. Requires TWS or IB Gateway running locally.
fundamentals
Get fundamental financial data including financials, earnings, and key metrics. Use when user asks about financials, earnings, revenue, profit, balance sheet, income statement, or company fundamentals.
ib-collar
Generate tactical collar strategy reports for protecting PMCC positions through earnings or high-risk events. Requires TWS or IB Gateway running locally.
ib-portfolio-action-report
Generate a comprehensive portfolio action report with earnings dates and risk assessment. Use when user asks for portfolio review, action items, earnings risk, or position management across IB accounts. Requires TWS or IB Gateway running locally.