nixos-local

nixos-local is a skill for Claude Code, Codex from Firstp1ck/pi-coding-agent-forge. It costs 71 tokens per session (1,248 once invoked), scanned C, original, MIT.

A local reference and troubleshooting workflow for NixOS and Nix, including Nix language, packages, flakes, and system configuration.

In plain words
What is it for?
Searching Nix documentation, locating relevant sections, extracting exact guidance, and checking local setup or behavior.
Why use it?
It helps find answers in local official documentation before relying on general web results.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/firstp1ck/pi-coding-agent-forge/nixos-local
Any agent
npx skills add Firstp1ck/pi-coding-agent-forge --skill nixos-local
Clone the repo
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge

Made for: Claude Code, Codex.

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 nixos-local

README.md
[![agentmods](https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/nixos-local.svg)](https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/nixos-local)
Your own site
<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>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,248 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00071 $0.01248
Opus 5 $0.00036 $0.00624
Sonnet 5 $0.00014 $0.00250
Haiku 4.5 $0.00007 $0.00125

Measured 5d ago against content hash 075c030d8a54, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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
pi-extension-nixos-wiki-local/skills/nixos-local/SKILL.md · 117 lines

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

  1. Classify the question: Nix command, flake workflow, Nix language, NixOS module/option, nixpkgs packaging/overlay, or store/cache/daemon/profile issue.
  2. Start with nixoswiki_search({ query, limit: 5, includeSnippets: false }) for NixOS/Nix issues.
  3. Use nixoswiki_sections({ page, maxSections: 40-80 }) when the right page is found but the relevant heading is unclear.
  4. Prefer exact nixoswiki_extract({ page, section, maxChars: 4000-8000, maxSections: 2-5 }) for final citations.
  5. Use query extraction only for exploration, then switch to exact section names when possible.
  6. Use nixoswiki_read only when broad page context is needed.
  7. Use nixoswiki_related when the issue spans linked topics.
  8. Run read-only local diagnostics when system/project evidence is relevant.
  9. Compare documentation guidance with observed local state.
  10. Cite local paths and section names in final answers.
  11. Ask before destructive or user-facing changes.

Source priority

  1. Local official NixOS/Nix corpus via nixoswiki_* tools.
  2. Local project/system evidence relevant to the user's current environment.
  3. Official online NixOS/Nix documentation only when local docs are missing, stale, or insufficient.
  4. 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, and nix.conf behavior.
  • ~/.nixoswiki/nixpkgs/ for NixOS modules/options and nixpkgs packaging/overlays/stdenv.
  • ~/.nixoswiki/nix.dev/ for tutorials, learning paths, and practical examples.

Read the full file on GitHub · 117 lines

Files

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.

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. 5d ago First seen · 117 lines · 71 tokens per session scan C 075c030d8a54

Subscribe to this mod's changes

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.

Related

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…

antfu/node-modules-inspector · 156 tokens

implementing-jsc-classes-cpp

Implements JavaScript classes in C++ using JavaScriptCore. Use when creating new JS classes with C++ bindings, prototypes, or constructors.

oven-sh/bun · 38 tokens

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.

oven-sh/bun · 41 tokens

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.

oven-sh/bun · 42 tokens

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.

ZaxbyHub/opencode-swarm · 60 tokens

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"…

smallnest/pigo · 102 tokens