codebase-navigator
1
总安装量
1
周安装量
#43786
全站排名
安装命令
npx skills add https://github.com/srbhr/resume-matcher --skill codebase-navigator
Agent 安装分布
mcpjam
1
openhands
1
junie
1
windsurf
1
zencoder
1
crush
1
Skill 文档
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
./scripts/search.sh functions <pattern>
# Find React components
./scripts/search.sh components <pattern>
# Find API endpoints
./scripts/search.sh endpoints
# Trace an API flow end-to-end
./scripts/trace.sh api-flow <endpoint>
# Trace a data field from backend to UI
./scripts/trace.sh data-flow <field_name>
# Find component hierarchy
./scripts/trace.sh component-tree <ComponentName>
Scripts are at: .agents/skills/codebase-navigator/scripts/
Direct ripgrep patterns
When you need something the scripts don’t cover:
# 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'
# Type definitions
rg --no-heading -n '(type|interface) MyType' apps/frontend/ --glob '*.ts'
# 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
# Imports of a module
rg --no-heading -n 'from.*my_module.*import|import.*my_module' apps/
Architecture Overview
Read these docs for full understanding:
| Need | Document |
|---|---|
| Backend architecture | docs/agent/architecture/backend-architecture.md |
| Frontend architecture | docs/agent/architecture/frontend-architecture.md |
| API contracts | docs/agent/apis/front-end-apis.md |
| API flow maps | docs/agent/apis/api-flow-maps.md |
| Full doc index | docs/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 (multi-provider AI)
â âââ routers/ # API endpoints
â â âââ config_router.py # GET/PUT /api/v1/config
â â âââ health_router.py # GET /api/v1/health
â â âââ resume_router.py # CRUD /api/v1/resumes
â â âââ jobs_router.py # CRUD /api/v1/jobs
â âââ services/ # Business logic
â â âââ parser.py # Resume parsing
â â âââ improver.py # AI resume improvement
â âââ schemas/ # Pydantic request/response models
â âââ prompts/ # LLM prompt templates
â
âââ frontend/
âââ app/ # Next.js pages (dashboard, builder, tailor, print)
âââ components/ # Reusable UI components
âââ lib/ # API client, utilities, i18n
âââ hooks/ # Custom React hooks
âââ messages/ # i18n translations (en, es, zh, ja)
Common Search Workflows
“Where is X defined?”
./scripts/search.sh functions my_function
./scripts/search.sh components MyComponent
./scripts/search.sh classes MyClass
./scripts/search.sh types MyType
“What calls X?”
./scripts/search.sh usage my_function
./scripts/search.sh deps my_file.py
“How does data flow for feature X?”
./scripts/trace.sh api-flow resumes
./scripts/trace.sh data-flow personalInfo
./scripts/trace.sh component-tree ResumeEditor
“What API routes exist?”
./scripts/search.sh api-routes
“What environment config is used?”
./scripts/search.sh config
“What needs fixing?”
./scripts/search.sh todos
Key Entry Points
| What | File |
|---|---|
| Backend startup | apps/backend/app/main.py |
| Frontend pages | apps/frontend/app/ |
| API client | apps/frontend/lib/api.ts or lib/api-client.ts |
| Design tokens | apps/frontend/app/globals.css |
| Resume schemas | apps/backend/app/schemas/ |
| LLM prompts | apps/backend/app/prompts/ |
Tips
- Always check
docs/agent/before deep-diving into code - Use
rg --type pyfor Python,rg --glob '*.tsx'for React components - When tracing a feature, start from the API route and follow imports
- Check
apps/frontend/components/for reusable UI patterns - Check
apps/backend/app/services/for business logic