nix-flake-organization
OfficialKeep Nix flakes thin and maintainable.
Authordarkmatter
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps refactor crowded Nix flake repositories into a cleaner structure where the public flake surface stays minimal and the real implementation lives in feature-oriented source files.
Core Features & Use Cases
- Thin Public API Layer: Keeps flake files focused on output wiring, imports, and compatibility aliases instead of build logic.
- Implementation Separation: Moves package, app, module, and helper logic into src paths organized by feature rather than by output type.
- Migration Guidance: Supports reorganizing flake-parts projects, NixOS modules, Home Manager modules, darwin modules, overlays, and shared utilities while preserving existing output names.
- Use Case: A repository with a large flake.nix can be split into a maintainable structure without breaking downstream consumers.
Quick Start
Ask the assistant to reorganize this Nix repository so the public flake surface stays thin in flake/ and the implementation moves into src/ while preserving the current outputs.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nix-flake-organization Download link: https://github.com/darkmatter/skills/archive/main.zip#nix-flake-organization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.