Code Analyzer for Openclaw

A professional-grade deep repository analysis engine that uncovers architecture styles, execution flows, and Domain-Driven Design patterns across 20+ languages.

jerry-guo-mys
v1.0.0
Mar 7, 2026
0
2.1k
80

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install code-analyzer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install code-analyzer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Code Analyzer?

Code Analyzer is a comprehensive static analysis tool that goes far beyond surface-level metrics to provide a structural understanding of complex codebases. By integrating this tool into your Openclaw Skills library, you can automatically identify architectural styles such as MVC, Clean Architecture, or Microservices. It serves as a bridge between raw source code and high-level technical intelligence, extracting execution paths, data flow transitions, and business constraints directly from the logic. This makes it an essential asset for teams using Openclaw Skills to maintain high standards and deep visibility into their software evolution.

Code Analyzer Use Cases

  • Accelerating developer onboarding by generating deep architecture overviews for new projects.
  • Automating the creation of architecture documentation and Mermaid-based system diagrams.
  • Preparing for rigorous code reviews by identifying high-complexity functions and circular dependencies.
  • Assessing technical debt and documentation coverage across large-scale repositories.
  • Mapping Domain-Driven Design patterns including Aggregate Roots, Entities, and Bounded Contexts.

How Code Analyzer Works

  1. The user or AI agent initiates the script pointing to the project directory.
  2. The engine performs Abstract Syntax Tree (AST) analysis for deep-support languages or basic parsing for others.
  3. It traces execution entry points and maps the flow of data across different modules and services.
  4. Specialized pattern recognition logic identifies DDD components like value objects and domain events.
  5. It evaluates the project against quality dimensions like maintainability, testability, and complexity.
  6. A comprehensive Markdown report is generated, featuring executive summaries and actionable improvement suggestions.

Code Analyzer Setup

To start using this tool within the Openclaw Skills ecosystem, follow these CLI steps:

# Perform a full deep analysis
python3 scripts/analyze.py --path /path/to/project --output report.md

# Run a specialized DDD pattern analysis
python3 scripts/ddd-analyzer.py --path /path/to/project --output ddd-report.md

# Analyze with directory exclusions
python3 scripts/analyze.py --path . --exclude "node_modules,vendor,target" --output analysis.md

Code Analyzer Data Schema & Taxonomy

The analysis results are organized into a structured Markdown schema to ensure compatibility with various Openclaw Skills workflows:

Data Category Details Included
Executive Summary Total files, LOC, architecture style, and primary entry points.
Quality Metrics Scored metrics for maintainability, testability, and complexity.
Issue Catalog Ranked list of findings (Critical vs Major) such as circular dependencies.
Pattern Recognition Identification of DDD components (Entities, Repositories, Events).
Visual Maps Mermaid.js code blocks for generating call graphs and flowcharts.

Code Analyzer Advanced Features

  • Multi-language support covering Python, JS, TS, Rust, Java, Go, and 15+ other extensions.
  • Deep AST-based analysis for modern stacks like TypeScript and Rust.
  • Automated extraction of business rules and validation logic from source code.
  • Seamless integration with AI assistants for conversational codebase exploration.
  • Configurable priority-based improvement suggestions to guide refactoring efforts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*