Consolidate the repository into clearer apps, tools, and layered docs areas so contributors can navigate and maintain it more reliably. Align validation, metadata sync, and CI around the same canonical workflow to reduce drift across local checks and GitHub Actions.
20 lines
461 B
Python
20 lines
461 B
Python
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.append(str(Path(__file__).resolve().parents[1]))
|
|
from validate_skills import has_when_to_use_section
|
|
|
|
SAMPLES = [
|
|
("## When to Use", True),
|
|
("## Use this skill when", True),
|
|
("## When to Use This Skill", True),
|
|
("## Overview", False),
|
|
]
|
|
|
|
for heading, expected in SAMPLES:
|
|
content = f"\n{heading}\n- item\n"
|
|
assert has_when_to_use_section(content) is expected, heading
|
|
|
|
print("ok")
|