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_conflict_matrix_integrity.py
View on GitHubfrom __future__ import annotations
import sys
import tempfile
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
SCRIPTS = ROOT / "skills" / "skill-governance" / "scripts"
if str(SCRIPTS) not in sys.path:
sys.path.insert(0, str(SCRIPTS))
import validate_skill_policy as policy # noqa: E402
CATALOG = ROOT / "skills" / "skill-catalog.json"
MATRIX = ROOT / "skills" / "docs" / "conflict-resolution-matrix.md"
class TestConflictMatrixIntegrity(unittest.TestCase):
def validate_text(self, content: str) -> list[str]:
with tempfile.TemporaryDirectory() as raw:
path = Path(raw) / "matrix.md"
path.write_text(content, encoding="utf-8")
return policy.validate_conflict_resolution_matrix(path, CATALOG)
def test_current_matrix_uses_typed_catalog_owners(self) -> None:
self.assertEqual(policy.validate_conflict_resolution_matrix(MATRIX, CATALOG), [])
def test_unknown_domain_label_is_rejected(self) -> None:
content = MATRIX.read_text(encoding="utf-8").replace(
"`governance_decision`", "`governance_decison`", 1
)
errors = self.validate_text(content)
self.assertTrue(any("unknown domain or policy key" in error for error in errors), errors)
def test_mismatched_domain_owner_is_rejected(self) -> None:
content = MATRIX.read_text(encoding="utf-8").replace(
"| `governance_decision` | `skill-governance` |",
"| `governance_decision` | `regression-prevention` |",
1,
)
errors = self.validate_text(content)
self.assertTrue(any("owner must be `skill-governance`" in error for error in errors), errors)
def test_duplicate_domain_label_is_rejected(self) -> None:
content = MATRIX.read_text(encoding="utf-8").replace(
"`qualitative_code_review`", "`implementation_quality`", 1
)
errors = self.validate_text(content)
self.assertTrue(any("duplicate domain" in error for error in errors), errors)
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 |