Agent skill · research science · aiskillstore

codebase-analysis

Techniques for analyzing existing codebases to reverse-engineer requirements and understand business logic. Use when conducting brownfield analysis or understanding existing system capabilities.

Why this skill is useful

Provides domain-specific techniques for extracting business logic and requirements from existing codebases that the AI wouldn't reliably generate on its own.

What it needs

About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Codebase Analysis Skill Overview This skill provides techniques for extracting business requirements, domain knowledge, and technical specifications from existing codebases. Analysis Objectives When analyzing a codebase, seek to understand: 1. Domain Model: Core entities and their relationships 2. Business Rules: Validation, calculations, workflows 3. Integrations: External systems and data flows 4. User Capabilities: What users can do in the system 5. Technical Constraints: Architecture patterns and limitations Analysis Process Phase 1: Structure Discovery 1. Map project structure and organization 2. Identify main components and layers 3. Locate configuration and entry points 4. Understand build and deployment setup Phase 2: Domain Model Extraction 1. Find entity/model definitions 2. Map relationships between entities 3. Identify domain vocabulary (ubiquitous language) 4. Document data types and constraints Phase 3: Business Logic Identification 1. Locate service/business logic layers 2. Extract validation rules 3. Document calculations and formulas 4. Map state machines and workflows Phase 4: Integration Mapping 1. Find API endpoints and contracts 2. Identify external service calls 3. Map data flows in/out of system 4. Document authentication patterns Phase 5: Capability Documentation 1. List user-facing features 2. Map permissions and access control 3. Document user workflows 4. Identify edge cases and error handling Code Pattern Recognition Entity/Model Identification Look for these patterns: Business Rule Indicators Watch for these keywords and patterns: Validation: Validate, Check, Ensure, Must, Should Calculations: Calculate, Compute, Total, Sum Conditions: If, When, Unless, Only Constraints: Max, Min, Required, Limit Service Layer Patterns Identify business logic in: API Endpoint Patterns Look for: Analysis Heuristics Finding Domain Models 1. Search for class, interface, type definitions 2. Look in folders named: Models, Entities, Domain 3. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/codebase-analysis--6b2e49

View the source on GitHub

Browse the @skills marketplace