Skip to content
Development
Command

/analyze

Deep analysis of code against project standards

From plugin
claude-code-engineering
1.1k11 skills16 agents11 commands
Install
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/analyze

Context preview

What this command does when you run it.

Deep analysis of code against project standards

Command definition

analyze.md
description: Deep analysis of code against project standards
argument-hint: [file or directory path]
allowed-tools: Read, Grep, Glob

Perform deep analysis on: $ARGUMENTS

Analysis Context

Use our project's coding standards as reference: @.claude/rules/coding-standards.md

Analysis Dimensions

1. Code Quality

  • Complexity (cyclomatic, cognitive)
  • Duplication
  • Dead code
  • Naming conventions

2. Architecture

  • Separation of concerns
  • Dependency direction
  • Module boundaries

3. Security

  • Input validation
  • Authentication/authorization
  • Sensitive data handling

4. Performance

  • Obvious inefficiencies
  • Resource management
  • Caching opportunities

5. Maintainability

  • Documentation coverage
  • Test coverage indicators
  • Code readability

Steps

1. Read the target file(s) 2. If a directory, identify key files 3. Analyze against each dimension 4. Compare with project standards (if available) 5. Generate report

Output Format

## Analysis Report: [target]

### Overview
[One paragraph summary]

### Scores
| Dimension | Score | Notes |
|-----------|-------|-------|
| Quality | ⭐⭐⭐⭐☆ | [brief] |
| Architecture | ⭐⭐⭐☆☆ | [brief] |
| Security | ⭐⭐⭐⭐⭐ | [brief] |
| Performance | ⭐⭐⭐☆☆ | [brief] |
| Maintainability | ⭐⭐⭐⭐☆ | [brief] |

### Key Findings

#### Strengths
- [positive points]

#### Areas for Improvement
- [issues with suggested fixes]

### Recommendations
1. [Prioritized action items]
Read more
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

Get the whole plugin, auto-invoked
Stats
1,050
Stars
0
Views
373
Forks
Active
Maintenance
JavaScript
Language
16d ago
Last commit
6mo ago
Created

Repo: huangjia2019/claude-code-engineering