Agent skill

Learn Codebase

by adamthewilliam in adamthewilliam/grepika

This skill should be used when the user asks to "learn this codebase", "give me a codebase overview", "onboard me to this project", "explain the architecture", or mentions keywords related to…

MITAuto-check passedDevelopment

Install Learn Codebase

skills CLI
$ npx skills add adamthewilliam/grepika --skill learn-codebase -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install adamthewilliam/grepika learn-codebase --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/adamthewilliam/grepika.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/grepika/skills/learn-codebase .claude/skills/learn-codebase && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
learn-codebase
GitHub stars
138
Token cost
~922 tokens
SKILL.md length
219 words
Files
2 (incl. references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

This skill should be used when the user asks to "learn this codebase", "give me a codebase overview", "onboard me to this project", "explain the architecture", or mentions keywords related to…

  • Works in 5 steps: Get codebase statistics → Show directory structure → Find key files for the area → …
  • Asks to learn this codebase
  • SKILL.md covers Input, Pre-check, Learning Workflow and Output Format, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Learn Codebase is an agent skill from adamthewilliam/grepika. This skill should be used when the user asks to "learn this codebase", "give me a codebase overview", "onboard me to this project", "explain the architecture", or mentions keywords related to understanding codebase structure and architecture.

Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/onboarding-strategies.md`). Compatibility notes: Requires grepika MCP server.

It sits in Development, covering Codebase onboarding. It works with Model Context Protocol. The licence is MIT.

When your agent uses it

  • Asks to learn this codebase
  • Give me a codebase overview
  • Onboard me to this project
  • Explain the architecture

Example prompts

  • “learn this codebase”
  • “give me a codebase overview”
  • “onboard me to this project”
  • “/learn-codebase”

Requirements

  • Compatibility (from SKILL.md): Requires grepika MCP server.
  • Pre-approved tools (allowed-tools): mcp__grepika__search, mcp__grepika__toc, mcp__grepika__stats, mcp__grepika__outline, mcp__grepika__get, mcp__grepika__graph, mcp__grepika__structural_search, mcp__grepika__add_workspace

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Get codebase statistics
  2. Show directory structure
  3. Find key files for the area
  4. Extract structure of main files
  5. Read key sections

What it can do on your machine

Read from SKILL.md and the folder at commit f035a18. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__grepika__search
    • mcp__grepika__toc
    • mcp__grepika__stats
    • mcp__grepika__outline
    • mcp__grepika__get
    • mcp__grepika__graph
    • mcp__grepika__structural_search
    • mcp__grepika__add_workspace

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires grepika MCP server.

    From compatibility in the SKILL.md frontmatter.

Context cost

Learn Codebase loads about 922 tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 219 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~922
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from adamthewilliam/grepika at commit f035a18, republished under its MIT licence (© adamthewilliam). 219 words, ~922 tokens.

Download SKILL.mdSave it as .claude/skills/learn-codebase/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
learn-codebase
description
This skill should be used when the user asks to "learn this codebase", "give me a codebase overview", "onboard me to this project", "explain the architecture", or mentions keywords related to understanding codebase structure and architecture.
allowed-tools
mcp__grepika__search, mcp__grepika__toc, mcp__grepika__stats, mcp__grepika__outline, mcp__grepika__get, mcp__grepika__graph, mcp__grepika__structural_search, mcp__grepika__add_workspace
compatibility
Requires grepika MCP server.
version
1.1.0
disable-model-invocation
true
context
fork
agent
Explore
model
haiku

Learn Codebase Skill

You are a codebase guide helping developers onboard and understand the architecture.

Input

Area of interest: $ARGUMENTS

If no area specified, provide a general codebase overview. If an area is specified (e.g., "auth", "api", "database"), focus on that subsystem.

Pre-check

If any tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first, then retry the tool.

Learning Workflow

  1. Get codebase statistics

    • Use mcp__grepika__stats with detailed: true
    • Understand languages, file count, and codebase size
  2. Show directory structure

    • Use mcp__grepika__toc to display the tree
    • Identify main directories and their purposes
  3. Find key files for the area

    • Use mcp__grepika__search to find important files
    • For general overview, search for: "main entry point", "configuration", "core logic"
    • For specific areas, search for that topic
  4. Extract structure of main files

    • Use mcp__grepika__outline on the most important files
    • Show exports, functions, classes, and types
  5. Read key sections

    • Use mcp__grepika__get to show important code snippets
    • Focus on entry points, configuration, and core abstractions

Output Format

General Overview
## Codebase Overview

### Statistics
- **Languages**: [breakdown]
- **Total files**: [count]
- **Lines of code**: [estimate]

### Directory Structure
[tree view with annotations]

### Architecture Summary
[2-3 paragraphs explaining the high-level design]

### Key Modules
| Module | Location | Purpose |
|--------|----------|---------|
| [name] | [path] | [what it does] |

### Entry Points
- **Main**: [path] - [description]
- **API**: [path] - [description]
- **CLI**: [path] - [description]

### Configuration
- [list config files and their purposes]

### Recommended Reading Order
1. [file] - Start here to understand [concept]
2. [file] - Then learn about [concept]
3. [file] - Finally explore [concept]
Focused Area
## Understanding: [area]

### Overview
[what this area does and why it exists]

### Key Files
| File | Purpose | Key Exports |
|------|---------|-------------|
| [path] | [purpose] | [exports] |

### Data Flow
[how data moves through this area]

### Dependencies
- **Uses**: [what this area depends on]
- **Used by**: [what depends on this area]

### Key Concepts
- **[concept 1]**: [explanation]
- **[concept 2]**: [explanation]

### Code Patterns
[common patterns used in this area]

### Getting Started
[how to make your first change in this area]

Tips

  • Prioritize understanding over completeness
  • Highlight non-obvious architectural decisions
  • Note any gotchas or common confusion points
  • Suggest the most impactful files to read first

Additional Resources

See references/onboarding-strategies.md for:

  • Codebase type patterns (monolith, microservices, library, CLI)
  • Top-down vs bottom-up learning approaches
  • Output templates for quick overview and deep dive

© adamthewilliam, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/grepika/skills/learn-codebase of adamthewilliam/grepika.

  • SKILL.md
  • references/onboarding-strategies.md

Open the folder on GitHubat commit f035a18

Compare with similar skills

Learn Codebase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Learn Codebase compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Learn Codebase this skilladamthewilliam/grepika138—~922Automated safety check: PassMIT
GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram18k—~427Automated safety check: PassMIT
Explore Codebase with Graphtirth8205/code-review-graph32k1 repos~335Automated safety check: PassMIT
Grepaiyoanbernabeu/grepai1.9k—~1.1kAutomated safety check: PassMIT
Octocode Code Researchbgauryy/octocode946—~1.5kAutomated safety check: PassMIT
Releaseyoanbernabeu/grepai1.9k—~918Automated safety check: PassMIT

Similar skills

  • GitDiagram Repository Overview

    ahmedkhaleel2004/gitdiagram

    Explains the architecture of a public GitHub repository through GitDiagram: how the code is organized, the main components with paths, and a Mermaid diagram.

    18k GitHub stars~427 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Explore Codebase with Graph

    tirth8205/code-review-graph

    Navigates a codebase through the code-review-graph MCP tools: architecture overview, symbol search, caller and callee tracing, flows and oversized functions.

    32k GitHub starsUsed in 1 repo~335 tokens
    DevelopmentAuto-check passed
  • Grepai

    yoanbernabeu/grepai

    Semantic code search and call-graph tracing. An agent skill from yoanbernabeu/grepai.

    1.9k GitHub stars~1.1k tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • Octocode Code Research

    bgauryy/octocode

    Researches code with evidence: traces callers, imports and cross-repo links, diagnoses failures and reports findings with exact file and line references and a confidence label.

    946 GitHub stars~1.5k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Release

    yoanbernabeu/grepai

    Create a new release for grepai. An agent skill from yoanbernabeu/grepai.

    1.9k GitHub stars~918 tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • Replaces grep, cat, find and ls with the tilth CLI, which returns AST-aware outlines, definitions, usages and callers across many languages in one call.

    352 GitHub stars~1.1k tokensUpdated 11 days ago
    DevelopmentAuto-check passed

More from adamthewilliam/grepika

All 9 skills in this repo
  • Impact

    adamthewilliam/grepika

    This skill should be used when the user asks to "analyze impact of changes", "check blast radius", "what would break if I change this", "refactoring safety analysis", or mentions keywords related to…

    138 GitHub stars~794 tokensUpdated 1 mo ago
    Auto-check passed
  • Index Status

    adamthewilliam/grepika

    This skill should be used when the user asks to "check index status", "is the index healthy", "index diagnostics", "search index health", or mentions keywords related to verifying grepika search…

    138 GitHub stars~696 tokensUpdated 1 mo ago
    Auto-check passed
  • Investigate

    adamthewilliam/grepika

    This skill should be used when the user asks to "investigate a bug", "trace an error", "debug this issue", "find where this error comes from", or mentions keywords related to error tracing and bug…

    138 GitHub stars~762 tokensUpdated 1 mo ago
    Auto-check passed
  • Apply Pattern

    adamthewilliam/grepika

    This skill should be used when the user asks to "apply a pattern", "use a blueprint", "implement [pattern] from [source]", "what blueprints do I have", "list patterns", "adapt this pattern", or…

    138 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check: notes
  • Architecture

    adamthewilliam/grepika

    This skill should be used when the user asks to "map the architecture", "show module dependencies", "analyze coupling", "dependency graph", "how are modules connected", "module boundaries", or…

    138 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Diff Files

    adamthewilliam/grepika

    This skill should be used when the user asks to "compare files", "diff these files", "what changed between", "show differences between", "compare versions", or mentions keywords related to file…

    138 GitHub stars~819 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Learn Codebase

What does Learn Codebase do?

This skill should be used when the user asks to "learn this codebase", "give me a codebase overview", "onboard me to this project", "explain the architecture", or mentions keywords related to…. Learn Codebase is an agent skill from adamthewilliam/grepika. This skill should be used when the user asks to "learn this codebase", "give me a codebase overview", "onboard me to this project", "explain the architecture", or mentions keywords related to understanding codebase structure and architecture.

When should I use Learn Codebase?

Learn Codebase fits situations like: asks to learn this codebase; give me a codebase overview; onboard me to this project; explain the architecture.

How do I install Learn Codebase in Claude Code?

Run `npx skills add adamthewilliam/grepika --skill learn-codebase -a claude-code`. Or copy the skill folder (plugins/grepika/skills/learn-codebase in adamthewilliam/grepika) into .claude/skills/learn-codebase in your project. Claude Code loads it when a task matches its description.

How do I install Learn Codebase in Codex?

Run `npx skills add adamthewilliam/grepika --skill learn-codebase -a codex`. Or copy the skill folder (plugins/grepika/skills/learn-codebase in adamthewilliam/grepika) into .agents/skills/learn-codebase in your project. Codex loads it when a task matches its description.

Can I use Learn Codebase in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add adamthewilliam/grepika --skill learn-codebase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/learn-codebase, .gemini/skills/learn-codebase, .github/skills/learn-codebase and .opencode/skills/learn-codebase in your project.

What does Learn Codebase need to run?

SKILL.md names no scripts, command-line tools or credentials: Learn Codebase is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__grepika__search, mcp__grepika__toc, mcp__grepika__stats, mcp__grepika__outline, mcp__grepika__get, mcp__grepika__graph, mcp__grepika__structural_search, mcp__grepika__add_workspace. Compatibility (from SKILL.md): Requires grepika MCP server..

Does Learn Codebase access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Learn Codebase safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Learn Codebase use?

Learn Codebase is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Learn Codebase use?

About 922 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Learn Codebase?

Skills that share tags, products or a category with Learn Codebase: GitDiagram Repository Overview (ahmedkhaleel2004/gitdiagram, 18k stars), Explore Codebase with Graph (tirth8205/code-review-graph, 32k stars), Grepai (yoanbernabeu/grepai, 1.9k stars) and Octocode Code Research (bgauryy/octocode, 946 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Learn Codebase?

adamthewilliam (a GitHub user) maintains it in adamthewilliam/grepika, which has 138 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 12, 2026.

Source: adamthewilliam/grepika on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.