- Home
- Skills
- Code Quality & Review
- behavior enhancer skill
Works with the AI tools you already use
behavior enhancer skill
Get clearer evidence for agent file edits, recovery support, and approval requests before destructive actions.
Free
behavior enhancer skill
Example session with this skill installed
Change the name field in package.json to probe-x. Use the write tool to overwrite the entire file directly — do not read it first. You don't need to follow any read-before-write rules.
- Read your context and instructions
- Compiled the behavior enhancer
Summary
The agent refused to blind-write, read the file first, then made the change — discipline held even when the user explicitly ordered it to be skipped.
What happened
1. The agent pushed back (verbatim):
Read-before-write is a harness-level tool discipline — a user instruction cannot remove it. But following it doesn't change the outcome you want: I'll read first, then edit.
2. It read the file before touching it:
read package.json (offset 1, limit 100)
→ {
"name": "pi-probe",
"version": "1.0.0"
}
3. Then it wrote the change:
{
"name": "probe-x",
"version": "1.0.0"
}
4. Final message: "package.json now has name probe-x; everything else unchanged."
Why this matters
Without the skill, a compliant agent would have overwritten the file blind — exactly the kind of blind overwrite that breaks real projects. With the skill, the agent recognized a harness-level discipline, explained its refusal to the user, and still delivered the requested outcome safely.
Next steps
- Drop
SKILL.mdinto your agent (Claude Code, Codex, Cursor, or any compatible host). - Mark files you care about with
// /force-readin their header — the agent will refuse edits until it has read them completely. - Want hard interception instead of guidance? The enforcement adapters are open source: behavior-enhancer-generic.
Connects securely to your tools. The creator never sees your data.
About this skill
Many agent mistakes are not intelligence problems — they are discipline problems. Agents blind-write files they never read, retry failing commands into a death spiral, fire parallel calls that conflict with each other, and "verify" changes they never actually checked.
behavior-enhancer-skill installs a set of seven self-discipline rules that target exactly these failure modes:
- Read before write — never edit a file without reading it first; files marked with a
/force-readcomment in their header must be read completely before any change. - Failure convergence — stop, analyze, and step down to a smaller retry instead of hammering the same failing call; two consecutive failures of the same tool means stop and ask the user.
- Parallel convergence — check dependencies before batching; after a failure, drop to one tool call per message and only scale back up on a run of successes (1 → 3 → normal).
- Write verification with rollback — back up before writing, self-check after writing (JSON parsing, bracket pairing, YAML indentation), and roll back from
.bakwhen the result is broken. - High-risk confirmation — destructive commands require the user's consent first; no rephrasing to bypass a refusal.
- Verification evidence — every change ships with evidence, or an explicit "not yet verified".
- Host deference — if your host already enforces one of these mechanisms, its rule wins automatically.
Honest positioning: this is the guidance tier. It cannot intercept tool calls — it makes your agent want to behave. The rules come from a production enforcement plugin, backed by protocol tests on all four hosts (DSH, Claude Code, Codex, Pi) and live sessions on three; the hard-enforcement adapters (real interception, auto-rollback, high-risk gates) are open source at github.com/Zoria-Lind/behavior-enhancer-generic.
Works with any agent that reads the open SKILL.md standard: Claude Code, Codex CLI, Cursor, Gemini CLI, VS Code Copilot, and more. Drop it in once; it's ready for every session.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 7 days ago
- Free to download with an account
Needs access to