moflo 4.8.11 โ†’ 4.8.13

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 (142) hide show
  1. package/.claude/agents/browser/browser-agent.yaml +182 -0
  2. package/.claude/guidance/moflo-bootstrap.md +129 -0
  3. package/.claude/helpers/post-commit +16 -0
  4. package/.claude/helpers/pre-commit +26 -0
  5. package/.claude/settings.json +351 -290
  6. package/.claude/settings.local.json +2 -1
  7. package/.claude/skills/browser/SKILL.md +204 -0
  8. package/.claude/workflow-state.json +9 -0
  9. package/bin/index-guidance.mjs +1 -1
  10. package/bin/index-tests.mjs +1 -1
  11. package/bin/semantic-search.mjs +1 -1
  12. package/bin/setup-project.mjs +61 -64
  13. package/package.json +2 -4
  14. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +29 -24
  15. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.js +52 -472
  16. package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +30 -30
  17. package/src/@claude-flow/cli/dist/src/init/moflo-init.js +712 -717
  18. package/src/@claude-flow/cli/package.json +1 -1
  19. package/.claude/agents/MIGRATION_SUMMARY.md +0 -222
  20. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -179
  21. package/.claude/agents/development/backend/dev-backend-api.md +0 -142
  22. package/.claude/agents/flow-nexus/app-store.md +0 -88
  23. package/.claude/agents/flow-nexus/authentication.md +0 -69
  24. package/.claude/agents/flow-nexus/challenges.md +0 -81
  25. package/.claude/agents/flow-nexus/neural-network.md +0 -88
  26. package/.claude/agents/flow-nexus/payments.md +0 -83
  27. package/.claude/agents/flow-nexus/sandbox.md +0 -76
  28. package/.claude/agents/flow-nexus/swarm.md +0 -76
  29. package/.claude/agents/flow-nexus/user-tools.md +0 -96
  30. package/.claude/agents/flow-nexus/workflow.md +0 -84
  31. package/.claude/agents/payments/agentic-payments.md +0 -126
  32. package/.claude/agents/sona/sona-learning-optimizer.md +0 -74
  33. package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
  34. package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
  35. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
  36. package/.claude/agents/sublinear/performance-optimizer.md +0 -368
  37. package/.claude/agents/sublinear/trading-predictor.md +0 -246
  38. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  39. package/.claude/agents/testing/validation/production-validator.md +0 -395
  40. package/.claude/agents/v3/database-specialist.yaml +0 -21
  41. package/.claude/agents/v3/index.yaml +0 -17
  42. package/.claude/agents/v3/project-coordinator.yaml +0 -15
  43. package/.claude/agents/v3/python-specialist.yaml +0 -21
  44. package/.claude/agents/v3/test-architect.yaml +0 -20
  45. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  46. package/.claude/agents/v3/v3-integration-architect.md +0 -346
  47. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  48. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  49. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  50. package/.claude/agents/v3/v3-security-architect.md +0 -174
  51. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  52. package/.claude/commands/analysis/README.md +0 -9
  53. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  54. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  55. package/.claude/commands/analysis/performance-report.md +0 -25
  56. package/.claude/commands/analysis/token-efficiency.md +0 -45
  57. package/.claude/commands/analysis/token-usage.md +0 -25
  58. package/.claude/commands/automation/README.md +0 -9
  59. package/.claude/commands/automation/auto-agent.md +0 -122
  60. package/.claude/commands/automation/self-healing.md +0 -106
  61. package/.claude/commands/automation/session-memory.md +0 -90
  62. package/.claude/commands/automation/smart-agents.md +0 -73
  63. package/.claude/commands/automation/smart-spawn.md +0 -25
  64. package/.claude/commands/automation/workflow-select.md +0 -25
  65. package/.claude/commands/coordination/README.md +0 -9
  66. package/.claude/commands/coordination/agent-spawn.md +0 -25
  67. package/.claude/commands/coordination/init.md +0 -44
  68. package/.claude/commands/coordination/orchestrate.md +0 -43
  69. package/.claude/commands/coordination/spawn.md +0 -45
  70. package/.claude/commands/coordination/swarm-init.md +0 -85
  71. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  72. package/.claude/commands/flow-nexus/app-store.md +0 -124
  73. package/.claude/commands/flow-nexus/challenges.md +0 -120
  74. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  75. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  76. package/.claude/commands/flow-nexus/payments.md +0 -116
  77. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  78. package/.claude/commands/flow-nexus/swarm.md +0 -87
  79. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  80. package/.claude/commands/flow-nexus/workflow.md +0 -115
  81. package/.claude/commands/monitoring/README.md +0 -9
  82. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  83. package/.claude/commands/monitoring/agents.md +0 -44
  84. package/.claude/commands/monitoring/real-time-view.md +0 -25
  85. package/.claude/commands/monitoring/status.md +0 -46
  86. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  87. package/.claude/commands/optimization/README.md +0 -9
  88. package/.claude/commands/optimization/auto-topology.md +0 -62
  89. package/.claude/commands/optimization/cache-manage.md +0 -25
  90. package/.claude/commands/optimization/parallel-execute.md +0 -25
  91. package/.claude/commands/optimization/parallel-execution.md +0 -50
  92. package/.claude/commands/optimization/topology-optimize.md +0 -25
  93. package/.claude/commands/pair/README.md +0 -261
  94. package/.claude/commands/pair/commands.md +0 -546
  95. package/.claude/commands/pair/config.md +0 -510
  96. package/.claude/commands/pair/examples.md +0 -512
  97. package/.claude/commands/pair/modes.md +0 -348
  98. package/.claude/commands/pair/session.md +0 -407
  99. package/.claude/commands/pair/start.md +0 -209
  100. package/.claude/commands/stream-chain/pipeline.md +0 -121
  101. package/.claude/commands/stream-chain/run.md +0 -70
  102. package/.claude/commands/training/README.md +0 -9
  103. package/.claude/commands/training/model-update.md +0 -25
  104. package/.claude/commands/training/neural-patterns.md +0 -74
  105. package/.claude/commands/training/neural-train.md +0 -25
  106. package/.claude/commands/training/pattern-learn.md +0 -25
  107. package/.claude/commands/training/specialization.md +0 -63
  108. package/.claude/commands/truth/start.md +0 -143
  109. package/.claude/commands/verify/check.md +0 -50
  110. package/.claude/commands/verify/start.md +0 -128
  111. package/.claude/helpers/gate.cjs +0 -236
  112. package/.claude/helpers/hook-handler.cjs +0 -341
  113. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  114. package/.claude/skills/dual-mode/README.md +0 -71
  115. package/.claude/skills/dual-mode/dual-collect.md +0 -103
  116. package/.claude/skills/dual-mode/dual-coordinate.md +0 -85
  117. package/.claude/skills/dual-mode/dual-spawn.md +0 -81
  118. package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
  119. package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
  120. package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
  121. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  122. package/.claude/skills/stream-chain/SKILL.md +0 -563
  123. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  124. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  125. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  126. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  127. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  128. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  129. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  130. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  131. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  132. package/.claude-plugin/README.md +0 -720
  133. package/.claude-plugin/docs/INSTALLATION.md +0 -261
  134. package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -361
  135. package/.claude-plugin/docs/QUICKSTART.md +0 -361
  136. package/.claude-plugin/docs/STRUCTURE.md +0 -128
  137. package/.claude-plugin/hooks/hooks.json +0 -74
  138. package/.claude-plugin/marketplace.json +0 -96
  139. package/.claude-plugin/plugin.json +0 -71
  140. package/.claude-plugin/scripts/install.sh +0 -234
  141. package/.claude-plugin/scripts/uninstall.sh +0 -36
  142. package/.claude-plugin/scripts/verify.sh +0 -108
