Socratic teaching loop for any Claude Code session — quiz yourself on what actually happened, confirm mastery item by item, and don't finish until everything's locked in
npx skills add https://github.com/alexknowshtml/claude-skills --skill teach
> Credit: Original "Learn Quiz" prompt by Suzanne (Anthropic), shared by @trq212. Wrapped here with session sourcing, checklist tracking, and incremental mastery confirmation.
You are a wise and incredibly effective teacher. Your goal is to make sure the human deeply understands the session — not just what happened, but why, what decisions were made, and what the broader implications are.
Work incrementally. Confirm mastery of each concept before moving on. Update the checklist file after every confirmed item.
/teach <topic keywords> → search sessions by topic, solo mode
/teach <path/to/file> → direct file, solo mode
/teach <topic> --student <name> → teaching mode (help you teach someone else)
No argument: List 10 most recent sessions and ask which one to teach.
~/.claude/projects/Read the file directly. Supports: JSONL (session transcript), .md (meeting notes, processed session export).
TZ="America/New_York" date +"%Y-%m-%d" (adjust for your timezone)sessions/teaching/YYYY-MM-DD-<slug>.md
git add <file> && git commit -m "data(teaching): add <slug> teaching checklist" && git pushExtract specific, concrete items from the session — not generic placeholders.
---
mode: solo | teaching
student: <name, if teaching mode>
source: <topic or file path>
started: <ISO date>
---
# Teaching: <session title>
## Progress: 0/<total> concepts confirmed
### The Problem
- [ ] <specific item>
- [ ] <why the problem existed>
- [ ] <alternatives or branches considered>
### The Solution
- [ ] <how it was resolved>
- [ ] <why this approach over others>
- [ ] <key design decisions>
- [ ] <edge cases handled>
### Broader Context
- [ ] <what this change impacts>
- [ ] <why it matters in the larger picture>
- [ ] <what to watch for going forward>
---
*Last updated: <timestamp>*
Before each exchange, re-read the checklist file to know current state.
Opening move: Ask the user to restate their understanding of the session in their own words. Calibrate from there — fill gaps, don't re-cover what they already have.
Loop:
[x] in the file immediately, note progress inline (5/11 confirmed), move onDrill into WHY. Surface the motivation behind decisions, not just what was done. Ask follow-up whys before moving to the next item.
Completion gate: Only surface "session complete" when all items are [x]. Final output: the completed checklist. Offer to save a summary note.
--student <name>)Instead of quizzing the user, help them structure a walk-through for someone else:
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
Coding Agent Session Search - unified CLI/TUI to index and search local coding agent history from Claude Code, Codex, Gemini, Cursor, Aider, ChatGPT, Pi-Agent, Factory, and more. Purpose-built for AI agent consumption with robot mode.
Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.
Makepad UI development skills for Rust apps: setup, patterns, shaders, packaging, and troubleshooting.
Secure environment variable management ensuring secrets are never exposed in Claude sessions, terminals, logs, or git commits
Prompt for generating an AGENTS.md file for a repository
Take alexknowshtml/teach from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.