godmode-governance
Skill6 starsChanged 3 months agoApache-2.0View on GitHub
Preview and govern protected engineering actions without executing them implicitly. Use before destructive, externally visible, history-changing, database-changing, release, credential, branch, or worktree operations. Not for reads, tests or edits inside the working tree.
In this repository22 other files it gives its agents.
- llms.txtllms.txt
- godmode-budgetSkill
- godmode-changelogSkill
- godmode-ciSkill
- godmode-codegraphSkill
- godmode-code-of-lawSkill
- godmode-continuitySkill
- godmode-evidenceSkill
- godmode-host-syncSkill
- godmode-impact-gateSkill
- godmode-investigationSkill
- godmode-loop-wardenSkill
- godmode-memory-gardenerSkill
- godmode-repairSkill
- godmode-replicateSkill
- godmode-researchSkill
- godmode-second-lookSkill
- godmode-skill-evalSkill
- godmode-skill-forgeSkill
- godmodeSkill
- godmode-spec-lifecycleSkill
- godmode-triageSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
If authorization is required, configure the local authorization secret once and issue a short-lived, one-use capability for the exact …
- Very specific: line 27
Read godmode-protection-matrix.md when deciding whether an operation is protected or when writing the preview.
- Distinctive: line 31
Treat an unknown mutation as protected.
- Distinctive: line 79
Before declaring the work complete: the Stop gate blocks once when this session's asks, the plan's pending steps, or uncited criteria are …
- Very specific: line 80
Before a docs or release pass that must carry nothing personal: godmode privacy --repo names every email, home path, host-positioned IP …
- Very specific: line 81
Before anything leaves the machine: godmode precheck --preflight (suite, scans, census, reach on a disposable worktree).
- Very specific: line 84
After a source edit: godmode retest lists every test that pins a changed file (names its path, module, or stem) as one command per runner.
- Very specific: line 85
Before closing a session on a project that declares debt counters (.godmode-ratchets.json, name to command): godmode ratchet run records …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Godmode Governance
Outcome
Turn a risky requested operation into an explicit, reviewable contract. This skill classifies and previews the operation; it does not grant the host permission or claim to intercept every tool.
Workflow
- Inspect the current project identity, branch or worktree, dirty state, and the exact target.
- Separate observation from mutation. Read-only inspection needs no capability.
Classify the proposed action with:
<plugin-root>/bin/godmode --project <path> guard --operation "<exact operation>"- For a protected result, run
godmode guard --operation "<exact command>"and present itsbrief(Context / Options / Resolution / Accepted cost) verbatim. - If authorization is required, configure the local authorization secret once and issue a short-lived, one-use capability for the exact action. Never store or pass the secret through Godmode records.
- Execute only when the user has authorized the mutation and the host provides an appropriate execution boundary. Keep execution separate from classification.
- Consume the matching capability immediately before the protected operation, then verify the result and record evidence.
Read godmode-protection-matrix.md when deciding whether an operation is protected or when writing the preview.
Fail-closed rules
- Treat an unknown mutation as protected.
- Preserve unrelated user changes and existing worktrees.
- Rewrite history, remove data, publish, install, release, or change a database only from an explicit instruction, never an inferred intention.
- Reject a capability whose action, project, expiry, nonce, or signature does not match.
- Represent a preview as a preview and a guard result as advisory - neither is approval or automatic enforcement.
- Require a rollback or recovery statement for schema, history, release, and destructive filesystem changes.
Gate routing
environment --target Xclassifies blast radius before any mutation; unknown fails closed as production and repository text cannot re-label it.egress --stagedscans staged and untracked content for secret shapes before a commit.db --proposewalks the schema ladder: existing column, existing table, and only then a reviewed new table.planmode specify|start|approve|check|arbitrate|bindgates mutation behind a spec-backed approved plan;rewind --to SEQpreviews a rollback to a verified checkpoint.ceilings --spent ...stops a run that exceeded its declared budget;removal record|whykeeps deletions explicable.godmode ownership --check [--diff-only]shows which gate rule owns each path or command, from the classifier's own tables, and fails closed when the checked-in decision table no longer matches the classifier it was generated from - run it before a commit that touches gate-owning paths.
Absorption verdicts
An upstream item (a dependency bump, a vendor release note, a competitor's
fix) gets a decision record with subject absorb:<item> and BOTH verdicts
in its data: import_verdict (adopt | extend | diverge | skip | exists |
unread | n-a) and behaviour_verdict (confirmed-have | confirmed-dont |
unverified). confirmed-* needs a file: citation proving it. "n-a -
different surface" answers whether we can import it, never whether the same
defect lives in our own implementation - that is what the behaviour verdict
is for, and an item with only an import verdict is half-recorded. unread
is an honest import verdict but is never a settled one: it names a surface
read that never opened the source, so it still leaves the item
half-recorded until a real verdict replaces it.
remember --kind decision --subject "absorb:<item>" --value "import_verdict:
<verdict>. behaviour_verdict: <verdict>." validates both verdicts and
refuses an adopt or extend verdict that cites no file:<path> source
(README, docs, and release notes do not count as a source cite); a
surface read may still say unread, skip, or diverge. Once a write passes,
the parsed verdicts are persisted onto the record's data, so
godmode_runtime.godmode_parity.upstream_verdicts(archive, items) reads a
CLI-recorded decision the same way it reads one written by direct archive
access (archive.append("decision", "absorb:<item>", {"import_verdict": ...,
"behaviour_verdict": ...}, evidence=["file:..."])), and reports
verdicted / half_verdicted / unread per item.
Completion
Report the classification, whether authorization was required, what actually ran, the recovery boundary, and fresh verification. If execution was outside the available host boundary, stop after the preview and say so plainly.
Verbs at the moment of demand
- Before declaring the work complete: the Stop gate blocks once when this session's asks, the plan's pending steps, or uncited criteria are still open on the record; close each with the command its line shows, or say which are deferred and why.
- Before a docs or release pass that must carry nothing personal:
godmode privacy --reponames every email, home path, host-positioned IP address, secret shape and oversized tracked file by path and line, value masked. - Before anything leaves the machine:
godmode precheck --preflight(suite, scans, census, reach on a disposable worktree);godmode egress --stagedsays exactly what a push would send;godmode privacyandgodmode untrustedscan for what must not leave;godmode netgateaudits what dialled out. - Before any push:
godmode precheck --preflight --suite-shards 4validates HEAD in a disposable worktree - the designated suite, the workflow's own gate steps read from.github/workflows/godmode-verify.yml, the banned-term scan - and records apreflightattestation at that commit.godmode authorize stagerefuses to stage a push or a release without a green one at HEAD;--without-preflight "<reason>"is recorded, never silent. - Cutting a release:
godmode changelog merge --set-version X,godmode release-notes build Xderives the note from that section andgodmode release-notes check Xholds it to the shape (present, every entry covered, no empty section, no process narration, a Verifying section),godmode version --reconcile,godmode bindings --write,godmode releasecompares two releases,godmode checksumsandgodmode sbomrecord what shipped,godmode licenseclassifies what was read. - After a source edit:
godmode retestlists every test that pins a changed file (names its path, module, or stem) as one command per runner;godmode retest --runexecutes it and attests the exit code, so the done bar can citeretestinstead of a hand-picked test. - Before closing a session on a project that declares debt counters (
.godmode-ratchets.json, name to command):godmode ratchet runrecords each value and names every counter that rose;integritycarries the same finding. - Held-back checks:
godmode oracle hold --command "<check>"(operator password) keeps a check under the git metadata directory where the agent never chose it;godmode oracle listandgodmode oracle runread and run them, andclaim --verifyruns them after the cited checks - a red one caps the grade at observed. - A protected operation:
godmode authorize stage --operation "<exact command>"after the operator's password,godmode stageinspects what is staged,godmode capabilitiesandgodmode approvalslist what stands,godmode ceilingssets spend bounds,godmode protectpins a file,godmode fenceandgodmode scopebound what an edit may touch,godmode boundariesshows the host's enforcement table. - A rule to keep or a decision to weigh:
godmode registerpins an evaluator,godmode precedentrecords how a prior case was decided,godmode recurringschedules a standing check,godmode soprecords a procedure,godmode arbitratesettles two conflicting records,godmode governancereports the posture. - Undoing or removing:
godmode rollbackandgodmode rewindrestore a recorded state,godmode removalrecords a deliberate deletion,godmode expunge --sequence N --reasonretracts one record,godmode brancheslists what diverged. - Configuration and environment:
godmode config check,godmode operator --policy(which layer decided each gate),godmode environment,godmode locale check,godmode extensions,godmode paired-artifact(files that must stay in sync),godmode parityandgodmode upstreamagainst the reference repository (upstream --path <tree> --skills <keyword>lists its skill docs that touch a keyword, the parity read before a verdict),godmode freshnessfor research that aged. - Measuring the project:
godmode metrics,godmode metric-contract,godmode trends,godmode minimality,godmode assurance,godmode trust,godmode selftest.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

