Harden skill rigor constraints and sync reading quality tools

This commit is contained in:
732642856
2026-06-27 18:52:10 +08:00
parent 7600986e34
commit b884b8e7ea
30 changed files with 1262 additions and 56 deletions
+17
View File
@@ -11,9 +11,25 @@ def _read(path: str) -> str:
def test_audit_whitelist_contains_expected_truth_files() -> None:
script = _read("scripts/sync_skill_truth_whitelist.sh")
for expected in (
"AGENTS.md",
"SKILL.md",
"references/technique_registry.json",
"references/quick-reference-guide.md",
"references/strict-workflow-router.md",
"skills/jyotish-engine-modules/SKILL.md",
"skills/jyotish-full-reading-integration/SKILL.md",
):
assert expected in script
def test_stage_whitelist_contains_expected_truth_files() -> None:
script = _read("scripts/stage_skill_truth_whitelist.sh")
for expected in (
"AGENTS.md",
"SKILL.md",
"references/technique_registry.json",
"references/quick-reference-guide.md",
"references/strict-workflow-router.md",
"skills/jyotish-engine-modules/SKILL.md",
"skills/jyotish-full-reading-integration/SKILL.md",
):
@@ -23,6 +39,7 @@ def test_audit_whitelist_contains_expected_truth_files() -> None:
def test_workbuddy_sync_script_copies_expected_truth_files() -> None:
script = _read("scripts/sync_skill_truth_to_workbuddy.sh")
for expected in (
'cp "$ROOT/AGENTS.md" "$WB/AGENTS.md"',
'cp "$ROOT/SKILL.md" "$WB/SKILL.md"',
'cp "$ROOT/references/technique_registry.json" "$WB/references/technique_registry.json"',
'cp "$ROOT/references/quick-reference-guide.md" "$WB/references/quick-reference-guide.md"',