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_enforce_governance_scope.py
View on GitHubimport importlib.util
from pathlib import Path
import sys
import unittest
SCRIPT = Path(__file__).resolve().parents[1] / "scripts" / "enforce_governance_ci.py"
spec = importlib.util.spec_from_file_location("enforce_governance_ci", SCRIPT)
module = importlib.util.module_from_spec(spec)
assert spec and spec.loader
sys.modules[spec.name] = module
spec.loader.exec_module(module)
class TestGovernedScope(unittest.TestCase):
def test_governed_paths(self) -> None:
self.assertTrue(module.is_governed_change(".codex/skills/SKILL-MAP.md"))
self.assertTrue(module.is_governed_change("skills/SKILL-MAP.md"))
self.assertTrue(module.is_governed_change("docs/governance/TASK-1.governance.json"))
self.assertTrue(module.is_governed_change("docs/project-index.md"))
self.assertTrue(module.is_governed_change(".github/branch-protection-policy.json"))
self.assertTrue(module.is_governed_change("user-instructions.md"))
self.assertTrue(module.is_governed_change("AGENTS.md"))
self.assertTrue(module.is_governed_change(".github/workflows/ci.yml"))
def test_non_governed_paths(self) -> None:
self.assertFalse(module.is_governed_change("frontend/src/app.tsx"))
self.assertFalse(module.is_governed_change("README.md"))
self.assertFalse(module.is_governed_change("docs/notes.md"))
def test_artifact_detection(self) -> None:
files = [
"docs/governance/A.governance.json",
"docs/governance/A.governance.md",
"frontend/src/x.ts",
]
artifacts = module.changed_governance_artifacts(files)
self.assertEqual(artifacts, ["docs/governance/A.governance.json"])
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 |