Work with the agent's accumulated experience log (EXPERIENCE.md) — either CAPTURE a fresh lesson ("let's add this to experience", "log this", "remember this lesson", "add to experience") or RECALL relevant past lessons before a task ("recount your experience", "what do we know about this", "check your experience", "recall lessons"). EXPERIENCE.md is externalized memory of what works and what doesn't, so a context-less session or an autonomous loop never repeats a dead end. Invoked by the huma...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Experience?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mikalaikryvusha-experience-kaif)
---
name: experience
description: Work with the agent's accumulated experience log (EXPERIENCE.md) — either CAPTURE a fresh lesson ("let's add this to experience", "log this", "remember this lesson", "add to experience") or RECALL relevant past lessons before a task ("recount your experience", "what do we know about this", "check your experience", "recall lessons"). EXPERIENCE.md is externalized memory of what works and what doesn't, so a context-less session or an autonomous loop never repeats a dead end. Invoked by the human with those phrases AND by the agent itself — recall at the start of a task, capture after any meaningful success or failure.
---
# /experience — the agent's accumulated experience (EXPERIENCE.md)
`EXPERIENCE.md` (project root) is the agent's **growing log of lessons** — externalized memory of *what
works and what doesn't*. It survives context resets: a fresh session or an autonomous loop consults it and
avoids repeating dead ends. It is a **living reference — never DONE-tagged**. Plain markdown, searched with
grep — no database, no vectors.
This skill has two modes. Match the human's phrasing (or your own need) to one.
## Mode A — CAPTURE a lesson ("add this to experience")
Trigger: the human says "let's add this to experience" / "log this lesson" / "remember this", OR you just
finished something with a reusable takeaway (a success worth repeating, a failure worth avoiding, a
non-obvious gotcha). **Capture proactively — don't wait to be asked.**
0. **Ask the mechanization question FIRST — "can this lesson be made unnecessary, and at what
cost?"** The hierarchy of means, in order: **(1) remove the trap itself** (a config line, a
safer default, a rename — often cheaper than the entry that would warn about it); **(2) a
guard/linter/gate that reddens by itself;** **(3) only when neither is cheaply possible — a log
entry.** Field measurement behind this order (origin issue #14): 281 entries across three
projects, 7 mechanized — the journal had become the default sink, and the recall ritual
structurally misses action-level lessons, so an entry is the WEAKEST carrier, never the default.
1. **Distill the lesson** to its reusable core — the *approach-level* takeaway, not defect detail
(defect detail belongs in `bugs/`; `EXPERIENCE.md` is "what to do / not do next time").
A lesson about a dangerous ACTION (a command that destroys state: a test runner that wipes a
directory, a reset, a force-push) also lives IN THE ROW OF THAT ACTION in the project's tool
registry (`HOUSE_RULES.md` → "Tools of this project") — where sessions look when they RUN it; the journal entry
duplicates it with an `#action:<command>` tag, it never replaces it (sessions grep by what they
FIX and get burned by what they RUN).
2. **Write one entry** at the **top** of the `## Entries` section, in the canonical format:
```
### EXP-NNNN · <ISO date> · <✅|❌|❌→✅> · #tag #area
class: <slug>
**Context:** one line.
**Tried / did:** briefly.
**Result:** ✅/❌ — what happened.
**Lesson:** the reusable takeaway. → link: bugs/NN · ideas/NN · plans/NN (if any)
**Repro:** the ready-to-run command/check that verifies or applies the lesson — REQUIRED since 2.1:
a lesson with no Repro line is not accepted (a weak session executes a pasted command reliably,
an essay it won't act on). If the lesson genuinely has no command, say what to OBSERVE — as an action.
**Trigger:** for class-level lessons — the decision point that must invoke this lesson, as
"writing X → run Y" (the lesson names WHERE it applies, instead of hoping to be remembered).
**Not for:** the validity range — where this lesson does NOT apply.
**Mechanization:** REQUIRED, exactly one of three (the step-0 answer, recorded):
`mechanized: <the tool>` — the lesson is now enforced/eliminated by code ·
`none-cheap: <why>` — mechanization is not cheaply possible, the reason named ·
`subject-lesson` — a lesson about the subject matter; the journal is its right home.
An entry whose text reduces to "first A, then B" / "don't forget X before Y" is a TRAP
CANDIDATE BY FORM: `subject-lesson` is not available to it — it carries `mechanized:` or
`none-cheap: <why>`.
```
- `EXP-NNNN` = next id (highest existing + 1, zero-padded).
- `class: <slug>` is the **unit of recurrence** — REQUIRED on its own line, right under the heading:
tags are free and overlap, so "the same class" was visible only to a human who read the whole
journal (origin issue #69: 14 of 15 failure classes recurred AFTER their lesson was written, five
lessons written 6–17 times in different words). Take the slug from the CLASS LIST in the journal's
header (`<!-- classes: … -->` or the "Lesson classes" section); a genuinely new class is legal —
add its slug to that list in the SAME write. Lowercase latin, digits, dashes.
- Pick 1–3 short `#tags` **inline on the entry** (there is no central tag cloud) — reuse an existing tag
where one fits (grep the file to see what's in use), so `grep '#tag'` collects related experiences.
- Keep it SHORT and grep-friendly: stable id, ISO date, outcome marker, inline tags.
3. Keep it truthful — record what actually happened, including failures.
4. **A lesson that repeats is a lesson that failed as text.** When the same class recurs in NEW code
after its entry was recorded, the lesson MUST become executable (a linter rule, a guard, a gate) and
the entry's Mechanization field flips to `mechanized: <the tool>`. Two strikes → a mechanism, never
a third reminder — that deadline stands; step 0 asks the question at the FIRST capture so the
second burn stops being the price of asking.
5. **Run the deadline, don't remember it:** `node .kaif/tools/kaif-experience-lint.mjs check` — a SECOND
failure entry of one `class:` with no `mechanized:` is a finding naming the class and both entries by
id. Two fates clear it, both WRITTEN: name the guard in the entry (`mechanized: <the tool>`), or
re-check the price once for the whole class and declare it —
`<!-- class-ok: <slug> — <why mechanizing it is not cheaply possible> -->` in the journal (an empty
declaration is itself a finding, and the declared classes are printed on the summary line: that list
only shrinks). A third record is never a fate;
it also warns when `mechanized:` names a command the project does not contain and when a slug is
outside the header's list. `--shrink EXP-NNNN` collapses a MECHANIZED entry to one line pointing at
its guard (shows by default; `--yes` writes — the text itself stays in the git history). A journal with
not one `class:` exits 3 = SKIPPED, said aloud: "not judged" is never "clean".
## Mode B — RECALL lessons ("recount your experience")
Trigger: the human says "recount your experience" / "what do we know about X" / "check your experience",
OR you are **starting a task** and want to avoid known dead ends. **Recall at the start of a task by
default** — it's cheap and prevents repeated mistakes.
1. **Grep** `EXPERIENCE.md` by the task's tags/keywords: `grep -i '#loop\|context' EXPERIENCE.md`
(`-A4` to include the entry body), then read the matched entries. **Grep a second axis too — the
ACTIONS you are about to run:** `grep '#action:' EXPERIENCE.md` — a session greps by what it
FIXES and gets burned by what it RUNS; subject tags never surface an action lesson.
2. **Summarize** the relevant lessons in 1–5 lines: what was tried, what worked, what to avoid — and let
that steer the approach BEFORE writing code. If a past entry says an approach failed, don't blindly
retry it; go the other way (or note why this time differs). Mind each entry's **Not for:** range —
a lesson applied outside its range is a new mistake, not experience.
3. **Quote what you recalled** (id + one line each) in your report — or state "no relevant lessons".
An unquoted recall is unverifiable; `/fable-judge` checks for this line.
## Notes
- **Boundary with `bugs/`:** `bugs/` = one document per defect (symptom → forensics → fix). `EXPERIENCE.md`
= short, cross-task lessons at the level of approach — including successes. Link, don't duplicate.
- **Autonomy:** in loops (`/autoloop`, `/dayloop`, `/nightloop`) and on `/resume` / `/refresh-context`,
recall at the start and capture after meaningful outcomes — without waiting for the human.
- **Hygiene:** keep entries short; reuse tag names consistently (grep before inventing a near-duplicate tag)
and periodically prune stale entries (like grooming a backlog) so the file stays greppable.