Log learnings and errors to markdown files for continuous improvement. Coding agents can later process these into fixes, and important learnings get promoted to project memory.
| Command/operation fails | Log to .learnings/ERRORS.md | | User corrects you | Log to .learnings/LEARNINGS.md with category correction | | User wants missing feature | Log to .learnings/FEATUREREQUESTS.md | | API/external tool fails | Log to .learnings/ERRORS.md with integration details |
| Knowledge was outdated | Log to .learnings/LEARNINGS.md with category knowledgegap | | Found better approach | Log to .learnings/LEARNINGS.md with category bestpractice | | Similar to existing entry | Link with See Also, consider priority bump | | Broadly applicable learning | Promote to CLAUDE.md, AGENTS.md, and/or .github/copilot-instructions.md |
Capture les apprentissages, les erreurs et les corrections pour permettre une amélioration continue. À utiliser lorsque : (1) une commande ou une opération échoue de manière inattendue, (2) l'utilisateur corrige Claude ("Non, c'est faux...", "En fait..."), (3) l'utilisateur demande une fonctionnalité qui n'existe pas, (4) une API ou un outil externe échoue, (5) Claude se rend compte que ses connaissances sont obsolètes ou incorrectes, (6) une meilleure approche est découverte pour une tâche récurrente. Passez également en revue les apprentissages avant les tâches principales. Source : hanzoskill/self-improving-agent.