superpowers-execution-harness
Skill1 starsChanged 41 days agoMITView on GitHub
Enforces strict compiler verification gates (Exit Code 0), multi-language i18n key parity, Hermes error memory, and 4-pillar QA auditing.
- Deletes or force-pushes
In this repository11 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Never assume file paths, exports, or database columns exist without empirical verification.
- Distinctive: line 50
If a file has already been read in this conversation session, reuse working memory.
- Very specific: line 55
Circuit Breaker (
attempts <= 3): If verification fails 3 consecutive times with no error reduction, halt immediately. - Distinctive: line 69
Never ingest 50 turns of stale transcripts.
- Distinctive: line 81
Do not dump 500+ lines of raw test logs into LLM context.
≈ “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
🚀 Superpowers Execution Harness — Engineering Discipline, Memory & Verification Gates
This skill enforces high-discipline execution, eliminates shallow/hasty patching, prevents redundant tool loops, minimizes shell waste, and establishes strict empirical verification gates and multi-language parity.
HARD BANS — UNFORGIVABLE HARNESS & EXECUTION ANTI-PATTERNS
The following AI habits and execution shortcuts are STRICTLY PROHIBITED:
1. Mocking Everything / Testing Nothing is BANNED
- ❌ Prohibited: Writing unit tests that mock the database, mock the service, mock the fetch call, and assert trivialities like
expect(true).toBe(true). - 💣 Failure Mode: Code ships to production with passing tests, but fails immediately on runtime queries, real data payloads, or network serialization.
- ✅ Mandatory: Tests must validate real contracts, actual Zod schemas, real state transitions, and integration error cases.
2. Bypassing Type Errors with @ts-ignore or any is BANNED
- ❌ Prohibited: Silencing TypeScript compiler errors by slapping
// @ts-ignore,// @ts-nocheck,// @ts-expect-error,/* eslint-disable */, or casting(data as any)/(data as unknown as SpecificType)onto broken code. - 💣 Failure Mode: Destroys type safety guarantees across the codebase, resulting in catastrophic
TypeError: Cannot read properties of undefinedcrashes in production. - ✅ Mandatory: Type errors must be fixed properly via correct generics, strict interface definitions, discrimination unions, or Zod parsing.
3. Blind File Overwrites (No Pre-Read) are BANNED
- ❌ Prohibited: Rewriting an entire file from chat memory without inspecting the physical file first (
write_to_fileover existing files without priorview_file). - 💣 Failure Mode: Silently wipes out sibling utility functions, imports, comments, and recent edits made in other branches (fatal regression).
- ✅ Mandatory: Always read the targeted file slice first (
view_file), and execute surgical modifications usingreplace_file_content.
4. Claiming Completion Without Verification is BANNED
- ❌ Prohibited: Telling the user "I have fixed the issue and everything works" without actually executing the verification build command.
- 💣 Failure Mode: Hallucinated confidence. Broken imports and syntax errors remain unresolved until the user tries to run the project.
- ✅ Mandatory: The agent must physically execute
npm run buildornpx tsc --noEmit(or corresponding project verification command) and prove Exit Code 0 in the trajectory before claiming completion.
5. Partial Multi-Language Updates are BANNED
- ❌ Prohibited: Adding a new button or label to
en.jsonwhile leavingtr.json,nl.json, or other locale dictionaries out of sync. - 💣 Failure Mode: The application throws missing key runtime warnings or displays ugly raw variable identifiers (
SETTINGS_NAV_HEADER) in foreign locales. - ✅ Mandatory: All active locale translation files must be updated simultaneously with 100% key parity.
THE 5 GOLDEN EXECUTION PILLARS
- Zero Guesswork & Live Code as SSOT:
- Never assume file paths, exports, or database columns exist without empirical verification. Always verify live files on disk using
view_filebefore making edits.
- Never assume file paths, exports, or database columns exist without empirical verification. Always verify live files on disk using
- Terminal Discipline & Zero Waste:
- The shell (
run_command) is reserved for package installation, compilation/testing (npm run build,tsc --noEmit,test), and targeted repo checks (git status,git ls-files). Aimless exploratory loops or raw file dumping (cat,Get-Content) are strictly forbidden.
- The shell (
- In-Session Read Cache:
- If a file has already been read in this conversation session, reuse working memory; never read the same file repeatedly.
- Root-Cause Remediation (Anti-Regression):
- Superficial patches are banned. Resolve null pointer risks, CSS overflow bounds, and API failure modes at the architectural root.
- Empirical Verification Gate & Circuit Breaker:
- A task is NEVER complete until automated verification (TypeScript
npm run build/npx tsc --noEmit, Pythonpytest, or project build command) passes with Exit Code 0. - Circuit Breaker (
attempts <= 3): If verification fails 3 consecutive times with no error reduction, halt immediately. Do not thrash in a continuous fix-break cycle; report findings and logs to the user.
- A task is NEVER complete until automated verification (TypeScript
- Destructive Command Ban:
- The shell must NEVER execute destructive git or filesystem commands (
git reset --hard,git clean -fd,rm -rf,DROP TABLE). Uncommitted user code must never be overwritten.
- The shell must NEVER execute destructive git or filesystem commands (
HERMES ERROR LEARNING MEMORY & SMART CONTEXT
- 4-Step Error Learning Cycle:
- Symptom: Concrete error message or runtime stack trace.
- Root Cause: Underlying architectural or logic failure.
- Permanent Fix: Side-effect-free remediation.
- Memory Record: One-sentence actionable lesson logged to
.agent/memory.json(Max 10 rules).
- Smart Context Window:
- Never ingest 50 turns of stale transcripts; rely only on the immediate intent (last 1–2 turns) and live disk code.
THE 4 VISUAL & INTERACTIVE QA PILLARS
- Pillar 1: Layout & CSS Integrity: Zero horizontal scroll (
overflow-x), WCAG AA contrast, consistent border-radius tokens. - Pillar 2: DOM & Content Integrity: Zero blank screens, meaningful and contextual Empty States on null data.
- Pillar 3: Asset & Resource Integrity: Zero broken images (
img.complete && naturalWidth > 0), zero 404 font or bundle errors. - Pillar 4: Runtime & Interaction Integrity: Zero uncaught
console.errororwindow.onerror, fully tested interactive modals, dropdowns, and form submissions.
🔴 0-Token Root-Cause Clustering
- Do not dump 500+ lines of raw test logs into LLM context.
- Cluster errors into 5–8 high-level categories (
P0 Crash,API 401,Mobile Cutoff,Type Mismatch) for actionable resolution.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

