Author Nix code and diagnose builds, flakes, and evaluation.

version
0.4.12
GitHub stars
347

Install

/plugin install nix-toolkit@khanelinix-ai-tools

Run it inside Claude Code after adding the marketplace with /plugin marketplace add khaneliman/khanelinix.

Contents

Discovered from source

Skills 1

Nix Toolkit Playbook

Use this toolkit for Nix authoring and operational work. The caller retains lifecycle ownership; a diagnosis alone does not authorize code changes.

Select the Work

  1. Read repository contributor docs and scoped guidance. They override this toolkit's authoring defaults.
  2. Select the branch that matches the requested result. Load only that reference and the detail it selects. When diagnosis leads to an authorized fix, load authoring guidance before editing.
  3. Run the focused check that proves the result. Report the target, exact command, observed result, and any unverified behavior.

Authoring references own Nix construction and semantic choices. Evaluation performance owns profiling, measurement, and optimization acceptance. Review guidance owns finding thresholds and suggestions; load it only for review work.

Execution Routing

Requested resultRead
Create or refactor expressions, NixOS, nix-darwin or Home Manager modules, overlays, packages, or flake outputsAuthoring
Review Nix changes, decide whether to request changes, or write suggestionsReview guidance
Compare package outputs, prove a dependency removal changes nothing, or check rebuild reproducibilityPackage diffing
Diagnose a failed buildBuild debugging
Find why an option resolves to that value, conflicts, or recurses infinitelyOption forensics
Choose or verify a module test tierModule testing
Explain or reduce closure contentsClosure analysis
Trace a dependency or its owning optionDependency forensics
Update flake inputs or maintain lock filesFlake maintenance
Maintain nixpkgs updates, plugins, or review publicationNixpkgs maintenance
Measure evaluation cost or validate an optimizationEvaluation performance
Remove import-from-derivationIFD remediation
Verify activation or loaded runtime stateActivation verification

For first-pass reports or repeatable measurements, read Scripts and use the matching bundled helper. Read Operating rules for operational reporting, privilege-wrapper failures, or toolkit maintenance.

Sponsors

Details

Marketplace
khaneliman/khanelinix
Source
modules/common/ai-tools/skills/nix-toolkit
Author
khaneliman
Category
Developer Tools

More from khaneliman/khanelinix

All 43