Comprehensive codebase analysis framework covering 14 technical areas including system overview, architecture, modules, integrations, workflows, and deployment patterns...
A systematic framework for analyzing codebases across 14 technical areas. This skill provides the analysis structure and signals to look for when examining a repository.
Purpose: Understand the project at a high level.
Signals to extract:
Detection patterns:
# Check for project metadata
package.json, pyproject.toml, Cargo.toml, go.mod, pom.xml
README.md (first paragraph often describes purpose)
Purpose: Identify languages, frameworks, and tools.
Signals to extract:
Detection patterns:
# Language detection
*.ts, *.tsx ā TypeScript
*.py ā Python
*.go ā Go
*.rs ā Rust
*.java ā Java
# Framework detection
next.config.* ā Next.js
angular.json ā Angular
settings.py + urls.py ā Django
main.py + FastAPI import ā FastAPI
Purpose: Identify the structural design.
Signals to extract:
Detection patterns:
# Layered architecture signals
/controllers or /handlers ā presentation layer
/services or /usecases ā business logic layer
/repositories or /dal ā data access layer
# Microservices signals
Multiple Dockerfiles or docker-compose services
/services/* with independent package files
API gateway configuration
Purpose: Understand client-side organization.
Signals to extract:
Detection patterns:
# React patterns
/components, /hooks, /contexts
useState, useEffect, useContext imports
# State management
/store, /redux, /state directories
createStore, configureStore, create (zustand)
Purpose: Understand server-side organization.
Signals to extract:
Detection patterns:
# API route patterns
/routes, /api, /endpoints directories
@app.route, @router.get, @GetMapping decorators
# Module patterns
/modules/*/ ā feature-based
/domain/*/ ā domain-driven
Purpose: Catalog major components.
Signals to extract:
Output format:
| Module | Type | Path | Dependencies | Interface |
|---|---|---|---|---|
| auth | API | /services/auth | db, redis | POST /login, /register |
| worker | Background | /workers/email | queue, smtp | processEmailQueue() |
Purpose: Identify persistence mechanisms.
Signals to extract:
Detection patterns:
# Database configuration
DATABASE_URL, MONGO_URI environment variables
/migrations, /prisma, /drizzle directories
*.sql files, schema definitions
# Cache patterns
REDIS_URL, redis.createClient()
@Cacheable annotations
Purpose: Map third-party connections.
Signals to extract:
Detection patterns:
# SDK imports
import stripe, from '@stripe/stripe-js'
import twilio, from 'twilio'
# API client patterns
/integrations, /clients, /external directories
fetch('https://api.stripe.com/...')
Purpose: Trace critical user journeys.
Signals to extract:
Detection patterns:
# Workflow indicators
/workflows, /flows, /sagas directories
State machines, step functions
Transaction boundaries
Purpose: Understand infrastructure and deployment.
Signals to extract:
Detection patterns:
# Container configuration
Dockerfile, docker-compose.yml
.dockerignore
# IaC patterns
/terraform, /infrastructure, /infra directories
*.tf, *.yaml (CloudFormation), Pulumi.*
# CI/CD
.github/workflows/, .gitlab-ci.yml, Jenkinsfile
Purpose: Understand quality assurance approach.
Signals to extract:
Detection patterns:
# Test directories
/tests, /__tests__, /spec, /e2e
*.test.ts, *.spec.py, *_test.go
# CI configuration
.github/workflows/*.yml
test, lint, build, deploy stages
Purpose: Identify security mechanisms.
Signals to extract:
Detection patterns:
# Auth patterns
/auth, /security directories
passport, next-auth, @nestjs/passport imports
JWT verification middleware
# Secrets
.env files (check .gitignore)
secrets/, vault configuration
Purpose: Map the repository organization.
Signals to extract:
Output format:
/
āāā src/ ā Source code
āāā tests/ ā Test files
āāā docs/ ā Documentation
āāā scripts/ ā Build/deploy scripts
āāā config/ ā Configuration files
āāā dist/ ā Build output (generated)
Purpose: Capture anything not covered above.
Potential areas:
| Coverage | Score | Action |
|---|---|---|
| 12-14 areas populated | 85-100% | Proceed with documentation |
| 9-11 areas populated | 70-84% | Review gaps, may proceed |
| < 9 areas populated | < 70% | Request additional context |
Version: 1.0 Last Updated: 2026-01-22