From qe-framework
Records user-identified mistakes into a persistent mistake registry (.qe/MISTAKE.md) so Claude learns from corrections and avoids repeating them across sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/qe-framework:QmistakeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Records mistakes that Claude made so they are never repeated. Each mistake is stored in `.qe/MISTAKE.md` which is loaded at every session start via the session-start hook.
Records mistakes that Claude made so they are never repeated. Each mistake is stored in .qe/MISTAKE.md which is loaded at every session start via the session-start hook.
/Qmistake directlyParse the user's complaint/correction. Extract:
Use AskUserQuestion to confirm before recording:
Mistake identified:
What went wrong: {description}
Correct behavior: {what should happen instead}
Context: {skill/file/situation}
Record this mistake?
(a) Yes, record it
(b) Edit description first
(c) Cancel
If user picks (b), ask for the corrected description, then confirm again.
Append the entry to .qe/MISTAKE.md. Create the file if it doesn't exist.
File format:
# Mistake Registry
> These mistakes were identified by the user. Do NOT repeat them.
> This file is loaded at every session start.
---
### M001: {short title}
- **Date**: {YYYY-MM-DD}
- **Wrong**: {what Claude did wrong}
- **Correct**: {what should happen instead}
- **Context**: {skill/agent/file involved}
- **Severity**: {critical / important / minor}
---
Entry numbering: M001, M002, M003... Auto-increment by reading the last entry number.
Severity levels:
critical — Causes data loss, breaks builds, sends wrong output to userimportant — Wrong approach, wasted time, incorrect assumptionminor — Style issue, suboptimal choice, cosmeticReport: "Recorded as M{NNN}. This will be loaded at every session start."
/Qmistake (no args)Show current mistake count and last 5 entries.
/Qmistake addInteractive: ask what went wrong, confirm, save.
/Qmistake listShow all entries from .qe/MISTAKE.md.
/Qmistake resolve M{NNN}Mark a mistake as resolved (add [RESOLVED] prefix). Resolved mistakes stay in the file for reference but are de-prioritized in session injection.
The session-start.mjs hook reads .qe/MISTAKE.md and injects its content into the session context. This ensures every new conversation starts with awareness of past mistakes.
Injection format (in hook output):
[MISTAKES] {N} recorded mistakes. Critical: {X}, Important: {Y}.
Top entries:
- M001: {title} — {wrong behavior}
- M002: {title} — {wrong behavior}
Full list: .qe/MISTAKE.md
Only unresolved entries are injected. If there are more than 10, show only critical + important.
npx claudepluginhub inho-team/qe-framework --plugin qe-frameworkCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.