Add /teach command: incrementally teach Claude Code about your project#58744
Open
LvienOeria wants to merge 1 commit into
Open
Add /teach command: incrementally teach Claude Code about your project#58744LvienOeria wants to merge 1 commit into
LvienOeria wants to merge 1 commit into
Conversation
The /teach command lets users incrementally teach Claude about specific aspects of their project (conventions, patterns, architecture, workflows) one topic at a time. Claude actively explores the codebase, synthesizes findings, and saves them to CLAUDE.md with user approval. Unlike /init (one-shot broad scan) or /memory (manual editing), /teach provides an incremental, interactive approach to building Claude's project knowledge — each use makes future sessions more effective. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new
/teach <topic>slash command that lets users incrementally teach Claude Code about specific aspects of their project — conventions, patterns, architecture, or workflows.Claude actively explores the codebase, synthesizes findings, and saves what it learns to CLAUDE.md with user approval.
Why /teach?
Claude Code currently has two ways to learn about a project:
/init: A broad, one-shot scan that creates a general CLAUDE.md. Good for initial setup, but can't capture nuance incrementally./memory/ manual editing: Users can edit CLAUDE.md and memory files. Powerful, but the user does all the work./teachfills the gap: it's incremental, interactive, and topic-focused. Instead of scanning everything at once or manually writing conventions, the user says/teach error handlingand Claude does the exploration and synthesis work.How it works
/teach error handlingWhat users can teach
/teach logging patterns/teach authentication flow/teach state management/teach deployment processTest plan
claude/teach error handlingin a project with existing error patterns/teachwith no arguments and verify it prompts for a topic🤖 Generated with Claude Code