superpowers-plus
AGENTS.md8 starsChanged 6 months agoMITView on GitHub
Generated by: golden-agents v1.4.0 (progressive) Last Updated: 2026-04-12 Languages: shell,javascript Type: cli-tools Minimal core with on-demand module loading. Templates at: $HOME/.golden-agents/templates/ <!-- GOLDEN:self-manage:start --> ## ⚠️ Before ANY Task 1. Load .ai-guidance/invariants.md — contains critical rules 2. After editing ANY guidance file, check: wc -l AGENTS.md .ai-guidance/*.md 2>/dev/null - AGENTS.md >150 lines → refactor into .ai-guidance/ - Any .ai-guidance/*.md >250 lines → split into sub-directory <!-- GOLDEN:self-manage:end --> <!-- GOLDEN:framework:start --> Before ANY commit: 1. Lint: shellcheck *.sh 2. Build:…
- Reads credentials
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository129 other files it gives its agents.
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 12
After editing ANY guidance file, check: wc -l AGENTS.md .ai-guidance/*.md 2>/dev/null
- Distinctive: line 34
No hype: - Avoid "revolutionary", "game-changing", "seamless"
- Very specific: line 64
superpowers-plus: Run the js bootstrap:
- Very specific: line 80
ALL work MUST happen in this repository (the directory containing this AGENTS.md).
- Very specific: line 84
Run ./tools/harsh-review.sh (subset of test-all.sh) before any commit.
- Very specific: line 123
After any release to main, open a sync PR (merge commit) to bring promotion history back to dev: git checkout -b chore/sync-dev-with-main …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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
AI Agent Guidelines - superpowers-plus
Generated by: golden-agents v1.4.0 (progressive) Last Updated: 2026-04-12 Languages: shell,javascript Type: cli-tools
Minimal core with on-demand module loading. Templates at: $HOME/.golden-agents/templates/
<!-- GOLDEN:self-manage:start -->⚠️ Before ANY Task
- Load
.ai-guidance/invariants.md— contains critical rules - After editing ANY guidance file, check:
wc -l AGENTS.md .ai-guidance/*.md 2>/dev/nullAGENTS.md>150 lines → refactor into.ai-guidance/- Any
.ai-guidance/*.md>250 lines → split into sub-directory
<!-- GOLDEN:self-manage:end --><!-- GOLDEN:framework:start -->Quality Gates (MANDATORY)
Before ANY commit:
- Lint:
shellcheck *.sh - Build:
bash -n *.sh - Test:
bats test/
Order matters. Lint → Build → Test. Never skip steps.
Communication Rules
- No flattery - Skip "Great question!" or "Excellent point!"
- No hype - Avoid "revolutionary", "game-changing", "seamless"
- Evidence-based - Cite sources or qualify as opinion
- Direct - State facts without embellishment
Banned phrases: production-grade, world-class, leverage, utilize, incredibly, extremely, Happy to help!
🚨 Progressive Module Loading
STOP and load the relevant module BEFORE these actions:
Language Modules (🔴 Required)
- 🔴 BEFORE writing ANY
.shfile or bash code block: Read$HOME/.golden-agents/templates/languages/shell.md - 🔴 BEFORE writing ANY
.js,.ts,.jsx,.tsxfile: Read$HOME/.golden-agents/templates/languages/javascript.md
Workflow Modules (🔴 Required)
- 🔴 BEFORE any commit, PR, push, or merge: Read
$HOME/.golden-agents/templates/workflows/security.md - 🔴 WHEN tests fail OR after 2+ failed fix attempts: Read
$HOME/.golden-agents/templates/workflows/testing.md - 🔴 WHEN build fails OR lint errors appear: Read
$HOME/.golden-agents/templates/workflows/build-hygiene.md - 🟡 BEFORE deploying to any environment: Read
$HOME/.golden-agents/templates/workflows/deployment.md - 🟡 WHEN conversation exceeds 50 exchanges: Read
$HOME/.golden-agents/templates/workflows/context-management.md
Project type guidance:
- Read
$HOME/.golden-agents/templates/project-types/cli-tools.md
Optional: Superpowers integration
Two parallel, mutually exclusive skill ecosystems exist. At the START of every conversation, detect which THIS machine uses and bootstrap accordingly:
- superpowers-plus: Run the js bootstrap:
node ~/.codex/superpowers-augment/superpowers-augment.js bootstrap
This loads available skills into the environment. To load a specific skill manually (plus only):
node ~/.codex/superpowers-augment/superpowers-augment.js use-skill SKILL_NAME<!-- GOLDEN:framework:end -->Project-Specific Guidelines
🔴 Dev Repo Path
ALL work MUST happen in this repository (the directory containing this AGENTS.md). Never edit installed copies (~/.codex/). If unsure of the path, run git rev-parse --show-toplevel.
Quality Gates (sp+-specific)
- Full test surface:
./tools/test-all.shruns shellcheck + harsh-review + bats + node test/*.tools/ci-bats-discovery.shis CI's suite discovery, policy lint, and runner. The framework block above listsbats test/for parity with golden-agents conventions, but the actual suite is larger. Use--fastfor a node+bats-only inner loop; CI must run the full suite. - Run
./tools/harsh-review.sh(subset oftest-all.sh) before any commit; install hooks:./tools/install-hooks.sh commit-msghook: auto-converts smart quotes, em dashes, arrows, etc. to ASCII; rejects any remaining non-ASCII. If a commit is rejected, edit the message to use ASCII equivalents. It also warns (never blocks) when a message line narrates the review process, such as a tool name next to passed, round or findings (tools/commit-msg-jargon.py). Requirespython3in PATH (hook exits 1 with an explicit error if missing).- Review gates are enforced at pre-push: code →
code-review-battery, design docs → PHR,skills/*.mdand AGENTS-family files →llm-skill-review. A sentinel covers the reviewed content: it stays valid across amends/rebases until a file in that gate's scope changes (tools/lib/sentinel-scope.sh). The pre-commit sentinel check is off for this repo (REQUIRE_CODE_REVIEW_SENTINEL=falsein.agent-gates). The PHR-trigger file list comes fromtools/md-files-changed.sh— the single source of truth for the regex and exclusions. - Sentinel:
tools/run-battery.sh [--verdict PASS|PASS_WITH_NITS] [--staged]is the ONLY permitted way to write.code-review-cleared. Writing it directly is a critical policy violation. With--staged, the sentinel recordstree:<sha>and the post-commit hook promotes it to the new HEAD SHA, eliminating the stage→battery→commit→battery double-run. The post-commit hook also carries.code-review-cleared,.phr-cleared, and.llm-skill-review-clearedforward across any commit whose tree is provably unchanged from a passing sentinel's recorded SHA — this covers a clean promotion merge (e.g.dev → main, tree-identical to the branch merged in) so promoting already-reviewed content doesn't force a fresh review just because the merge commit has a new SHA. - Pre-push runs
test-all.sh --fastautomatically (Gate 1 of 8). Before spending that runtime, use read-onlytools/push-readiness.sh [--json]to list sentinel blockers without consuming them; pass--destination <branch>for a non-same-name refspec such asHEAD:main. Gate 6 requires.llm-skill-review-clearedforskills/*.mdchanges; it supersedes (not supplements) the code-review and PHR gates for that file class specifically. Gate 7 is a per-commit LOC advisory (warn-only by default; seetools/pre-push-loc-gate.sh's own header forLOC_GATE_MODE=blockopt-in). - Gate 8 blocks a branch missing commits its target already has. Target is
dev;mainfordev,promote/*and sync branches (sync/*,*sync-dev-*);mainitself has no target;hotfix/,release/,backport/,tagged-release/are exempt. It fetches first, fails open offline or on a shallow clone, and prints the command to catch up:git mergefor amaintarget,git rebaseotherwise (DIVERGENCE_GATE=offskips it). - Before dispatching any review sub-agent, run
tools/review.sh route <path> [<path> ...]first — it wrapstools/which-gate.shand prints one block per artifact class (skill name, sentinel file, and runner), with a separate block for each gate when paths span multiple classes. Never pick the review dispatcher from memory — the three review skills' own "Wrong skill?" prose banners only fire after the wrong skill is loaded, which is after the dispatch decision was already wrong;tools/review.shfires before any skill loads. On non-zero exit (router missing, extraction failure, or unmatched artifact), stop and consult the gate bullets above rather than picking from memory. - Writing a bats fixture that does its own
git init/git -C <tmpdir>work?test/setup_suite.bash(bats-core auto-loads it once, before any test forks) already centrallyunsetsGIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_PREFIXfor everybats test/invocation — no per-file repetition needed. It exists because a leakedGIT_DIR(from an unrelated git experiment in the same shell) once silently redirected a fixture's owngit -C <tmpdir> init/commitonto the real repo, corrupting.git/config. Seetest/setup_suite.bashfor the full incident writeup. - Writing a NEW hook or gate that invokes nested git directly (not a bats fixture)?
tools/pre-push's ownunsetof the same four vars (near its top) exists for a separate, still-live vector: git auto-setsGIT_DIRfor hook subprocesses under a linked worktree, which silently overrides-C/cwd discovery for any nested git command the hook runs — sanitize the same four vars before your own nested git calls. - Fixture-only fixup after a full review already passed? Try
tools/try-sentinel-fast-forward.sh --code-review(or--phr) before re-running the full battery/PHR. It only succeeds when every changed file is a registered mechanically-regenerated fixture (tools/lib/fast-forward-registry.sh) AND each file is proven byte-for-byte reproducible by its own generator — the tool deletes each matched file, re-runs its generator, and requires the exact file to reappear unchanged, so a registry entry that doesn't actually cover a given file is caught rather than silently trusted. Falls back to "run the full review" on any failure (exit 1 for a proven mismatch or non-ancestor SHA; exit 2 for a usage/precondition error like a dirty tree or missing sentinel). - ❌ NEVER emit "ready to push", "let me commit", "about to merge", "committing", or "pushing to" without first scanning for required-skill triggers
TODO Tools
Load .ai-guidance/todo-tools.md when using TODO tools.
Skill File Structure
Load .ai-guidance/skill-file-structure.md before editing skills.
🔴 Git Workflow — GitHub First, Always
Remote in this clone:
origin= GitHub (bordenet/superpowers-plus) — sole source of truth
ALL changes go to GitHub (origin) via PR.
2-Tier promotion (all on GitHub origin):
- Feature branch → push to
origin, open PR intoorigin/dev dev → main: explicit human instruction + batch review approval
There is no staging branch (retired October 2026; it only passed content through to main).
A promotion PR carries content already reviewed on its source branch — it is not new feature work. Once the human instruction and batch review approval are given, open the PR and merge on green required checks. Do not re-run brainstorming, debate, or the full feature-development skill chain against a promotion diff solely because a skill-router match fired; those are for design decisions, and a promotion merge has none.
After any release to main, open a sync PR (merge commit) to bring promotion history back to dev:
git checkout -b chore/sync-dev-with-main origin/main && git push origin chore/sync-dev-with-main
Then open PR chore/sync-dev-with-main → dev. Squash promotions leave SHAs on main that never reach dev without this.
- ❌ NEVER commit directly to
devormain - ❌ NEVER branch features from
main - Emergency hotfixes: branch
hotfix/<name>frommain, PR intomain, cherry-pick back todev - Authorization expires after context compaction or sub-agent handoff — human must restate
- Known issue — promotion PR stuck on
BEHINDdespite all checks green: see.ai-guidance/promotion-strict-behind-runbook.mdfor confirmed non-fixes and the mitigation (the underlying GitHub-side root cause is itself unconfirmed — the runbook's own "Known gaps" section says so). The mitigation temporarily disables the target branch's required-status-checksstrictflag (the 4 required checks themselves stay enforced) — that is its own sensitive action and needs its own fresh authorization, never bundled with the promotion approval itself. Enforced bytools/claude-hooks/pre-tool-use-red-autonomy.sh, which blockstools/promotion-strict-toggle.sh disableuntil the current session contains the phrase "approve strict-disable" (a prior push/promotion approval does not count).
Claude Code guardrails
Claude Code lifecycle hooks (red-autonomy, skill router, context ferry, git identity, and others) installed into ~/.claude/hooks/ and registered in ~/.claude/settings.json by setup/install-claude-guardrails.sh; for self-debug guidance use the systematic-debugging skill (/sp-systematic-debugging). install.sh reports hook parity (installed vs. shipped) after every run; uninstall.sh removes the hooks and their registrations.
Environment variables (add to your local ~/.codex/.env):
| Variable | Default | Purpose |
SUPERPOWERS_CLAUDE_GUARDRAILS | 1 | Kill switch — installs the guardrail hooks; set 0 to opt out |
CLAUDE_HOOKS_BYPASS | 0 | Per-hook bypass for ops escape hatch (PR-1+) |
AUGMENT_PARITY_OFF | 0 | Parity-mode toggle for cross-tool validation (PR-2+) |
Baseline capture (non-regression check):
bash scripts/capture-augment-baseline.sh # overwrite baseline
bash scripts/capture-augment-baseline.sh --check # detect drift since baselineBaseline file: tests/fixtures/augment-baseline-pre-claude-guardrails.json
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.

