← 返回 Skills 市场
openlark

Code Analysis

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install code-analysis
功能描述
Perform multi-dimensional advanced code analysis including knowledge graph generation, code quality evaluation, performance analysis, security review, archit...
使用说明 (SKILL.md)

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

  1. Read user-provided code files or directories
  2. Select analysis types based on user needs
  3. Execute analysis and generate comprehensive report
  4. Provide actionable improvement recommendations
  5. 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]
安全使用建议
Install this if you want structured code analysis reports. When using it, point the agent at specific files or directories and avoid including secrets or proprietary code unless you are comfortable having that code read for the review.
能力评估
Purpose & Capability
The stated purpose is code analysis across quality, performance, security, architecture, and tests; the workflow and output format match that purpose.
Instruction Scope
The activation examples are broad, but they remain tied to ordinary code analysis requests and do not add hidden or unrelated behavior.
Install Mechanism
The artifact contains a single SKILL.md file with no executable scripts, dependencies, install hooks, or package metadata requesting extra authority.
Credentials
Reading user-provided files or directories is proportionate for code analysis; there are no instructions to scan unrelated local data, credentials, or network resources.
Persistence & Privilege
No persistence, background execution, privilege escalation, credential use, mutation, or data upload behavior is present.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install code-analysis
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /code-analysis 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of code-analysis skill. - Provides advanced code analysis across multiple dimensions: knowledge graph generation, code quality, performance, security, architecture, and test coverage. - Generates structured reports with prioritized, actionable recommendations. - Supports clear risk assessment and improvement roadmap sections in the output. - Designed for use cases including code review, code assessment, optimization, and security review.
元数据
Slug code-analysis
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Code Analysis 是什么?

Perform multi-dimensional advanced code analysis including knowledge graph generation, code quality evaluation, performance analysis, security review, archit... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 Code Analysis?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-analysis」即可一键安装,无需额外配置。

Code Analysis 是免费的吗?

是的,Code Analysis 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Code Analysis 支持哪些平台?

Code Analysis 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code Analysis?

由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。

💬 留言讨论