claude-flow-novice 2.13.0 → 2.14.1

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.
Files changed (88) hide show
  1. package/.claude/commands/cfn/README.md +177 -129
  2. package/.claude/commands/cfn/cfn-loop-cli.md +279 -0
  3. package/.claude/commands/cfn/cfn-loop-document.md +20 -1
  4. package/.claude/commands/cfn/cfn-loop-frontend.md +17 -2
  5. package/.claude/commands/cfn/cfn-loop-task.md +460 -0
  6. package/.claude/commands/cfn/context-curate.md +27 -38
  7. package/.claude/commands/cfn/context-inject.md +14 -25
  8. package/.claude/commands/cfn/context-query.md +40 -45
  9. package/.claude/commands/cfn/context-reflect.md +40 -38
  10. package/.claude/commands/cfn/context-stats.md +13 -38
  11. package/.claude/commands/cfn/launch-web-dashboard.md +0 -295
  12. package/.claude/commands/cfn/list-agents-rebuild.md +18 -18
  13. package/.claude/commands/cfn/write-plan.md +246 -75
  14. package/.claude/root-claude-distribute/CFN-CLAUDE.md +126 -233
  15. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +25 -27
  16. package/.claude/skills/cfn-changelog-management/add-changelog-entry.sh +21 -19
  17. package/.claude/skills/cfn-changelog-management/bulk-import.sh +268 -0
  18. package/.claude/skills/cfn-changelog-management/lib/README.md +212 -0
  19. package/.claude/skills/cfn-changelog-management/lib/validation.sh +72 -0
  20. package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +36 -11
  21. package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +259 -0
  22. package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +45 -6
  23. package/claude-assets/agents/cfn-dev-team/testers/tester.md +59 -0
  24. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +4 -4
  25. package/claude-assets/commands/cfn/auto-compact.md +80 -0
  26. package/claude-assets/commands/cfn/cfn-loop-cli.md +13 -2
  27. package/claude-assets/commands/cfn/cfn-loop-epic.md +478 -0
  28. package/claude-assets/commands/cfn/cfn-loop-single.md +256 -0
  29. package/claude-assets/commands/cfn/cfn-loop-sprints.md +396 -0
  30. package/claude-assets/commands/cfn/cfn-loop-task.md +27 -9
  31. package/claude-assets/commands/cfn/cfn-loop.md +518 -0
  32. package/claude-assets/commands/cfn/claude-md.md +64 -0
  33. package/claude-assets/commands/cfn/claude-soul.md +22 -0
  34. package/claude-assets/commands/cfn/cost-savings-off.md +35 -0
  35. package/claude-assets/commands/cfn/cost-savings-on.md +35 -0
  36. package/claude-assets/commands/cfn/cost-savings-status.md +34 -0
  37. package/claude-assets/commands/cfn/custom-routing-activate.md +55 -0
  38. package/claude-assets/commands/cfn/custom-routing-deactivate.md +46 -0
  39. package/claude-assets/commands/cfn/dependency-recommendations.md +171 -0
  40. package/claude-assets/commands/cfn/fullstack.md +179 -0
  41. package/claude-assets/commands/cfn/github.md +221 -0
  42. package/claude-assets/commands/cfn/hooks.md +38 -0
  43. package/claude-assets/commands/cfn/metrics-summary.md +58 -0
  44. package/claude-assets/commands/cfn/neural.md +39 -0
  45. package/claude-assets/commands/cfn/parse-epic.md +357 -0
  46. package/claude-assets/commands/cfn/performance.md +41 -0
  47. package/claude-assets/commands/cfn/sparc.md +46 -0
  48. package/claude-assets/commands/cfn/suggest-improvements.md +95 -0
  49. package/claude-assets/commands/cfn/suggest-templates.md +147 -0
  50. package/claude-assets/commands/cfn/swarm.md +24 -0
  51. package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +126 -233
  52. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +25 -27
  53. package/claude-assets/skills/cfn-changelog-management/add-changelog-entry.sh +21 -19
  54. package/claude-assets/skills/cfn-changelog-management/bulk-import.sh +268 -0
  55. package/claude-assets/skills/cfn-changelog-management/lib/README.md +212 -0
  56. package/claude-assets/skills/cfn-changelog-management/lib/validation.sh +72 -0
  57. package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +36 -11
  58. package/claude-assets/skills/cfn-task-config-init/SKILL.md +204 -0
  59. package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -0
  60. package/dist/agents/agent-loader.js +165 -146
  61. package/dist/agents/agent-loader.js.map +1 -1
  62. package/package.json +2 -2
  63. package/.claude/commands/README.md +0 -205
  64. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +0 -840
  65. package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
  66. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
  67. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
  68. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
  69. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
  70. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
  71. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
  72. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
  73. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
  74. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
  75. package/.claude/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
  76. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +0 -840
  77. package/claude-assets/skills/cfn-loop2-output-processing/execute-and-extract.sh.backup +0 -36
  78. package/claude-assets/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
  79. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
  80. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
  81. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
  82. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
  83. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
  84. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
  85. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
  86. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
  87. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
  88. package/claude-assets/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
