coharden
Skill0 starsChanged 5 months agoMITView on GitHub
A specialized "harden" loop. Systematically enumerate and close edge cases and failure modes after the happy path works — boundaries, nulls, empty/overflow inputs, races, and error paths — so the robust cases get covered, not just the demo. The doer is cohardener. Use after cobuild/cotest pass the happy path, when a surface needs to survive hostile or unusual input before shipping. Optional, on-demand loop; runs standalone or after the core loop. Best on Sonnet (structured enumeration).
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- new-skillSkill
- cobuildSkill
- cochallengeSkill
- cochangelogSkill
- coconsolidateSkill
- cocreatorSkill
- cocritiqueSkill
- codebugSkill
- codirectSkill
- codrawSkill
- colearnSkill
- coplanSkill
- coresearchSkill
- cospecifySkill
- costudySkill
- cotestSkill
- cotranslateSkill
- my-skillSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Before shipping anything with real blast radius (auth, money, data writes, concurrency).
- Distinctive: line 64
Keep it lean — harden without piling on accidental complexity.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
coharden — close the edge cases
The doer is cohardener. This is the optional, on-demand harden loop — structured enumeration, best run on Sonnet. Run it once the happy path works, to systematically close the failure modes the demo never hit.
When to Use
- The happy path passes
cotest, but the surface must survive unusual or hostile input. - You need to enumerate edge cases deliberately, not discover them in production.
- Before shipping anything with real blast radius (auth, money, data writes, concurrency).
How to Use
- Recall first — run
colearnto pull hardening lessons and known failure-mode checklists. - Enumerate the surface — list every input, state, and path: boundaries, nulls/empties, overflow, malformed input, races/concurrency, error/timeout paths, permission edges.
- Rank by blast radius × likelihood and close the worst first.
- Close each case — add the guard, the test, or the error path; re-run
cotest. - Simplify — run
/code-reviewand/simplifyso hardening doesn't add accidental complexity. A new defect found while hardening jumps tocodebug.
Native tooling
/code-review (find correctness gaps in the diff) · /simplify (keep hardening lean) ·
/verify / cotest (re-check each closed case) · Agent (parallel case sweeps) · hand
defects to codebug, the hardened result to cochangelog, and recurring failure-classes to
colearn.
Memory Bank
Storage: Resolve
workspaceRootfrom.agents/workspace/cocreation.yaml(default.agents). Inlocal, write the full record to<workspaceRoot>/skills/<name>/memory-bank/and refresh its index. Inlinear-primary, write the human-facing artifact through the active backend and keep provider metadata, links, and the local navigation/index cache; never write project records into the plugin cache.
Save each hardening pass as YYYY-MM-DD-kebab-title.md:
.agents/skills/coharden/memory-bank/2026-06-26-payment-webhook.mdCopy _template.md, keep its frontmatter (title, date, status) filled.
HARDENING.md is the auto-generated index — never edit it by hand. After changes:
node .agents/skills/coharden/index.mjs.
Self-eval gate (close the loop)
- Edge cases enumerated and closed, verify green → PASS to
cochangelog. - Cases still open or coverage thin → re-loop: re-harden.
- Hardening surfaced a real defect → jump to
codebug, then resume. - Needs a risk/trade-off judgment call → escalate to the human.
Principles
- Enumerate deliberately — boundaries, nulls, races, error paths — don't wait for production.
- Rank by blast radius × likelihood; close the worst first.
- Re-verify every closed case; an untested guard is a guess.
- Keep it lean — harden without piling on accidental complexity.
- Close the loop: graduate recurring failure-classes into guardrails via
colearn.
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.

