til - Quick Today-I-Learned Logger
Arguments: $ARGUMENTS
Create a concise TIL note in ~/obsidian/Notes/.
Workflow
-
Parse prompt first.
- Treat
$ARGUMENTS(or text after/til) as primary source. - Keep user language and topic terms.
- Treat
-
Enrich from session context.
- Inspect recent context for details directly related to prompt topic.
- Prefer concrete evidence from this session (commands, paths, errors, fixes).
- If context is sparse, proceed with prompt-only note.
-
Keep content short and factual.
- Title:
TIL: <topic>. Learnedsection: 1 to 3 concise bullets.Contextsection: 1 to 3 concise bullets.- No fluff, no long writeup.
- Title:
-
Write note file.
- Ensure directory exists:
~/obsidian/Notes. - Filename:
YYYY-MM-DDTHH-MM-SS-til-<slug>.md. - Path:
~/obsidian/Notes/<filename>.
- Ensure directory exists:
Use this format:
---
date: <ISO8601 timestamp>
daily: [[YYYY-MM-DD]]
tags:
- til
- today-i-learned
topic: <topic-slug>
source: agent
---
# TIL: <Title>
## Learned
- <fact 1>
- <fact 2 optional>
- <fact 3 optional>
## Context
- <session detail 1>
- <session detail 2 optional>
- Confirm success.
- Return the full note path.
- Return a one-line summary of what was captured.
Rules
- Prompt-first, context-second.
- Do not invent facts absent from prompt or session context.
- Keep note usable for quick later recall.