@@ -0,0 +1,41 @@
1
+ ---
2
+ description: "Performance monitoring and optimization"
3
+ argument-hint: "<action> [component]"
4
+ allowed-tools: ["mcp__claude-flow-novice__performance_report", "mcp__claude-flow-novice__bottleneck_analyze", "mcp__claude-flow-novice__health_check"]
5
+ ---
6
+
7
+ # Performance Monitoring & Optimization
8
+
9
+ Monitor system performance, identify bottlenecks, and optimize operations.
10
+
11
+ **Action**: $ARGUMENTS
12
+
13
+ **Available Performance Actions**:
14
+ - `report` - Generate comprehensive performance report
15
+ - `benchmark [type]` - Run performance benchmarks
16
+ - `bottleneck [component]` - Identify performance bottlenecks
17
+ - `tokens` - Analyze token consumption patterns
18
+ - `trends` - Show performance trends over time
19
+ - `optimize` - Auto-optimize system performance
20
+
21
+ **Performance Metrics**:
22
+
23
+ ## System Performance
24
+ - **Memory Usage**: RAM and cache utilization
25
+ - **CPU Performance**: Processing efficiency
26
+ - **I/O Operations**: File and network operations
27
+ - **Agent Coordination**: Swarm performance metrics
28
+
29
+ ## Optimization Areas
30
+ - **Token Efficiency**: Reduce token consumption
31
+ - **Parallel Execution**: Multi-agent coordination
32
+ - **Cache Management**: Memory optimization
33
+ - **Resource Allocation**: Dynamic scaling
34
+
35
+ ## Monitoring Features
36
+ - **Real-time Metrics**: Live performance data
37
+ - **Trend Analysis**: Historical performance patterns
38
+ - **Bottleneck Detection**: Automated issue identification
39
+ - **SLA Monitoring**: Service level tracking
40
+
41
+ Execute performance analysis and provide actionable optimization recommendations.
@@ -0,0 +1,46 @@
1
+ ---
2
+ description: "Execute SPARC methodology phases"
3
+ argument-hint: "<phase> <task description>"
4
+ allowed-tools: ["mcp__claude-flow-novice__task_orchestrate", "mcp__claude-flow-novice__agent_spawn"]
5
+ ---
6
+
7
+ # SPARC Methodology Execution
8
+
9
+ Execute systematic development phases using SPARC methodology.
10
+
11
+ **Phase**: $1
12
+ **Task**: $2
13
+
14
+ **SPARC Phases**:
15
+
16
+ ## Specification (spec)
17
+ - Define clear requirements and acceptance criteria
18
+ - Create user stories and use cases
19
+ - Identify constraints and assumptions
20
+ - Specify input/output requirements
21
+
22
+ ## Pseudocode (pseudo)
23
+ - Break down problem into logical steps
24
+ - Write high-level algorithm pseudocode
25
+ - Define data structures and flow
26
+ - Plan error handling and edge cases
27
+
28
+ ## Architecture (arch)
29
+ - Design system architecture and components
30
+ - Define interfaces and APIs
31
+ - Choose appropriate patterns and technologies
32
+ - Plan data flow and storage
33
+
34
+ ## Refinement (refine)
35
+ - Review and improve the design
36
+ - Optimize algorithms and data structures
37
+ - Add comprehensive error handling
38
+ - Enhance documentation
39
+
40
+ ## Completion (complete)
41
+ - Implement the final solution
42
+ - Write comprehensive tests
43
+ - Perform integration testing
44
+ - Prepare for production deployment
45
+
46
+ **Execute the specified SPARC phase for the given task with detailed analysis and recommendations.**
@@ -0,0 +1,95 @@
1
+ ---
2
+ description: "AI-powered project analysis with prioritized improvement recommendations"
3
+ argument-hint: "[--focus=<area>|--quick|--detailed|--security]"
4
+ allowed-tools: ["Read", "Bash", "Glob", "Grep", "mcp__claude-flow__language_detect", "mcp__claude-flow__framework_detect", "mcp__claude-flow__dependency_analyze", "mcp__claude-flow__rust_quality_analyze", "mcp__claude-flow__typescript_validate", "mcp__claude-flow__memory_usage", "mcp__claude-flow__agent_spawn"]
5
+ ---
6
+
7
+ # AI Project Analysis & Improvement Suggestions
8
+
9
+ Provide intelligent, prioritized recommendations for improving your codebase based on AI analysis.
10
+
11
+ **Focus Area**: $ARGUMENTS
12
+
13
+ ## Analysis Options
14
+
15
+ - `--focus=security` - Focus on security vulnerabilities and best practices
16
+ - `--focus=performance` - Analyze performance bottlenecks and optimizations
17
+ - `--focus=maintainability` - Code quality, readability, and maintainability
18
+ - `--focus=testing` - Test coverage, quality, and missing test scenarios
19
+ - `--quick` - Fast analysis with top 3-5 recommendations
20
+ - `--detailed` - Comprehensive analysis with implementation guides
21
+ - `--security` - Security-focused analysis with CVE scanning
22
+
23
+ ## What This Command Does
24
+
25
+ ### 🔍 Intelligent Codebase Analysis
26
+ - **Framework-Aware**: Leverages 98.5% accurate framework detection
27
+ - **Language-Specific**: Tailored recommendations for detected languages
28
+ - **Context-Aware**: Understands project structure and patterns
29
+ - **Risk Assessment**: Prioritizes improvements by impact and effort
30
+
31
+ ### 🎦 Analysis Categories
32
+
33
+ #### Security Analysis
34
+ - Dependency vulnerability scanning
35
+ - Code security pattern detection
36
+ - Authentication/authorization review
37
+ - Input validation and sanitization
38
+
39
+ #### Performance Analysis
40
+ - Bundle size optimization opportunities
41
+ - Database query optimization
42
+ - Caching strategy improvements
43
+ - Resource usage patterns
44
+
45
+ #### Code Quality Analysis
46
+ - Design pattern recommendations
47
+ - Refactoring opportunities
48
+ - Documentation gaps
49
+ - Type safety improvements
50
+
51
+ #### Testing Analysis
52
+ - Coverage gap identification
53
+ - Missing test scenarios
54
+ - Test quality assessment
55
+ - E2E testing opportunities
56
+
57
+ ## Sample Output
58
+
59
+ ```markdown
60
+ ## 🚨 High Priority (Security)
61
+ 1. **Update lodash dependency** - CVE-2021-23337 (Risk: High)
62
+ Command: `npm update lodash@^4.17.21`
63
+
64
+ 2. **Add input validation** - Missing sanitization in user routes
65
+ Files: `src/routes/user.js`
66
+
67
+ ## 🚀 Medium Priority (Performance)
68
+ 1. **Implement code splitting** - Bundle size: 2.3MB
69
+ Framework: React with dynamic imports
70
+
71
+ 2. **Add Redis caching** - Database queries: 150ms avg
72
+ Impact: 60% performance improvement
73
+
74
+ ## 🛠️ Low Priority (Maintenance)
75
+ 1. **Add TypeScript** - 89% of codebase would benefit
76
+ 2. **Update documentation** - API docs outdated
77
+ ```
78
+
79
+ ## Educational Focus
80
+
81
+ Every recommendation includes:
82
+ - **Why**: Explanation of the problem/opportunity
83
+ - **Impact**: Expected improvement metrics
84
+ - **How**: Specific implementation steps
85
+ - **Resources**: Links to best practices and tutorials
86
+
87
+ ## Framework-Specific Recommendations
88
+
89
+ - **Rust**: Clippy suggestions, unsafe code review, performance optimization
90
+ - **JavaScript/Node.js**: NPM audit, bundle analysis, async/await patterns
91
+ - **TypeScript**: Type coverage, strict mode opportunities
92
+ - **Python**: Virtual environment setup, type hints, security scanning
93
+ - **React**: Component optimization, state management, accessibility
94
+
95
+ Get actionable, prioritized recommendations to improve your project's security, performance, and maintainability.
@@ -0,0 +1,147 @@
1
+ ---
2
+ description: "Contextual code templates based on detected project patterns and frameworks"
3
+ argument-hint: "[<component-type>|--list|--search=<pattern>|--category=<type>]"
4
+ allowed-tools: ["Read", "Write", "Bash", "Glob", "Grep", "mcp__claude-flow__language_detect", "mcp__claude-flow__framework_detect", "mcp__claude-flow__memory_usage", "mcp__shadcn_mcp__generate_component"]
5
+ ---
6
+
7
+ # Contextual Code Templates
8
+
9
+ Generate relevant code templates based on your project's detected frameworks, patterns, and current context.
10
+
11
+ **Template Type**: $ARGUMENTS
12
+
13
+ ## Template Options
14
+
15
+ - `--list` - Show all available templates for detected framework
16
+ - `--search=<pattern>` - Search templates by keyword or pattern
17
+ - `--category=<type>` - Filter by category (component, service, test, config)
18
+ - `<component-type>` - Generate specific component (e.g., "api-route", "react-component")
19
+
20
+ ## What This Command Does
21
+
22
+ ### 🎯 Smart Template Selection
23
+ - **Framework Detection**: Automatically detects React, Express, FastAPI, Axum, etc.
24
+ - **Pattern Recognition**: Analyzes existing code patterns and conventions
25
+ - **Context-Aware**: Suggests templates relevant to current file/directory
26
+ - **Best Practices**: Templates follow industry standards and conventions
27
+
28
+ ### 📋 Template Categories
29
+
30
+ #### Frontend Templates
31
+ - **React Components**: Functional components, hooks, context providers
32
+ - **Vue Components**: Composition API, reactive patterns
33
+ - **Angular Components**: Services, modules, guards
34
+ - **Styling**: CSS modules, styled-components, Tailwind patterns
35
+
36
+ #### Backend Templates
37
+ - **REST APIs**: Express routes, FastAPI endpoints, Axum handlers
38
+ - **Database**: Models, migrations, queries, repositories
39
+ - **Authentication**: JWT middleware, OAuth flows, session management
40
+ - **Testing**: Unit tests, integration tests, mocks
41
+
42
+ #### Configuration Templates
43
+ - **Build Tools**: Webpack, Vite, Rollup configurations
44
+ - **CI/CD**: GitHub Actions, Docker, deployment scripts
45
+ - **Environment**: .env templates, config management
46
+ - **Documentation**: README patterns, API docs, changelogs
47
+
48
+ ## Framework-Specific Examples
49
+
50
+ ### React Project Detected
51
+ ```bash
52
+ # Available templates:
53
+ /suggest-templates --list
54
+ # Output: react-component, react-hook, context-provider, test-component
55
+
56
+ # Generate a React component
57
+ /suggest-templates react-component
58
+ # Creates: functional component with TypeScript, props interface, styling
59
+ ```
60
+
61
+ ### Express.js Project Detected
62
+ ```bash
63
+ # Generate API route template
64
+ /suggest-templates api-route
65
+ # Creates: Express route with validation, error handling, documentation
66
+
67
+ # Generate middleware template
68
+ /suggest-templates middleware
69
+ # Creates: Express middleware with proper error handling and logging
70
+ ```
71
+
72
+ ### Rust Project Detected
73
+ ```bash
74
+ # Generate Axum handler
75
+ /suggest-templates axum-handler
76
+ # Creates: Async handler with proper error handling and serialization
77
+
78
+ # Generate test module
79
+ /suggest-templates rust-test
80
+ # Creates: Test module with common test patterns and mocks
81
+ ```
82
+
83
+ ## Template Features
84
+
85
+ ### 🛠️ Smart Generation
86
+ - **Project Conventions**: Follows your existing naming and structure patterns
87
+ - **Dependency Integration**: Uses libraries already in your project
88
+ - **Type Safety**: Generates TypeScript/Rust types when applicable
89
+ - **Error Handling**: Includes proper error handling patterns
90
+
91
+ ### 📚 Educational Comments
92
+ - **Best Practice Explanations**: Comments explain why patterns are used
93
+ - **Common Pitfalls**: Warnings about potential issues
94
+ - **Extension Points**: Suggestions for how to extend the template
95
+ - **Performance Tips**: Optimization recommendations
96
+
97
+ ### 🔄 Template Customization
98
+ - **Variable Substitution**: Replaces placeholders with project-specific values
99
+ - **Conditional Sections**: Includes/excludes code based on project setup
100
+ - **Style Matching**: Matches your existing code style (spaces/tabs, naming)
101
+
102
+ ## Sample Template Output
103
+
104
+ ```typescript
105
+ // React Functional Component Template
106
+ import React, { useState, useEffect } from 'react';
107
+ import styles from './MyComponent.module.css';
108
+
109
+ interface MyComponentProps {
110
+ // TODO: Define your props here
111
+ title?: string;
112
+ }
113
+
114
+ /**
115
+ * MyComponent - Brief description
116
+ *
117
+ * Best Practices:
118
+ * - Use functional components with hooks
119
+ * - Keep components small and focused
120
+ * - Extract custom hooks for complex logic
121
+ */
122
+ const MyComponent: React.FC<MyComponentProps> = ({ title = 'Default Title' }) => {
123
+ const [isLoading, setIsLoading] = useState(false);
124
+
125
+ useEffect(() => {
126
+ // TODO: Add your effect logic here
127
+ }, []);
128
+
129
+ return (
130
+ <div className={styles.container}>
131
+ <h2>{title}</h2>
132
+ {/* TODO: Add your component content */}
133
+ </div>
134
+ );
135
+ };
136
+
137
+ export default MyComponent;
138
+ ```
139
+
140
+ ## Integration with Tools
141
+
142
+ - **shadcn/ui Integration**: Generate beautiful UI components when shadcn is detected
143
+ - **Testing Framework**: Include appropriate test templates (Jest, Vitest, pytest)
144
+ - **Documentation**: Generate component documentation and usage examples
145
+ - **Storybook**: Include Storybook stories when detected
146
+
147
+ Get contextual, educational code templates that follow your project's patterns and best practices.
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: "AI swarm management and coordination"
3
+ argument-hint: "<action> [parameters]"
4
+ allowed-tools: ["mcp__claude-flow-novice__swarm_init", "mcp__claude-flow-novice__agent_spawn", "mcp__claude-flow-novice__task_orchestrate"]
5
+ ---
6
+
7
+ # AI Swarm Management
8
+
9
+ Execute AI swarm coordination and management tasks.
10
+
11
+ **Command**: $ARGUMENTS
12
+
13
+ **Available Actions**:
14
+ - `init <topology> <count>` - Initialize swarm (mesh, hierarchical, ring, star)
15
+ - `status` - Show swarm status and health
16
+ - `spawn <type>` - Create specialized agent (researcher, coder, analyst, etc.)
17
+ - `orchestrate "<task>"` - Coordinate task across swarm
18
+ - `scale <count>` - Scale swarm to specified agent count
19
+ - `destroy` - Gracefully shutdown swarm
20
+
21
+ **Swarm Coordination**:
22
+ Use the claude-flow-novice MCP tools to coordinate AI agent swarms for complex task execution. The swarm system supports multiple topologies and can auto-scale based on workload.
23
+
24
+ Execute the requested swarm action and provide status updates on coordination progress.