Capture learnings

From BuilderIO/agent-native · View interactive version

Capture learnings is an AI agent skill from the GitHub repository BuilderIO/agent-native. Capture and apply accumulated knowledge via structured memory. Use when the user gives feedback, shares preferences, corrects a mistake, or when you discover something worth remembering for future conversations.

How to use this skill

Skill file

Capture Learnings

This is background knowledge, not a slash command. Organization learnings and your personal memory index are loaded at the start of every conversation, including Slack/integration turns. Capture durable context proactively when you learn something worth remembering.

How to Read & Write Memories

Memories are stored as resources in the SQL database, not as files on disk.

Memory Types

| Type | Use for |

|------|---------|

| user | Preferences, role, personal context, contacts |

| feedback | Corrections, confirmed approaches, things to avoid or repeat |

| project | Ongoing work context, decisions, deadlines, status |

| reference | Pointers to external systems, URLs, API details |

When to Capture

Follow the user's personal memory/INSTRUCTIONS.md when deciding what to

preserve or leave out. It is loaded automatically with the user's personal

AGENTS.md instructions.

At the natural stopping point of a meaningful multi-turn task, review the

conversation for durable preferences, corrections, decisions, conventions, or

project context that would improve a future thread. Save only new, supported

facts; completed task details and temporary debugging notes stay in the thread.

Team and organization knowledge (`LEARNINGS.md`, shared scope)

Store the fact and a concise provenance link when available. Do not paste full private conversations, customer data, credentials, or secrets into learnings. Put stable always-on policy in shared AGENTS.md; put learned facts and evolving conventions in shared LEARNINGS.md.

User Preferences & Memory (`user`)

Feedback & Corrections (`feedback`)

Project Context (`project`)

References (`reference`)

Don't Capture

Key Rules

  1. Save proactively — don't ask permission. When you learn something durable, save it immediately at the correct scope.
  2. Choose scope by audience. Organization workflow or reference → shared LEARNINGS.md; one person's preference/context → personal memory.
  3. One memory per topic — e.g. coding-style, project-alpha, not one giant dump
  4. Read before updating — if a memory exists, read it first and merge, don't overwrite
  5. Make memories retrievable — concise descriptions include names,

relationships, and common wording the user may use to ask for that memory;

the index powers automatic recall.

  1. Keep descriptions concise — the index is loaded every conversation
  2. Memories are SQL-backed — they persist across sessions and are not in git; still minimize sensitive content

Graduation

When a memory is referenced repeatedly, it may belong in AGENTS.md or a skill:

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.