mop-flow 0.1.8

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 (390) hide show
  1. package/.MOP/PROTOCOL.md +579 -0
  2. package/.MOP/STATE.json +668 -0
  3. package/.MOP/config/defaults.json +55 -0
  4. package/.MOP/config/team.json +8 -0
  5. package/.MOP/flow/ROADMAP.md +51 -0
  6. package/.MOP/flow/skill-manifest.json +645 -0
  7. package/.MOP/scripts/burhan-mop.mjs +291 -0
  8. package/.MOP/scripts/mop-auto-deploy.mjs +152 -0
  9. package/.MOP/scripts/mop-autosycn.mjs +790 -0
  10. package/.MOP/scripts/mop-core.mjs +1206 -0
  11. package/.MOP/scripts/mop-flow.mjs +396 -0
  12. package/.MOP/scripts/mop-smoke-test.mjs +76 -0
  13. package/.MOP/scripts/mop-workflow.mjs +348 -0
  14. package/.MOP/templates/artifacts/adversarial-review.md +33 -0
  15. package/.MOP/templates/artifacts/architecture.md +28 -0
  16. package/.MOP/templates/artifacts/decision-log.md +21 -0
  17. package/.MOP/templates/artifacts/handoff.md +21 -0
  18. package/.MOP/templates/artifacts/implementation-notes.md +21 -0
  19. package/.MOP/templates/artifacts/prd.md +29 -0
  20. package/.MOP/templates/artifacts/product-brief.md +30 -0
  21. package/.MOP/templates/artifacts/readiness-report.md +25 -0
  22. package/.MOP/templates/artifacts/release-notes.md +21 -0
  23. package/.MOP/templates/artifacts/review.md +21 -0
  24. package/.MOP/templates/artifacts/story.md +25 -0
  25. package/.MOP/templates/artifacts/ux-spec.md +32 -0
  26. package/.agents/AGENTS.md +85 -0
  27. package/.agents/skills/auto-deploy/SKILL.md +48 -0
  28. package/.agents/skills/autosycn/SKILL.md +75 -0
  29. package/.agents/skills/mop-flow/SKILL.md +53 -0
  30. package/.agents/skills/mop-help/SKILL.md +35 -0
  31. package/.agents/skills/ruflo-core/SKILL.md +36 -0
  32. package/.claude/agents/analysis/analyze-code-quality.md +179 -0
  33. package/.claude/agents/analysis/code-analyzer.md +210 -0
  34. package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
  35. package/.claude/agents/architecture/arch-system-design.md +157 -0
  36. package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
  37. package/.claude/agents/browser/browser-agent.yaml +182 -0
  38. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  39. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  40. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  41. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  42. package/.claude/agents/consensus/quorum-manager.md +823 -0
  43. package/.claude/agents/consensus/raft-manager.md +63 -0
  44. package/.claude/agents/consensus/security-manager.md +622 -0
  45. package/.claude/agents/core/planner.md +375 -0
  46. package/.claude/agents/custom/test-long-runner.md +44 -0
  47. package/.claude/agents/data/data-ml-model.md +445 -0
  48. package/.claude/agents/data/ml/data-ml-model.md +193 -0
  49. package/.claude/agents/development/backend/dev-backend-api.md +142 -0
  50. package/.claude/agents/development/dev-backend-api.md +345 -0
  51. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  52. package/.claude/agents/devops/ops-cicd-github.md +165 -0
  53. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  54. package/.claude/agents/documentation/docs-api-openapi.md +355 -0
  55. package/.claude/agents/flow-nexus/app-store.md +88 -0
  56. package/.claude/agents/flow-nexus/authentication.md +69 -0
  57. package/.claude/agents/flow-nexus/challenges.md +81 -0
  58. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  59. package/.claude/agents/flow-nexus/payments.md +83 -0
  60. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  61. package/.claude/agents/flow-nexus/swarm.md +76 -0
  62. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  63. package/.claude/agents/flow-nexus/workflow.md +84 -0
  64. package/.claude/agents/github/code-review-swarm.md +377 -0
  65. package/.claude/agents/github/github-modes.md +173 -0
  66. package/.claude/agents/github/issue-tracker.md +576 -0
  67. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  68. package/.claude/agents/github/pr-manager.md +438 -0
  69. package/.claude/agents/github/project-board-sync.md +509 -0
  70. package/.claude/agents/github/release-manager.md +605 -0
  71. package/.claude/agents/github/release-swarm.md +583 -0
  72. package/.claude/agents/github/repo-architect.md +398 -0
  73. package/.claude/agents/github/swarm-issue.md +573 -0
  74. package/.claude/agents/github/swarm-pr.md +428 -0
  75. package/.claude/agents/github/sync-coordinator.md +452 -0
  76. package/.claude/agents/github/workflow-automation.md +903 -0
  77. package/.claude/agents/goal/agent.md +816 -0
  78. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  79. package/.claude/agents/optimization/load-balancer.md +431 -0
  80. package/.claude/agents/optimization/performance-monitor.md +672 -0
  81. package/.claude/agents/optimization/resource-allocator.md +674 -0
  82. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  83. package/.claude/agents/payments/agentic-payments.md +126 -0
  84. package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
  85. package/.claude/agents/sparc/architecture.md +699 -0
  86. package/.claude/agents/sparc/pseudocode.md +520 -0
  87. package/.claude/agents/sparc/refinement.md +802 -0
  88. package/.claude/agents/sparc/specification.md +478 -0
  89. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
  90. package/.claude/agents/specialized/spec-mobile-react-native.md +227 -0
  91. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  92. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  93. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  94. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  95. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  96. package/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
  97. package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
  98. package/.claude/agents/swarm/mesh-coordinator.md +963 -0
  99. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  100. package/.claude/agents/templates/base-template-generator.md +289 -0
  101. package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  102. package/.claude/agents/templates/github-pr-manager.md +177 -0
  103. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  104. package/.claude/agents/templates/memory-coordinator.md +187 -0
  105. package/.claude/agents/templates/orchestrator-task.md +139 -0
  106. package/.claude/agents/templates/performance-analyzer.md +199 -0
  107. package/.claude/agents/templates/sparc-coordinator.md +514 -0
  108. package/.claude/agents/testing/production-validator.md +395 -0
  109. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  110. package/.claude/agents/v3/aidefence-guardian.md +282 -0
  111. package/.claude/agents/v3/claims-authorizer.md +208 -0
  112. package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
  113. package/.claude/agents/v3/ddd-domain-expert.md +220 -0
  114. package/.claude/agents/v3/injection-analyst.md +236 -0
  115. package/.claude/agents/v3/performance-engineer.md +1233 -0
  116. package/.claude/agents/v3/pii-detector.md +151 -0
  117. package/.claude/agents/v3/reasoningbank-learner.md +213 -0
  118. package/.claude/agents/v3/security-architect-aidefence.md +410 -0
  119. package/.claude/agents/v3/security-architect.md +867 -0
  120. package/.claude/agents/v3/swarm-memory-manager.md +157 -0
  121. package/.claude/agents/v3/v3-integration-architect.md +205 -0
  122. package/.claude/commands/agents/README.md +50 -0
  123. package/.claude/commands/agents/agent-capabilities.md +140 -0
  124. package/.claude/commands/agents/agent-coordination.md +28 -0
  125. package/.claude/commands/agents/agent-spawning.md +28 -0
  126. package/.claude/commands/agents/agent-types.md +216 -0
  127. package/.claude/commands/agents/health.md +139 -0
  128. package/.claude/commands/agents/list.md +100 -0
  129. package/.claude/commands/agents/logs.md +130 -0
  130. package/.claude/commands/agents/metrics.md +122 -0
  131. package/.claude/commands/agents/pool.md +127 -0
  132. package/.claude/commands/agents/spawn.md +140 -0
  133. package/.claude/commands/agents/status.md +115 -0
  134. package/.claude/commands/agents/stop.md +102 -0
  135. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  136. package/.claude/commands/analysis/README.md +9 -0
  137. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  138. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  139. package/.claude/commands/analysis/performance-report.md +25 -0
  140. package/.claude/commands/analysis/token-efficiency.md +45 -0
  141. package/.claude/commands/analysis/token-usage.md +25 -0
  142. package/.claude/commands/automation/README.md +9 -0
  143. package/.claude/commands/automation/auto-agent.md +122 -0
  144. package/.claude/commands/automation/self-healing.md +106 -0
  145. package/.claude/commands/automation/session-memory.md +90 -0
  146. package/.claude/commands/automation/smart-agents.md +73 -0
  147. package/.claude/commands/automation/smart-spawn.md +25 -0
  148. package/.claude/commands/automation/workflow-select.md +25 -0
  149. package/.claude/commands/claude-flow-help.md +103 -0
  150. package/.claude/commands/claude-flow-memory.md +107 -0
  151. package/.claude/commands/claude-flow-swarm.md +205 -0
  152. package/.claude/commands/coordination/README.md +9 -0
  153. package/.claude/commands/coordination/agent-spawn.md +25 -0
  154. package/.claude/commands/coordination/init.md +44 -0
  155. package/.claude/commands/coordination/orchestrate.md +43 -0
  156. package/.claude/commands/coordination/spawn.md +45 -0
  157. package/.claude/commands/coordination/swarm-init.md +85 -0
  158. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  159. package/.claude/commands/github/README.md +11 -0
  160. package/.claude/commands/github/code-review-swarm.md +514 -0
  161. package/.claude/commands/github/code-review.md +25 -0
  162. package/.claude/commands/github/github-modes.md +147 -0
  163. package/.claude/commands/github/github-swarm.md +121 -0
  164. package/.claude/commands/github/issue-tracker.md +292 -0
  165. package/.claude/commands/github/issue-triage.md +25 -0
  166. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  167. package/.claude/commands/github/pr-enhance.md +26 -0
  168. package/.claude/commands/github/pr-manager.md +170 -0
  169. package/.claude/commands/github/project-board-sync.md +471 -0
  170. package/.claude/commands/github/release-manager.md +340 -0
  171. package/.claude/commands/github/release-swarm.md +544 -0
  172. package/.claude/commands/github/repo-analyze.md +25 -0
  173. package/.claude/commands/github/repo-architect.md +367 -0
  174. package/.claude/commands/github/swarm-issue.md +485 -0
  175. package/.claude/commands/github/swarm-pr.md +288 -0
  176. package/.claude/commands/github/sync-coordinator.md +303 -0
  177. package/.claude/commands/github/workflow-automation.md +442 -0
  178. package/.claude/commands/hive-mind/README.md +17 -0
  179. package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
  180. package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
  181. package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
  182. package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
  183. package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
  184. package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
  185. package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
  186. package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
  187. package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
  188. package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
  189. package/.claude/commands/hive-mind/hive-mind.md +27 -0
  190. package/.claude/commands/hooks/README.md +11 -0
  191. package/.claude/commands/hooks/overview.md +58 -0
  192. package/.claude/commands/hooks/post-edit.md +117 -0
  193. package/.claude/commands/hooks/post-task.md +112 -0
  194. package/.claude/commands/hooks/pre-edit.md +113 -0
  195. package/.claude/commands/hooks/pre-task.md +111 -0
  196. package/.claude/commands/hooks/session-end.md +118 -0
  197. package/.claude/commands/hooks/setup.md +103 -0
  198. package/.claude/commands/memory/README.md +9 -0
  199. package/.claude/commands/memory/memory-persist.md +25 -0
  200. package/.claude/commands/memory/memory-search.md +25 -0
  201. package/.claude/commands/memory/memory-usage.md +25 -0
  202. package/.claude/commands/memory/neural.md +47 -0
  203. package/.claude/commands/monitoring/README.md +9 -0
  204. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  205. package/.claude/commands/monitoring/agents.md +44 -0
  206. package/.claude/commands/monitoring/real-time-view.md +25 -0
  207. package/.claude/commands/monitoring/status.md +46 -0
  208. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  209. package/.claude/commands/optimization/README.md +9 -0
  210. package/.claude/commands/optimization/auto-topology.md +62 -0
  211. package/.claude/commands/optimization/cache-manage.md +25 -0
  212. package/.claude/commands/optimization/parallel-execute.md +25 -0
  213. package/.claude/commands/optimization/parallel-execution.md +50 -0
  214. package/.claude/commands/optimization/topology-optimize.md +25 -0
  215. package/.claude/commands/pair/README.md +261 -0
  216. package/.claude/commands/pair/commands.md +546 -0
  217. package/.claude/commands/pair/config.md +510 -0
  218. package/.claude/commands/pair/examples.md +512 -0
  219. package/.claude/commands/pair/modes.md +348 -0
  220. package/.claude/commands/pair/session.md +407 -0
  221. package/.claude/commands/pair/start.md +209 -0
  222. package/.claude/commands/sparc/analyzer.md +52 -0
  223. package/.claude/commands/sparc/architect.md +53 -0
  224. package/.claude/commands/sparc/ask.md +97 -0
  225. package/.claude/commands/sparc/batch-executor.md +54 -0
  226. package/.claude/commands/sparc/code.md +89 -0
  227. package/.claude/commands/sparc/coder.md +54 -0
  228. package/.claude/commands/sparc/debug.md +83 -0
  229. package/.claude/commands/sparc/debugger.md +54 -0
  230. package/.claude/commands/sparc/designer.md +53 -0
  231. package/.claude/commands/sparc/devops.md +109 -0
  232. package/.claude/commands/sparc/docs-writer.md +80 -0
  233. package/.claude/commands/sparc/documenter.md +54 -0
  234. package/.claude/commands/sparc/innovator.md +54 -0
  235. package/.claude/commands/sparc/integration.md +83 -0
  236. package/.claude/commands/sparc/mcp.md +117 -0
  237. package/.claude/commands/sparc/memory-manager.md +54 -0
  238. package/.claude/commands/sparc/optimizer.md +54 -0
  239. package/.claude/commands/sparc/orchestrator.md +132 -0
  240. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  241. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  242. package/.claude/commands/sparc/researcher.md +54 -0
  243. package/.claude/commands/sparc/reviewer.md +54 -0
  244. package/.claude/commands/sparc/security-review.md +80 -0
  245. package/.claude/commands/sparc/sparc-modes.md +174 -0
  246. package/.claude/commands/sparc/sparc.md +111 -0
  247. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  248. package/.claude/commands/sparc/supabase-admin.md +348 -0
  249. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  250. package/.claude/commands/sparc/tdd.md +54 -0
  251. package/.claude/commands/sparc/tester.md +54 -0
  252. package/.claude/commands/sparc/tutorial.md +79 -0
  253. package/.claude/commands/sparc/workflow-manager.md +54 -0
  254. package/.claude/commands/stream-chain/pipeline.md +121 -0
  255. package/.claude/commands/stream-chain/run.md +70 -0
  256. package/.claude/commands/swarm/README.md +15 -0
  257. package/.claude/commands/swarm/analysis.md +95 -0
  258. package/.claude/commands/swarm/development.md +96 -0
  259. package/.claude/commands/swarm/examples.md +168 -0
  260. package/.claude/commands/swarm/maintenance.md +102 -0
  261. package/.claude/commands/swarm/optimization.md +117 -0
  262. package/.claude/commands/swarm/research.md +136 -0
  263. package/.claude/commands/swarm/swarm-analysis.md +8 -0
  264. package/.claude/commands/swarm/swarm-background.md +8 -0
  265. package/.claude/commands/swarm/swarm-init.md +19 -0
  266. package/.claude/commands/swarm/swarm-modes.md +8 -0
  267. package/.claude/commands/swarm/swarm-monitor.md +8 -0
  268. package/.claude/commands/swarm/swarm-spawn.md +19 -0
  269. package/.claude/commands/swarm/swarm-status.md +8 -0
  270. package/.claude/commands/swarm/swarm-strategies.md +8 -0
  271. package/.claude/commands/swarm/swarm.md +87 -0
  272. package/.claude/commands/swarm/testing.md +131 -0
  273. package/.claude/commands/training/README.md +9 -0
  274. package/.claude/commands/training/model-update.md +25 -0
  275. package/.claude/commands/training/neural-patterns.md +108 -0
  276. package/.claude/commands/training/neural-train.md +75 -0
  277. package/.claude/commands/training/pattern-learn.md +25 -0
  278. package/.claude/commands/training/specialization.md +63 -0
  279. package/.claude/commands/truth/start.md +143 -0
  280. package/.claude/commands/verify/check.md +50 -0
  281. package/.claude/commands/verify/start.md +128 -0
  282. package/.claude/commands/workflows/README.md +9 -0
  283. package/.claude/commands/workflows/development.md +78 -0
  284. package/.claude/commands/workflows/research.md +63 -0
  285. package/.claude/commands/workflows/workflow-create.md +25 -0
  286. package/.claude/commands/workflows/workflow-execute.md +25 -0
  287. package/.claude/commands/workflows/workflow-export.md +25 -0
  288. package/.claude/helpers/README.md +97 -0
  289. package/.claude/helpers/adr-compliance.sh +186 -0
  290. package/.claude/helpers/auto-commit.sh +178 -0
  291. package/.claude/helpers/auto-memory-hook.mjs +368 -0
  292. package/.claude/helpers/checkpoint-manager.sh +251 -0
  293. package/.claude/helpers/daemon-manager.sh +252 -0
  294. package/.claude/helpers/ddd-tracker.sh +144 -0
  295. package/.claude/helpers/github-safe.js +156 -0
  296. package/.claude/helpers/github-setup.sh +45 -0
  297. package/.claude/helpers/guidance-hook.sh +13 -0
  298. package/.claude/helpers/guidance-hooks.sh +102 -0
  299. package/.claude/helpers/health-monitor.sh +108 -0
  300. package/.claude/helpers/hook-handler.cjs +286 -0
  301. package/.claude/helpers/intelligence.cjs +1031 -0
  302. package/.claude/helpers/learning-hooks.sh +329 -0
  303. package/.claude/helpers/learning-optimizer.sh +127 -0
  304. package/.claude/helpers/learning-service.mjs +1144 -0
  305. package/.claude/helpers/memory.js +83 -0
  306. package/.claude/helpers/metrics-db.mjs +488 -0
  307. package/.claude/helpers/pattern-consolidator.sh +86 -0
  308. package/.claude/helpers/perf-worker.sh +160 -0
  309. package/.claude/helpers/post-commit +16 -0
  310. package/.claude/helpers/pre-commit +26 -0
  311. package/.claude/helpers/quick-start.sh +19 -0
  312. package/.claude/helpers/router.js +105 -0
  313. package/.claude/helpers/ruflo-hook.cjs +59 -0
  314. package/.claude/helpers/security-scanner.sh +127 -0
  315. package/.claude/helpers/session.js +157 -0
  316. package/.claude/helpers/setup-mcp.sh +18 -0
  317. package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
  318. package/.claude/helpers/statusline-hook.sh +21 -0
  319. package/.claude/helpers/statusline.cjs +693 -0
  320. package/.claude/helpers/statusline.js +352 -0
  321. package/.claude/helpers/swarm-comms.sh +353 -0
  322. package/.claude/helpers/swarm-hooks.sh +761 -0
  323. package/.claude/helpers/swarm-monitor.sh +211 -0
  324. package/.claude/helpers/sync-v3-metrics.sh +245 -0
  325. package/.claude/helpers/update-v3-progress.sh +166 -0
  326. package/.claude/helpers/v3-quick-status.sh +58 -0
  327. package/.claude/helpers/v3.sh +111 -0
  328. package/.claude/helpers/validate-v3-config.sh +216 -0
  329. package/.claude/helpers/worker-manager.sh +170 -0
  330. package/.claude/settings.json +305 -0
  331. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  332. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  333. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  334. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  335. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  336. package/.claude/skills/auto-deploy/SKILL.md +31 -0
  337. package/.claude/skills/autosycn/SKILL.md +30 -0
  338. package/.claude/skills/browser/SKILL.md +204 -0
  339. package/.claude/skills/dual-mode/README.md +71 -0
  340. package/.claude/skills/dual-mode/dual-collect.md +103 -0
  341. package/.claude/skills/dual-mode/dual-coordinate.md +85 -0
  342. package/.claude/skills/dual-mode/dual-spawn.md +81 -0
  343. package/.claude/skills/flow-nexus-neural/SKILL.md +727 -0
  344. package/.claude/skills/flow-nexus-platform/SKILL.md +1154 -0
  345. package/.claude/skills/flow-nexus-swarm/SKILL.md +604 -0
  346. package/.claude/skills/github-code-review/SKILL.md +1125 -0
  347. package/.claude/skills/github-multi-repo/SKILL.md +862 -0
  348. package/.claude/skills/github-project-management/SKILL.md +1262 -0
  349. package/.claude/skills/github-release-management/SKILL.md +1064 -0
  350. package/.claude/skills/github-workflow-automation/SKILL.md +1047 -0
  351. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  352. package/.claude/skills/mop-flow/SKILL.md +53 -0
  353. package/.claude/skills/mop-help/SKILL.md +35 -0
  354. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  355. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  356. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  357. package/.claude/skills/skill-builder/SKILL.md +910 -0
  358. package/.claude/skills/sparc-methodology/SKILL.md +1106 -0
  359. package/.claude/skills/stream-chain/SKILL.md +560 -0
  360. package/.claude/skills/swarm-advanced/SKILL.md +970 -0
  361. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  362. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  363. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  364. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  365. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  366. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  367. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  368. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  369. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  370. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  371. package/.claude/skills/verification-quality/SKILL.md +691 -0
  372. package/.claude-flow/CAPABILITIES.md +406 -0
  373. package/.claude-flow/config.yaml +45 -0
  374. package/.claude-flow/metrics/learning.json +17 -0
  375. package/.claude-flow/metrics/swarm-activity.json +18 -0
  376. package/.claude-flow/metrics/v3-progress.json +26 -0
  377. package/.claude-flow/security/audit-status.json +8 -0
  378. package/.codex/config.toml +42 -0
  379. package/.gemini/settings.json +51 -0
  380. package/.mcp.json +58 -0
  381. package/AGENTS.md +180 -0
  382. package/CLAUDE.md +277 -0
  383. package/GEMINI.md +48 -0
  384. package/README.bm.md +171 -0
  385. package/README.md +170 -0
  386. package/bin/burhan-mop.mjs +2 -0
  387. package/bin/mop-core.mjs +2 -0
  388. package/bin/mop-flow.mjs +2 -0
  389. package/bin/mop-workflow.mjs +2 -0
  390. package/package.json +72 -0
