What problem does it solve?
Statix, deadnix, nixfmt, treefmt, nom, and nix-instantiate require manual orchestration to lint and format Nix code; this skill provides a consolidated guide to perform Nix linting, formatting, and static analysis consistently across projects.
Core Features & Use Cases
- statix: check and fix anti-patterns and style issues
- deadnix: detect dead code and provide --edit for automated cleanup
- nixfmt: canonical Nix formatter for consistent code style
- treefmt-nix: multi-formatter orchestration to run several formatters in one pass
- nom: real-time build progress display for Nix projects
- nix-instantiate: parse/evaluate Nix expressions for syntax validation
- nix flake check: perform flake-level evaluation and checks
- devenv pre-commit hooks: integrate linting into pre-commit workflows
- CI integration: guidelines for format check, lint, and build in CI
Quick Start
Run statix check . to begin linting your Nix project.