From d27247d7d482cf210be3ce988e0d0542c0800c33 Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 16 Sep 2026 11:11:21 -0400 Subject: [PATCH] docs(skills): separate nix rule format --- src/skills/nix-style/RULE-FORMAT.md | 17 +++++++++++++++++ src/skills/nix-style/SKILL.md | 18 ------------------ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 src/skills/nix-style/RULE-FORMAT.md diff --git a/src/skills/nix-style/RULE-FORMAT.md b/src/skills/nix-style/RULE-FORMAT.md new file mode 100644 index 0000000..8abe570 --- /dev/null +++ b/src/skills/nix-style/RULE-FORMAT.md @@ -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. diff --git a/src/skills/nix-style/SKILL.md b/src/skills/nix-style/SKILL.md index 6ed7e63..ddba819 100644 --- a/src/skills/nix-style/SKILL.md +++ b/src/skills/nix-style/SKILL.md @@ -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.