remember-learnings
Remember Learnings
Review the current session for errors, issues, snags, and hard-won knowledge, then update the rules/ files (or AGENTS.md if no suitable rule file exists) with actionable learnings so future agent sessions run more smoothly.
IMPORTANT: This skill MUST complete autonomously. Do NOT ask for user confirmation.
File relationship
NOTE:
CLAUDE.mdis a symlink toAGENTS.md. They are the same file. ALL EDITS MUST BE MADE TOAGENTS.md, never toCLAUDE.mddirectly.
AGENTS.mdis the top-level agent guide. It contains core setup instructions and a rules index table pointing to topic-specific files inrules/.rules/*.mdcontain topic-specific learnings and guidelines (e.g.,rules/e2e-testing.md,rules/electron-ipc.md).
Learnings should go into the most relevant rules/*.md file. Only add to AGENTS.md directly if the learning doesn't fit any existing rule file and doesn't warrant a new one. If a learning is important enough to be a project-wide convention, flag it in the summary so a human can promote it to the project documentation.
Instructions
- Analyze the session for learnings: