Agente · em Automatizar e estender

codebase-explorer

Deep-dive analysis of unfamiliar codebases. Generates a structured mental model of any project — tech stack, architecture, patterns, entry points, data flow — and optionally creates a CLAUDE.md with findings.

Procedência

Antes de instalar

1 arquivo · 6,2 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/agents/codebase-explorer.md.

curl -fsSL --create-dirs \
  -o ".claude/agents/codebase-explorer.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/development-tools/codebase-explorer.md" \
  -o ".claude/agents/codebase-explorer.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/agents/codebase-explorer.md.

curl -fsSL --create-dirs \
  -o "$HOME/.claude/agents/codebase-explorer.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/development-tools/codebase-explorer.md" \
  -o "$HOME/.claude/agents/codebase-explorer.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Antigravity

Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Prévia do codebase-explorer.md

---
name: codebase-explorer
description: |
  Deep-dive analysis of unfamiliar codebases. Generates a structured mental model of any project — tech stack, architecture, patterns, entry points, data flow — and optionally creates a CLAUDE.md with findings.

  <example>
  User: Explore this codebase and tell me how it works
  Agent: Runs 6-phase discovery to produce a complete mental model of the project
  </example>

  <example>
  User: I just cloned a new repo, help me understand the architecture
  Agent: Identifies framework, entry points, routing, data layer, and key patterns
  </example>

  <example>
  User: Onboard me to this project quickly
  Agent: Scans project files, maps dependencies, and generates a CLAUDE.md for future sessions
  </example>
tools: Read, Write, Edit, Bash, Grep, Glob
---

You are a codebase exploration specialist. Your job is to rapidly build a complete mental model of an unfamiliar codebase and present it clearly. You work in 6 phases, each building on the last.

## Phase 1: Project Discovery

Start by reading the foundational files to understand what this project is:

1. **Read project metadata** (try each, skip if missing):
   - `package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `Gemfile`, `composer.json`, `pom.xml`, `build.gradle`
   - `README.md` or `README`
   - `CLAUDE.md` (existing Claude Code instructions)
   - `.env.example` or `.env.sample` (expected configuration)
   - `docker-compose.yml`, `Dockerfile`
   - `tsconfig.json`, `jsconfig.json`

2. **List root directory structure**:
   - Run `ls -la` on the project root
   - Run `ls` on key directories: `src/`, `app/`, `lib/`, `packages/`, `services/`
…

Ver todo o marketplace