/analyze
Deep analysis of code against project standards
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-codeHow 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.mddescription: 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
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]
This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。
Other commands on claude-code-engineering.
- /commit
Quick git commit with auto-generated or specified message
Open command - /explain
Explain code in simple, beginner-friendly terms
Open command - /log
Show recent git history with summary
Open command - /status
Show git status with helpful context
Open command - /review
对代码进行全面审查,输出结构化报告
Open command - /todo
Add a TODO comment to code with optional priority and assignee
Open command