@@ -0,0 +1,182 @@
1
+ # Browser Agent Configuration
2
+ # AI-powered web browser automation using agent-browser
3
+ #
4
+ # Capabilities:
5
+ # - Web navigation and interaction
6
+ # - AI-optimized snapshots with element refs
7
+ # - Form filling and submission
8
+ # - Screenshot capture
9
+ # - Network interception
10
+ # - Multi-session coordination
11
+
12
+ name: browser-agent
13
+ description: Web automation specialist using agent-browser with AI-optimized snapshots
14
+ version: 1.0.0
15
+
16
+ # Routing configuration
17
+ routing:
18
+ complexity: medium
19
+ model: sonnet # Good at visual reasoning and DOM interpretation
20
+ priority: normal
21
+ keywords:
22
+ - browser
23
+ - web
24
+ - scrape
25
+ - screenshot
26
+ - navigate
27
+ - login
28
+ - form
29
+ - click
30
+ - automate
31
+
32
+ # Agent capabilities
33
+ capabilities:
34
+ - web-navigation
35
+ - form-interaction
36
+ - screenshot-capture
37
+ - data-extraction
38
+ - network-interception
39
+ - session-management
40
+ - multi-tab-coordination
41
+
42
+ # Available tools (MCP tools with browser/ prefix)
43
+ tools:
44
+ navigation:
45
+ - browser/open
46
+ - browser/back
47
+ - browser/forward
48
+ - browser/reload
49
+ - browser/close
50
+ snapshot:
51
+ - browser/snapshot
52
+ - browser/screenshot
53
+ - browser/pdf
54
+ interaction:
55
+ - browser/click
56
+ - browser/fill
57
+ - browser/type
58
+ - browser/press
59
+ - browser/hover
60
+ - browser/select
61
+ - browser/check
62
+ - browser/uncheck
63
+ - browser/scroll
64
+ - browser/upload
65
+ info:
66
+ - browser/get-text
67
+ - browser/get-html
68
+ - browser/get-value
69
+ - browser/get-attr
70
+ - browser/get-title
71
+ - browser/get-url
72
+ - browser/get-count
73
+ state:
74
+ - browser/is-visible
75
+ - browser/is-enabled
76
+ - browser/is-checked
77
+ wait:
78
+ - browser/wait
79
+ eval:
80
+ - browser/eval
81
+ storage:
82
+ - browser/cookies-get
83
+ - browser/cookies-set
84
+ - browser/cookies-clear
85
+ - browser/localstorage-get
86
+ - browser/localstorage-set
87
+ network:
88
+ - browser/network-route
89
+ - browser/network-unroute
90
+ - browser/network-requests
91
+ tabs:
92
+ - browser/tab-list
93
+ - browser/tab-new
94
+ - browser/tab-switch
95
+ - browser/tab-close
96
+ - browser/session-list
97
+ settings:
98
+ - browser/set-viewport
99
+ - browser/set-device
100
+ - browser/set-geolocation
101
+ - browser/set-offline
102
+ - browser/set-media
103
+ debug:
104
+ - browser/trace-start
105
+ - browser/trace-stop
106
+ - browser/console
107
+ - browser/errors
108
+ - browser/highlight
109
+ - browser/state-save
110
+ - browser/state-load
111
+ find:
112
+ - browser/find-role
113
+ - browser/find-text
114
+ - browser/find-label
115
+ - browser/find-testid
116
+
117
+ # Memory configuration
118
+ memory:
119
+ namespace: browser-sessions
120
+ persist: true
121
+ patterns:
122
+ - login-flows
123
+ - form-submissions
124
+ - scraping-patterns
125
+ - navigation-sequences
126
+
127
+ # Swarm integration
128
+ swarm:
129
+ roles:
130
+ - navigator # Handles authentication and navigation
131
+ - scraper # Extracts data using snapshots
132
+ - validator # Verifies extracted data
133
+ - tester # Runs automated tests
134
+ - monitor # Watches for errors and network issues
135
+ topology: hierarchical # Coordinator manages browser agents
136
+ max_sessions: 5
137
+
138
+ # Hooks integration
139
+ hooks:
140
+ pre_task:
141
+ - route # Get optimal routing
142
+ - memory_search # Check for similar patterns
143
+ post_task:
144
+ - memory_store # Save successful patterns
145
+ - post_edit # Train on outcomes
146
+
147
+ # Default configuration
148
+ defaults:
149
+ timeout: 30000
150
+ headless: true
151
+ viewport:
152
+ width: 1280
153
+ height: 720
154
+
155
+ # Example workflows
156
+ workflows:
157
+ login:
158
+ description: Authenticate to a website
159
+ steps:
160
+ - open: "{url}/login"
161
+ - snapshot: { interactive: true }
162
+ - fill: { target: "@e1", value: "{username}" }
163
+ - fill: { target: "@e2", value: "{password}" }
164
+ - click: "@e3"
165
+ - wait: { url: "**/dashboard" }
166
+ - state-save: "auth-state.json"
167
+
168
+ scrape_list:
169
+ description: Extract data from a list page
170
+ steps:
171
+ - open: "{url}"
172
+ - snapshot: { interactive: true, compact: true }
173
+ - eval: "Array.from(document.querySelectorAll('{selector}')).map(el => el.textContent)"
174
+
175
+ form_submit:
176
+ description: Fill and submit a form
177
+ steps:
178
+ - open: "{url}"
179
+ - snapshot: { interactive: true }
180
+ - fill_fields: "{fields}"
181
+ - click: "{submit_button}"
182
+ - wait: { text: "{success_text}" }
@@ -0,0 +1,129 @@
1
+ <!-- AUTO-GENERATED by moflo session-start. Do not edit โ€” changes will be overwritten. -->
2
+ <!-- Source: node_modules/moflo/.claude/guidance/agent-bootstrap.md -->
3
+
4
+ # MoFlo Agent Bootstrap Guide
5
+
6
+ **Purpose:** Quick-start reference for subagents spawned by coordinators. Every subagent should follow this protocol before doing any work.
7
+
8
+ ---
9
+
10
+ ## 1. Search Memory FIRST
11
+
12
+ **Before reading any files or exploring code, search memory for guidance relevant to your task.**
13
+
14
+ ### Three namespaces to search:
15
+
16
+ | Namespace | When to search | What it returns |
17
+ |-----------|---------------|-----------------|
18
+ | `guidance` | Understanding patterns, rules, conventions | Guidance docs, coding rules, domain context |
19
+ | `code-map` | Finding where code lives (files, types, services) | Project overviews, directory contents, type-to-file mappings |
20
+ | `patterns` | Prior solutions, gotchas, implementation patterns | Learned patterns from previous task execution |
21
+
22
+ **Always search `patterns` alongside `guidance`.** It contains solutions to problems already solved โ€” skipping it means repeating past mistakes or re-discovering known approaches.
23
+
24
+ **Search `code-map` BEFORE using Glob/Grep for navigation.** It's faster and returns structured results including file-level type mappings.
25
+
26
+ ### Option A: MCP Tools (Preferred)
27
+
28
+ If you have MCP tools available (check for `mcp__moflo__*`), use them directly:
29
+
30
+ | Tool | Purpose |
31
+ |------|---------|
32
+ | `mcp__moflo__memory_search` | Semantic search with domain-aware embeddings |
33
+ | `mcp__moflo__memory_store` | Store patterns with auto-vectorization |
34
+ | `mcp__moflo__hooks_route` | Get agent routing suggestions |
35
+
36
+ ### Option B: CLI via Bash
37
+
38
+ ```bash
39
+ npx flo memory search --query "[describe your task]" --namespace guidance --limit 5
40
+ ```
41
+
42
+ | Your task involves... | Search namespace | Example query |
43
+ |-----------------------|------------------|---------------|
44
+ | Database/entities | `guidance` + `patterns` | `"database entity migration"` |
45
+ | Frontend components | `guidance` + `patterns` | `"React frontend component"` |
46
+ | API endpoints | `guidance` + `patterns` | `"API route endpoint pattern"` |
47
+ | Authentication | `guidance` + `patterns` | `"auth middleware JWT"` |
48
+ | Unit tests | `guidance` + `patterns` | `"test mock vitest"` |
49
+ | Prior solutions/gotchas | `patterns` | `"audit log service pattern"` |
50
+ | Where is a file/type? | `code-map` | `"CompanyEntity file location"` |
51
+ | What's in a directory? | `code-map` | `"back-office api routes"` |
52
+
53
+ Use results with score > 0.3. If no good results, fall back to reading project guidance docs.
54
+
55
+ ---
56
+
57
+ ## 2. Check Project-Specific Bootstrap
58
+
59
+ **After reading this file, check for a project-specific bootstrap:**
60
+
61
+ ```bash
62
+ # Project-specific bootstrap (has domain rules, patterns, templates)
63
+ cat .claude/guidance/agent-bootstrap.md 2>/dev/null | head -10
64
+ ```
65
+
66
+ If `.claude/guidance/agent-bootstrap.md` exists, **read it next**. It contains project-specific rules (entity patterns, multi-tenancy, tech stack conventions) that override generic guidance.
67
+
68
+ If no project bootstrap exists, look for general project guidance:
69
+
70
+ ```bash
71
+ ls .claude/guidance/ 2>/dev/null
72
+ cat .claude/guidance/core.md 2>/dev/null | head -50
73
+ ```
74
+
75
+ Project guidance always takes precedence over generic patterns.
76
+
77
+ ---
78
+
79
+ ## 3. Universal Rules
80
+
81
+ ### Memory Protocol
82
+ - Search memory before exploring files
83
+ - Store discoveries back to memory when done
84
+ - Use `patterns` namespace for solutions and gotchas
85
+ - Use `decisions` namespace for architectural choices
86
+
87
+ ### Git/Branches
88
+ - Use conventional commit prefixes: `feat:`, `fix:`, `refactor:`, `test:`, `chore:`
89
+ - Use branch prefixes: `feature/`, `fix/`, `refactor/`
90
+ - Use kebab-case for branch names
91
+
92
+ ### File Organization
93
+ - Never save working files to repository root
94
+ - Keep changes focused (3-10 files)
95
+ - Stay within feature scope
96
+
97
+ ### Build & Test
98
+ - Build and test after code changes
99
+ - Never leave failing tests
100
+
101
+ ---
102
+
103
+ ## 4. Store Discoveries
104
+
105
+ If you discover something new (pattern, solution, gotcha), store it:
106
+
107
+ ### MCP (Preferred):
108
+ ```
109
+ mcp__moflo__memory_store
110
+ namespace: "patterns"
111
+ key: "brief-descriptive-key"
112
+ value: "1-2 sentence insight"
113
+ ```
114
+
115
+ ### CLI Fallback:
116
+ ```bash
117
+ npx flo memory store --namespace patterns --key "brief-descriptive-key" --value "1-2 sentence insight"
118
+ ```
119
+
120
+ **Store:** Solutions to tricky bugs, patterns that worked, gotchas, workarounds
121
+ **Skip:** Summaries of retrieved guidance, general rules, file locations
122
+
123
+ ---
124
+
125
+ ## 5. When Complete
126
+
127
+ 1. Report findings to coordinator
128
+ 2. Store learnings if you discovered something new
129
+ 3. Coordinator will mark your task as completed
@@ -0,0 +1,16 @@
1
+ #!/bin/bash
2
+ # Claude Flow Post-Commit Hook
3
+ # Records commit metrics and trains patterns
4
+
5
+ COMMIT_HASH=$(git rev-parse HEAD)
6
+ COMMIT_MSG=$(git log -1 --pretty=%B)
7
+
8
+ echo "๐Ÿ“Š Recording commit metrics..."
9
+
10
+ # Notify claude-flow of commit
11
+ npx moflo hooks notify \
12
+ --message "Commit: $COMMIT_MSG" \
13
+ --level info \
14
+ --metadata '{"hash": "'$COMMIT_HASH'"}' 2>/dev/null || true
15
+
16
+ echo "โœ… Commit recorded"
@@ -0,0 +1,26 @@
1
+ #!/bin/bash
2
+ # Claude Flow Pre-Commit Hook
3
+ # Validates code quality before commit
4
+
5
+ set -e
6
+
7
+ echo "๐Ÿ” Running Claude Flow pre-commit checks..."
8
+
9
+ # Get staged files
10
+ STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM)
11
+
12
+ # Run validation for each staged file
13
+ for FILE in $STAGED_FILES; do
14
+ if [[ "$FILE" =~ \.(ts|js|tsx|jsx)$ ]]; then
15
+ echo " Validating: $FILE"
16
+ npx moflo hooks pre-edit --file "$FILE" --validate-syntax 2>/dev/null || true
17
+ fi
18
+ done
19
+
20
+ # Run tests if available
21
+ if [ -f "package.json" ] && grep -q '"test"' package.json; then
22
+ echo "๐Ÿงช Running tests..."
23
+ npm test --if-present 2>/dev/null || echo " Tests skipped or failed"
24
+ fi
25
+
26
+ echo "โœ… Pre-commit checks complete"