Merge pull request #18 from bdbrown4/fix/skill-frontmatter

skill: fix unloadable SKILL.md frontmatter, and test it in CI
This commit is contained in:
2026-07-14 14:10:42 -04:00
committed by GitHub
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
--- ---
name: peltier name: peltier
description: Prove a performance change is real — or refuse to claim it. Use when optimizing code for speed, verifying a claimed speedup ("is this actually faster?", "did my optimization work?"), checking for a performance regression ("did this PR make things slower?"), or comparing the performance of two implementations. Runs peltier's trust layer: equivalence gates, A/A environment calibration, interleaved A/B with bootstrap confidence intervals. Never reports a naked percentage and never claims a win that is not statistically significant. Do NOT use for correctness-only work. description: "Prove a performance change is real — or refuse to claim it. Use when optimizing code for speed, verifying a claimed speedup ('is this actually faster?', 'did my optimization work?'), checking for a performance regression ('did this PR make things slower?'), or comparing the performance of two implementations. Runs peltier's trust layer — equivalence gates, A/A environment calibration, interleaved A/B with bootstrap confidence intervals. Never reports a naked percentage and never claims a win that is not statistically significant. Do NOT use for correctness-only work."
--- ---
# peltier — prove it, or claim nothing # peltier — prove it, or claim nothing
+17
View File
@@ -105,6 +105,23 @@ jobs:
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: SKILL.md frontmatter is loadable
run: |
python3 - <<'PY'
import sys, yaml, pathlib
p = pathlib.Path(".claude/skills/peltier/SKILL.md")
text = p.read_text(encoding="utf-8")
if not text.startswith("---\n"):
sys.exit("SKILL.md must open with a --- frontmatter block")
fm = yaml.safe_load(text.split("---", 2)[1]) # raises on malformed YAML
for key in ("name", "description"):
if not isinstance(fm.get(key), str) or not fm[key].strip():
sys.exit(f"frontmatter '{key}' must be a non-empty string")
if fm["name"] != p.parent.name:
sys.exit(f"frontmatter name '{fm['name']}' != directory '{p.parent.name}'")
print(f"frontmatter OK: name={fm['name']}, description={len(fm['description'])} chars")
PY
- name: Preflight resolves inside a peltier checkout - name: Preflight resolves inside a peltier checkout
run: | run: |
sh .claude/skills/peltier/scripts/preflight.sh | tee /tmp/pf.txt sh .claude/skills/peltier/scripts/preflight.sh | tee /tmp/pf.txt