From nix-manager
Improve the NixOS config toward idiomatic best practices. Full audit or targeted at a specific file or module. Use when user says "refine my config", "improve my flake", "make this more idiomatic", or wants a best-practice review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nix-manager:refine-itThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The zen polishing skill. Audit the config and improve it toward idiomatic nix. Every invocation
The zen polishing skill. Audit the config and improve it toward idiomatic nix. Every invocation should leave the config measurably better.
$ARGUMENTS is an optional target:
If targeted: read the specified file/module. If full audit: scan the entire config structure.
Done when: scope is set and code is read.
Assess against best practices, prioritised by impact:
Module structure
Flake hygiene
follows declarationsHome-manager patterns
programs.* / services.* over raw package listsNix idioms
with pkgs; at top level (pollutes scope, hides dependencies)lib functions properly (mkIf, mkMerge, mkOption)let...in scopinginherit where it reduces noiseOrganisation
Done when: evaluation is complete.
Prioritised list -- highest impact first. Each item:
Ask user which items to tackle, or "all".
Done when: user has chosen items.
Restructure freely -- rename files, split modules, reorganise imports, extract patterns.
For each change:
Done when: all chosen fixes applied.
Walk through each change:
Done when: user acknowledges.
Ask: "Want me to run nixos-rebuild test to try it, or nixos-rebuild switch to apply?"
If the rebuild fails, invoke /debug to diagnose.
Done when: rebuild succeeds or user declines.
npx claudepluginhub xxkeefer/skills --plugin nix-managerCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.