Install
openclaw skills install source-code-analysisThis skill should be used when the user asks to "analyze source code", "understand this codebase", "perform code analysis", "study this project", "explain this repository", or discusses source code learning, codebase comprehension, open source project analysis, understanding software architecture, or learning from existing code.
openclaw skills install source-code-analysisThis skill provides a systematic 7-step methodology for analyzing and understanding source code repositories. It helps developers efficiently comprehend complex codebases by focusing on high-value content and following a structured approach.
Build Global Cognition
Trace Core Pathways
Understand Design Decisions
Examine Engineering Practices
Running Analysis
Identify Core 20%
Feature Deep-Dive
This skill activates when the user's request involves:
Always ask clarifying questions:
Follow this systematic approach:
Start with questions before code
Establish global cognition first
Trace one complete pathway
Understand design decisions
Study engineering practices
Structure your analysis with these sections:
## Project Overview
- **Core Goal**: [What problem it solves]
- **Main Features**: [Key functionality]
- **Technology Stack**: [Languages, frameworks, tools]
- **Code Scale**: [Size metrics]
## Architecture Analysis
- **Architecture Pattern**: [Identified pattern]
- **Directory Organization**: [Structure analysis]
- **Module Boundaries**: [Main modules and responsibilities]
- **Entry Points**: [Startup and initialization]
## Feature: [Feature Name]
### Entry Point
- File: [path/to/file.ts:line-number]
- Function: [functionName()]
### Execution Flow
1. [Step 1] → [file:line]
2. [Step 2] → [file:line]
3. [Step 3] → [file:line]
### Data Flow
[Diagram or description of data transformation]
## Key Design Decisions
### [Decision Name]
- **What**: [Description]
- **Why**: [Rationale]
- **Trade-offs**: [Considerations]
- **Alternatives considered**: [Other options]
## Production Realities
### Error Handling
[Patterns and approaches found]
### Performance Optimizations
[Techniques and their rationale]
### Code Quality Practices
[Testing, documentation, standards]
## Priority Reading List
1. **[file-path]** - [Why it's critical]
2. **[file-path]** - [Why it's critical]
3. **[file-path]** - [Why it's critical]
...
## For [Beginner|Intermediate|Advanced] Learners
### Recommended Path
1. [Stage 1]: [Goal] → [Files to read]
2. [Stage 2]: [Goal] → [Files to read]
3. [Stage 3]: [Goal] → [Files to read]
### Practice Suggestions
[Specific exercises and projects]
Prioritize files that are:
Lower priority:
"Give me a quick overview of the Next.js codebase focusing on
the routing system and server components"
"Trace the complete implementation of React's useState hook,
including the fiber architecture integration and scheduler coordination"
"Analyze the design decisions in Go's standard library,
focusing on error handling philosophy and interface design"
"Create a learning path for an intermediate developer to
understand the TypeScript compiler, focusing on the type checking system"
This skill works well with:
Version: 1.0.0 Methodology: 7-Step Source Code Analysis Framework Target Users: Developers learning new codebases, open source contributors, technical leads, software engineering students