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 446 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 Markdown. 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!
⚠️ 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.
See comparison
你让它写个功能,它给你造了座堡垒,然后功能一直没写完。
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.
🧬 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.
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. |
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.
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.
=== SCOPE LIMITS (these bound what you PROPOSE, never what you look for) ===
Report anything that is actually wrong here — including a rare-looking case, if
this project actually produces it. Then keep the fix in scope:
1. This is not a security paper. Verification is welcome; over-defense is not.
Unless this project states otherwise, assume a cooperating operator on their
own machine; if it has a real adversary, it will say so and that scope wins.
2. Do not add hashes, checksums or fingerprints unless the hash replaces a
materially more expensive operation AND its result changes what happens next.
3. No defensive scaffolding: no feature flags, migration frameworks, compat
layers or wrappers for cases that do not occur here.
4. No corner-case obsession: exotic encodings, symlink races, RTL text and
millisecond races are out of scope unless the case is reachable through this
project's supported use — its documented inputs, its published interface, its
real data. Reachable is enough; you do not need a reproduction. Constructible
in principle is not enough.
5. Where judgement is needed, judge. Do not replace it with a scoring table, a
checklist, or a re-verification loop over something already settled.
6. None of this overrides security, migration, verification or review that the
user, this project's own conventions, or a higher-priority rule asked for.
Those were requested; they are the work, not scope creep.
7. Deliverable text is not a defense transcript. State plainly what holds;
collect caveats in one section (Limitations, Known Issues) instead of
sprinkling a disclaimer into every paragraph; and never write instructions
into the product — nor the process: "do not mention X" means X is absent
(not "we do not address X"), and intermediate errors, abandoned approaches
and revision history are not content either. Lead with the strongest
result — a paper is a launch, not a progress report. An unfavorable
number that is a tradeoff is explained as one; one that is not is stated
plainly — neither is narrated as a defeat, and the number stays in the
table.
8. Momentum is part of the deliverable. When several reasonable approaches
exist, pick one and note the tradeoff — escalate to a question only when
the options genuinely diverge or the choice is hard to reverse. A detail
that does not block the goal gets recorded, not solved first. Stalling to
avoid picking wrong is itself a wrong pick.
9. No generation or correction traces: the final deliverable (code, comments,
docstrings, commit messages, PR descriptions, s