he-learn
Skill25 starsChanged 3 months agoMITView on GitHub
Prevent verified repeated failures and preserve lasting decisions in terse ADRs. Use when failures recur, prevention needs strengthening, or accepted decisions and steering need durable capture; skip ordinary one-off fixes and routine task updates.
Files
Hard Eng Learn
- Input = current task + observed attempts/results or explicit decision/steering. Reuse its authorization + participation mode. Hook checkpoints request this judgment; they do not establish recurrence, a cause, or permission to change other projects/global memory.
- Outcome = verified prevention at its narrowest owner, an applicable decision record, or an explicit no-op/blocker. Keep proof + pending work in the same plan; no learning ledger or new task status. Existing tests/docs that already preserve the lesson need no duplicate record.
flowchart TD
E[Current evidence] --> T{What changed?}
T -->|Repeated failure| R[Research: confirm common cause]
T -->|Lasting decision or steering| A[Decision capture]
T -->|No durable gap| N[Continue without new files]
R --> P[Repair cause and existing deterministic prevention]
P --> L{Adequate executable prevention?}
L -->|Yes| V[Original failure + nearby valid case]
L -->|No; limitation demonstrated| S[Writing Great Skills: smallest procedural repair]
S --> V
A --> U[Check authority, applicability and future retrieval]
V --> U
U --> D[Record actual result; resume current stage]
click R "../research/references/troubleshooting.md"
click A "references/decisions.md"
click S "../writing-great-skills/SKILL.md"
click V "../he/references/testing.md"Repeated failure → prevention
- Recurrence = as defined in troubleshooting, including its distinguishing evidence before another similar retry. A first confirmed false-pass/protected-boundary defect still warrants immediate repair through its current owner.
- Repeat signal = the Stop hook counts each failed check in
.hard-eng/failures.json(failing lines, numbers masked) and names a second sighting as a repeat; treat it as recurrence evidence, not proof of one cause. - Same cause = before a fix, search for earlier fixes of this cause and every other place it can occur; fix them together and record them on the plan's
Same cause:line.checkfails a Ready plan or a changed Complete plan without it. - Preference = remove the cause → repair existing invariant/type/test/checker/lint/hook/CI → add the smallest missing deterministic check. Reuse project-native tools. A new script needs repeated fragile logic or a required boundary existing commands cannot check; no checker per incident.
- Proof = the real violating case must fail before repair and pass after it; a nearby valid case must remain valid. Put the check where recurrence would be caught, retain required gates, and name coverage limits. Do not weaken a check or turn a passing command into proof without inspecting its result.
- Skill = last resort for the part executable prevention cannot adequately cover. State that limitation from evidence; reuse/repair an existing skill before adding one. Follow Writing Great Skills, including its repair route. Canonical location =
.agents/skills/<name>/SKILL.md; only needed references/scripts belong beside it. - Attribution = give each tried fix one verdict against the original failure: helped, hurt, no effect or confounded. Confounded = several changes in one run, or one run alone behind the difference. Keep a lesson only from helped fixes; narrow a confounded one to what the evidence shows, or record nothing. Write the trigger as the shape of the situation, not one task's facts.
- Behavioral proof = exercise the original request + nearby valid/non-trigger case. Material trigger, authority, action-order or completion changes need actual agent execution; a wording/metadata check alone is insufficient. Verify the future consumer reaches the rule when relevant. Failed/unknown proof stays unfinished; never promise universal non-recurrence.
Apply + continue
- Decisions/steering = terse ADR capture. Matching accepted ADRs are shown by the Stop hook; still read applicable ones before applying a past lesson; current user instructions + verified applicability govern. A code/decision conflict may be a product regression, not stale documentation.
- Scope = authorized local prevention continues through HE Build with affected checks; post-ship edits need fresh proof and separately authorized HE Ship delivery. Source-toolkit/global/cross-project changes require their own existing authority.
- Progress = fix risk at the affected stage; learning does not seize unrelated work. No useful durable gap → no new artifact. Missing evidence/authority → retain the concrete next action in the existing plan. A checkpoint, ADR or skill is never a substitute for implementation and proof.
Other versions1 project uses a version of this.
Word for word · 1
- sgaabdu4/appwrite-backend★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- building-flutter-appsSkill
- codebase-designSkill
- code-reviewSkill
- e2eSkill
- he-buildSkill
- he-planSkill
- he-shipSkill
- heSkill
- marketing-videoSkill
- product-walkthrough-videoSkill
- researchSkill
- security-reviewSkill
- writing-great-skillsSkill
- building-flutter-appsSkill
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.

