agentleFS
subarnasaikiasubarnasaikia/kaggle-skills/.claude/skills/capture-learning/SKILL.md

capture-learning

Skill2 starsChanged 7 months agoMITView on GitHub

Capture a single learning to .learnings/ when something surprising, painful, or validation-worthy happens during Kaggle work. Use proactively whenever an experiment fails for a non-obvious reason, a submission regresses, you hit a tool/API quirk, or a non-obvious approach is confirmed to work. Also use when the user says "remember this", "save this learning", "log this", or describes a mistake they don't want repeated.

8 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

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 5

    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. Distinctive:

    When the fact is already in the codebase or git history.

    line 21
  2. Distinctive:

    When the fact is generic textbook ML.

    line 22
  3. Distinctive:

    When it's a fleeting task detail — use a todo, not a learning.

    line 23
  4. Very specific:

    If it generalizes across competitions → scope: global.

    line 28
  5. Very specific:

    If it only applies to the current competition → scope: <slug> (infer from cwd).

    line 29
  6. Distinctive:

    Link related learnings: if this is a sibling or corrects an earlier one.

    line 46
  7. Distinctive:

    Write as if leaving a note for the next Claude session that has never seen this project.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 8 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

Capturing a Learning

Claude writes a single self-contained learning file to .learnings/. Each file is a durable memory that future sessions will read via the SessionStart hook and the recall-learnings skill.

When to invoke proactively

Any of:

  • Submission score regressed and we now know why.
  • An experiment failed for a non-obvious reason (class imbalance, leak, time budget, CV/LB mismatch).
  • A Kaggle CLI / MCP / env quirk bit us (auth, rate limit, flag syntax, format gotcha).
  • A non-obvious approach was confirmed to help (e.g. "group-k-fold by user_id beat random split by 0.02 AUC").
  • The user explicitly asks to remember something.

When NOT to invoke

  • When the fact is already in the codebase or git history. Those are not learnings — read them directly.
  • When the fact is generic textbook ML. Reserve learnings for things specific to our work.
  • When it's a fleeting task detail — use a todo, not a learning.

Steps

  1. Determine scope:
    • If it generalizes across competitions → scope: global.
    • If it only applies to the current competition → scope: <slug> (infer from cwd).
  2. Pick tags from the stable families (see .learnings/README.md). Add one to three tags. Prefer reuse over invention.
  3. Estimate severity and cost:
    • scar + cost: high when it burned a submission slot or > 8h.
    • scar + cost: medium when it cost 1–8h.
    • pattern when it's a validated-good approach.
    • note when it's a mild gotcha.
  4. Check for near-duplicates — run grep -l "<key phrase>" .learnings/L-*.md. If found, decide: update the existing file, mark the older one recurring: true, or supersede it with a new file that references it.
  5. Generate an ID: L-$(date +%Y-%m-%d)-NNN where NNN is the next free 3-digit sequence for that date. Use ls .learnings/L-$(date +%Y-%m-%d)-*.md 2>/dev/null | wc -l to pick NNN.
  6. Write the file using the template in .learnings/README.md. Keep the body under 20 lines.
  7. Confirm to the user in one short sentence: "Captured L-… on <topic>."

What makes a good learning

  • Specific scar. "Submitted a CSV where ID column was float instead of int; Kaggle rejected the format." Not "watch out for types."
  • Actionable rule. "Cast submission ID column with .astype(int) before writing." Not "be careful."
  • How to apply. One or two lines on when and where the rule kicks in.
  • Link related learnings if this is a sibling or corrects an earlier one.

Creative directive

Write as if leaving a note for the next Claude session that has never seen this project. They need to act correctly on incomplete information. A good learning is one where reading only the Rule line is enough to avoid the mistake.

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.