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 agentmods add skills/firstp1ck/pi-coding-agent-forge/nixos-localnpx skills add Firstp1ck/pi-coding-agent-forge --skill nixos-localgit clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forgeWrote 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/firstp1ck/pi-coding-agent-forge/nixos-local)<a href="https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/nixos-local"><img src="https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/nixos-local.svg" alt="Measured on agentmods" 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 | $0.00071 | $0.01248 |
| Opus 5 | $0.00036 | $0.00624 |
| Sonnet 5 | $0.00014 | $0.00250 |
| Haiku 4.5 | $0.00007 | $0.00125 |
Grade C, and why
nixos-local scanned grade C with 1 finding 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 5d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf /nix/store How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
NixOS/Nix Local Wiki
Use the local official NixOS/Nix documentation corpus before web sources.
Setup requirement
This skill requires the local documentation corpus at:
~/.nixoswiki
If the corpus is missing or empty, tell the user to run:
/nixoswiki-local-setup
The setup command is designed to be idempotent and minimal: shallow, sparse, blob-filtered Git checkouts with common images/binaries excluded.
After package/corpus changes, verify local behavior with /nixoswiki-smoke-test or nixoswiki_smoke_test({ maxSearchResults: 5 }).
Required workflow
- Classify the question: Nix command, flake workflow, Nix language, NixOS module/option, nixpkgs packaging/overlay, or store/cache/daemon/profile issue.
- Start with
nixoswiki_search({ query, limit: 5, includeSnippets: false })for NixOS/Nix issues. - Use
nixoswiki_sections({ page, maxSections: 40-80 })when the right page is found but the relevant heading is unclear. - Prefer exact
nixoswiki_extract({ page, section, maxChars: 4000-8000, maxSections: 2-5 })for final citations. - Use query extraction only for exploration, then switch to exact section names when possible.
- Use
nixoswiki_readonly when broad page context is needed. - Use
nixoswiki_relatedwhen the issue spans linked topics. - Run read-only local diagnostics when system/project evidence is relevant.
- Compare documentation guidance with observed local state.
- Cite local paths and section names in final answers.
- Ask before destructive or user-facing changes.
Source priority
- Local official NixOS/Nix corpus via
nixoswiki_*tools. - Local project/system evidence relevant to the user's current environment.
- Official online NixOS/Nix documentation only when local docs are missing, stale, or insufficient.
- Other sources only when necessary and clearly labeled.
Local source selection
Use references/source-map.md when choosing which official corpus to trust first:
~/.nixoswiki/nix/for Nix CLI, Nix language, store, daemon, andnix.confbehavior.~/.nixoswiki/nixpkgs/for NixOS modules/options and nixpkgs packaging/overlays/stdenv.~/.nixoswiki/nix.dev/for tutorials, learning paths, and practical examples.
What ships with it
5 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.
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.
- 5d ago First seen · 117 lines · 71 tokens per session scan C 075c030d8a54
nixos-local is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (77 stars, last pushed yesterday), licensed MIT. It adds 71 tokens to every session and 1,248 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
node-modules-inspector
Inspects a project's installed nodemodules and produces three reports: duplicated packages (installed in multiple versions), packages sorted by install size, and maintenance actions (dep-upgrade opportunities + publint findings, grouped by consumer/author). Use when the user wants to audit dependencies, find duplicate…
implementing-jsc-classes-cpp
Implements JavaScript classes in C++ using JavaScriptCore. Use when creating new JS classes with C++ bindings, prototypes, or constructors.
implementing-jsc-classes-rust
Creates JavaScript classes using Bun's Rust bindings generator (.classes.ts). Use when implementing new JS APIs in Rust with JSC integration, prototypes, or constructors.
rust-system-calls
Guides using bunsys for system calls and file I/O in Rust. Use when implementing file operations, opening fds, or any syscall path instead of std::fs or libc.
rust-crate-ci
Load before editing any Rust crate in this repo (currently runners/swarm-sandbox-runner). Covers the mandatory local validation gate, common rustfmt/clippy pitfalls, and Windows-specific Rust correctness patterns that CI enforces but are hard to catch locally without a Windows toolchain.
modern-go
Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations). Scans go.mod for the Go version, then transforms Go source files to use modern patterns—from Go 1.0 through 1.26+. Use when the user says "现代化","现代Go语言", "地道的", "idiomatic", "modernize", "modern-go", "update Go code"…