Frontend Codebase Intelligence
This skill helps analyze modern frontend applications by identifying structure, components, routing, and dependencies.
Capabilities
📂 Structure Understanding
- Generates a high-level folder structure
- Focuses on important frontend directories:
- src/
- components/
- pages/ / app/
- hooks/
- services/
⚛️ Component Intelligence (React / Next.js)
- Detects:
- Functional components
- Arrow function components
- Identifies:
- Component relationships (imports)
- Detects hooks:
- useState, useEffect, custom hooks
▲ Next.js Routing Analysis
- Extracts routes from:
- pages/
- app/
- Identifies:
- API routes (
/api/*) - Layout structure
- API routes (
🅰️ Angular Basic Support
- Detects:
- @Component
- @NgModule
- Identifies routing modules
🔗 Dependency Mapping
- Extracts import relationships
- Builds file-level dependency graph
🚀 Entry Points
- Detects:
- index.js / main.js
- main.ts (Angular)
- Next.js root files
Input
- Project directory or codebase
Output
- Project structure
- Component map
- Routing map
- Dependency graph
- Entry points
Instructions
- Scan the project directory recursively
- Read references/structure-analysis.md before summarizing project layout
- Read references/framework-detection.md before choosing a framework-specific path
- Read only the relevant reference guides for the detected stack:
- references/component-detection.md for React, Next.js, and Angular component patterns
- references/routing-analysis.md for routing extraction
- references/dependency-mapping.md for import and dependency relationships
- Ignore:
- node_modules
- .next
- build/dist folders
- Detect framework using package.json, project structure, and framework-specific config files
- Perform:
- Structure analysis
- Component detection
- Routing extraction
- Dependency mapping
- Entry point detection
- Return a structured summary with:
- Overview
- Key files and folders
- Detected framework and confidence
- Component map
- Routing map
- Dependency relationships
- Entry points
- Unclear or unverified areas
Notes
- Uses lightweight analysis (pattern-based)
- Framework-aware but not deeply semantic
- Extendable with AST-based parsing
Limitations
- No runtime flow tracing
- Limited Angular deep analysis
- Basic Next.js server/client detection
- No state management tracking