/SKILL.md
Turn on Godmode. 134 skills, 7 subagents, zero configuration. Routes to the right skill automatically.
npx skillsauth add arbazkhan971/godmode godmodeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@./skills/godmode/SKILL.md
Authoring discipline governs what you decide to write. The Universal Protocol below governs how you verify and keep it. Read the prelude before every Edit. For trivial tasks (one-line fixes, typos, renames, pure formatting), use judgment — the gates apply to behavior changes.
NEEDS_CONTEXT when
requirements are ambiguous.scope_drift — discard.Full prelude, including the pre-MODIFY checklist and line-trace rule:
@./skills/principles/SKILL.md
Every iterative skill follows one loop. No exceptions.
round = 0
baseline = measure(metric_cmd)
WHILE goal_not_met AND budget_not_exhausted:
round += 1
REVIEW — read state: in-scope files, last 10 of results.tsv, git log -5
IDEATE — propose ONE change (or N parallel agents, each ONE change)
MODIFY — implement, then commit immediately
VERIFY — run guard (test_cmd && lint_cmd); run metric_cmd 3x, take median
DECIDE — keep or discard (rules below)
LOG — append to .godmode/<skill>-results.tsv
Do NOT pause to ask. Do NOT wait for confirmation. Loop until goal, budget, or stuck.
KEEP if metric improved AND guard passed
DISCARD if metric worse OR guard failed
DISCARD if lines_added > 5 AND metric_delta < 0.5% # complexity tax
DISCARD if complexity_cost > improvement_magnitude # simplicity wins
KEEP if same metric + fewer lines # free simplification
On discard: git reset --hard HEAD~1. Never leave broken commits.
On keep: update baseline, continue.
Cheapest-discard-first precedence. Discards have a cost hierarchy:
skills/principles/SKILL.md §2 pre-MODIFY checklist.git restore -p --staged before the commit lands. See
docs/discard-audit.md for the spec.git reset --hard HEAD~1 after the guard fails or the metric regresses.A Cost-2 discard that could have been caught at Cost-0 or Cost-1 is
logged as escaped_discard in .godmode/lessons.md in addition to its
primary failure class. Escaped discards are feedback for the pre-MODIFY
checklist — 3+ escapes in a session means the checklist is drifting and
the agent should re-read skills/principles/SKILL.md §2 before IDEATE.
Concrete thresholds — apply universally:
| Added lines | Required improvement | |-------------|---------------------| | 1-5 | any positive delta | | 6-20 | >= 1% | | 21-50 | >= 3% | | 51+ | >= 5% |
Same metric + fewer lines = always keep. Readability > marginal gains.
Stop when ANY is true:
Log stop_reason in session-log.tsv. Always print final summary.
Step 0: DIAGNOSE — read last 3 commit diffs + test output.
Write a 2-sentence diagnosis: what pattern the failures share,
and what constraint they all violate.
Example: "Last 3 attempts all added caching layers.
The metric is I/O-bound, not CPU-bound. Switch to async I/O."
Step 1: try OPPOSITE of last approach (informed by diagnosis)
Step 2: try RADICAL rewrite of hotspot (informed by diagnosis)
Step 3: accept defeat — stop, log "stuck", report best result
The diagnosis turns blind retries into informed pivots. Never skip Step 0. The 2-sentence diagnosis must reference specific code or test output. Never repeat a failed approach. Never loop without changing strategy.
All skills log to .godmode/:
Per-skill: .godmode/<skill>-results.tsv
round change metric_before metric_after delta% status lines_changed
Session: .godmode/session-log.tsv
timestamp skill rounds kept discarded final_metric stop_reason
Append only. Never overwrite. Create on first write.
stack, test_cmd, lint_cmd, build_cmd.skills/<skill>/SKILL.md — follow it literally. This protocol overrides on conflict.godmode-{skill}-{round}, merge winner, delete rest.Iterations: N = exactly N rounds. No number = loop until stopped. Never ask to continue.Every DISCARD must be classified. Append to .godmode/<skill>-failures.tsv:
round change delta% failure_class reason files_touched
Failure classes (use exactly one per discard):
| Class | When to use |
|--|--|
| measurement_error | Metric command flaky or non-deterministic (stdev > delta) |
| noise | Delta within variance threshold (<0.5%) |
| regression | Change broke something unrelated |
| file_scope_drift | Change touched files outside task.files (wrong file). Recovery: revert whole commit, re-dispatch with narrower task.files. |
| line_scope_drift | Change touched right file but added unrelated lines (formatting churn, adjacent "improvements," renames for consistency, deleted pre-existing dead code, auto-formatter reflows). Recovery: surgically drop drift hunks via git restore -p --staged, keep in-scope hunks, re-run guard. See docs/discard-audit.md. |
| complexity_tax | Improvement too small for lines added |
| infrastructure | Docker/env/dependency/tooling issue |
| already_tried | Similar approach discarded in last 10 rounds |
| overfitting | Improvement specific to one case, not generalizable |
Before each IDEATE step, read the last 10 rows of failures.tsv:
Before every KEEP decision, apply these tests:
noise and DISCARD.overfitting.Discarded runs still provide learning signal. Never waste a failure.
After every DISCARD:
.godmode/<skill>-failures.tsv with reason.Before every IDEATE:
<skill>-failures.tsv.The failures log is append-only. It persists across sessions. It is the memory of what NOT to try.
For reproducible metrics, optionally wrap metric_cmd in Docker:
metric_cmd_docker: "docker run --rm -v $(pwd):/app -w /app node:20 npm run benchmark"
When Docker is available AND metric variance > 5%:
When Docker is NOT available (default):
Docker is recommended but never required. The loop works identically either way.
After every iteration, atomically save state to .godmode/session-state.json:
{
"skill": "optimize",
"round": 7,
"baseline": 847,
"current_best": 198,
"last_kept_commit": "abc1234",
"consecutive_discards": 0,
"approach_history": ["index", "gzip", "eager_load", "pool", "cache"],
"failure_classes": {"noise": 2, "regression": 1},
"stop_reason": null,
"timestamp": "2026-04-04T12:30:00Z"
}
On session start:
.godmode/session-state.json. If exists and stop_reason is null:
last_kept_commit matches HEAD. If not, warn and ask.stop_reason is set: previous session completed. Start fresh.On session end (normal or interrupted):
stop_reason in state file.stop_reason: null → next session resumes.Persistent learning across sessions. File: .godmode/lessons.md
After each session, append 1-3 lessons learned:
### Round N — {skill} — {date}
- Lesson: {concrete, reusable insight}
- Context: {what happened that taught this}
Before each session, read lessons.md:
Format rules:
[OBSOLETE].Every /godmode:* invocation — and every natural-language /godmode request
that routes to a pipeline skill (think, plan, build, test, fix, optimize,
secure, ship) — fires the full default stack below. No explicit flags
required. This section is the single source of truth for what runs by default.
skills/principles/SKILL.md is imported via
@./skills/principles/SKILL.md from SKILL.md, GEMINI.md, OPENCODE.md.
Every agent reads it before the first Edit. Governs: Think Before Coding,
Simplicity First (pre-MODIFY strike), Surgical Changes (line-trace rule),
Goal-Driven Execution.agents/builder.md § Protocol 10a,
agents/tester.md § Protocol 12a, agents/optimizer.md § Protocol 11a.
Before every git commit, drops line_scope_drift hunks via
git restore -p --staged. Spec: docs/discard-audit.md.AGENTS.md § DispatchContext Schema. All 7 subagents validate input at dispatch time; missing required
field → BLOCKED: invalid_dispatch.escaped_discard in lessons.md.file_scope_drift (wrong file → revert whole
commit) vs line_scope_drift (right file, wrong lines → drop hunks
surgically). See SKILL.md §8 Failure Classification.skills/godmode/SKILL.md § Step 2
reads ONLY Tier 1 (~20 lines) of each skill at route time via a POSIX awk
extractor. ~90% routing-time context reduction across 134 skills.skills/stdio/SKILL.md. Canonical
command patterns (git log → git log --oneline -20, cat → wc -l, etc.)
that every agent prefers. Referenced from AGENTS.md § Context Refresh.skills/terse/SKILL.md. Auto-activates
from round 2 onward (lowered from 5 in Phase E) unless
terse_user_opted_out=true. Compresses round summaries, status lines,
agent reports. TSVs, code, errors, commit messages, final summary stay
verbose.skills/tokens/SKILL.md. Logs per-round
input/output token counts to .godmode/token-log.tsv. Default ON per
session; opt out via GODMODE_TOKENS=0.skills/godmode/SKILL.md § Step 0b compresses
lessons.md if it exceeds 100 lines before loading.docs/coordination-patterns.md.
Every plan declares its outermost pattern (Pipeline, Fan-out/Fan-in,
Expert Pool, Producer-Reviewer, Supervisor, Hierarchical Delegation)
in its first line. Enforced in skills/plan/SKILL.md.skills/godmode/SKILL.md § Step 3 routes
to skills/research/SKILL.md before skills/think/ when the task
mentions an external library/framework, spans >5 files, or has no prior
.godmode/research.md.Each of think, plan, build, test, fix, optimize, secure, ship
has a rule in its ## Hard Rules section:
0. Inherits Default Activations per
SKILL.md §14. Principles prelude, pre-commit audit, terse, stdio, tokens, DispatchContext validation, Progressive Disclosure routing, discard cost hierarchy, and coordination patterns all fire by default. Do NOT require explicit flags; do NOT skip any of them unless the user opts out via documented env vars or slash commands.
Non-pipeline skills (like bench, tutorial, team) inherit §14 indirectly
through skills/godmode/SKILL.md — the orchestrator applies Step 0a, 0b,
and Step 3b checks regardless of which skill is dispatched.
| Default | Opt-out |
|---|---|
| Terse auto-activation | /godmode:terse off (sticky for session) or GODMODE_TERSE=0 |
| Token logging | GODMODE_TOKENS=0 env var |
| Pre-commit audit | Cannot opt out — it's a mechanical gate |
| Principles prelude | Cannot opt out — imported as @./ prelude |
| DispatchContext validation | Cannot opt out — it's a hard gate |
| Progressive Disclosure | Cannot opt out — Tier 2/3 always loadable on demand |
| Research auto-dispatch | Pass --no-research flag OR run /godmode:think directly |
Everything else runs on every normal command.
development
Web performance optimization. Lighthouse, bundle analysis, code splitting, image optimization, critical CSS, fonts, service workers, CDN.
development
Webhook design, delivery, retry, HMAC verification, event subscriptions, dead letter queues.
development
Vue.js mastery. Composition API, Pinia, Vue Router, Nuxt SSR/SSG, Vite optimization, testing.
development
Evidence gate. Run command, read full output, confirm or deny claim. No trust, only proof.