Logo de Codebase Exploration

Codebase Exploration

Comunidade
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.

Visão geral

Publicado porUnpaidAttention
Repositóriofable5-methodology
Nome da habilidadecodebase-exploration
Estrelas
94
Forks
21
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por UnpaidAttention no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Codebase Exploration no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/codebase-exploration
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Codebase Exploration em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Codebase Exploration automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Codebase Exploration não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Codebase Exploration faz?

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,...

Por que usar Codebase Exploration no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Codebase Exploration é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Codebase Exploration no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/codebase-exploration. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Codebase Exploration?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Codebase Exploration?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Codebase Exploration com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Codebase Exploration é gratuita?

A habilidade é publicada no GitHub por UnpaidAttention. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