docs(skills): separate nix rule format

This commit is contained in:
2026-09-16 11:11:21 -04:00
parent e460aa2b57
commit d27247d7d4
2 changed files with 17 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
# Rule format
Use this structure for each rule:
```md
## Rule title
### Rule
State enforceable instructions.
### Rationale
Explain why the rule exists.
```
Add `### Examples` only when examples clarify the rule.

View File

@@ -18,24 +18,6 @@ find src/skills/nix-style/rules -maxdepth 1 -type f -name '*.md' -print | sort
Finish when all discovered rule files have been read.
## Write rules
Use this structure for each rule:
```md
## Rule title
### Rule
State enforceable instructions.
### Rationale
Explain why the rule exists.
```
Add `### Examples` only when examples clarify the rule.
## Apply rules
Apply the loaded rules when editing or reviewing Nix files.