chore: preserve risk/source and document use-section headings

This commit is contained in:
sck_0
2026-02-02 21:37:53 +01:00
parent 3d6c75d37f
commit 3f7dce00b8
2 changed files with 3 additions and 0 deletions

View File

@@ -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." - **Good**: "Use when the user asks to debug a React component."
- **Bad**: "This skill helps you with code." - **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 ### 3. Safety & Risk Classification

View File

@@ -8,6 +8,8 @@ const SKILLS_DIR = path.join(ROOT, 'skills');
const ALLOWED_FIELDS = new Set([ const ALLOWED_FIELDS = new Set([
'name', 'name',
'description', 'description',
'risk',
'source',
'license', 'license',
'compatibility', 'compatibility',
'metadata', 'metadata',