agentleFS
kriscardkriscard/Skills/skills/learning/til/SKILL.md

til

Skill14 starsChanged 4 months agoMITView on GitHub

TIL capture for explicit requests to save learned material from a session into an engaging Obsidian note. Use when the user runs /til or asks to save, document, or write up what they learned.

3 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. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Use $ARGUMENTS if provided.

    line 18
  2. Distinctive:

    If a note exists, append a session entry.

    line 32
  3. Distinctive:

    Write like telling a story to a friend, not filing a report.

    line 49
  4. Distinctive:

    before/after code for bug fixes and pattern changes

    line 55
  5. Distinctive:

    After saving, confirm the note title, location, and categories included.

    line 131
  6. Distinctive:

    Never mention Claude or AI assistance in the note — write in first person

    line 135
  7. Distinctive:

    Never overwrite an existing TIL — always append a session entry

    line 136
  8. Distinctive:

    Write for future-you in 6 months, not for the PR description

    line 137
  9. Distinctive:

    If Obsidian CLI fails: tell the user "Obsidian CLI isn't working — update Obsidian with CLI enabled"

    line 138

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

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

TIL (Today I Learned) Capture

Turn a session into a durable, engaging knowledge note. The goal is a note future-you will actually want to read — not a dry changelog. This skill is the single source of truth for TIL note format.

Step 1 — Identify the Topic

Use $ARGUMENTS if provided. Otherwise infer from:

  1. Current working directory (pwd)
  2. Git repo name (git remote get-url origin)
  3. Dominant topic from the conversation

Complete when the topic/project name is explicit or the inferred topic is shown to the user.

Step 2 — Check for an Existing TIL Today

obsidian read path="3 - Resources/TIL/til-$(date +%Y-%m-%d).md" 2>/dev/null

If a note exists, append a session entry. Never overwrite — today may have multiple sessions.

Step 3 — Extract Learnings from the Conversation

Analyze the full conversation and pull out only evidence-backed material:

  • What was built, learned, or designed — the artifact or insight
  • Key decisions and trade-offs — why this approach over alternatives
  • Bugs or blockers encountered and fixed — symptom, root cause, fix
  • Aha moments — insights that reframe how you think about something
  • What would be done differently — honest retrospective

Completion: every listed learning category has either extracted evidence from the conversation or is intentionally omitted as not applicable. Do not pad empty categories.

Step 4 — Write with an Engaging Voice

Write like telling a story to a friend, not filing a report.

Use:

  • analogies: "it's like a cache, but for..."
  • anecdotes: "We tried X first — it broke because..."
  • before/after code for bug fixes and pattern changes
  • Mermaid diagrams for architecture or data flow when they clarify structure

Required frontmatter tags: 3–5 tags using the til/ prefix.

CategoryExamples
Technologytil/react, til/typescript, til/nextjs, til/python
Patternstil/architecture, til/testing, til/debugging, til/performance
Librariestil/tanstack-query, til/zod, til/prisma
Conceptstil/accessibility, til/security, til/composition

New-note shape

---
tags: [til/typescript, til/architecture]
date: YYYY-MM-DD
project: <topic or project name>
---

# TIL: <engaging title that captures the insight>

## What We Covered

<brief context — one sentence>

## The Story

<narrative with anecdotes, analogies, code snippets>

## Key Insight

<the one thing to remember>

## What I'd Do Differently

<honest retrospective — omit if nothing stands out>

Existing-note append shape

Append only a session section. Do not repeat frontmatter or the top-level # TIL title.

## Session N — <engaging title>

### What We Covered

<brief context>

### The Story

<narrative>

### Key Insight

<the one thing to remember>

### What I'd Do Differently

<omit if nothing stands out>

Step 5 — Save the Note

# New note
obsidian create path="3 - Resources/TIL/til-$(date +%Y-%m-%d).md" \
  content="<full note content>"

# Existing note — append a session entry only
obsidian append path="3 - Resources/TIL/til-$(date +%Y-%m-%d).md" \
  content="\n## Session N — <title>\n\n<session content>"

After saving, confirm the note title, location, and categories included.

Hard Rules

  • Never mention Claude or AI assistance in the note — write in first person
  • Never overwrite an existing TIL — always append a session entry
  • Write for future-you in 6 months, not for the PR description
  • If Obsidian CLI fails: tell the user "Obsidian CLI isn't working — update Obsidian with CLI enabled"

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.