learn-codebase

Teaches codebase understanding through Socratic questioning, prediction exercises, and a persistent learning journal.

60|2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/ktaletsk/learn-codebase --skill learn-codebase-ktaletsk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: learn-codebase
Source: https://github.com/ktaletsk/learn-codebase
Command: npx skills add https://github.com/ktaletsk/learn-codebase --skill learn-codebase-ktaletsk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding tools make it easy to ship code you don't actually understand, creating a gap between perceived and real knowledge. This Skill turns your AI agent into a Socratic tutor that builds genuine mental models of unfamiliar codebases instead of just handing you answers. ## Core Features & Use Cases - Socratic Questioning: Asks you to predict behavior before revealing code, probes assumptions, and uses graduated hints instead of immediate answers. - Persistent Learning Journal: Maintains .claude/learning-journal.md tracking concept mastery (Confused/Learning/Confident), open questions, aha moments, and spaced-repetition review queues across sessions. - Difficulty Calibration: Monitors response time, hint counts, and answer quality to keep questions in your Zone of Proximal Development. - Use Case: An engineer onboarding to a large TypeScript monorepo runs /learn-codebase, gets quizzed on the upload flow architecture, surfaces a misunderstanding about AbortController, and finishes able to trace the full flow in their own words. ## Quick Start Install with npx skills add ktaletsk/learn-codebase, open the repository you want to learn, and start a session by typing /learn-codebase.

Frequently Asked Questions about learn-codebase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I learn a new codebase with an AI agent?▼

Install the skill with npx skills add ktaletsk/learn-codebase, open the target repository, and run /learn-codebase. The agent asks what you want to learn, makes you predict behavior before showing code, and tracks your progress in a learning journal.

What is the learning journal in learn-codebase?▼

The learning journal is a Markdown file at .claude/learning-journal.md created from the bundled JOURNAL-TEMPLATE.md. It tracks your goals, concept mastery levels, open questions, spaced review queue, aha moments, and session logs across conversations.

Does learn-codebase work with Cursor or other AI agents?▼

The skill follows the open Agent Skills standard and is tested with Claude Code. It is expected to work with Cursor via npx skills add -a cursor and other compatible agents, though those environments are not fully validated.

When should I not use a Socratic learning skill?▼

Skip it for greenfield prototyping where speed matters more than depth, or when you just need a quick patch on code you already know. The skill deliberately adds friction to build understanding, which slows down answer-first workflows.

Why does learn-codebase ask me to disable prompt suggestions?▼

Claude Code's prompt-suggestion feature pre-fills likely next messages, which leaks answers before you reason through them. Disable it via /config or by launching with CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false; the skill reminds you once per project.