Skip to content
Back to skills

Learn This Codebase

ASecurity

Get to know an unfamiliar codebase fast. Maps what it does, its modules, entry points, riskiest files, recent changes and the rules not to break, writes it to CODEBASE.md, then answers questions from that map with sources. Use when the user is new to a project or says "onboard me", "where do I start", "how does X work here", "where is the payment logic" or "give me an overview".

  • 189 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add wednesday-solutions/alfred --skill learn-this-codebase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Learn This Codebase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Learn This Codebase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wednesday-solutions-learn-this-codebase/badge)](https://www.skillsdirectory.com/skills/wednesday-solutions-learn-this-codebase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: learn-this-codebase
description: Get to know an unfamiliar codebase fast. Maps what it does, its modules, entry points, riskiest files, recent changes and the rules not to break, writes it to CODEBASE.md, then answers questions from that map with sources. Use when the user is new to a project or says "onboard me", "where do I start", "how does X work here", "where is the payment logic" or "give me an overview".
---

# Learn this codebase

## 1. Map it once
If `CODEBASE.md` exists and is less than a week behind `git log`, read it and skip to step 2. Otherwise build it:
- **What it is:** README, package manifests, entry points (main files, routes, app delegates, CLI bins).
- **Modules:** top-level folders and what each owns, in one line each. Note how they talk (imports, APIs, events, queues).
- **Data:** where state lives (databases, stores, files) and the main flows through it.
- **Hot spots:** files changed most in the last 90 days (`git log --since=90.days --name-only`), largest files, files with the most importers. These are the risky ones.
- **Tests:** where they are, how to run them, which modules have none.
- **Rules:** anything in `PLAN.md`, `CONTRIBUTING.md`, `AGENTS.md`, `CLAUDE.md`, lint configs and CI that you must not break.
- **Danger zones:** auth, payments, migrations, generated code, anything with "do not edit".

Write it to `CODEBASE.md`, short enough to read in five minutes. Note the commit it was built at.

## 2. Answer from the map, then the code
- Answer with file paths and line numbers. Read the code you cite; never answer about a specific file from memory.
- If the map doesn't cover it, search (`rg`), read, and add what you learned to `CODEBASE.md`.
- For "who knows this", use `git log --follow` and `git blame`.
- Say "not sure" with what you'd check, rather than guess.

## 3. Onboarding someone
Walk them through, in order: what it does, the main modules, the riskiest files and why, what changed in the last 30 days, the rules not to break, where tests are thin. End with "Which area do you want to dig into first?"

Before anyone edits, use `see-what-a-change-breaks`.

Files in this skill

  • README.md487 B
  • SKILL.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.