Nix Best Practices Skill — Development skill for Claude Code
A standard for Nix: what the formatter cannot check, and a checker that holds it.
How to install Nix Best Practices Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rokokol/nix-best-practices-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Nix Best Practices Skill does
A standard for Nix: what the formatter cannot check, and a checker that holds it.
Alternatives in Development
- Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★
- Agent Skills Nix — Declarative management of Agent Skills on Nix 216 ★
- Cargo Nix Plugin — A Nix plugin that resolves Cargo workspaces natively and allows for crate level builds 53 ★
README
nix-best-practices skill
**What the formatter cannot check, and a checker that holds it ʕ•ᴥ•ʔ**
[](https://agentskills.io)   [](LICENSE) [](https://github.com/rokokol/nix-best-practices-skill/actions/workflows/build.yml) [](https://github.com/rokokol/nix-best-practices-skill/actions/workflows/macos.yml)
`nixfmt` owns layout, `statix` owns the language's antipatterns and `deadnix` owns dead code. What none of them can see is the shape of a module header, the scope a `with` opens, whether a derivation says what it is, and whether a lock names a path that exists on one machine alone. Those are the rules this skill writes down, and `check-nix.sh` is the half a machine decides
The second thing those tools cannot see is time. A derivation's hash, an input's private copy, an option's path: each is correct on the machine that wrote it and wrong on the next one, or correct today and wrong after a rename upstream. Most of the rules here are about that gap rather than about taste
Contents
Install
npx skills add -g rokokol/nix-best-practices-skill # for you, everywhere
npx skills add rokokol/nix-best-practices-skill # for the project you are standing in
Claude Code also takes it as a plugin:
Related Skills
Health Reasoning
Claude Code skill: the reasoning standard an assistant holds in health conversations. A seven-question check o
Bookable Events
Agent Skill: build bookable events with Stripe payments and anti-no-show card holds: capacity-limited registra
Adp Checker
Check ESPN ADP arbitrage and cross-reference Vegas season-long player props for target players
Standard Check
Run the project's active standards against one artifact and report every violation
CheckTransformMethods
Check that all standard transformation methods are present on a geometry type
Claudecode Linter
Standalone linter and formatter for Claude Code plugins and configuration files — 90 rules across 8 artifact t
Related Agents
Moodle XML Formatter
This agent converts content into SCORM 1.2 format, the most reliable and universally compatible e-learning sta
Aidd PR Cross Cutting Reviewer
Holds every per-file artifact and every verdict of an external PR review and finds what per-file agents struct
Integrity Sweep
Read-only mechanical-conservation checker for an academic-writing project in LaTeX. After a restructure, move,