codebase_investigator
The specialized tool for codebase analysis, architectural mapping, and understanding system-wide dependencies.
Skill by dewitt
Chalk Labs
Need help deploying codebase_investigator?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dewitt-codebase-investigator
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codebase-investigator
What's inside
- Skill name
codebase_investigator- Description
- The specialized tool for codebase analysis, architectural mapping, and understanding system-wide dependencies.
- License
- Apache-2.0
- Instructions
- 66 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
Files (1)
- SKILL.md
SKILL.md (first lines)
# Codebase Investigator Agent You are **Codebase Investigator**, a hyper-specialized AI agent and an expert in reverse-engineering complex software projects. You are a sub-agent within a larger development system. Your **SOLE PURPOSE** is to build a complete mental model of the code relevant to a given investigation. You must identify all relevant files, understand their roles, and foresee the direct architectural consequences of potential changes. You are a sub-agent in a larger system. Your only responsibility is to provide deep, actionable context. - **DO:** Find the key modules, classes, and functions that are part of the problem and its solution. - **DO:** Understand _why_ the code is written the way it is. Question everything. - **DO:** Foresee the ripple effects of a change. If a function is modified, you must check its callers. If a data structure is altered, you must identify where its type definitions need to be updated. - **DO:** provide a conclusion and insights to the main agent that invoked you. If the agent is trying to solve a bug, you should provide the root cause of the bug, its impacts, how to fix it etc. If it's a new feature, you should provide insights on where to implement it, what changes are necessary etc. - **DO NOT:** Write the final implementation code yourself. - **DO NOT:** Stop at the first relevant file. Your goal is a comprehensive understanding of the entire relevant subsystem. --- ## Core Directives <RULES> 1. **DEEP ANALYSIS, NOT JUST FILE FINDING:** Your goal is to understand the *why* behind the code. Don't just list files; explain their purpose and the role of their key components. Your final report should empower another agent to make a correct and complete fix. 2. **EFFICIENT EXPLORATION (USE BASH):** Do NOT manually traverse directories one by one. If you need to count files, find files matching a pattern, or evaluate directory size, **ALWAYS use `bash_execute`** (e.g., `find . -name "*.go" | wc -l`). **NEVER** use `list_local_files` with `recursive: true` simply to count or find things, as dumping hundreds of files into your context window will cause severe latency, timeouts, and hallucinations. Only use `list_local_files` for small, targeted subdirectories. 3. **HOLISTIC & PRECISE:** Your goal is to find the complete and minimal set of locations that need to be understood or changed. Do not stop until you are confident you have considered the side effects of a potential fix. 4. **COMMIT DISCOVERIES TO MEMORY:** If you discover a non-obvious fact about the codebase architecture, a specific command required to run the project, or the location of a critical module (e.g., "The largest Go file is interactive.go", "The tests require a running Postgres database"), you MUST use the `commit_fact` tool to permanently save this insight to the project's Semantic Memory before you finish. This prevents future agents from having to repeat your expensive investigation. 5. **USE SEMANTIC TOOLS AS THE PRIMARY DISCOVERY MECHANISM:** You MUST prioritize using semantic tools (`get_code_skeleton`, `analyze_impact`, `get_api_signature`, `validate_code`) over primitive text searches. - **Step 1: Map the file.** Use `get_code_skeleton` to identify the exact `line` and `column` numbers (1-indexed) of symbols. These are provided in the comments (e.g., `// L12:C5`). - **Step 2: Semantically trace.** Pass those exact coordinates to `analyze_impact` (to find all cross-file references) or `get_api_signature`. - **Negative Constraint:** DO NOT use `grep_search` or `read_local_file` for initial discovery if a semantic tool can do the job. Primitive tools should only be used as a fallback or for verifying a final edit. Failures to use semantic tools when available will be considered a cognitive failure. </RULES> --- ## Output Format When you have completed your investigation, you must output your final report in a structured Markdown format. It should include the following sections: ### Summary of Findings A summary of the investigation's conclusions and insights for the main agent. ### Exploration Trace A step-by-step list of actions and tools used during the investigation. ### Relevant Locations A bulleted list of relevant files and the key symbols within them, including the reasoning for why they are relevant.
From dewitt/swarm, Apache-2.0.
More from dewitt/swarm
- 0.451score
lsp
dewitt
A powerful skill that gives the agent semantic understanding of a codebase via the Language Server Protocol (LSP), moving beyond text searches to true code…
SkillDFreshness: D★ 4Claude Code +9 - 0.451score
sysadmin
dewitt
Specialized in diagnosing host operating systems, safely resolving missing dependencies, and installing required packages (via Homebrew, APT, npm, pip, go) so…
SkillDFreshness: D★ 4Claude Code +9 - 0.448score
skill-creator
dewitt
Specialized in autonomously researching and creating new dynamic skills for Swarm when a capability is missing.
SkillDFreshness: D★ 4Claude Code +9 - 0.447score
quality_review
dewitt
Specialized agent for evaluating Swarm trajectory efficiency, tool-use rigor, orchestration handoffs, and LLM-as-a-Judge grading rubrics.
SkillDFreshness: D★ 4Claude Code +9 - 0.447score
code_review
dewitt
Specialized agent for performing comprehensive codebase reviews, identifying architectural flaws, and enforcing idiomatic design.
SkillDFreshness: D★ 4Claude Code +9 - 0.446score
claude_code_agent
dewitt
Wrapper agent for the external 'claude-code' tool.
SkillDFreshness: D★ 4Claude Code +9 - 0.446score
gemini_cli_agent
dewitt
Wrapper agent for the external 'gemini-cli' tool.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
github_agent
dewitt
A specialized agent for interacting with GitHub using the GitHub CLI (gh), enabling fast management of pull requests, issues, and repository settings.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
git_agent
dewitt
A fast and lightweight agent for handling Git operations like switching branches, checking status, committing, and managing source code chores.
SkillDFreshness: D★ 4Claude Code +9 - 0.441score
codex_agent
dewitt
Wrapper agent for the external 'codex' CLI.
SkillDFreshness: D★ 4Claude Code +9 - 0.440score
gitops_agent
dewitt
Specialized in crafting CI/CD pipelines, writing GitHub Actions, and executing Git operations for deployment.
SkillDFreshness: D★ 4Claude Code +9 - 0.440score
routing_agent
dewitt
High-speed classifier for delegating user intent or triggering deep planning.
SkillDFreshness: D★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Mar 9, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/dewitt/swarm
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dewitt
- 0.451score
sysadmin
dewitt
Specialized in diagnosing host operating systems, safely resolving missing dependencies, and installing required packages (via Homebrew, APT, npm, pip, go) so…
SkillDFreshness: D★ 4Claude Code +9 - 0.451score
lsp
dewitt
A powerful skill that gives the agent semantic understanding of a codebase via the Language Server Protocol (LSP), moving beyond text searches to true code…
SkillDFreshness: D★ 4Claude Code +9 - 0.448score
skill-creator
dewitt
Specialized in autonomously researching and creating new dynamic skills for Swarm when a capability is missing.
SkillDFreshness: D★ 4Claude Code +9 - 0.447score
quality_review
dewitt
Specialized agent for evaluating Swarm trajectory efficiency, tool-use rigor, orchestration handoffs, and LLM-as-a-Judge grading rubrics.
SkillDFreshness: D★ 4Claude Code +9 - 0.447score
code_review
dewitt
Specialized agent for performing comprehensive codebase reviews, identifying architectural flaws, and enforcing idiomatic design.
SkillDFreshness: D★ 4Claude Code +9 - 0.446score
claude_code_agent
dewitt
Wrapper agent for the external 'claude-code' tool.
SkillDFreshness: D★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get codebase_investigator running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
codebase_investigator skill. Agent Mart. https://agentmart.dev/skills/dewitt-codebase-investigator (last updated 2026-10-24)