用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arbazkhan971/godmode --skill verify命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | verify |
| description | Evidence gate. Run command, read full output, confirm or deny claim. No trust, only proof. |
/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
[ -f ] || 0
python3 - <<
import json, sys
try:
with open(sys.argv[1], encoding=) as fh:
cfg = json.load(fh)
except Exception:
( % sys.argv[1], file=sys.stderr)
sys.exit(0)
roles = cfg.get(, {}) isinstance(cfg, dict) {}
isinstance(roles, dict):
key sorted(roles):
isinstance(roles[key], str):
( % (key, roles[key]))
EOF
}
() {
role env_name val
role=
env_name=
val=
[ -n ];
gm_valid ;
0
gm_warn
val=
[ -n ];
gm_valid ;
0
gm_warn
val=
[ -n ];
gm_valid ;
0
gm_warn
}
PROJ_KV=
[ -f ]; PROJ_KV= || ;
HOME_KV=
[ -f ]; HOME_KV= || ;
IFS= -r e;
r=
**) ;; *) ROLES= ;;
< <( | grep | -d= -f1 || )
IFS= -r k;
|*[!A-Za-z0-9._-]*) ;;
**) ;; *) ROLES= ;;
< <( | -f1 | grep -v || )
r ; gm_route ;
[ -f ]; p=; p=none;
[ -f ]; h=; h=none;
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):
基于 SOC 职业分类