capture-learning-moment
Skill1 starsChanged 28 days agoMITView on GitHub
Use when the user asks to capture, document or write up a learning moment (or teachable moment) from the current conversation for students — especially one where human expertise corrected or improved Claude's first answer, or a domain constraint Claude overlooked changed the solution. Writes a Quarto .qmd write-up. Not for ingesting a conversation into a notes vault (that is capture-conversation).
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- capture-conversationSkill
- catch-upSkill
- class-notesSkill
- clothing-inventorySkill
- creating-ultra-crew-guidesSkill
- email-digestSkill
- external-app-reviewSkill
- ootdSkill
- product-searchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 12 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
When the output folder is a Quarto website, the document becomes a post on that site.
- Very specific: line 20
Run this when the user asks for it (for example /capture-learning-moment).
- Distinctive: line 50
If in doubt, ask the user whether a value is safe to include before writing the file.
- Very specific: line 56
If the user gave one with the command (e.g.
- Distinctive: line 58
Use today's date from the session context.
- Very specific: line 60
If the environment variable LEARNING_MOMENTS_DIR is set, use that path.
- Distinctive: line 62
Create the directory if it doesn't exist.
- Very specific: line 64
If the output directory has a _quarto.yml, it is a Quarto website.
- Very specific: line 65
Read its CLAUDE.md (or AGENTS.md, else README.md) and follow it where it differs from this skill.
- Very specific: line 69
Write to <post folder>/YYYY-MM-DD-<slug>.qmd, using the date from step 3.
- Very specific: line 71
Ask the user whether to overwrite it or add a -2 suffix (YYYY-MM-DD-<slug>-2.qmd).
- Very specific: line 72
Use template.qmd (in this skill directory) as the structure.
- Distinctive: line 74
If the original turns are no longer verbatim in context (for example, the conversation was compacted), say so.
- Distinctive: line 79
Keep all of them — the false starts and refinements are part of the lesson.
- Distinctive: line 86
When step 5 found a Quarto website, the post must render as part of it:
- Distinctive: line 89
Add topic categories that fit, reusing ones the site's other posts already use before inventing new ones.
- Distinctive: line 92
Never link a moment by its GitHub blob or raw URL: readers should land on the rendered page.
- Distinctive: line 96
Don't commit or push unless asked: If the site deploys on push, pushing publishes the post, so redaction has to be finished first.
- Distinctive: line 97
When asked to commit, stage only the post and its companion files, never git add -A, so unrelated work in the repo stays out.
- Distinctive: line 118
Key takeaway: Always ask what the documentation itself will be committed to — the answer changes what you can safely write.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Capture Learning Moment
Overview
Documents a notable exchange from this conversation as a Quarto document (.qmd)
suitable for sharing with students or as reference material.
When the output folder is a Quarto website, the document becomes a post on that site.
The best moments show the human-AI collaboration loop:
Claude produces a reasonable first answer,
human expertise reveals a gap,
and the collaboration produces the right solution.
When to Use
Run this when the user asks for it (for example /capture-learning-moment).
The points below are not triggers.
They describe what makes a good moment to pick from the conversation:
- The user corrected an oversight in Claude's response
- A domain-specific constraint (security, legal, git history, production systems) changed the solution
- Claude's approach was plausible but incomplete without the human's contextual knowledge
- Any "I didn't think of that" moment where the human's expertise was load-bearing
What to Capture
| Element | What it is |
| Context | What project/task was being worked on |
| Initial ask | The user's prompt that triggered the exchange |
| Claude's first response | What Claude produced or recommended |
| The exchange | The back-and-forth turns of correction and revision — may be one turn or several |
| Final solution | The corrected approach after all turns |
| The lesson | What this teaches about human-AI collaboration |
Sensitive Information
Always redact or replace sensitive values when writing the document.
The .qmd file may be shared publicly (that's the point),
and when the output folder is a published website, a push makes it public.
Replace real IPs, usernames, UUIDs, hostnames, local file paths, API keys, and any other
identifying values with plausible fakes or placeholders
(e.g. 100.123.45.67, john.doe, AAAA1111-BBBB-2222-CCCC-333344445555).
The learning is in the structure of the exchange, not the actual values.
If in doubt, ask the user whether a value is safe to include before writing the file.
Steps
- Identify the key exchange in the conversation — the moment where human expertise changed the outcome.
- Get a short slug (2–4 words, kebab-case, e.g.
git-history-is-permanent):- If the user gave one with the command (e.g.
/capture-learning-moment git-history-is-permanent), use it. - Otherwise, propose one and ask the user to confirm or change it.
- If the user gave one with the command (e.g.
- Use today's date from the session context.
- Determine the output directory:
- If the environment variable
LEARNING_MOMENTS_DIRis set, use that path. - Otherwise, fall back to
~/learning-moments/. Create the directory if it doesn't exist.
- If the environment variable
- Decide the post folder:
- If the output directory has a
_quarto.yml, it is a Quarto website. Read itsCLAUDE.md(orAGENTS.md, elseREADME.md) and follow it where it differs from this skill. The post folder is the one it names; without one, it is the folder the home page'slisting: contents:reads (usuallyposts/). Then follow Quarto Website Posts as well. - Otherwise, the post folder is the output directory itself.
- If the output directory has a
- Write to
<post folder>/YYYY-MM-DD-<slug>.qmd, using the date from step 3. If that file already exists, do not overwrite it. Ask the user whether to overwrite it or add a-2suffix (YYYY-MM-DD-<slug>-2.qmd). - Use
template.qmd(in this skill directory) as the structure. - Fill in each section from the actual conversation — quote or paraphrase faithfully.
- If the original turns are no longer verbatim in context (for example, the conversation was compacted), say so. Label those parts of the document as paraphrase, and ask the user whether to pull the exact text from the session transcript or keep the paraphrase.
- In The Exchange, include every turn of the back-and-forth, not just the first correction. Some moments take one turn to resolve; others take several clarifications. Keep all of them — the false starts and refinements are part of the lesson.
- In The Lesson, be explicit about why Claude missed it (not just what was missed). This is the most valuable part for students.
- Report the path of the file you wrote, and for a website post, the URL it will have once published.
Quarto Website Posts
When step 5 found a Quarto website, the post must render as part of it:
- Keep the template's front matter. The listing sorts by
dateand filters bycategories; a post without them sorts wrong or hides from filters. Add topic categories that fit, reusing ones the site's other posts already use before inventing new ones. - Companion files (a repro page, an image) go beside the post, named after it (
YYYY-MM-DD-<slug>-repro.html), linked by relative path. - Link other moments by relative
.qmdpath ([title](YYYY-MM-DD-other-slug.qmd)); Quarto rewrites it to.html. Never link a moment by its GitHub blob or raw URL: readers should land on the rendered page. - Render the post with
quarto render <post folder>/<file>.qmdfrom the folder holding_quarto.yml. Fix warnings the new post causes; report any that come from elsewhere instead of editing other files. - The published URL is the
site-urlfrom_quarto.yml, plus the post's path from the folder holding_quarto.yml, with.htmlfor.qmd. - Don't commit or push unless asked. If the site deploys on push, pushing publishes the post, so redaction has to be finished first.
When asked to commit, stage only the post and its companion files, never
git add -A, so unrelated work in the repo stays out.
The Lesson Section
This section is the core teaching value. Structure it as:
- What Claude got right — acknowledge what was reasonable about the first response
- What required human expertise — the specific knowledge or judgment Claude lacked
- Why Claude missed it — the structural reason (training cutoff, no runtime context, optimized for the stated goal not the unstated constraint, etc.)
- Key takeaway — one sentence a student can remember and apply
Example
Moment: Documenting items to scrub before making a dotfiles repo public.
Claude listed the actual sensitive values (IPs, usernames, UUIDs) in AGENTS.md.
User corrected: those values would be in git history permanently, even if the file later changed.
- What Claude got right: Identified all the correct categories of sensitive data.
- What required human expertise: Understanding that git history is permanent — scrubbing a file's current content does not remove past commits.
- Why Claude missed it: Optimized for the immediate ask (document what to scrub) without considering the medium (git) as a constraint on how to document it.
- Key takeaway: Always ask what the documentation itself will be committed to — the answer changes what you can safely write.
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
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.

