agentleFS
dsviddsvid/claude-skills/skills/capture-learning/SKILL.md

capture-learning

Skill0 starsChanged 4 months agoMITView on GitHub

Capture a concept just explained/discussed in the current session into the project's paired learning-resource location (a cheat sheet entry, and optionally an exercise) — durable, not left in chat. Use when the user hits something they don't understand in real code, asks to "add this to the cheat sheet", wants to remember an explanation for later, or a comprehension gap comes up mid-session. Not stack-specific — works for any project paired with any learning location (a language-specific playground, a consolidated docs repo, etc).

14 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

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 7

    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:

    Check the current project's own memory mechanism, in order, stop at first hit:

    line 15
  2. Very specific:

    If a .beads/ dir exists here: bd memories learning-resource / bd recall learning-resource-location.

    line 17
  3. Very specific:

    Read that location's CLAUDE.md (or README.md if no CLAUDE.md) to learn its actual structure: cheat-sheet file names/paths, style contract, …

    line 30
  4. Distinctive:

    Follow the target location's own style contract exactly (terseness, example format, citation format, whatever it specifies) — never apply a …

    line 46
  5. Distinctive:

    Show the draft and stop: Do not write until the user approves.

    line 50
  6. Distinctive:

    Ask whether this warrants a new exercise step, or a new exercise.

    line 58
  7. Distinctive:

    Never write code for the user inside the target location's exercises — same prime directive as any tutoring context, if the target location …

    line 72
  8. Distinctive:

    Never invent a cheat-sheet style not already established at the target location.

    line 75
  9. Distinctive:

    Never touch the current project's own source — this skill only writes to the paired learning-resource location.

    line 76

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

Turns an in-session explanation into a durable artifact in whatever learning-resource location is paired with the current project — never assume any specific stack or repo name. Discover everything about the target from its own docs each time.

1. Find the paired learning-resource location

Check the current project's own memory mechanism, in order, stop at first hit:

  1. If a .beads/ dir exists here: bd memories learning-resource / bd recall learning-resource-location.
  2. Else check this session's file-based memory for a reference-type entry pointing at a learning location.
  3. Nothing found → ask the user for the path once. Save it back using whichever mechanism the project already uses (bd remember learning-resource-location "<path> (<what for>)" if beads, else a reference-type memory file) so it's only asked once per project.

This same lookup also covers the exercises-root (step 5) — the location is stable per project even though where a given capture fits inside it is not.

2. Read the target location's own conventions

Read that location's CLAUDE.md (or README.md if no CLAUDE.md) to learn its actual structure: cheat-sheet file names/paths, style contract, exercise/GOAL.md format, any regen command (e.g. a TOC generator). Do not bring in assumptions from any other stack — every convention comes from what's read here, every session.

No CLAUDE.md/README.md yet (first capture at this location) → ask the user briefly for format preferences and suggest writing a minimal convention doc for next time, so the next capture doesn't have to ask again.

3. Check existing coverage

Grep the relevant reference file(s)' headings/TOC for the concept. Already covered → propose an amendment, not a duplicate section.

4. Draft the cheat-sheet addition

Follow the target location's own style contract exactly (terseness, example format, citation format, whatever it specifies) — never apply a generic style. Use different data/examples than that location's own exercises use, if it has that rule.

Show the draft and stop. Do not write until the user approves. If the cheat sheet didn't already cover this and the wording needs iteration, iterate on the draft with the user rather than settling for a one-shot explanation.

On approval: write it, then run the location's regen/TOC command if one exists.

5. Optionally propose an exercise

Ask whether this warrants a new exercise step, or a new exercise. If yes:

  • Never infer placement. Show the existing exercise list/order and ask the user where this fits (which exercise it's a step of, or where a new one slots in relative to the others). Ordering is a curriculum judgment (prerequisites, difficulty progression) — not derivable from file structure.
  • First exercise insertion ever at this location → also ask how mid-sequence inserts should be handled structurally (renumber trailing exercises vs. a suffix like 04b-name), and write the answer into that location's CLAUDE.md so future captures don't re-ask.
  • Scaffold only on explicit yes, using the exercise/GOAL.md conventions read in step 2.

Non-goals

  • Never write code for the user inside the target location's exercises — same prime directive as any tutoring context, if the target location has one (check its CLAUDE.md).
  • Never invent a cheat-sheet style not already established at the target location.
  • Never touch the current project's own source — this skill only writes to the paired learning-resource location.

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.