1
0
mirror of https://github.com/steipete/agent-rules.git synced 2025-12-21 12:19:36 +01:00
Files
agent-rules-mirror/project-rules/code-analysis.mdc
Peter Steinberger b14f443855 Add 15 new development workflow rules from claude-code
Added comprehensive rules adapted from vincenthopf/claude-code:

Development Workflows:
- commit.mdc, commit-fast.mdc: Git commit workflows
- add-to-changelog.mdc: Structured changelog updates
- pr-review.mdc: Multi-role PR review checklist

Code Quality:
- check.mdc: Multi-language code quality checks
- clean.mdc: Auto-fix formatting and linting
- code-analysis.mdc: Advanced analysis options

Problem Solving:
- analyze-issue.mdc: GitHub issue analysis
- bug-fix.mdc: Complete bug-fixing workflow
- implement-task.mdc: Methodical implementation
- five.mdc: Five Whys root cause analysis

Documentation:
- create-docs.mdc: Comprehensive doc generation
- mermaid.mdc: Diagram generation

Project Setup:
- context-prime.mdc: Load project context
- create-command.mdc: Create custom commands

Credit: @vincenthopf (https://github.com/vincenthopf/claude-code)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-12 14:19:32 +02:00

54 lines
1.2 KiB
Plaintext

# Code Analysis
Perform advanced code analysis with multiple inspection options.
## Analysis Menu:
### 1. Knowledge Graph Generation
- Map relationships between components
- Visualize dependencies
- Identify architectural patterns
### 2. Code Quality Evaluation
- Complexity metrics
- Maintainability index
- Technical debt assessment
- Code duplication detection
### 3. Performance Analysis
- Identify bottlenecks
- Memory usage patterns
- Algorithm complexity
- Database query optimization
### 4. Security Review
- Vulnerability scanning
- Input validation checks
- Authentication/authorization review
- Sensitive data handling
### 5. Architecture Review
- Design pattern adherence
- SOLID principles compliance
- Coupling and cohesion analysis
- Module boundaries
### 6. Test Coverage Analysis
- Coverage percentages
- Untested code paths
- Test quality assessment
- Missing edge cases
## Process:
1. Select analysis type based on need
2. Run appropriate tools and inspections
3. Generate comprehensive report
4. Provide actionable recommendations
5. Prioritize improvements by impact
## Output Format:
- Executive summary
- Detailed findings
- Risk assessment
- Improvement roadmap
- Code examples where relevant