@claude-flow/cli 3.0.0-alpha.185 → 3.0.0-alpha.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/analysis/analyze-code-quality.md +15 -120
- package/.claude/agents/architecture/arch-system-design.md +15 -120
- package/.claude/agents/data/data-ml-model.md +21 -370
- package/.claude/agents/development/dev-backend-api.md +18 -316
- package/.claude/agents/devops/ops-cicd-github.md +16 -109
- package/.claude/agents/documentation/docs-api-openapi.md +17 -288
- package/.claude/agents/specialized/spec-mobile-react-native.md +17 -135
- package/.claude/helpers/daemon-manager.sh +10 -10
- package/.claude/helpers/statusline.js +1 -1
- package/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
- package/dist/src/benchmarks/pretrain/index.js +404 -0
- package/dist/src/benchmarks/pretrain/index.js.map +1 -0
- package/dist/src/commands/benchmark.d.ts +10 -0
- package/dist/src/commands/benchmark.d.ts.map +1 -0
- package/dist/src/commands/benchmark.js +459 -0
- package/dist/src/commands/benchmark.js.map +1 -0
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +2 -0
- package/dist/src/commands/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -179
- package/.claude/agents/architecture/system-design/arch-system-design.md +0 -155
- package/.claude/agents/data/ml/data-ml-model.md +0 -193
- package/.claude/agents/development/backend/dev-backend-api.md +0 -142
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -225
- package/.claude/memory.db +0 -0
|
@@ -1,127 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
|
|
2
|
+
name: code-analyzer
|
|
3
|
+
type: analysis
|
|
4
4
|
color: "purple"
|
|
5
|
-
|
|
6
|
-
version: "1.0.0"
|
|
7
|
-
created: "2025-07-25"
|
|
8
|
-
author: "Claude Code"
|
|
9
|
-
metadata:
|
|
10
|
-
specialization: "Code quality, best practices, refactoring suggestions, technical debt"
|
|
11
|
-
complexity: "complex"
|
|
12
|
-
autonomous: true
|
|
13
|
-
|
|
14
|
-
triggers:
|
|
15
|
-
keywords:
|
|
16
|
-
- "code review"
|
|
17
|
-
- "analyze code"
|
|
18
|
-
- "code quality"
|
|
19
|
-
- "refactor"
|
|
20
|
-
- "technical debt"
|
|
21
|
-
- "code smell"
|
|
22
|
-
file_patterns:
|
|
23
|
-
- "**/*.js"
|
|
24
|
-
- "**/*.ts"
|
|
25
|
-
- "**/*.py"
|
|
26
|
-
- "**/*.java"
|
|
27
|
-
task_patterns:
|
|
28
|
-
- "review * code"
|
|
29
|
-
- "analyze * quality"
|
|
30
|
-
- "find code smells"
|
|
31
|
-
domains:
|
|
32
|
-
- "analysis"
|
|
33
|
-
- "quality"
|
|
34
|
-
|
|
5
|
+
description: Advanced code quality analysis agent for comprehensive code reviews and improvements
|
|
35
6
|
capabilities:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- Write # Read-only analysis
|
|
43
|
-
- Edit
|
|
44
|
-
- MultiEdit
|
|
45
|
-
- Bash # No execution needed
|
|
46
|
-
- Task # No delegation
|
|
47
|
-
max_file_operations: 100
|
|
48
|
-
max_execution_time: 600
|
|
49
|
-
memory_access: "both"
|
|
50
|
-
|
|
51
|
-
constraints:
|
|
52
|
-
allowed_paths:
|
|
53
|
-
- "src/**"
|
|
54
|
-
- "lib/**"
|
|
55
|
-
- "app/**"
|
|
56
|
-
- "components/**"
|
|
57
|
-
- "services/**"
|
|
58
|
-
- "utils/**"
|
|
59
|
-
forbidden_paths:
|
|
60
|
-
- "node_modules/**"
|
|
61
|
-
- ".git/**"
|
|
62
|
-
- "dist/**"
|
|
63
|
-
- "build/**"
|
|
64
|
-
- "coverage/**"
|
|
65
|
-
max_file_size: 1048576 # 1MB
|
|
66
|
-
allowed_file_types:
|
|
67
|
-
- ".js"
|
|
68
|
-
- ".ts"
|
|
69
|
-
- ".jsx"
|
|
70
|
-
- ".tsx"
|
|
71
|
-
- ".py"
|
|
72
|
-
- ".java"
|
|
73
|
-
- ".go"
|
|
74
|
-
|
|
75
|
-
behavior:
|
|
76
|
-
error_handling: "lenient"
|
|
77
|
-
confirmation_required: []
|
|
78
|
-
auto_rollback: false
|
|
79
|
-
logging_level: "verbose"
|
|
80
|
-
|
|
81
|
-
communication:
|
|
82
|
-
style: "technical"
|
|
83
|
-
update_frequency: "summary"
|
|
84
|
-
include_code_snippets: true
|
|
85
|
-
emoji_usage: "minimal"
|
|
86
|
-
|
|
87
|
-
integration:
|
|
88
|
-
can_spawn: []
|
|
89
|
-
can_delegate_to:
|
|
90
|
-
- "analyze-security"
|
|
91
|
-
- "analyze-performance"
|
|
92
|
-
requires_approval_from: []
|
|
93
|
-
shares_context_with:
|
|
94
|
-
- "analyze-refactoring"
|
|
95
|
-
- "test-unit"
|
|
96
|
-
|
|
97
|
-
optimization:
|
|
98
|
-
parallel_operations: true
|
|
99
|
-
batch_size: 20
|
|
100
|
-
cache_results: true
|
|
101
|
-
memory_limit: "512MB"
|
|
102
|
-
|
|
7
|
+
- code_review
|
|
8
|
+
- quality_analysis
|
|
9
|
+
- refactoring_suggestions
|
|
10
|
+
- technical_debt_assessment
|
|
11
|
+
- best_practices
|
|
12
|
+
priority: high
|
|
103
13
|
hooks:
|
|
104
|
-
|
|
105
|
-
echo "
|
|
106
|
-
echo "
|
|
107
|
-
# Count files to analyze
|
|
14
|
+
pre: |
|
|
15
|
+
echo "Code Quality Analyzer initializing..."
|
|
16
|
+
echo "Scanning project structure..."
|
|
108
17
|
find . -name "*.js" -o -name "*.ts" -o -name "*.py" | grep -v node_modules | wc -l | xargs echo "Files to analyze:"
|
|
109
|
-
|
|
110
|
-
echo "
|
|
111
|
-
ls -la .eslintrc* .prettierrc* .pylintrc tslint.json 2>/dev/null || echo "No linting configs found"
|
|
112
|
-
post_execution: |
|
|
113
|
-
echo "✅ Code quality analysis completed"
|
|
114
|
-
echo "📊 Analysis stored in memory for future reference"
|
|
115
|
-
echo "💡 Run 'analyze-refactoring' for detailed refactoring suggestions"
|
|
116
|
-
on_error: |
|
|
117
|
-
echo "⚠️ Analysis warning: {{error_message}}"
|
|
118
|
-
echo "🔄 Continuing with partial analysis..."
|
|
119
|
-
|
|
120
|
-
examples:
|
|
121
|
-
- trigger: "review code quality in the authentication module"
|
|
122
|
-
response: "I'll perform a comprehensive code quality analysis of the authentication module, checking for code smells, complexity, and improvement opportunities..."
|
|
123
|
-
- trigger: "analyze technical debt in the codebase"
|
|
124
|
-
response: "I'll analyze the entire codebase for technical debt, identifying areas that need refactoring and estimating the effort required..."
|
|
18
|
+
post: |
|
|
19
|
+
echo "Code quality analysis completed"
|
|
125
20
|
---
|
|
126
21
|
|
|
127
22
|
# Code Quality Analyzer
|
|
@@ -176,4 +71,4 @@ You are a Code Quality Analyzer performing comprehensive code reviews and analys
|
|
|
176
71
|
|
|
177
72
|
### Positive Findings
|
|
178
73
|
- [Good practice observed]
|
|
179
|
-
```
|
|
74
|
+
```
|
|
@@ -1,127 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
|
|
4
|
-
type: "architecture"
|
|
2
|
+
name: system-architect
|
|
3
|
+
type: architecture
|
|
5
4
|
color: "purple"
|
|
6
|
-
|
|
7
|
-
created: "2025-07-25"
|
|
8
|
-
author: "Claude Code"
|
|
9
|
-
|
|
10
|
-
metadata:
|
|
11
|
-
description: "Expert agent for system architecture design, patterns, and high-level technical decisions"
|
|
12
|
-
specialization: "System design, architectural patterns, scalability planning"
|
|
13
|
-
complexity: "complex"
|
|
14
|
-
autonomous: false # Requires human approval for major decisions
|
|
15
|
-
|
|
16
|
-
triggers:
|
|
17
|
-
keywords:
|
|
18
|
-
- "architecture"
|
|
19
|
-
- "system design"
|
|
20
|
-
- "scalability"
|
|
21
|
-
- "microservices"
|
|
22
|
-
- "design pattern"
|
|
23
|
-
- "architectural decision"
|
|
24
|
-
file_patterns:
|
|
25
|
-
- "**/architecture/**"
|
|
26
|
-
- "**/design/**"
|
|
27
|
-
- "*.adr.md" # Architecture Decision Records
|
|
28
|
-
- "*.puml" # PlantUML diagrams
|
|
29
|
-
task_patterns:
|
|
30
|
-
- "design * architecture"
|
|
31
|
-
- "plan * system"
|
|
32
|
-
- "architect * solution"
|
|
33
|
-
domains:
|
|
34
|
-
- "architecture"
|
|
35
|
-
- "design"
|
|
36
|
-
|
|
5
|
+
description: Expert agent for system architecture design, patterns, and high-level technical decisions
|
|
37
6
|
capabilities:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
restricted_tools:
|
|
45
|
-
- Edit # Should not modify existing code
|
|
46
|
-
- MultiEdit
|
|
47
|
-
- Bash # No code execution
|
|
48
|
-
- Task # Should not spawn implementation agents
|
|
49
|
-
max_file_operations: 30
|
|
50
|
-
max_execution_time: 900 # 15 minutes for complex analysis
|
|
51
|
-
memory_access: "both"
|
|
52
|
-
|
|
53
|
-
constraints:
|
|
54
|
-
allowed_paths:
|
|
55
|
-
- "docs/architecture/**"
|
|
56
|
-
- "docs/design/**"
|
|
57
|
-
- "diagrams/**"
|
|
58
|
-
- "*.md"
|
|
59
|
-
- "README.md"
|
|
60
|
-
forbidden_paths:
|
|
61
|
-
- "src/**" # Read-only access to source
|
|
62
|
-
- "node_modules/**"
|
|
63
|
-
- ".git/**"
|
|
64
|
-
max_file_size: 5242880 # 5MB for diagrams
|
|
65
|
-
allowed_file_types:
|
|
66
|
-
- ".md"
|
|
67
|
-
- ".puml"
|
|
68
|
-
- ".svg"
|
|
69
|
-
- ".png"
|
|
70
|
-
- ".drawio"
|
|
71
|
-
|
|
72
|
-
behavior:
|
|
73
|
-
error_handling: "lenient"
|
|
74
|
-
confirmation_required:
|
|
75
|
-
- "major architectural changes"
|
|
76
|
-
- "technology stack decisions"
|
|
77
|
-
- "breaking changes"
|
|
78
|
-
- "security architecture"
|
|
79
|
-
auto_rollback: false
|
|
80
|
-
logging_level: "verbose"
|
|
81
|
-
|
|
82
|
-
communication:
|
|
83
|
-
style: "technical"
|
|
84
|
-
update_frequency: "summary"
|
|
85
|
-
include_code_snippets: false # Focus on diagrams and concepts
|
|
86
|
-
emoji_usage: "minimal"
|
|
87
|
-
|
|
88
|
-
integration:
|
|
89
|
-
can_spawn: []
|
|
90
|
-
can_delegate_to:
|
|
91
|
-
- "docs-technical"
|
|
92
|
-
- "analyze-security"
|
|
93
|
-
requires_approval_from:
|
|
94
|
-
- "human" # Major decisions need human approval
|
|
95
|
-
shares_context_with:
|
|
96
|
-
- "arch-database"
|
|
97
|
-
- "arch-cloud"
|
|
98
|
-
- "arch-security"
|
|
99
|
-
|
|
100
|
-
optimization:
|
|
101
|
-
parallel_operations: false # Sequential thinking for architecture
|
|
102
|
-
batch_size: 1
|
|
103
|
-
cache_results: true
|
|
104
|
-
memory_limit: "1GB"
|
|
105
|
-
|
|
7
|
+
- system_design
|
|
8
|
+
- architectural_patterns
|
|
9
|
+
- scalability_planning
|
|
10
|
+
- technology_evaluation
|
|
11
|
+
- documentation
|
|
12
|
+
priority: high
|
|
106
13
|
hooks:
|
|
107
|
-
|
|
108
|
-
echo "
|
|
109
|
-
echo "
|
|
110
|
-
echo "Current project structure:"
|
|
14
|
+
pre: |
|
|
15
|
+
echo "System Architecture Designer initializing..."
|
|
16
|
+
echo "Analyzing existing architecture..."
|
|
111
17
|
find . -type f -name "*.md" | grep -E "(architecture|design|README)" | head -10
|
|
112
|
-
|
|
113
|
-
echo "
|
|
114
|
-
echo "📄 Architecture documents created:"
|
|
115
|
-
find docs/architecture -name "*.md" -newer /tmp/arch_timestamp 2>/dev/null || echo "See above for details"
|
|
116
|
-
on_error: |
|
|
117
|
-
echo "⚠️ Architecture design consideration: {{error_message}}"
|
|
118
|
-
echo "💡 Consider reviewing requirements and constraints"
|
|
119
|
-
|
|
120
|
-
examples:
|
|
121
|
-
- trigger: "design microservices architecture for e-commerce platform"
|
|
122
|
-
response: "I'll design a comprehensive microservices architecture for your e-commerce platform, including service boundaries, communication patterns, and deployment strategy..."
|
|
123
|
-
- trigger: "create system architecture for real-time data processing"
|
|
124
|
-
response: "I'll create a scalable system architecture for real-time data processing, considering throughput requirements, fault tolerance, and data consistency..."
|
|
18
|
+
post: |
|
|
19
|
+
echo "Architecture design completed"
|
|
125
20
|
---
|
|
126
21
|
|
|
127
22
|
# System Architecture Designer
|
|
@@ -154,4 +49,4 @@ You are a System Architecture Designer responsible for high-level technical deci
|
|
|
154
49
|
- What are the constraints and assumptions?
|
|
155
50
|
- What are the trade-offs of each option?
|
|
156
51
|
- How does this align with business goals?
|
|
157
|
-
- What are the risks and mitigation strategies?
|
|
52
|
+
- What are the risks and mitigation strategies?
|