What problem does it solve?
This Skill ensures that all Nix code within the repository adheres to established formatting, naming, and structural conventions, leading to more readable, maintainable, and consistent codebases.
Core Features & Use Cases
- Automated Formatting: Applies
nix fmt to ensure consistent indentation and spacing.
- Naming Convention Enforcement: Guides developers on using kebab-case for files/directories and camelCase for Nix attributes and option paths.
- Import Standardization: Promotes the use of relative imports and structured import lists.
- Structured Data Generation: Encourages defining structured data in Nix before conversion to formats like JSON.
- Use Case: Before committing changes, run this skill to automatically format your Nix files and catch any deviations from the project's style guide.
Quick Start
Run the code-style skill to format all Nix files in the current directory.