moflo 4.9.20 → 4.9.21

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 (82) hide show
  1. package/.claude/commands/{simplify.md → flo-simplify.md} +4 -4
  2. package/.claude/guidance/shipped/moflo-agent-rules.md +172 -0
  3. package/.claude/guidance/shipped/moflo-claude-swarm-cohesion.md +73 -265
  4. package/.claude/guidance/shipped/moflo-cli-reference.md +6 -6
  5. package/.claude/guidance/shipped/moflo-core-guidance.md +66 -184
  6. package/.claude/guidance/shipped/moflo-cross-platform.md +1 -1
  7. package/.claude/guidance/shipped/moflo-error-handling.md +3 -3
  8. package/.claude/guidance/shipped/moflo-guidance-rules.md +17 -7
  9. package/.claude/guidance/shipped/moflo-memory-strategy.md +76 -182
  10. package/.claude/guidance/shipped/moflo-memorydb-maintenance.md +6 -8
  11. package/.claude/guidance/shipped/moflo-settings-injection.md +7 -9
  12. package/.claude/guidance/shipped/moflo-source-hygiene.md +5 -5
  13. package/.claude/guidance/shipped/moflo-spell-connectors.md +3 -4
  14. package/.claude/guidance/shipped/moflo-spell-custom-steps.md +3 -4
  15. package/.claude/guidance/shipped/moflo-spell-engine.md +40 -162
  16. package/.claude/guidance/shipped/moflo-spell-runner.md +134 -0
  17. package/.claude/guidance/shipped/moflo-spell-sandboxing.md +10 -57
  18. package/.claude/guidance/shipped/moflo-spell-troubleshooting.md +149 -0
  19. package/.claude/guidance/shipped/moflo-subagents.md +43 -114
  20. package/.claude/guidance/shipped/moflo-task-icons.md +4 -4
  21. package/.claude/guidance/shipped/moflo-user-facing-language.md +3 -3
  22. package/.claude/guidance/shipped/moflo-verbose-command-filtering.md +3 -3
  23. package/.claude/guidance/shipped/moflo-yaml-reference.md +4 -5
  24. package/.claude/helpers/gate.cjs +124 -14
  25. package/.claude/helpers/prompt-hook.mjs +4 -38
  26. package/.claude/helpers/simplify-classify.cjs +32 -11
  27. package/.claude/helpers/subagent-bootstrap.json +1 -1
  28. package/.claude/helpers/subagent-start.cjs +1 -1
  29. package/.claude/skills/connector-builder/SKILL.md +42 -429
  30. package/.claude/skills/connector-builder/templates/connector.md +189 -0
  31. package/.claude/skills/connector-builder/templates/step-command.md +176 -0
  32. package/.claude/skills/eldar/SKILL.md +7 -7
  33. package/.claude/skills/fl/SKILL.md +3 -3
  34. package/.claude/skills/fl/execution-modes.md +3 -3
  35. package/.claude/skills/fl/phases.md +3 -3
  36. package/.claude/skills/{simplify → flo-simplify}/SKILL.md +11 -11
  37. package/.claude/skills/guidance/SKILL.md +17 -9
  38. package/.claude/skills/memory-patterns/SKILL.md +1 -1
  39. package/.claude/skills/publish/SKILL.md +121 -36
  40. package/.claude/skills/reset-epic/SKILL.md +2 -2
  41. package/.claude/skills/spell-builder/SKILL.md +39 -226
  42. package/.claude/skills/spell-builder/architecture.md +1 -1
  43. package/.claude/skills/spell-builder/permissions.md +107 -0
  44. package/.claude/skills/spell-builder/preflight.md +101 -0
  45. package/.claude/skills/spell-schedule/SKILL.md +2 -3
  46. package/bin/gate.cjs +124 -14
  47. package/bin/prompt-hook.mjs +4 -38
  48. package/bin/session-start-launcher.mjs +19 -1
  49. package/bin/setup-project.mjs +63 -69
  50. package/bin/simplify-classify.cjs +32 -11
  51. package/dist/src/cli/commands/doctor-checks-deep.js +4 -0
  52. package/dist/src/cli/init/claudemd-generator.js +30 -33
  53. package/dist/src/cli/init/executor.js +28 -16
  54. package/dist/src/cli/init/helpers-generator.js +101 -51
  55. package/dist/src/cli/init/moflo-init.js +41 -114
  56. package/dist/src/cli/init/settings-generator.js +32 -14
  57. package/dist/src/cli/services/hook-block-hash.js +7 -2
  58. package/dist/src/cli/services/hook-wiring.js +86 -3
  59. package/dist/src/cli/services/subagent-bootstrap.js +1 -1
  60. package/dist/src/cli/version.js +1 -1
  61. package/package.json +2 -2
  62. package/scripts/post-install-bootstrap.mjs +19 -0
  63. package/.claude/guidance/shipped/moflo-session-start.md +0 -154
  64. package/.claude/guidance/shipped/moflo-spell-engine-architecture.md +0 -145
  65. package/.claude/skills/browser/SKILL.md +0 -204
  66. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  67. package/.claude/skills/github-multi-repo/SKILL.md +0 -866
  68. package/.claude/skills/github-project-management/SKILL.md +0 -1272
  69. package/.claude/skills/github-release-management/SKILL.md +0 -1074
  70. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1060
  71. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  72. package/.claude/skills/hooks-automation/SKILL.md +0 -1193
  73. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  74. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  75. package/.claude/skills/skill-builder/SKILL.md +0 -910
  76. package/.claude/skills/sparc-methodology/SKILL.md +0 -904
  77. package/.claude/skills/stream-chain/SKILL.md +0 -563
  78. package/.claude/skills/swarm-advanced/SKILL.md +0 -811
  79. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  80. package/.claude/skills/verification-quality/SKILL.md +0 -649
  81. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  82. package/.claude/skills/worker-integration/skill.md +0 -154
