claude-flow-novice 2.10.9 → 2.11.0
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/commands/README.md +157 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
- package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
- package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -21
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +312 -0
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +480 -115
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
- package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
- package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
- package/dist/cli/config-manager.js +109 -91
- package/dist/cli/config-manager.js.map +1 -1
- package/package.json +3 -2
- package/scripts/init-project.js +38 -3
- package/claude-assets/commands/agents/README.md +0 -10
- package/claude-assets/commands/agents/agent-capabilities.md +0 -21
- package/claude-assets/commands/agents/agent-coordination.md +0 -28
- package/claude-assets/commands/agents/agent-spawning.md +0 -28
- package/claude-assets/commands/agents/agent-types.md +0 -26
- package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/claude-assets/commands/analysis/README.md +0 -9
- package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
- package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
- package/claude-assets/commands/analysis/performance-report.md +0 -25
- package/claude-assets/commands/analysis/token-efficiency.md +0 -45
- package/claude-assets/commands/analysis/token-usage.md +0 -25
- package/claude-assets/commands/automation/README.md +0 -9
- package/claude-assets/commands/automation/auto-agent.md +0 -122
- package/claude-assets/commands/automation/self-healing.md +0 -106
- package/claude-assets/commands/automation/session-memory.md +0 -90
- package/claude-assets/commands/automation/smart-agents.md +0 -73
- package/claude-assets/commands/automation/smart-spawn.md +0 -25
- package/claude-assets/commands/automation/workflow-select.md +0 -25
- package/claude-assets/commands/claude-md.js +0 -237
- package/claude-assets/commands/claude-soul.js +0 -28
- package/claude-assets/commands/cli-integration.js +0 -216
- package/claude-assets/commands/coordination/README.md +0 -9
- package/claude-assets/commands/coordination/agent-spawn.md +0 -25
- package/claude-assets/commands/coordination/coordination-system.md +0 -88
- package/claude-assets/commands/coordination/init.md +0 -44
- package/claude-assets/commands/coordination/orchestrate.md +0 -43
- package/claude-assets/commands/coordination/spawn.md +0 -45
- package/claude-assets/commands/coordination/swarm-init.md +0 -85
- package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
- package/claude-assets/commands/github/README.md +0 -11
- package/claude-assets/commands/github/code-review-swarm.md +0 -514
- package/claude-assets/commands/github/code-review.md +0 -25
- package/claude-assets/commands/github/github-modes.md +0 -147
- package/claude-assets/commands/github/github-swarm.md +0 -121
- package/claude-assets/commands/github/issue-tracker.md +0 -292
- package/claude-assets/commands/github/issue-triage.md +0 -25
- package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
- package/claude-assets/commands/github/pr-enhance.md +0 -26
- package/claude-assets/commands/github/pr-manager.md +0 -170
- package/claude-assets/commands/github/project-board-sync.md +0 -471
- package/claude-assets/commands/github/release-manager.md +0 -338
- package/claude-assets/commands/github/release-swarm.md +0 -544
- package/claude-assets/commands/github/repo-analyze.md +0 -25
- package/claude-assets/commands/github/repo-architect.md +0 -367
- package/claude-assets/commands/github/swarm-issue.md +0 -482
- package/claude-assets/commands/github/swarm-pr.md +0 -285
- package/claude-assets/commands/github/sync-coordinator.md +0 -301
- package/claude-assets/commands/github/workflow-automation.md +0 -442
- package/claude-assets/commands/github.js +0 -638
- package/claude-assets/commands/hive-mind/README.md +0 -17
- package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
- package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
- package/claude-assets/commands/hooks/README.md +0 -11
- package/claude-assets/commands/hooks/overview.md +0 -58
- package/claude-assets/commands/hooks/post-edit.md +0 -117
- package/claude-assets/commands/hooks/post-task.md +0 -112
- package/claude-assets/commands/hooks/pre-edit.md +0 -113
- package/claude-assets/commands/hooks/pre-task.md +0 -111
- package/claude-assets/commands/hooks/session-end.md +0 -118
- package/claude-assets/commands/hooks/session-start.md +0 -9
- package/claude-assets/commands/hooks/setup.md +0 -103
- package/claude-assets/commands/hooks.js +0 -651
- package/claude-assets/commands/index.js +0 -119
- package/claude-assets/commands/memory/README.md +0 -9
- package/claude-assets/commands/memory/memory-bank.md +0 -58
- package/claude-assets/commands/memory/memory-persist.md +0 -25
- package/claude-assets/commands/memory/memory-search.md +0 -25
- package/claude-assets/commands/memory/memory-usage.md +0 -25
- package/claude-assets/commands/memory/neural.md +0 -47
- package/claude-assets/commands/memory/usage.md +0 -46
- package/claude-assets/commands/monitoring/README.md +0 -9
- package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
- package/claude-assets/commands/monitoring/agents.md +0 -44
- package/claude-assets/commands/monitoring/real-time-view.md +0 -25
- package/claude-assets/commands/monitoring/status.md +0 -46
- package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
- package/claude-assets/commands/neural.js +0 -572
- package/claude-assets/commands/optimization/README.md +0 -9
- package/claude-assets/commands/optimization/auto-topology.md +0 -62
- package/claude-assets/commands/optimization/cache-manage.md +0 -25
- package/claude-assets/commands/optimization/parallel-execute.md +0 -25
- package/claude-assets/commands/optimization/parallel-execution.md +0 -50
- package/claude-assets/commands/optimization/topology-optimize.md +0 -25
- package/claude-assets/commands/pair/README.md +0 -261
- package/claude-assets/commands/pair/commands.md +0 -546
- package/claude-assets/commands/pair/config.md +0 -510
- package/claude-assets/commands/pair/examples.md +0 -512
- package/claude-assets/commands/pair/modes.md +0 -348
- package/claude-assets/commands/pair/session.md +0 -407
- package/claude-assets/commands/pair/start.md +0 -209
- package/claude-assets/commands/parse-epic.js +0 -180
- package/claude-assets/commands/performance.js +0 -582
- package/claude-assets/commands/register-all-commands.js +0 -320
- package/claude-assets/commands/register-claude-md.js +0 -82
- package/claude-assets/commands/register-claude-soul.js +0 -80
- package/claude-assets/commands/sparc/analyzer.md +0 -52
- package/claude-assets/commands/sparc/architect.md +0 -53
- package/claude-assets/commands/sparc/batch-executor.md +0 -54
- package/claude-assets/commands/sparc/coder.md +0 -54
- package/claude-assets/commands/sparc/debugger.md +0 -54
- package/claude-assets/commands/sparc/designer.md +0 -53
- package/claude-assets/commands/sparc/documenter.md +0 -54
- package/claude-assets/commands/sparc/innovator.md +0 -54
- package/claude-assets/commands/sparc/memory-manager.md +0 -54
- package/claude-assets/commands/sparc/optimizer.md +0 -54
- package/claude-assets/commands/sparc/orchestrator.md +0 -132
- package/claude-assets/commands/sparc/researcher.md +0 -54
- package/claude-assets/commands/sparc/reviewer.md +0 -54
- package/claude-assets/commands/sparc/sparc-modes.md +0 -174
- package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
- package/claude-assets/commands/sparc/tdd.md +0 -54
- package/claude-assets/commands/sparc/tester.md +0 -54
- package/claude-assets/commands/sparc/workflow-manager.md +0 -54
- package/claude-assets/commands/sparc.js +0 -110
- package/claude-assets/commands/stream-chain/pipeline.md +0 -121
- package/claude-assets/commands/stream-chain/run.md +0 -70
- package/claude-assets/commands/swarm/README.md +0 -15
- package/claude-assets/commands/swarm/analysis.md +0 -95
- package/claude-assets/commands/swarm/development.md +0 -96
- package/claude-assets/commands/swarm/examples.md +0 -168
- package/claude-assets/commands/swarm/maintenance.md +0 -102
- package/claude-assets/commands/swarm/optimization.md +0 -117
- package/claude-assets/commands/swarm/research.md +0 -136
- package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
- package/claude-assets/commands/swarm/swarm-background.md +0 -8
- package/claude-assets/commands/swarm/swarm-init.md +0 -19
- package/claude-assets/commands/swarm/swarm-modes.md +0 -8
- package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
- package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
- package/claude-assets/commands/swarm/swarm-status.md +0 -8
- package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
- package/claude-assets/commands/swarm/swarm.md +0 -27
- package/claude-assets/commands/swarm/testing.md +0 -131
- package/claude-assets/commands/swarm.js +0 -423
- package/claude-assets/commands/testing/playwright-e2e.md +0 -288
- package/claude-assets/commands/training/README.md +0 -9
- package/claude-assets/commands/training/model-update.md +0 -25
- package/claude-assets/commands/training/neural-patterns.md +0 -74
- package/claude-assets/commands/training/neural-train.md +0 -25
- package/claude-assets/commands/training/pattern-learn.md +0 -25
- package/claude-assets/commands/training/specialization.md +0 -63
- package/claude-assets/commands/truth/start.md +0 -143
- package/claude-assets/commands/validate-commands.js +0 -223
- package/claude-assets/commands/verify/check.md +0 -50
- package/claude-assets/commands/verify/start.md +0 -128
- package/claude-assets/commands/workflow.js +0 -606
- package/claude-assets/commands/workflows/README.md +0 -9
- package/claude-assets/commands/workflows/development.md +0 -78
- package/claude-assets/commands/workflows/research.md +0 -63
- package/claude-assets/commands/workflows/workflow-create.md +0 -25
- package/claude-assets/commands/workflows/workflow-execute.md +0 -25
- package/claude-assets/commands/workflows/workflow-export.md +0 -25
- package/claude-assets/hooks/post-edit.config.json +0 -23
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# hive-mind-spawn
|
|
2
|
-
|
|
3
|
-
Spawn a Hive Mind swarm with queen-led coordination.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
```bash
|
|
7
|
-
npx claude-flow-novice hive-mind spawn <objective> [options]
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Options
|
|
11
|
-
- `--queen-type <type>` - Queen type (strategic, tactical, adaptive)
|
|
12
|
-
- `--max-workers <n>` - Maximum worker agents
|
|
13
|
-
- `--consensus <type>` - Consensus algorithm
|
|
14
|
-
- `--claude` - Generate Claude Code spawn commands
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
```bash
|
|
18
|
-
npx claude-flow-novice hive-mind spawn "Build API"
|
|
19
|
-
npx claude-flow-novice hive-mind spawn "Research patterns" --queen-type adaptive
|
|
20
|
-
npx claude-flow-novice hive-mind spawn "Build service" --claude
|
|
21
|
-
```
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# hive-mind
|
|
2
|
-
|
|
3
|
-
Hive Mind collective intelligence system for advanced swarm coordination.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
```bash
|
|
7
|
-
npx claude-flow-novice hive-mind [subcommand] [options]
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Subcommands
|
|
11
|
-
- `init` - Initialize hive mind system
|
|
12
|
-
- `spawn` - Spawn hive mind swarm
|
|
13
|
-
- `status` - Show hive mind status
|
|
14
|
-
- `resume` - Resume paused session
|
|
15
|
-
- `stop` - Stop running session
|
|
16
|
-
|
|
17
|
-
## Examples
|
|
18
|
-
```bash
|
|
19
|
-
# Initialize hive mind
|
|
20
|
-
npx claude-flow-novice hive-mind init
|
|
21
|
-
|
|
22
|
-
# Spawn swarm
|
|
23
|
-
npx claude-flow-novice hive-mind spawn "Build microservices"
|
|
24
|
-
|
|
25
|
-
# Check status
|
|
26
|
-
npx claude-flow-novice hive-mind status
|
|
27
|
-
```
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Claude Code Hooks for claude-flow
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Automatically coordinate, format, and learn from Claude Code operations using hooks.
|
|
5
|
-
|
|
6
|
-
## Available Hooks
|
|
7
|
-
|
|
8
|
-
### Pre-Operation Hooks
|
|
9
|
-
- **pre-edit**: Validate and assign agents before file modifications
|
|
10
|
-
- **pre-bash**: Check command safety and resource requirements
|
|
11
|
-
- **pre-task**: Auto-spawn agents for complex tasks
|
|
12
|
-
|
|
13
|
-
### Post-Operation Hooks
|
|
14
|
-
- **post-edit**: Auto-format code and train neural patterns
|
|
15
|
-
- **post-bash**: Log execution and update metrics
|
|
16
|
-
- **post-search**: Cache results and improve search patterns
|
|
17
|
-
|
|
18
|
-
### MCP Integration Hooks
|
|
19
|
-
- **mcp-initialized**: Persist swarm configuration
|
|
20
|
-
- **agent-spawned**: Update agent roster
|
|
21
|
-
- **task-orchestrated**: Monitor task progress
|
|
22
|
-
- **neural-trained**: Save pattern improvements
|
|
23
|
-
|
|
24
|
-
### Session Hooks
|
|
25
|
-
- **notify**: Custom notifications with swarm status
|
|
26
|
-
- **session-end**: Generate summary and save state
|
|
27
|
-
- **session-restore**: Load previous session state
|
|
28
|
-
|
|
29
|
-
## Configuration
|
|
30
|
-
Hooks are configured in `.claude/settings.json`:
|
|
31
|
-
|
|
32
|
-
```json
|
|
33
|
-
{
|
|
34
|
-
"hooks": {
|
|
35
|
-
"PreToolUse": [
|
|
36
|
-
{
|
|
37
|
-
"matcher": "^(Write|Edit|MultiEdit)$",
|
|
38
|
-
"hooks": [{
|
|
39
|
-
"type": "command",
|
|
40
|
-
"command": "npx claude-flow-novice hook pre-edit --file '${tool.params.file_path}'"
|
|
41
|
-
}]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Benefits
|
|
49
|
-
- 🤖 Automatic agent assignment based on file type
|
|
50
|
-
- 🎨 Consistent code formatting
|
|
51
|
-
- 🧠 Continuous neural pattern improvement
|
|
52
|
-
- 💾 Cross-session memory persistence
|
|
53
|
-
- 📊 Performance metrics tracking
|
|
54
|
-
|
|
55
|
-
## See Also
|
|
56
|
-
- [Pre-Edit Hook](./pre-edit.md)
|
|
57
|
-
- [Post-Edit Hook](./post-edit.md)
|
|
58
|
-
- [Session End Hook](./session-end.md)
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# hook post-edit
|
|
2
|
-
|
|
3
|
-
Execute post-edit processing including formatting, validation, and memory updates.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx claude-flow-novice hook post-edit [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Options
|
|
12
|
-
|
|
13
|
-
- `--file, -f <path>` - File path that was edited
|
|
14
|
-
- `--auto-format` - Automatically format code (default: true)
|
|
15
|
-
- `--memory-key, -m <key>` - Store edit context in memory
|
|
16
|
-
- `--train-patterns` - Train neural patterns from edit
|
|
17
|
-
- `--validate-output` - Validate edited file
|
|
18
|
-
|
|
19
|
-
## Examples
|
|
20
|
-
|
|
21
|
-
### Basic post-edit hook
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx claude-flow-novice hook post-edit --file "src/components/Button.jsx"
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### With memory storage
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npx claude-flow-novice hook post-edit -f "api/auth.js" --memory-key "auth/login-implementation"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Format and validate
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npx claude-flow-novice hook post-edit -f "config/webpack.js" --auto-format --validate-output
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Neural training
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npx claude-flow-novice hook post-edit -f "utils/helpers.ts" --train-patterns --memory-key "utils/refactor"
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Features
|
|
46
|
-
|
|
47
|
-
### Auto Formatting
|
|
48
|
-
|
|
49
|
-
- Language-specific formatters
|
|
50
|
-
- Prettier for JS/TS/JSON
|
|
51
|
-
- Black for Python
|
|
52
|
-
- gofmt for Go
|
|
53
|
-
- Maintains consistency
|
|
54
|
-
|
|
55
|
-
### Memory Storage
|
|
56
|
-
|
|
57
|
-
- Saves edit context
|
|
58
|
-
- Records decisions made
|
|
59
|
-
- Tracks implementation details
|
|
60
|
-
- Enables knowledge sharing
|
|
61
|
-
|
|
62
|
-
### Pattern Training
|
|
63
|
-
|
|
64
|
-
- Learns from successful edits
|
|
65
|
-
- Improves future suggestions
|
|
66
|
-
- Adapts to coding style
|
|
67
|
-
- Enhances coordination
|
|
68
|
-
|
|
69
|
-
### Output Validation
|
|
70
|
-
|
|
71
|
-
- Checks syntax correctness
|
|
72
|
-
- Runs linting rules
|
|
73
|
-
- Validates formatting
|
|
74
|
-
- Ensures quality
|
|
75
|
-
|
|
76
|
-
## Integration
|
|
77
|
-
|
|
78
|
-
This hook is automatically called by Claude Code when:
|
|
79
|
-
|
|
80
|
-
- After Edit tool completes
|
|
81
|
-
- Following MultiEdit operations
|
|
82
|
-
- During file saves
|
|
83
|
-
- After code generation
|
|
84
|
-
|
|
85
|
-
Manual usage in agents:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# After editing files
|
|
89
|
-
npx claude-flow-novice hook post-edit --file "path/to/edited.js" --memory-key "feature/step1"
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## Output
|
|
93
|
-
|
|
94
|
-
Returns JSON with:
|
|
95
|
-
|
|
96
|
-
```json
|
|
97
|
-
{
|
|
98
|
-
"file": "src/components/Button.jsx",
|
|
99
|
-
"formatted": true,
|
|
100
|
-
"formatterUsed": "prettier",
|
|
101
|
-
"lintPassed": true,
|
|
102
|
-
"memorySaved": "component/button-refactor",
|
|
103
|
-
"patternsTrained": 3,
|
|
104
|
-
"warnings": [],
|
|
105
|
-
"stats": {
|
|
106
|
-
"linesChanged": 45,
|
|
107
|
-
"charactersAdded": 234
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## See Also
|
|
113
|
-
|
|
114
|
-
- `hook pre-edit` - Pre-edit preparation
|
|
115
|
-
- `Edit` - File editing tool
|
|
116
|
-
- `memory usage` - Memory management
|
|
117
|
-
- `neural train` - Pattern training
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# hook post-task
|
|
2
|
-
|
|
3
|
-
Execute post-task cleanup, performance analysis, and memory storage.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx claude-flow-novice hook post-task [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Options
|
|
12
|
-
|
|
13
|
-
- `--task-id, -t <id>` - Task identifier for tracking
|
|
14
|
-
- `--analyze-performance` - Generate performance metrics (default: true)
|
|
15
|
-
- `--store-decisions` - Save task decisions to memory
|
|
16
|
-
- `--export-learnings` - Export neural pattern learnings
|
|
17
|
-
- `--generate-report` - Create task completion report
|
|
18
|
-
|
|
19
|
-
## Examples
|
|
20
|
-
|
|
21
|
-
### Basic post-task hook
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx claude-flow-novice hook post-task --task-id "auth-implementation"
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### With full analysis
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npx claude-flow-novice hook post-task -t "api-refactor" --analyze-performance --generate-report
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Memory storage
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npx claude-flow-novice hook post-task -t "bug-fix-123" --store-decisions --export-learnings
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Quick cleanup
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npx claude-flow-novice hook post-task -t "minor-update" --analyze-performance false
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Features
|
|
46
|
-
|
|
47
|
-
### Performance Analysis
|
|
48
|
-
|
|
49
|
-
- Measures execution time
|
|
50
|
-
- Tracks token usage
|
|
51
|
-
- Identifies bottlenecks
|
|
52
|
-
- Suggests optimizations
|
|
53
|
-
|
|
54
|
-
### Decision Storage
|
|
55
|
-
|
|
56
|
-
- Saves key decisions made
|
|
57
|
-
- Records implementation choices
|
|
58
|
-
- Stores error resolutions
|
|
59
|
-
- Maintains knowledge base
|
|
60
|
-
|
|
61
|
-
### Neural Learning
|
|
62
|
-
|
|
63
|
-
- Exports successful patterns
|
|
64
|
-
- Updates coordination models
|
|
65
|
-
- Improves future performance
|
|
66
|
-
- Trains on task outcomes
|
|
67
|
-
|
|
68
|
-
### Report Generation
|
|
69
|
-
|
|
70
|
-
- Creates completion summary
|
|
71
|
-
- Documents changes made
|
|
72
|
-
- Lists files modified
|
|
73
|
-
- Tracks metrics achieved
|
|
74
|
-
|
|
75
|
-
## Integration
|
|
76
|
-
|
|
77
|
-
This hook is automatically called by Claude Code when:
|
|
78
|
-
|
|
79
|
-
- Completing a task
|
|
80
|
-
- Switching to a new task
|
|
81
|
-
- Ending a work session
|
|
82
|
-
- After major milestones
|
|
83
|
-
|
|
84
|
-
Manual usage in agents:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# In agent coordination
|
|
88
|
-
npx claude-flow-novice hook post-task --task-id "your-task-id" --analyze-performance true
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Output
|
|
92
|
-
|
|
93
|
-
Returns JSON with:
|
|
94
|
-
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"taskId": "auth-implementation",
|
|
98
|
-
"duration": 1800000,
|
|
99
|
-
"tokensUsed": 45000,
|
|
100
|
-
"filesModified": 12,
|
|
101
|
-
"performanceScore": 0.92,
|
|
102
|
-
"learningsExported": true,
|
|
103
|
-
"reportPath": "/reports/task-auth-implementation.md"
|
|
104
|
-
}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
## See Also
|
|
108
|
-
|
|
109
|
-
- `hook pre-task` - Pre-task setup
|
|
110
|
-
- `performance report` - Detailed metrics
|
|
111
|
-
- `memory usage` - Memory management
|
|
112
|
-
- `neural patterns` - Pattern analysis
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# hook pre-edit
|
|
2
|
-
|
|
3
|
-
Execute pre-edit validations and agent assignment before file modifications.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx claude-flow-novice hook pre-edit [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Options
|
|
12
|
-
|
|
13
|
-
- `--file, -f <path>` - File path to be edited
|
|
14
|
-
- `--auto-assign-agent` - Automatically assign best agent (default: true)
|
|
15
|
-
- `--validate-syntax` - Pre-validate syntax before edit
|
|
16
|
-
- `--check-conflicts` - Check for merge conflicts
|
|
17
|
-
- `--backup-file` - Create backup before editing
|
|
18
|
-
|
|
19
|
-
## Examples
|
|
20
|
-
|
|
21
|
-
### Basic pre-edit hook
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx claude-flow-novice hook pre-edit --file "src/auth/login.js"
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### With validation
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npx claude-flow-novice hook pre-edit -f "config/database.js" --validate-syntax
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Manual agent assignment
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npx claude-flow-novice hook pre-edit -f "api/users.ts" --auto-assign-agent false
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Safe editing with backup
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npx claude-flow-novice hook pre-edit -f "production.env" --backup-file --check-conflicts
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Features
|
|
46
|
-
|
|
47
|
-
### Auto Agent Assignment
|
|
48
|
-
|
|
49
|
-
- Analyzes file type and content
|
|
50
|
-
- Assigns specialist agents
|
|
51
|
-
- TypeScript → TypeScript expert
|
|
52
|
-
- Database → Data specialist
|
|
53
|
-
- Tests → QA engineer
|
|
54
|
-
|
|
55
|
-
### Syntax Validation
|
|
56
|
-
|
|
57
|
-
- Pre-checks syntax validity
|
|
58
|
-
- Identifies potential errors
|
|
59
|
-
- Suggests corrections
|
|
60
|
-
- Prevents broken code
|
|
61
|
-
|
|
62
|
-
### Conflict Detection
|
|
63
|
-
|
|
64
|
-
- Checks for git conflicts
|
|
65
|
-
- Identifies concurrent edits
|
|
66
|
-
- Warns about stale files
|
|
67
|
-
- Suggests merge strategies
|
|
68
|
-
|
|
69
|
-
### File Backup
|
|
70
|
-
|
|
71
|
-
- Creates safety backups
|
|
72
|
-
- Enables quick rollback
|
|
73
|
-
- Tracks edit history
|
|
74
|
-
- Preserves originals
|
|
75
|
-
|
|
76
|
-
## Integration
|
|
77
|
-
|
|
78
|
-
This hook is automatically called by Claude Code when:
|
|
79
|
-
|
|
80
|
-
- Using Edit or MultiEdit tools
|
|
81
|
-
- Before file modifications
|
|
82
|
-
- During refactoring operations
|
|
83
|
-
- When updating critical files
|
|
84
|
-
|
|
85
|
-
Manual usage in agents:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# Before editing files
|
|
89
|
-
npx claude-flow-novice hook pre-edit --file "path/to/file.js" --validate-syntax
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## Output
|
|
93
|
-
|
|
94
|
-
Returns JSON with:
|
|
95
|
-
|
|
96
|
-
```json
|
|
97
|
-
{
|
|
98
|
-
"continue": true,
|
|
99
|
-
"file": "src/auth/login.js",
|
|
100
|
-
"assignedAgent": "auth-specialist",
|
|
101
|
-
"syntaxValid": true,
|
|
102
|
-
"conflicts": false,
|
|
103
|
-
"backupPath": ".backups/login.js.bak",
|
|
104
|
-
"warnings": []
|
|
105
|
-
}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## See Also
|
|
109
|
-
|
|
110
|
-
- `hook post-edit` - Post-edit processing
|
|
111
|
-
- `Edit` - File editing tool
|
|
112
|
-
- `MultiEdit` - Multiple edits tool
|
|
113
|
-
- `agent spawn` - Manual agent creation
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# hook pre-task
|
|
2
|
-
|
|
3
|
-
Execute pre-task preparations and context loading.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx claude-flow-novice hook pre-task [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Options
|
|
12
|
-
|
|
13
|
-
- `--description, -d <text>` - Task description for context
|
|
14
|
-
- `--auto-spawn-agents` - Automatically spawn required agents (default: true)
|
|
15
|
-
- `--load-memory` - Load relevant memory from previous sessions
|
|
16
|
-
- `--optimize-topology` - Select optimal swarm topology
|
|
17
|
-
- `--estimate-complexity` - Analyze task complexity
|
|
18
|
-
|
|
19
|
-
## Examples
|
|
20
|
-
|
|
21
|
-
### Basic pre-task hook
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx claude-flow-novice hook pre-task --description "Implement user authentication"
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### With memory loading
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npx claude-flow-novice hook pre-task -d "Continue API development" --load-memory
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Manual agent control
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npx claude-flow-novice hook pre-task -d "Debug issue #123" --auto-spawn-agents false
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Full optimization
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npx claude-flow-novice hook pre-task -d "Refactor codebase" --optimize-topology --estimate-complexity
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Features
|
|
46
|
-
|
|
47
|
-
### Auto Agent Assignment
|
|
48
|
-
|
|
49
|
-
- Analyzes task requirements
|
|
50
|
-
- Determines needed agent types
|
|
51
|
-
- Spawns agents automatically
|
|
52
|
-
- Configures agent parameters
|
|
53
|
-
|
|
54
|
-
### Memory Loading
|
|
55
|
-
|
|
56
|
-
- Retrieves relevant past decisions
|
|
57
|
-
- Loads previous task contexts
|
|
58
|
-
- Restores agent configurations
|
|
59
|
-
- Maintains continuity
|
|
60
|
-
|
|
61
|
-
### Topology Optimization
|
|
62
|
-
|
|
63
|
-
- Analyzes task structure
|
|
64
|
-
- Selects best swarm topology
|
|
65
|
-
- Configures communication patterns
|
|
66
|
-
- Optimizes for performance
|
|
67
|
-
|
|
68
|
-
### Complexity Estimation
|
|
69
|
-
|
|
70
|
-
- Evaluates task difficulty
|
|
71
|
-
- Estimates time requirements
|
|
72
|
-
- Suggests agent count
|
|
73
|
-
- Identifies dependencies
|
|
74
|
-
|
|
75
|
-
## Integration
|
|
76
|
-
|
|
77
|
-
This hook is automatically called by Claude Code when:
|
|
78
|
-
|
|
79
|
-
- Starting a new task
|
|
80
|
-
- Resuming work after a break
|
|
81
|
-
- Switching between projects
|
|
82
|
-
- Beginning complex operations
|
|
83
|
-
|
|
84
|
-
Manual usage in agents:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# In agent coordination
|
|
88
|
-
npx claude-flow-novice hook pre-task --description "Your task here"
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Output
|
|
92
|
-
|
|
93
|
-
Returns JSON with:
|
|
94
|
-
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"continue": true,
|
|
98
|
-
"topology": "hierarchical",
|
|
99
|
-
"agentsSpawned": 5,
|
|
100
|
-
"complexity": "medium",
|
|
101
|
-
"estimatedMinutes": 30,
|
|
102
|
-
"memoryLoaded": true
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## See Also
|
|
107
|
-
|
|
108
|
-
- `hook post-task` - Post-task cleanup
|
|
109
|
-
- `agent spawn` - Manual agent creation
|
|
110
|
-
- `memory usage` - Memory management
|
|
111
|
-
- `swarm init` - Swarm initialization
|