matt-bat/got-skills / skills/skill-governance
skill-governance
VerifiedGovern release-affecting, policy-changing, externally mutating, destructive, or otherwise high-risk work through typed effects, mandatory evidence, independent safety gates, and an explicit go/no-go decision. Do not use for ordinary answers, read-only inspection, tiny reversible edits, or a task made "multi-skill" only by optional process helpers.
tests/test_validate_skill_order_sync.py
View on GitHubimport subprocess
import tempfile
from pathlib import Path
import unittest
SCRIPT = Path(__file__).resolve().parents[1] / "scripts" / "validate_skill_order_sync.py"
class TestValidateSkillOrderSync(unittest.TestCase):
def _write_files(self, root: Path, map_order: list[str], index_order: list[str]) -> None:
map_lines = [
"# Skill Map",
"",
"## Skill Index",
]
map_lines.extend([f"{i + 1}. `{name}`" for i, name in enumerate(map_order)])
map_lines.append("")
map_lines.append("## End")
(root / "SKILL-MAP.md").write_text("\n".join(map_lines) + "\n", encoding="utf-8")
docs = root / "docs"
docs.mkdir(parents=True, exist_ok=True)
index_lines = [
"# Skill Index",
"",
"| Skill | Primary Trigger | Typical Triggers Another Skill | Canonical Artifacts | Last Updated UTC |",
"|---|---|---|---|---|",
]
for name in index_order:
index_lines.append(
f"| `{name}` | trigger | `other` | artifact | 2026-05-13T00:00:00Z |"
)
(docs / "skill-index.md").write_text("\n".join(index_lines) + "\n", encoding="utf-8")
def test_passes_when_order_matches(self) -> None:
with tempfile.TemporaryDirectory() as tmp:
root = Path(tmp)
order = ["alpha", "beta", "gamma"]
self._write_files(root, order, order)
result = subprocess.run(
["python3", str(SCRIPT), "--skills-root", str(root)],
capture_output=True,
text=True,
check=False,
)
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
self.assertIn("Skill ordering sync validation passed.", result.stdout)
def test_fails_when_order_mismatches(self) -> None:
with tempfile.TemporaryDirectory() as tmp:
root = Path(tmp)
self._write_files(root, ["alpha", "beta", "gamma"], ["alpha", "gamma", "beta"])
result = subprocess.run(
["python3", str(SCRIPT), "--skills-root", str(root)],
capture_output=True,
text=True,
check=False,
)
self.assertNotEqual(result.returncode, 0)
self.assertIn("Order mismatch", result.stdout)
if __name__ == "__main__":
unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |