/godmode:verifyfrom godmode
Verifies claims by running commands and reading full output. Acts as an evidence gate for trustless verification. Also includes a doctor mode that reports model routing configuration.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/godmode:verify, "prove it", "verify this"IF the invocation is /godmode:doctor or a model-routing question
("which model is each role using", "model routing check"): produce the
routing table per the spec below, print it, STOP. Skip Steps 1-8 and skip
the Goal-Bridge contract in Output Format -- the doctor is a config
report, not a claim verification. Missing config is the valid zero-config
default (every role inherits the session model), so the doctor NEVER
fails on missing config and ALWAYS exits 0. No ANSI. One command, no
guessing -- every row shows its source.
Resolution order (identical at every layer): GODMODE_MODEL_<ROLE> env ->
godmode.models.json (per-role merge: the project-root file wins per key
over ~/.config/godmode/models.json) -> session model. A model value is
valid iff it fully matches ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$ OR is the
literal string session; an INVALID value at ANY layer emits one stderr
warning ([models] warning: ignoring invalid model value for role <role>)
and is treated as absent (fall through to the next layer). Role -> env
name: uppercase, hyphen dot underscore all -> underscore, via exactly
tr '[:lower:]._-' '[:upper:]___'; env name = GODMODE_MODEL_<that>.
Read with printenv "$name" 2>/dev/null || true. Set-but-empty value =
NOT an override (fall through). Case-folded roles (Plan/plan) collapse to
one env var -- documented here, not special-cased.
Path A (godmode repo checkout present): IF test -f adapters/pi/models.sh -> run bash adapters/pi/models.sh doctor and
print its output verbatim (same TSV contract as below), STOP.
Path B (skills-only install -- the common case; adapters/ is never
installed): inline sweep over the 8 canonical roles (plan build review
optimize explore security test docs) UNION every GODMODE_MODEL_* env
name UNION roles found in the config files, using this embedded
gm_route()-style resolver:
# /godmode:doctor, path B -- inline sweep; TSV, no ANSI, exit 0 ALWAYS
set -euo pipefail
ROLES="plan build review optimize explore security test docs"
PROJ="$(git rev-parse --show-toplevel 2>/dev/null || pwd)/godmode.models.json"
HOME_CFG="${HOME:-}/.config/godmode/models.json"
py_warned=0
gm_valid() { # whole-value: no embedded newlines, <=128 chars, regex or "session"
case "$1" in *$'\n'*|*$'\r'*) return 1 ;; esac
[ "${#1}" -le 128 ] || return 1
printf '%s' "$1" | grep -Eq '^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$' || [ "$1" = "session" ]
}
gm_warn() { echo "[models] warning: ignoring invalid model value for role $1" >&2; }
read_cfg() { # $1 = path -> "role<TAB>model" lines; silent on any failure
if ! command -v python3 >/dev/null 2>&1; then
if [ "$py_warned" -eq 0 ]; then
echo "[models] warning: python3 not found -- skipping config file layer" >&2
py_warned=1
fi
return 0
fi
[ -f "$1" ] || return 0
python3 - "$1" <<'EOF'
import json, sys
try:
with open(sys.argv[1], encoding="utf-8-sig") as fh:
cfg = json.load(fh)
except Exception:
print("[models] warning: %s is invalid JSON -- ignoring" % sys.argv[1], file=sys.stderr)
sys.exit(0)
roles = cfg.get("roles", {}) if isinstance(cfg, dict) else {}
if isinstance(roles, dict):
for key in sorted(roles):
if isinstance(roles[key], str):
print("%s\t%s" % (key, roles[key]))
EOF
}
gm_route() { # $1 = role -> one TSV row through every layer
local role env_name val
role="$1"
env_name="GODMODE_MODEL_$(printf '%s' "$role" | tr '[:lower:]._-' '[:upper:]___')"
val="$(printenv "$env_name" 2>/dev/null || true)" # set-but-empty = no override
if [ -n "$val" ]; then
if gm_valid "$val"; then
printf '%s\t%s\tenv\t%s\n' "$role" "$val" "$env_name"
return 0
fi
gm_warn "$role"
fi
val="$(printf '%s\n' "$PROJ_KV" | awk -F'\t' -v r="$role" '$1==r{print $2}')"
if [ -n "$val" ]; then
if gm_valid "$val"; then
printf '%s\t%s\tfile\tgodmode.models.json (project)\n' "$role" "$val"
return 0
fi
gm_warn "$role"
fi
val="$(printf '%s\n' "$HOME_KV" | awk -F'\t' -v r="$role" '$1==r{print $2}')"
if [ -n "$val" ]; then
if gm_valid "$val"; then
printf '%s\t%s\tfile\t~/.config/godmode/models.json\n' "$role" "$val"
return 0
fi
gm_warn "$role"
fi
printf '%s\tsession\tsession\t-\n' "$role"
}
PROJ_KV=""
if [ -f "$PROJ" ]; then PROJ_KV="$(read_cfg "$PROJ")" || true; fi
HOME_KV=""
if [ -f "$HOME_CFG" ]; then HOME_KV="$(read_cfg "$HOME_CFG")" || true; fi
while IFS= read -r e; do
r="$(printf '%s' "${e#GODMODE_MODEL_}" | tr '[:upper:]_' '[:lower:]-')"
case " $ROLES " in *" $r "*) ;; *) ROLES="$ROLES $r" ;; esac
done < <(printenv | grep '^GODMODE_MODEL_' | cut -d= -f1 || true)
while IFS= read -r k; do
case "$k" in ''|*[!A-Za-z0-9._-]*) continue ;; esac # skip unrepresentable keys
case " $ROLES " in *" $k "*) ;; *) ROLES="$ROLES $k" ;; esac
done < <(printf '%s\n%s\n' "$PROJ_KV" "$HOME_KV" | cut -f1 | grep -v '^$' || true)
printf 'role\tmodel\tsource\torigin\n'
for r in $ROLES; do gm_route "$r"; done
if [ -f "$PROJ" ]; then p="$PROJ"; else p=none; fi
if [ -f "$HOME_CFG" ]; then h="$HOME_CFG"; else h=none; fi
printf 'config\trepo=%s\thome=%s\n' "$p" "$h"
exit 0
Table contract (TSV, no ANSI, exit 0 ALWAYS -- identical to Path A):
| Column | Meaning |
|---|---|
role | role key swept (8 canonical + env + config) |
model | resolved model id (e.g. vendor/strong) or the literal session on session rows |
source | env, file, or session |
origin | env rows: the env var name (e.g. GODMODE_MODEL_PLAN); file rows: godmode.models.json (project) or ~/.config/godmode/models.json; session rows: literal - |
Header line starts with role. Trailer line:
config<TAB>repo=<path|none><TAB>home=<path|none>.
Example (three rows, <TAB>-separated):
role model source origin
plan vendor/strong env GODMODE_MODEL_PLAN
build vendor/fast file godmode.models.json (project)
review session session -
config repo=godmode.models.json home=none
Parse into three required components:
IF user provides only claim, derive command:
"Tests pass" -> test_cmd
"Build succeeds" -> build_cmd
"No lint errors" -> lint_cmd
"Coverage >80%" -> coverage_cmd | grep TOTAL
"Endpoint returns 200" ->
curl -sf -o /dev/null -w '%{http_code}' {url}
WHEN claim is ambiguous ("it works"):
ask user to restate as falsifiable claim
Print: [verify:claim] "{claim}" | cmd: {command} | pass: {condition}
last_verify=$(stat -f '%m' \
.godmode/verify-log.tsv 2>/dev/null || echo 0)
find . -newer .godmode/verify-log.tsv \
-name '*.ts' -o -name '*.py' | head -20
IF source files changed: previous results are VOID.
{command} 2>&1 | tee /tmp/godmode-verify-$(date +%s).txt
echo "EXIT:$?"
[verify:run] Exit: {code} | {duration}s | {lines} linesRead every line. Check for:
Print: [verify:read] {errors} errors, {warnings} warnings, {total} lines
IF numeric claim (performance, coverage):
run 3 times, use median
IF 3 runs differ: FAIL (flaky)
IF boolean claim (tests pass, build succeeds):
run 1 time
Exact match: string compare, case-sensitive
Numeric: compare median against threshold
Exit code: 0 is only passing code
Partial pass = FAIL
(99/100 tests when claim is "all" = FAIL)
Non-zero exit = FAIL
Error contradicting claim = FAIL even if exit 0
Verdict: PASS or FAIL. No PARTIAL or UNCERTAIN.
| Field | Value |
|---------|--------------------------------|
| Claim | {claim} |
| Command | {command} |
| Expected| {pass_condition} |
| Actual | {actual_value} |
| Verdict | PASS / FAIL |
| Evidence| {first 10 lines or key excerpt} |
| File | /tmp/godmode-verify-{ts}.txt |
IF FAIL: REASON: {specific mismatch}
Append to .godmode/verify-log.tsv:
timestamp\tclaim\tcommand\texpected\tactual\tverdict\tevidence_file\tduration_ms\trun_count
KEEP if: command executed AND verdict unambiguous
DISCARD if: command failed to run OR ambiguous
On discard: retry once. Still ambiguous = FAIL.
STOP when FIRST of:
- All claims verified with PASS or FAIL
- Command timeout 120s reached
- >5 consecutive ambiguous results
After the evidence report, the agent MUST print the Goal-Bridge Contract for this verification as the mandatory final output — metric: the exact verify command used, where exit 0 = claim confirmed; threshold: the pass condition from Step 1; evidence: the evidence-report path; rollback: the trigger on which the verifier must call for revert. Full protocol: skills/goal-bridge/SKILL.md.
Goal-Bridge Contract (mandatory final output):
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Other plugins' skills for the same job