@@ -0,0 +1,396 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, statSync, writeFileSync } from 'node:fs';
3
+ import { dirname, join, resolve } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const here = dirname(fileURLToPath(import.meta.url));
7
+ const coreDir = resolve(here, '..');
8
+ const rootDir = resolve(coreDir, '..');
9
+ const manifestPath = join(coreDir, 'flow', 'skill-manifest.json');
10
+
11
+ function now() {
12
+ return new Date().toISOString();
13
+ }
14
+
15
+ function parseArgs(argv) {
16
+ const out = { _: [] };
17
+ for (let i = 0; i < argv.length; i += 1) {
18
+ const item = argv[i];
19
+ if (!item.startsWith('--')) {
20
+ out._.push(item);
21
+ continue;
22
+ }
23
+ const [key, inlineValue] = item.slice(2).split('=', 2);
24
+ if (inlineValue !== undefined) {
25
+ out[key] = inlineValue;
26
+ continue;
27
+ }
28
+ const next = argv[i + 1];
29
+ if (!next || next.startsWith('--')) {
30
+ out[key] = true;
31
+ } else {
32
+ out[key] = next;
33
+ i += 1;
34
+ }
35
+ }
36
+ return out;
37
+ }
38
+
39
+ function asJson(args) {
40
+ return args.json === true || args.format === 'json';
41
+ }
42
+
43
+ function readText(path, fallback = '') {
44
+ if (!existsSync(path)) return fallback;
45
+ return readFileSync(path, 'utf8');
46
+ }
47
+
48
+ function readJson(path, fallback = {}) {
49
+ try {
50
+ return JSON.parse(readText(path, ''));
51
+ } catch {
52
+ return fallback;
53
+ }
54
+ }
55
+
56
+ function rel(path) {
57
+ return path.replace(rootDir, '').replace(/^[\\/]/, '').replaceAll('\\', '/');
58
+ }
59
+
60
+ function slug(value) {
61
+ return String(value || '')
62
+ .trim()
63
+ .toLowerCase()
64
+ .replace(/[^a-z0-9]+/g, '-')
65
+ .replace(/^-+|-+$/g, '');
66
+ }
67
+
68
+ function stripQuotes(value) {
69
+ return String(value || '').trim().replace(/^['"]|['"]$/g, '');
70
+ }
71
+
72
+ function parseFrontmatter(text) {
73
+ if (!text.startsWith('---')) return {};
74
+ const end = text.indexOf('\n---', 3);
75
+ if (end < 0) return {};
76
+ const block = text.slice(3, end).trim();
77
+ const data = {};
78
+ const lines = block.split(/\r?\n/);
79
+ for (let i = 0; i < lines.length; i += 1) {
80
+ const rawLine = lines[i];
81
+ const match = rawLine.match(/^([A-Za-z0-9_-]+):\s*(.*)$/);
82
+ if (!match) continue;
83
+ const [, key, rawValue] = match;
84
+ const value = rawValue.trim();
85
+ if (value === '|' || value === '>' || value === '|-' || value === '>-') {
86
+ const parts = [];
87
+ while (lines[i + 1] && (/^\s+/.test(lines[i + 1]) || !lines[i + 1].trim())) {
88
+ i += 1;
89
+ const part = lines[i].trim();
90
+ if (part) parts.push(part);
91
+ }
92
+ data[key] = parts.join(' ').replace(/\s+/g, ' ').trim();
93
+ } else {
94
+ data[key] = stripQuotes(value);
95
+ }
96
+ }
97
+ return data;
98
+ }
99
+
100
+ function firstHeading(text) {
101
+ const match = text.match(/^#\s+(.+)$/m);
102
+ return match ? match[1].trim() : '';
103
+ }
104
+
105
+ function listSkillFiles(directory, source) {
106
+ const dir = join(rootDir, directory);
107
+ if (!existsSync(dir)) return [];
108
+ return readdirSync(dir, { withFileTypes: true })
109
+ .filter((entry) => entry.isDirectory())
110
+ .map((entry) => {
111
+ const skillPath = join(dir, entry.name, 'SKILL.md');
112
+ if (!existsSync(skillPath)) return null;
113
+ const text = readText(skillPath);
114
+ const frontmatter = parseFrontmatter(text);
115
+ const title = stripQuotes(frontmatter.name) || firstHeading(text) || entry.name;
116
+ const id = slug(frontmatter.name || entry.name);
117
+ return {
118
+ id,
119
+ folder: entry.name,
120
+ title,
121
+ description: stripQuotes(frontmatter.description) || '',
122
+ source,
123
+ path: rel(skillPath)
124
+ };
125
+ })
126
+ .filter(Boolean)
127
+ .sort((a, b) => a.id.localeCompare(b.id));
128
+ }
129
+
130
+ function fileStatus(path) {
131
+ const absolute = join(rootDir, path);
132
+ if (!existsSync(absolute)) return { exists: false, type: 'missing' };
133
+ return {
134
+ exists: true,
135
+ type: statSync(absolute).isDirectory() ? 'dir' : 'file'
136
+ };
137
+ }
138
+
139
+ function configMentions(path, pattern) {
140
+ const text = readText(join(rootDir, path));
141
+ return pattern.test(text);
142
+ }
143
+
144
+ function providerMatrix(portableSkills, runtimeSkills) {
145
+ const bridgedSkillCount = new Set([...portableSkills, ...runtimeSkills].map((skill) => skill.id)).size;
146
+ return [
147
+ {
148
+ id: 'claude',
149
+ entrypoint: 'CLAUDE.md',
150
+ config: '.claude/settings.json',
151
+ nativeSkillDir: '.claude/skills',
152
+ portableSkillDir: '.agents/skills',
153
+ mcpServer: 'mop-flow',
154
+ runtimeCommand: 'npx -y ruflo@latest mcp start',
155
+ skillAccess: {
156
+ native: runtimeSkills.length,
157
+ portable: portableSkills.length,
158
+ bridged: bridgedSkillCount
159
+ },
160
+ status: {
161
+ entrypoint: fileStatus('CLAUDE.md'),
162
+ config: fileStatus('.claude/settings.json'),
163
+ mcpRegistered: configMentions('.mcp.json', /"mop-flow"/)
164
+ }
165
+ },
166
+ {
167
+ id: 'codex',
168
+ entrypoint: 'AGENTS.md',
169
+ config: '.codex/config.toml',
170
+ nativeSkillDir: '.agents/skills',
171
+ bridgedFrom: '.claude/skills',
172
+ mcpServer: 'mop-flow',
173
+ runtimeCommand: 'npx -y ruflo@latest mcp start',
174
+ skillAccess: {
175
+ native: portableSkills.length,
176
+ portable: portableSkills.length,
177
+ bridged: bridgedSkillCount
178
+ },
179
+ status: {
180
+ entrypoint: fileStatus('AGENTS.md'),
181
+ config: fileStatus('.codex/config.toml'),
182
+ mcpRegistered: configMentions('.codex/config.toml', /\[mcp_servers\."mop-flow"\]/)
183
+ }
184
+ },
185
+ {
186
+ id: 'gemini',
187
+ entrypoint: 'GEMINI.md',
188
+ config: '.gemini/settings.json',
189
+ nativeSkillDir: '.agents/skills',
190
+ bridgedFrom: '.claude/skills',
191
+ mcpServer: 'mop-flow',
192
+ runtimeCommand: 'npx -y ruflo@latest mcp start',
193
+ skillAccess: {
194
+ native: portableSkills.length,
195
+ portable: portableSkills.length,
196
+ bridged: bridgedSkillCount
197
+ },
198
+ status: {
199
+ entrypoint: fileStatus('GEMINI.md'),
200
+ config: fileStatus('.gemini/settings.json'),
201
+ mcpRegistered: configMentions('.gemini/settings.json', /"mop-flow"/)
202
+ }
203
+ },
204
+ {
205
+ id: 'antigravity',
206
+ entrypoint: '.agents/AGENTS.md',
207
+ config: '.agents/AGENTS.md',
208
+ nativeSkillDir: '.agents/skills',
209
+ bridgedFrom: '.claude/skills',
210
+ mcpServer: 'mop-flow',
211
+ runtimeCommand: 'npx -y ruflo@latest mcp start',
212
+ skillAccess: {
213
+ native: portableSkills.length,
214
+ portable: portableSkills.length,
215
+ bridged: bridgedSkillCount
216
+ },
217
+ status: {
218
+ entrypoint: fileStatus('.agents/AGENTS.md'),
219
+ config: fileStatus('.agents/AGENTS.md'),
220
+ mcpRegistered: configMentions('AGENTS.md', /mop-flow/)
221
+ }
222
+ }
223
+ ];
224
+ }
225
+
226
+ function mergeSkills(portableSkills, runtimeSkills) {
227
+ const byId = new Map();
228
+ for (const skill of [...portableSkills, ...runtimeSkills]) {
229
+ const current = byId.get(skill.id);
230
+ if (!current) {
231
+ byId.set(skill.id, {
232
+ id: skill.id,
233
+ title: skill.title,
234
+ description: skill.description,
235
+ sources: [skill.source],
236
+ paths: [skill.path],
237
+ portable: skill.source === 'portable',
238
+ runtimeNative: skill.source === 'claude-native'
239
+ });
240
+ continue;
241
+ }
242
+ if (!current.sources.includes(skill.source)) current.sources.push(skill.source);
243
+ if (!current.paths.includes(skill.path)) current.paths.push(skill.path);
244
+ current.portable ||= skill.source === 'portable';
245
+ current.runtimeNative ||= skill.source === 'claude-native';
246
+ if (!current.description && skill.description) current.description = skill.description;
247
+ }
248
+ return [...byId.values()].sort((a, b) => a.id.localeCompare(b.id));
249
+ }
250
+
251
+ function buildManifest() {
252
+ const portableSkills = listSkillFiles('.agents/skills', 'portable');
253
+ const runtimeSkills = listSkillFiles('.claude/skills', 'claude-native');
254
+ const skills = mergeSkills(portableSkills, runtimeSkills);
255
+ const state = readJson(join(coreDir, 'STATE.json'), {});
256
+ return {
257
+ schemaVersion: '0.1.0',
258
+ generatedAt: now(),
259
+ brand: {
260
+ name: 'MOP Flow',
261
+ ownerSystem: 'MOP',
262
+ canonicalRule: 'Use MOP Flow as the user-facing name. Treat Ruflo and Claude Flow as upstream runtime compatibility names only.'
263
+ },
264
+ runtime: {
265
+ canonicalMcpServer: 'mop-flow',
266
+ upstreamPackage: 'ruflo@latest',
267
+ compatibilityEnvPrefix: 'CLAUDE_FLOW_',
268
+ command: 'npx -y ruflo@latest mcp start',
269
+ notes: [
270
+ 'MOP Flow owns provider routing, memory gates, skills, and workflow policy.',
271
+ 'Ruflo/Claude Flow powers selected runtime capabilities underneath MOP Flow.'
272
+ ]
273
+ },
274
+ providers: providerMatrix(portableSkills, runtimeSkills),
275
+ skillCatalog: {
276
+ total: skills.length,
277
+ portableCount: portableSkills.length,
278
+ runtimeNativeCount: runtimeSkills.length,
279
+ bridgedCount: skills.length,
280
+ portableDirectory: '.agents/skills',
281
+ runtimeNativeDirectory: '.claude/skills',
282
+ skills
283
+ },
284
+ operatingRules: [
285
+ 'Read .MOP/STATE.json and .MOP/PROTOCOL.md before provider-specific behavior.',
286
+ 'Use .agents/skills as the canonical portable skill surface.',
287
+ 'When a skill exists only in .claude/skills, bridge it through this manifest and translate Claude-only tools into the current provider surface.',
288
+ 'Prefer the mop-flow MCP server name; keep CLAUDE_FLOW_* env vars only for upstream runtime compatibility.',
289
+ 'Do not let provider-specific instructions override MOP auth, agent routing, memory, readiness, or autosycn rules.'
290
+ ],
291
+ stateSummary: {
292
+ initialized: Boolean(state.initialized),
293
+ projectName: state.projectName || null,
294
+ activeMember: state.activeMember || null
295
+ }
296
+ };
297
+ }
298
+
299
+ function renderStatus(manifest) {
300
+ console.log('MOP Flow status');
301
+ console.log(`Brand: ${manifest.brand.name}`);
302
+ console.log(`MCP server: ${manifest.runtime.canonicalMcpServer}`);
303
+ console.log(`Skills: ${manifest.skillCatalog.bridgedCount} bridged (${manifest.skillCatalog.portableCount} portable, ${manifest.skillCatalog.runtimeNativeCount} runtime-native)`);
304
+ console.log('');
305
+ console.log('Providers');
306
+ for (const provider of manifest.providers) {
307
+ const ready = provider.status.entrypoint.exists && provider.status.config.exists && provider.status.mcpRegistered;
308
+ console.log(`- ${provider.id}: ${ready ? 'ready' : 'needs-check'}; bridged skills=${provider.skillAccess.bridged}; mcp=${provider.mcpServer}`);
309
+ }
310
+ }
311
+
312
+ function status(args) {
313
+ const manifest = buildManifest();
314
+ if (asJson(args)) {
315
+ console.log(JSON.stringify(manifest, null, 2));
316
+ return;
317
+ }
318
+ renderStatus(manifest);
319
+ }
320
+
321
+ function manifestPrint(args) {
322
+ const manifest = existsSync(manifestPath) ? readJson(manifestPath, buildManifest()) : buildManifest();
323
+ if (asJson(args)) {
324
+ console.log(JSON.stringify(manifest, null, 2));
325
+ return;
326
+ }
327
+ renderStatus(manifest);
328
+ }
329
+
330
+ function manifestRefresh(args) {
331
+ const manifest = buildManifest();
332
+ mkdirSync(dirname(manifestPath), { recursive: true });
333
+ const tmp = `${manifestPath}.tmp`;
334
+ writeFileSync(tmp, `${JSON.stringify(manifest, null, 2)}\n`, 'utf8');
335
+ renameSync(tmp, manifestPath);
336
+ if (asJson(args)) {
337
+ console.log(JSON.stringify({ ok: true, path: rel(manifestPath), manifest }, null, 2));
338
+ return;
339
+ }
340
+ console.log(`MOP Flow manifest refreshed: ${rel(manifestPath)}`);
341
+ renderStatus(manifest);
342
+ }
343
+
344
+ function skillsList(args) {
345
+ const manifest = buildManifest();
346
+ if (asJson(args)) {
347
+ console.log(JSON.stringify(manifest.skillCatalog, null, 2));
348
+ return;
349
+ }
350
+ for (const skill of manifest.skillCatalog.skills) {
351
+ console.log(`${skill.id} [${skill.sources.join(', ')}] - ${skill.title}`);
352
+ }
353
+ }
354
+
355
+ function providers(args) {
356
+ const manifest = buildManifest();
357
+ if (asJson(args)) {
358
+ console.log(JSON.stringify(manifest.providers, null, 2));
359
+ return;
360
+ }
361
+ for (const provider of manifest.providers) {
362
+ console.log(`${provider.id}: entry=${provider.entrypoint}; config=${provider.config}; mcp=${provider.mcpServer}; bridgedSkills=${provider.skillAccess.bridged}`);
363
+ }
364
+ }
365
+
366
+ function main() {
367
+ const rawArgs = process.argv.slice(2);
368
+ const command = rawArgs[0] && !rawArgs[0].startsWith('--') ? rawArgs[0] : 'status';
369
+ const afterCommand = rawArgs[0] && !rawArgs[0].startsWith('--') ? rawArgs.slice(1) : rawArgs;
370
+ const subcommand = afterCommand[0] && !afterCommand[0].startsWith('--') ? afterCommand[0] : undefined;
371
+ const rest = subcommand ? afterCommand.slice(1) : afterCommand;
372
+ const args = parseArgs(rest);
373
+ if (command === 'status') return status(args);
374
+ if (command === 'providers') return providers(args);
375
+ if (command === 'skills' && (!subcommand || subcommand === 'list')) return skillsList(args);
376
+ if (command === 'manifest' && (!subcommand || subcommand === 'print')) return manifestPrint(args);
377
+ if (command === 'manifest' && subcommand === 'refresh') return manifestRefresh(args);
378
+ if (command === 'bridge' && (!subcommand || subcommand === 'status')) return status(args);
379
+ if (command === 'bridge' && subcommand === 'refresh') return manifestRefresh(args);
380
+
381
+ console.log(`Usage:
382
+ node .MOP/scripts/mop-flow.mjs status [--json]
383
+ node .MOP/scripts/mop-flow.mjs providers [--json]
384
+ node .MOP/scripts/mop-flow.mjs skills list [--json]
385
+ node .MOP/scripts/mop-flow.mjs manifest print [--json]
386
+ node .MOP/scripts/mop-flow.mjs manifest refresh [--json]
387
+ node .MOP/scripts/mop-flow.mjs bridge status [--json]
388
+ node .MOP/scripts/mop-flow.mjs bridge refresh [--json]`);
389
+ }
390
+
391
+ try {
392
+ main();
393
+ } catch (error) {
394
+ console.error(error.message);
395
+ process.exitCode = 1;
396
+ }
@@ -0,0 +1,76 @@
1
+ #!/usr/bin/env node
2
+ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
3
+ import { tmpdir } from 'node:os';
4
+ import { join } from 'node:path';
5
+ import { spawnSync } from 'node:child_process';
6
+
7
+ function run(command, args, options = {}) {
8
+ const result = spawnSync(command, args, {
9
+ cwd: options.cwd || process.cwd(),
10
+ encoding: 'utf8'
11
+ });
12
+ if (result.status !== 0) {
13
+ const detail = `${result.stderr || result.stdout}`.trim();
14
+ throw new Error(`${command} ${args.join(' ')} failed${detail ? `: ${detail}` : ''}`);
15
+ }
16
+ return (result.stdout || '').trim();
17
+ }
18
+
19
+ function parseJson(output) {
20
+ try {
21
+ return JSON.parse(output);
22
+ } catch (error) {
23
+ throw new Error(`Expected JSON output: ${error.message}`);
24
+ }
25
+ }
26
+
27
+ const target = mkdtempSync(join(tmpdir(), 'mop-smoke-'));
28
+
29
+ try {
30
+ const packageJson = parseJson(readFileSync('package.json', 'utf8'));
31
+ if (packageJson.name !== 'mop-flow') {
32
+ throw new Error('package.json name must be mop-flow');
33
+ }
34
+ if (!packageJson.bin?.['mop-flow']) {
35
+ throw new Error('package.json must expose mop-flow bin');
36
+ }
37
+
38
+ parseJson(run('node', ['.MOP/scripts/burhan-mop.mjs', 'install', '--target', target, '--json']));
39
+
40
+ const statePath = join(target, '.MOP', 'STATE.json');
41
+ const sentinel = '{"sentinel":"keep-me"}';
42
+ writeFileSync(statePath, sentinel, 'utf8');
43
+
44
+ parseJson(run('node', ['.MOP/scripts/burhan-mop.mjs', 'install', '--target', target, '--force', '--json']));
45
+ const afterForce = readFileSync(statePath, 'utf8');
46
+ if (afterForce !== sentinel) {
47
+ throw new Error('install --force overwrote an existing .MOP/STATE.json');
48
+ }
49
+
50
+ const doctor = parseJson(run('node', ['.MOP/scripts/burhan-mop.mjs', 'doctor', '--json'], { cwd: target }));
51
+ if (!doctor.ok) {
52
+ throw new Error('doctor did not pass in smoke test target');
53
+ }
54
+
55
+ const flow = parseJson(run('node', ['.MOP/scripts/mop-flow.mjs', 'status', '--json'], { cwd: target }));
56
+ if (flow.brand?.name !== 'MOP Flow') {
57
+ throw new Error('mop-flow status did not report MOP Flow branding');
58
+ }
59
+ if (!flow.providers?.every((provider) => provider.mcpServer === 'mop-flow')) {
60
+ throw new Error('mop-flow provider matrix is not using the mop-flow MCP server name');
61
+ }
62
+ if ((flow.skillCatalog?.bridgedCount || 0) < (flow.skillCatalog?.portableCount || 0)) {
63
+ throw new Error('mop-flow bridged skill count is lower than portable skill count');
64
+ }
65
+
66
+ parseJson(run('node', ['.MOP/scripts/mop-flow.mjs', 'manifest', 'refresh', '--json'], { cwd: target }));
67
+
68
+ run('node', ['.MOP/scripts/mop-core.mjs', 'validate']);
69
+ console.log('MOP smoke tests OK.');
70
+ } finally {
71
+ const tempRoot = tmpdir().replaceAll('\\', '/').toLowerCase();
72
+ const targetPath = target.replaceAll('\\', '/').toLowerCase();
73
+ if (targetPath.startsWith(tempRoot) && targetPath.includes('/mop-smoke-')) {
74
+ rmSync(target, { recursive: true, force: true });
75
+ }
76
+ }