agentleFS
aaziraniaazirani/flutter_agentify/.agents/skills/capture-learnings/SKILL.md

capture-learnings

Skill0 starsChanged 4 days agoMITView on GitHub

What to save to learnings.md, in what format, and how it differs from learnings.defaults.md. Use when the person corrects you, states a preference, or you find something surprising about this repository.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Don't load this for looking things up before work.

    line 8
  2. Very specific:

    No automated check exists for this.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Capture learnings

Don't load this for looking things up before work; see read-the-docs.

Rule

At the start of a session read learnings.defaults.md and, if it exists, learnings.md. When something worth keeping happens, append one line to learnings.md.

Why

A correction should only be needed once. The next session starts with no memory of this one, so a one-line note is the only thing that carries over.

How

Two files.

  • learnings.defaults.md is committed and ships with the template: facts true for every checkout (for example, generated files are not committed, and the custom lint rules show only in dart analyze from the repo root). Do not edit it for a personal preference; change it only when the task is to improve the template, and ask first.
  • learnings.md is yours, listed in .gitignore and not committed. Create it if it does not exist.

Worth saving:

  • a correction the person gave you ("use watch… names for streams");
  • a stated preference ("keep summaries to five lines");
  • a surprising fact about this repo that cost you time (a command that behaves differently than expected, a test helper quirk).

Not worth saving: anything already in learnings.defaults.md, AGENTS.md or a skill; one-time details of the current task; anything secret. Never write a key, token or personal data.

Format. One line, starting with the date, plain words, the fact and when it applies:

2026-11-09 — The person wants new translation keys added to both language files in the same change.

Append, do not rewrite old lines. If a new line contradicts an older one, add the newer line and say it replaces the older.

Anti-patterns

  • Saving a paragraph, or a diff.
  • Saving a guess as a fact. Check it first.
  • Writing a preference into learnings.defaults.md.
  • Saving the same fact again under different words.
  • Skipping the read at the start of a session.

Verification

No automated check exists for this. learnings.md is ignored by git, so nothing will show it in review; check by reading the file back. The doctor's agent-files check covers AGENTS.md, which tells agents to do the reading and the appending.

Related skills

  • agent-workflow — mention new learnings in your final summary.
  • read-the-docs — look it up first; save only what the docs missed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.