by wanshuiyin
HERO = Hashing · Edge cases · Rubrics · Overbuild — the four shapes coding agents over-defend in. A paste-in contract that stops them. Works with Claude Code, Codex, Antigravity, Cursor, Copilot, Windsurf, Gemini CLI.
# Add to your Claude Code skills
git clone https://github.com/wanshuiyin/HERO-Anti-OverDefenseGuides for using ai agents skills like HERO-Anti-OverDefense.
Last scanned: 8/12/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-12T05:37:28.427Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how HERO-Anti-OverDefense compares with popular alternatives.
HERO-Anti-OverDefense is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by wanshuiyin. HERO = Hashing · Edge cases · Rubrics · Overbuild — the four shapes coding agents over-defend in. A paste-in contract that stops them. Works with Claude Code, Codex, Antigravity, Cursor, Copilot, Windsurf, Gemini CLI. It has 811 GitHub stars.
Yes. HERO-Anti-OverDefense passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/wanshuiyin/HERO-Anti-OverDefense" and add it to your Claude Code skills directory (see the Installation section above).
HERO-Anti-OverDefense is primarily written in Python. It is open-source under wanshuiyin on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh HERO-Anti-OverDefense against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
你让它写个功能,它给你造了座堡垒,然后功能一直没写完。
The shapes look like an agent optimising for not being blamed rather than for the work being good — a hypothesis that fits what we observed, not an established account of how these models are trained. Either way the shapes are real, there are four of them, and their initials are the name: Hashing, Edge cases, Rubrics, Overbuild. Naming them makes it possible to say which one just happened instead of arguing about vibes.
This repository is a short block you paste into your agent's config, plus a catalogue of the behaviours it is meant to stop. It works with Claude Code, Codex, Antigravity, Cursor, GitHub Copilot, Windsurf and Gemini CLI — anything that loads a config file without being asked. There is nothing to install for those rules. For long goals in Codex or Claude Code, the optional Goal Pulse skill enables execution reminders by default when you start or resume a Goal after installing it. For a fresh conversation, Session Handoff preserves the task in project files and gives the next session a concrete place to continue.
🧬 Generalised out of ARIS (~13.7k★), whose cross-model reviewer is genuinely good — and also spent a measurable share of its output proposing hashes nobody reads. HERO keeps the value and drops the tax.

Three complementary paths: HERO Rules keep work focused, Goal Pulse keeps
an active goal moving, and Session Handoff carries useful state into a
fresh conversation. The last is a file-based workflow: prepare the handoff, open
a new session, and continue from the recorded evidence and next action.
The diagram shows the Codex Python timer; Claude Code uses native /loop for
the same Goal Pulse role.
RULES.md |
The contract, in English and Chinese, plus the three places the line is genuinely hard to draw. |
cases/ |
Observed behaviours: what was asked, what the agent did, why it is disproportionate, what proportionate looks like. You do not paste this in — it is what you quote back when the agent argues. |
hosts/ |
Where to paste it — Claude Code, Codex, Antigravity, Copilot, Cursor, Windsurf, Gemini CLI. |
Goal Pulse |
Codex timer or Claude Code native cron: once installed, enabled by default for long-goal starts and resumes; collect finished work and tackle recurring blockers every 30 minutes. |
Session Handoff |
A detailed Markdown skill for Codex and Claude Code: prepare an evidence-backed handoff, then continue in a fresh session without repeating completed work. |
examples/ |
Optional, and not part of HERO. Real AGENTS.md / CLAUDE.md files contributors wrote for their own projects and shared so you can see how they adapted the ideas. Not HERO variants, and not the short version — their thresholds are theirs. Borrow the approach, not the file. |
Only things that change what you should do. Not rewording, not layout — a changelog of everything buries the one line that mattered.
2026-11-02 — Session Handoff — the third HERO path. The Markdown skill for Codex and Claude Code saves the objective, evidence, decisions, active work, and next action, then guides a fresh session to continue from those files. It reuses existing recovery notes and needs no Python. Together with HERO Rules and Goal Pulse: focus, momentum, continuity.
2026-11-01 — Goal Pulse for Codex. Once installed, the skill and local timer activates by default when you start or resume a Goal, reminding the main agent to collect finished work and tackle recurring blockers. Bilingual reminders run every 30 minutes; paused Goals stay silent. The core HERO block is unchanged.
Full Chinese reminder sent by the timer:
中文:以最快的有效速度持续推进当前 Goal,不允许磨洋工、偷懒、空转,或拿计划和汇报代替执行。
worker/子代理一交付完整产物,立即读取、核验,并推进到下一项已授权的验收或交接步骤,不得搁置或等整批。
同一卡点连续两轮无实质进展,主代理立即接管具体缺口或重新拆分,同时推进其它独立任务。
复用已有成果与有效验证,砍掉重复检查、无收益的 corner case 和包装。
不得降低原目标、难度和验收标准,不得越过授权和预算;直接行动,无需专门回复本提醒。
examples/. New sibling named: stalling.SIB-003); instructions confessed into the product — told "do not mention X", it writes "we do not address X" (SIB-004). Rule 7: deliverable text is not a defense transcript. Distilled from repairing a writing pipeline whose papers had turned into confessions.HERO-R-006 — audit loops that ate the experiment they were auditing. HERO-O-005 — a permanent version tree for every recoverable failure. The best line is in neither: a general "only do the checks you need" lost to a twelve-stage workflow in the same prompt.✓ meaning report this, don't dismiss it. There is also a short version at half the size.⚠️ Pasted the block before any of the above? Yours is stale. The install command won't fix it — the guard that stops it appending twice also stops it replacing. Delete your old
=== SCOPE LIMITS ... ===section and run it again.
Paste this into the file your agent loads automatically — CLAUDE.md,
AGENTS.md, .github/copilot-instructions.md, .cursorrules. See
hosts/ for the full table.