/install code-analysis
Code Analysis
Perform multi-dimensional advanced code analysis, outputting structured reports and improvement roadmaps.
Use Cases
Use when users need "code analysis", "code review", "code quality assessment", "performance analysis", or "security review".
Analysis Dimensions
Select one or more based on user needs:
1. Knowledge Graph Generation
- Map relationships between components
- Visualize dependencies
- Identify architectural patterns
2. Code Quality Evaluation
- Complexity metrics (cyclomatic complexity, cognitive complexity)
- Maintainability index
- Technical debt assessment
- Code duplication detection
3. Performance Analysis
- Identify performance bottlenecks
- Memory usage patterns
- Algorithm complexity analysis
- Database query optimization recommendations
4. Security Review
- Vulnerability scanning
- Input validation checks
- Authentication/authorization review
- Sensitive data handling checks
5. Architecture Review
- Design pattern adherence
- SOLID principles compliance
- Coupling and cohesion analysis
- Module boundary assessment
6. Test Coverage Analysis
- Coverage percentages
- Untested code paths
- Test quality assessment
- Missing edge cases
Workflow
- Read user-provided code files or directories
- Select analysis types based on user needs
- Execute analysis and generate comprehensive report
- Provide actionable improvement recommendations
- Prioritize optimization items by impact
Output Format
## Code Analysis Report
### Executive Summary
[Overall assessment overview, 1-2 paragraphs]
### Detailed Findings
#### [Dimension 1]
- Finding 1: xxx
- Finding 2: xxx
#### [Dimension 2]
- Finding 1: xxx
### Risk Assessment
| Risk Level | Issue | Impact Scope | Recommendation |
|------------|-------|--------------|----------------|
| 🔴 High | xxx | xxx | xxx |
| 🟡 Medium | xxx | xxx | xxx |
| 🟢 Low | xxx | xxx | xxx |
### Improvement Roadmap
1. Immediate fixes (high priority)
2. Short-term optimization (1-2 weeks)
3. Long-term improvements (1-3 months)
### Code Examples
[Code examples of key issues with improvement suggestions]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install code-analysis - After installation, invoke the skill by name or use
/code-analysis - Provide required inputs per the skill's parameter spec and get structured output
What is Code Analysis?
Perform multi-dimensional advanced code analysis including knowledge graph generation, code quality evaluation, performance analysis, security review, archit... It is an AI Agent Skill for Claude Code / OpenClaw, with 41 downloads so far.
How do I install Code Analysis?
Run "/install code-analysis" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Code Analysis free?
Yes, Code Analysis is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Code Analysis support?
Code Analysis is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Code Analysis?
It is built and maintained by OpenLark (@openlark); the current version is v1.0.0.