From 3f7dce00b8d68b8598a224e2061cb7bbd165b908 Mon Sep 17 00:00:00 2001 From: sck_0 Date: Mon, 2 Feb 2026 21:37:53 +0100 Subject: [PATCH] chore: preserve risk/source and document use-section headings --- docs/QUALITY_BAR.md | 1 + scripts/normalize-frontmatter.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/QUALITY_BAR.md b/docs/QUALITY_BAR.md index d5e7422e..42c16085 100644 --- a/docs/QUALITY_BAR.md +++ b/docs/QUALITY_BAR.md @@ -21,6 +21,7 @@ The skill MUST have a section explicitly stating when to trigger it. - **Good**: "Use when the user asks to debug a React component." - **Bad**: "This skill helps you with code." +Accepted headings: `## When to Use`, `## Use this skill when`, `## When to Use This Skill`. ### 3. Safety & Risk Classification diff --git a/scripts/normalize-frontmatter.js b/scripts/normalize-frontmatter.js index a8cf17d7..982b803a 100644 --- a/scripts/normalize-frontmatter.js +++ b/scripts/normalize-frontmatter.js @@ -8,6 +8,8 @@ const SKILLS_DIR = path.join(ROOT, 'skills'); const ALLOWED_FIELDS = new Set([ 'name', 'description', + 'risk', + 'source', 'license', 'compatibility', 'metadata',