Logo: Codebase Exploration

Codebase Exploration

Communautéit
UnpaidAttention
codebase-exploration

Map an unfamiliar repository before changing anything in it — structure sweep, entry points, configs, test baseline, targeted tracing, and mental-model confirmation. Trigger this the FIRST time you work in a repo (or an unfamiliar subsystem of a known repo) in a session, before your first edit there — whenever the user says "fix/add/change X" in code you have not yet mapped. Do NOT trigger for repos or areas you already mapped this session, for single-file scripts with no surrounding project, or for parsing the request itself (use task-planning) — this skill is about understanding the code, not the ask.

Iwwersiicht

EditeurUnpaidAttention
Repositoryfable5-methodology
Skill-Nummcodebase-exploration
Stären
94
Forks
21
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnpaidAttention huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Codebase Exploration an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/codebase-exploration
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/codebase-exploration .claude/skills/codebase-exploration
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Codebase Exploration an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Codebase Exploration automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Codebase Exploration net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Codebase Exploration

Understand before you touch. The cost of exploration is minutes; the cost of editing on a wrong mental model is a broken subsystem discovered later and blamed on you.

Step 1: Structure sweep (2 minutes)

  1. List the repo root. Read README and the manifest (package.json / Cargo.toml / pyproject.toml / go.mod) — note language, package manager, and declared scripts.
  2. Read the lockfile's top-level entries enough to know the major frameworks in play. The lockfile is ground truth for versions; your memory of the ecosystem is not.
  3. Check .github/workflows/ (or CI config). CI encodes the REAL build/test/lint commands — more reliably than the README, which drifts.

Step 2: Find the entry points

Locate how the code actually starts: main/index/app files, the manifest's scripts/bin entries, Dockerfile CMD, or the daemon/service definition. For a library, locate the public surface (exports, lib.rs, __init__.py). You cannot place a change correctly until you know what calls what from the top.

Step 3: Map configuration and environment

Find .env.example, config files, and feature flags. Note which behavior is config-driven — a "bug" is often a config difference, and an edit is sometimes the wrong fix for what a config change does properly.

Step 4: Establish the test baseline BEFORE the first edit

  1. Find where tests live and what runs them (from CI, Step 1.3).
  2. Run the suite — or the fastest relevant subset — before changing anything, and record the result in your notes.
  3. Rule: a pre-existing failure discovered AFTER your edits will be attributed to you, and you'll waste time debugging code you didn't break. The baseline is your alibi and your safety net. If the suite can't run (missing env), record that fact instead.

Step 5: Targeted exploration of the task area

  1. Grep for the concrete anchors the task gives you: the route path, the error message text, the symbol name, the table name. Error strings are the highest-yield anchor — they're unique and land you at the exact site.
  2. Trace ONE representative flow end-to-end (request → handler → service → storage, or input → parse → transform → output). One full vertical slice teaches more than reading four layers horizontally.
  3. Reading-depth rule: read COMPLETELY any file you will edit; read the signatures and call sites of anything you will call; skim only what you merely pass through. Never edit a file you have not read in this session — no exceptions, however obvious the edit looks.
  4. Signature rule: never assume an internal API's signature or behavior when you could verify it — grep for an existing call site (how it's used HERE beats how it's "usually" used) or read the definition. Two existing call sites that disagree with your assumption are a finding, not an inconvenience.

Step 6: Confirm the mental model before the first edit

Make one falsifiable prediction and check it:

  • "Hitting /health returns {status: 'ok'}" → curl it.
  • "This function is only called from the scheduler" → grep proves 1 caller or reveals 3.
  • "Deleting a user cascades to sessions" → find the FK or the test that encodes it.

If the prediction fails, your model is wrong — loop back to Step 5 before editing. If you can't formulate any prediction, you haven't understood enough to edit.

Worked example

Task: "Fix: CSV export drops the last row" in an unmapped Node repo.

  1. Sweep: package.json → pnpm, vitest, express; CI runs pnpm test && pnpm lint.
  2. Entry: src/server.ts mounts routes from src/routes/.
  3. Baseline: pnpm test → 84 pass, 2 fail in billing.test.ts — recorded as PRE-EXISTING before any edit.
  4. Anchor grep: "text/csv" → src/routes/export.ts → calls serializeRows in src/lib/csv.ts. Read both files fully.
  5. Prediction: "serializeRows drops the final row when input lacks trailing newline handling" → 3-line REPL check with a 2-row array → confirmed (returns 1 data line).
  6. Now — and only now — edit csv.ts, add the regression test, re-run: 85 pass, same 2 pre-existing failures.

Done when

You can state without hedging: where the change goes, what calls it and what it calls, the exact command that verifies it, and the recorded baseline test result — and every file you're about to edit has been read in full this session.

Heefeg gestallte Froen

Wat mécht de KI-Skill Codebase Exploration?

Map an unfamiliar repository before changing anything in it — structure sweep, entry points, configs, test baseline, targeted tracing, and mental-model confirmation. Trigger this the FIRST time you work in a repo (or an unfamiliar subsystem of a known repo) in a session, before your first edit there — whenever the user says "fix/add/change X" in code you have not yet mapped. Do NOT trigger for repos or areas you already mapped this session, for single-file scripts with no surrounding project, or for parsing the request itself (use task-planning) — this skill is about understanding the code,...

Firwat Codebase Exploration op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Codebase Exploration besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Codebase Exploration an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/codebase-exploration an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Codebase Exploration benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Codebase Exploration benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Codebase Exploration domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Codebase Exploration gratis?

UnpaidAttention huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