mcpField
C
codebase-navigator

codebase-navigator

github.com/srbhrDevelopment28.9k44 installsUpdated 5d ago
Repository

About codebase-navigator

codebase-navigator is a repository exploration skill for developers locating code and understanding project structure. It combines bundled search and tracing scripts with architecture and entry-point references.

Key features

  1. 01Search functions, components, and endpoints
  2. 02Trace API and data flows
  3. 03Find symbol usage and dependencies
  4. 04Navigate architecture and entry-point docs

Use cases

  1. 01Locate a function or component definition
  2. 02Trace calls or data flow for a feature

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/srbhr/resume-matcher --skill codebase-navigator

After installing, type/codebase-navigatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
REFERENCE.md
scripts/
search.sh
trace.sh

Details

From the project README

Codebase Navigator

Use this skill FIRST when exploring code, finding files, or understanding project structure.

Quick Start

Search scripts (preferred)

Run the bundled scripts for common searches:

# Find functions/methods
.agents/skills/codebase-navigator/scripts/search.sh functions <pattern>

# Find React components
.agents/skills/codebase-navigator/scripts/search.sh components <pattern>

# Find API endpoints
.agents/skills/codebase-navigator/scripts/search.sh endpoints

# Trace an API flow end-to-end
.agents/skills/codebase-navigator/scripts/trace.sh api-flow <endpoint>

# Trace a data field from backend to UI
.agents/skills/codebase-navigator/scripts/trace.sh data-flow <field_name>

# Find component hierarchy
.agents/skills/codebase-navigator/scripts/trace.sh component-tree <ComponentName>
Direct ripgrep patterns
# Find any symbol
rg --no-heading -n '\bMySymbol\b' apps/

# Python function definitions
rg --no-heading -n '(def|async def) my_function' apps/backend/ --type py

# React component usage
rg --no-heading -n '<MyComponent' apps/frontend/ --glob '*.tsx'

# Pydantic models
rg --no-heading -n 'class My.*BaseModel' apps/backend/ --type py

# API route handlers
rg --no-heading -n '@(router|app)\.(get|post|put|patch|delete)' apps/backend/ --type py

Architecture Overview

NeedDocument
Backend architecturedocs/agent/architecture/backend-architecture.md
Frontend architecturedocs/agent/architecture/frontend-architecture.md
API contractsdocs/agent/apis/front-end-apis.md
API flow mapsdocs/agent/apis/api-flow-maps.md
Full doc indexdocs/agent/README.md

Project Layout

apps/
├── backend/app/
│   ├── main.py              # FastAPI entry, CORS, routers
│   ├── config.py            # Pydantic settings from env
│   ├── database.py          # TinyDB wrapper
│   ├── llm.py               # LiteLLM wrapper
│   ├── routers/             # API endpoints
│   ├── services/            # Business logic
│   ├── schemas/             # Pydantic models
│   └── prompts/             # LLM prompt templates
│
└── frontend/
    ├── app/                 # Next.js pages
    ├── components/          # UI components
    ├── lib/                 # API client, utilities, i18n
    ├── hooks/               # Custom React hooks
    └── messages/            # i18n translations (en, es, zh, ja)

Common Workflows

"Where is X defined?"
.agents/skills/codebase-navigator/scripts/search.sh functions my_function
.agents/skills/codebase-navigator/scripts/search.sh components MyComponent
.agents/skills/codebase-navigator/scripts/search.sh classes MyClass
.agents/skills/codebase-navigator/scripts/search.sh types MyType
"What calls X?"
.agents/skills/codebase-navigator/scripts/search.sh usage my_function
.agents/skills/codebase-navigator/scripts/search.sh deps my_file.py
"How does data flow for feature X?"
.agents/skills/codebase-navigator/scripts/trace.sh api-flow resumes
.agents/skills/codebase-navigator/scripts/trace.sh data-flow personalInfo
.agents/skills/codebase-navigator/scripts/trace.sh component-tree ResumeEditor

Key Entry Points

WhatFile
Backend startupapps/backend/app/main.py
Frontend pagesapps/frontend/app/
API clientapps/frontend/lib/api.ts or lib/api-client.ts
Design tokensapps/frontend/app/globals.css
Resume schemasapps/backend/app/schemas/
LLM promptsapps/backend/app/prompts/

Reference

See references/REFERENCE.md for the full ripgrep cheat sheet and advanced search patterns.

Comments

Markdown supported