/vibe-learn:learnfrom vibe-learn
Summarizes recent session activity or answers questions about what was built, grounded in the session log. Supports obsidian:recall to search and synthesize Obsidian notes on a topic.
Ships in vibe-learn. Installing the plugin adds it to Claude Code.
Read .vibe-learn/session-log.jsonl to understand what has happened in this session.
Briefing (all modes): before anything else, refresh the session briefing: run vibe-learn briefing --if-stale via Bash. If vibe-learn is not on PATH, run bash <dir>/briefing.sh --if-stale, where <dir> is the directory that holds vibe-learn's knowledge.sh (scripts/ in a full install, the hooks directory in a techpack install) (found with the knowledge-helper lookup; ~/.vibe-learn/scripts/ for a global install). It returns at once when the briefing is current. Skip it silently if neither exists, and do not mention its output unless it fails.
Knowledge ledger check (all modes): if .vibe-learn/knowledge.json exists, run the knowledge helper's due command via Bash (vibe-learn-knowledge due if that command is on PATH — plugin install — otherwise bash ~/.vibe-learn/scripts/knowledge.sh due; if neither exists, use the knowledge.sh in the same directory as the bootstrap.sh your vibe-learn hooks point at in .claude/settings.local.json or ~/.claude/settings.json, or bash scripts/knowledge.sh due when working in the vibe-learn repo itself). If a due concept was also touched in this session's log, open your response with a single heads-up line, e.g. "Heads up: this session touched JWT refresh tokens again — you marked that shaky on July 11. Want a quick recap first, or /quiz review?" At most one such line, and never let it block or replace the actual answer. If the ledger or helper is missing, skip this silently.
Parse $ARGUMENTS to determine the mode:
obsidian:recall <topic>If $ARGUMENTS starts with obsidian:recall:
Extract the topic (everything after obsidian:recall). If no topic is given, ask the user what they want to recall.
.vibe-learn/obsidian.json first, then ~/.vibe-learn/obsidian.json. If neither exists, run the config setup flow (ask vault path, subfolder, global vs project save location) before proceeding — same flow as the obsidian mode below.<vault_path>/<subfolder>/#), body text, and frontmatter tags using the Grep tool.date frontmatter field)- [ ] items in "Things to Study" sections on this topicobsidian or obsidian <question>If $ARGUMENTS starts with obsidian (but not obsidian:recall):
Extract any question text after obsidian (may be empty).
Step 1 — Load config:
Check .vibe-learn/obsidian.json, then ~/.vibe-learn/obsidian.json.
If no config is found:
Ask the user: "What is the path to your Obsidian vault? (e.g. /Users/me/MyVault)"
Ask: "Which subfolder should vibe-learn notes go in? (default: Development/Sessions)"
Ask: "Save this config globally for all projects (~/.vibe-learn/obsidian.json) or just for this project (.vibe-learn/obsidian.json)? [global/project, default: global]"
Write the config to the chosen location (creating the directory with mkdir -p if needed):
{
"vault_path": "<their answer>",
"subfolder": "<their answer or default>",
"tags": ["vibe-learn"],
"link_style": "wikilink",
"include_project_tag": true,
"note_naming": "{date}-{project}"
}
Global path: ~/.vibe-learn/obsidian.json
Project path: .vibe-learn/obsidian.json
Step 2 — Generate content:
If no question was given: summarize the most recent session activity in plain language — what was just built or changed, decisions made, patterns used.
If a question was given: answer that specific question grounded in the session log and relevant source files.
Step 3 — Write the note:
cwd (last path component of .vibe-learn/../ or the working directory).note_naming template from config (default: {date}-{project}), appending -learn.md. On filename collision, append a numeric suffix (e.g., -2.md).<vault_path>/<subfolder>/<filename>mkdir -p).---
date: <YYYY-MM-DD>
created: <ISO 8601 timestamp>
project: <project-name>
tags:
- vibe-learn
- <project-name if include_project_tag is true>
type: learn
recall_status: <only when the knowledge ledger has entries with last_quizzed = today, e.g. "2 solid, 1 shaky" — omit the field otherwise>
---
# Learn Note — <YYYY-MM-DD>
<generated content>
---
*Generated by [vibe-learn](https://github.com/gkaria/vibe-learn)*
Confirm to the user: "Saved to <full path>."
learn (no obsidian prefix)If $ARGUMENTS is empty: Summarise the most recent actions in plain language — what was just built or changed, the decisions behind it, and any interesting patterns or concepts used. Format as a readable list starting with "📘 What just happened:". Keep it tight — 3-5 points max.
If $ARGUMENTS is provided (and does not start with obsidian):
Answer the specific question: $ARGUMENTS
Ground your answer in the session log and read relevant source files with your Read tool. Explain as if talking to someone learning to code — clear, no jargon, specific to what actually happened in this session.
In both cases: if the session log is empty or only has prompts with no tool events, say so and offer general help instead.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub gkaria/vibe-learn --plugin vibe-learn4 commands in this plugin
/digestMode: `obsidian:recall`Generate a structured learning report from the current session — what was built, key decisions, patterns used, and topics to study/explainTarget: noneGuided code tour of a file or subsystem this session touched — entry point, the load-bearing pieces, the edges, and what connects to it/quizMode: `review`Check your understanding of what was built — recall questions grounded in the session log, with results tracked across sessionsOther plugins' commands for the same job