Learn

From d-o-hub/rust-self-learning-memory · View interactive version

Learn is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. Extract non-obvious session learnings into scoped AGENTS.md files

How to use this skill

Skill file

Learn

Extract non-obvious session learnings into scoped AGENTS.md files to preserve knowledge across sessions.

When to Use

Activate after completing a non-trivial task to capture insights that would otherwise be lost.

Instructions

What to Capture (Non-Obvious Only)

What NOT to Capture

Scoping Rules

Place learnings in the most specific AGENTS.md file:

Dual-Write Requirement

Every new non-obvious insight must be recorded in two places:

  1. Verbose Log: Add a full LESSON-NNN entry to agent_docs/LESSONS.md with Issue/Root Cause/Solution.
  2. Distilled Note: Add a 1–3 line note to the nearest AGENTS.md (this is what learn automates).

If agent_docs/LESSONS.md does not exist yet, create it before relying on the dual-write workflow (LESSON-003: the contract was documented before the log file existed). Keep the log verbose and root AGENTS.md compact — the distilled note is a pointer, not a copy.

Format

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.