Skip to content

28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools

fix: accept CRLF line endings in frontmatter check

K1nG11105f8c2de338
diff --git a/scripts/validate-skills.js b/scripts/validate-skills.js
index e0bc4f8..ecb8ea8 100644
--- a/scripts/validate-skills.js
+++ b/scripts/validate-skills.js
@@ -14,7 +14,7 @@ const SKILLS_DIR = path.join(__dirname, '..', 'skills');
// Required sections and their markers
const REQUIRED_SECTIONS = [
- { name: 'YAML Frontmatter', pattern: /^---\n[\s\S]*?name:[\s\S]*?description:[\s\S]*?---/m },
+ { name: 'YAML Frontmatter', pattern: /^---\r?\n[\s\S]*?name:[\s\S]*?description:[\s\S]*?---/m },
{ name: 'Overview', pattern: /^## Overview/m },
{ name: 'Core Principle', pattern: /\*\*Core Principle:\*\*/m },
{ name: 'When to Use', pattern: /^## When to Use/m },