@@ -1,179 +0,0 @@
1
- ---
2
- name: "swarm-orchestration"
3
- description: "Orchestrate multi-agent swarms with agentic-flow for parallel task execution, dynamic topology, and intelligent coordination. Use when scaling beyond single agents, implementing complex workflows, or building distributed AI systems."
4
- ---
5
-
6
- # Swarm Orchestration
7
-
8
- ## What This Skill Does
9
-
10
- Orchestrates multi-agent swarms using agentic-flow's advanced coordination system. Supports mesh, hierarchical, and adaptive topologies with automatic task distribution, load balancing, and fault tolerance.
11
-
12
- ## Prerequisites
13
-
14
- - agentic-flow v1.5.11+
15
- - Node.js 18+
16
- - Understanding of distributed systems (helpful)
17
-
18
- ## Quick Start
19
-
20
- ```bash
21
- # Initialize swarm
22
- npx agentic-flow hooks swarm-init --topology mesh --max-agents 5
23
-
24
- # Spawn agents
25
- npx agentic-flow hooks agent-spawn --type coder
26
- npx agentic-flow hooks agent-spawn --type tester
27
- npx agentic-flow hooks agent-spawn --type reviewer
28
-
29
- # Orchestrate task
30
- npx agentic-flow hooks task-orchestrate \
31
- --task "Build REST API with tests" \
32
- --mode parallel
33
- ```
34
-
35
- ## Topology Patterns
36
-
37
- ### 1. Mesh (Peer-to-Peer)
38
- ```typescript
39
- // Equal peers, distributed decision-making
40
- await swarm.init({
41
- topology: 'mesh',
42
- agents: ['coder', 'tester', 'reviewer'],
43
- communication: 'broadcast'
44
- });
45
- ```
46
-
47
- ### 2. Hierarchical (Queen-Worker)
48
- ```typescript
49
- // Centralized coordination, specialized workers
50
- await swarm.init({
51
- topology: 'hierarchical',
52
- queen: 'architect',
53
- workers: ['backend-dev', 'frontend-dev', 'db-designer']
54
- });
55
- ```
56
-
57
- ### 3. Adaptive (Dynamic)
58
- ```typescript
59
- // Automatically switches topology based on task
60
- await swarm.init({
61
- topology: 'adaptive',
62
- optimization: 'task-complexity'
63
- });
64
- ```
65
-
66
- ## Task Orchestration
67
-
68
- ### Parallel Execution
69
- ```typescript
70
- // Execute tasks concurrently
71
- const results = await swarm.execute({
72
- tasks: [
73
- { agent: 'coder', task: 'Implement API endpoints' },
74
- { agent: 'frontend', task: 'Build UI components' },
75
- { agent: 'tester', task: 'Write test suite' }
76
- ],
77
- mode: 'parallel',
78
- timeout: 300000 // 5 minutes
79
- });
80
- ```
81
-
82
- ### Pipeline Execution
83
- ```typescript
84
- // Sequential pipeline with dependencies
85
- await swarm.pipeline([
86
- { stage: 'design', agent: 'architect' },
87
- { stage: 'implement', agent: 'coder', after: 'design' },
88
- { stage: 'test', agent: 'tester', after: 'implement' },
89
- { stage: 'review', agent: 'reviewer', after: 'test' }
90
- ]);
91
- ```
92
-
93
- ### Adaptive Execution
94
- ```typescript
95
- // Let swarm decide execution strategy
96
- await swarm.autoOrchestrate({
97
- goal: 'Build production-ready API',
98
- constraints: {
99
- maxTime: 3600,
100
- maxAgents: 8,
101
- quality: 'high'
102
- }
103
- });
104
- ```
105
-
106
- ## Memory Coordination
107
-
108
- ```typescript
109
- // Share state across swarm
110
- await swarm.memory.store('api-schema', {
111
- endpoints: [...],
112
- models: [...]
113
- });
114
-
115
- // Agents read shared memory
116
- const schema = await swarm.memory.retrieve('api-schema');
117
- ```
118
-
119
- ## Advanced Features
120
-
121
- ### Load Balancing
122
- ```typescript
123
- // Automatic work distribution
124
- await swarm.enableLoadBalancing({
125
- strategy: 'dynamic',
126
- metrics: ['cpu', 'memory', 'task-queue']
127
- });
128
- ```
129
-
130
- ### Fault Tolerance
131
- ```typescript
132
- // Handle agent failures
133
- await swarm.setResiliency({
134
- retry: { maxAttempts: 3, backoff: 'exponential' },
135
- fallback: 'reassign-task'
136
- });
137
- ```
138
-
139
- ### Performance Monitoring
140
- ```typescript
141
- // Track swarm metrics
142
- const metrics = await swarm.getMetrics();
143
- // { throughput, latency, success_rate, agent_utilization }
144
- ```
145
-
146
- ## Integration with Hooks
147
-
148
- ```bash
149
- # Pre-task coordination
150
- npx agentic-flow hooks pre-task --description "Build API"
151
-
152
- # Post-task synchronization
153
- npx agentic-flow hooks post-task --task-id "task-123"
154
-
155
- # Session restore
156
- npx agentic-flow hooks session-restore --session-id "swarm-001"
157
- ```
158
-
159
- ## Best Practices
160
-
161
- 1. **Start small**: Begin with 2-3 agents, scale up
162
- 2. **Use memory**: Share context through swarm memory
163
- 3. **Monitor metrics**: Track performance and bottlenecks
164
- 4. **Enable hooks**: Automatic coordination and sync
165
- 5. **Set timeouts**: Prevent hung tasks
166
-
167
- ## Troubleshooting
168
-
169
- ### Issue: Agents not coordinating
170
- **Solution**: Verify memory access and enable hooks
171
-
172
- ### Issue: Poor performance
173
- **Solution**: Check topology (use adaptive) and enable load balancing
174
-
175
- ## Learn More
176
-
177
- - Swarm Guide: docs/swarm/orchestration.md
178
- - Topology Patterns: docs/swarm/topologies.md
179
- - Hooks Integration: docs/hooks/coordination.md