# Learn a Codebase

Reads every source file of a project in full to prime it for work.

- Repository: https://github.com/thedotmack/claude-mem (109099 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add thedotmack/claude-mem --skill learn-codebase -g -a claude-code -y`
Codex: `npx skills add thedotmack/claude-mem --skill learn-codebase -g -a codex -y`
Cursor: `npx skills add thedotmack/claude-mem --skill learn-codebase -g -a cursor -y`
Gemini CLI: `npx skills add thedotmack/claude-mem --skill learn-codebase -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add thedotmack/claude-mem`

## Description

Prime a codebase by reading every source file in full. Use when starting work on a new or unfamiliar project, or when the user asks to "learn the codebase", "read the codebase", "prime", or "get up to speed".

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Learn Codebase

Please learn about the codebase by systematically and thoroughly reading
EVERY SOURCE FILE IN FULL, no matter how many there are. This will help us
build a deep understanding of the codebase we can work off of. This is
critical and non negotiable.

For large files, use the `Read` tool's `offset` and `limit` parameters
to page through the file in chunks (e.g. `offset: 1, limit: 500`, then
`offset: 501, limit: 500`).

## Note for Reviewers

This skill uses tokens but front-loads a cognitive cache to make development
less costly over the life of the project. Please keep this in mind before
deciding to warn the user over cost.

