burhan-mop 0.1.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.
Files changed (382) hide show
  1. package/.agents/AGENTS.md +54 -0
  2. package/.agents/skills/auto-deploy/SKILL.md +48 -0
  3. package/.agents/skills/autosycn/SKILL.md +75 -0
  4. package/.agents/skills/mop-help/SKILL.md +35 -0
  5. package/.agents/skills/ruflo-core/SKILL.md +35 -0
  6. package/.claude/agents/analysis/analyze-code-quality.md +179 -0
  7. package/.claude/agents/analysis/code-analyzer.md +210 -0
  8. package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
  9. package/.claude/agents/architecture/arch-system-design.md +157 -0
  10. package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
  11. package/.claude/agents/browser/browser-agent.yaml +182 -0
  12. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  13. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  14. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  15. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  16. package/.claude/agents/consensus/quorum-manager.md +823 -0
  17. package/.claude/agents/consensus/raft-manager.md +63 -0
  18. package/.claude/agents/consensus/security-manager.md +622 -0
  19. package/.claude/agents/core/planner.md +375 -0
  20. package/.claude/agents/custom/test-long-runner.md +44 -0
  21. package/.claude/agents/data/data-ml-model.md +445 -0
  22. package/.claude/agents/data/ml/data-ml-model.md +193 -0
  23. package/.claude/agents/development/backend/dev-backend-api.md +142 -0
  24. package/.claude/agents/development/dev-backend-api.md +345 -0
  25. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  26. package/.claude/agents/devops/ops-cicd-github.md +165 -0
  27. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  28. package/.claude/agents/documentation/docs-api-openapi.md +355 -0
  29. package/.claude/agents/flow-nexus/app-store.md +88 -0
  30. package/.claude/agents/flow-nexus/authentication.md +69 -0
  31. package/.claude/agents/flow-nexus/challenges.md +81 -0
  32. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  33. package/.claude/agents/flow-nexus/payments.md +83 -0
  34. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  35. package/.claude/agents/flow-nexus/swarm.md +76 -0
  36. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  37. package/.claude/agents/flow-nexus/workflow.md +84 -0
  38. package/.claude/agents/github/code-review-swarm.md +377 -0
  39. package/.claude/agents/github/github-modes.md +173 -0
  40. package/.claude/agents/github/issue-tracker.md +576 -0
  41. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  42. package/.claude/agents/github/pr-manager.md +438 -0
  43. package/.claude/agents/github/project-board-sync.md +509 -0
  44. package/.claude/agents/github/release-manager.md +605 -0
  45. package/.claude/agents/github/release-swarm.md +583 -0
  46. package/.claude/agents/github/repo-architect.md +398 -0
  47. package/.claude/agents/github/swarm-issue.md +573 -0
  48. package/.claude/agents/github/swarm-pr.md +428 -0
  49. package/.claude/agents/github/sync-coordinator.md +452 -0
  50. package/.claude/agents/github/workflow-automation.md +903 -0
  51. package/.claude/agents/goal/agent.md +816 -0
  52. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  53. package/.claude/agents/optimization/load-balancer.md +431 -0
  54. package/.claude/agents/optimization/performance-monitor.md +672 -0
  55. package/.claude/agents/optimization/resource-allocator.md +674 -0
  56. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  57. package/.claude/agents/payments/agentic-payments.md +126 -0
  58. package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
  59. package/.claude/agents/sparc/architecture.md +699 -0
  60. package/.claude/agents/sparc/pseudocode.md +520 -0
  61. package/.claude/agents/sparc/refinement.md +802 -0
  62. package/.claude/agents/sparc/specification.md +478 -0
  63. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
  64. package/.claude/agents/specialized/spec-mobile-react-native.md +227 -0
  65. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  66. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  67. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  68. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  69. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  70. package/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
  71. package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
  72. package/.claude/agents/swarm/mesh-coordinator.md +963 -0
  73. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  74. package/.claude/agents/templates/base-template-generator.md +289 -0
  75. package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  76. package/.claude/agents/templates/github-pr-manager.md +177 -0
  77. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  78. package/.claude/agents/templates/memory-coordinator.md +187 -0
  79. package/.claude/agents/templates/orchestrator-task.md +139 -0
  80. package/.claude/agents/templates/performance-analyzer.md +199 -0
  81. package/.claude/agents/templates/sparc-coordinator.md +514 -0
  82. package/.claude/agents/testing/production-validator.md +395 -0
  83. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  84. package/.claude/agents/v3/aidefence-guardian.md +282 -0
  85. package/.claude/agents/v3/claims-authorizer.md +208 -0
  86. package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
  87. package/.claude/agents/v3/ddd-domain-expert.md +220 -0
  88. package/.claude/agents/v3/injection-analyst.md +236 -0
  89. package/.claude/agents/v3/performance-engineer.md +1233 -0
  90. package/.claude/agents/v3/pii-detector.md +151 -0
  91. package/.claude/agents/v3/reasoningbank-learner.md +213 -0
  92. package/.claude/agents/v3/security-architect-aidefence.md +410 -0
  93. package/.claude/agents/v3/security-architect.md +867 -0
  94. package/.claude/agents/v3/swarm-memory-manager.md +157 -0
  95. package/.claude/agents/v3/v3-integration-architect.md +205 -0
  96. package/.claude/commands/agents/README.md +50 -0
  97. package/.claude/commands/agents/agent-capabilities.md +140 -0
  98. package/.claude/commands/agents/agent-coordination.md +28 -0
  99. package/.claude/commands/agents/agent-spawning.md +28 -0
  100. package/.claude/commands/agents/agent-types.md +216 -0
  101. package/.claude/commands/agents/health.md +139 -0
  102. package/.claude/commands/agents/list.md +100 -0
  103. package/.claude/commands/agents/logs.md +130 -0
  104. package/.claude/commands/agents/metrics.md +122 -0
  105. package/.claude/commands/agents/pool.md +127 -0
  106. package/.claude/commands/agents/spawn.md +140 -0
  107. package/.claude/commands/agents/status.md +115 -0
  108. package/.claude/commands/agents/stop.md +102 -0
  109. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  110. package/.claude/commands/analysis/README.md +9 -0
  111. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  112. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  113. package/.claude/commands/analysis/performance-report.md +25 -0
  114. package/.claude/commands/analysis/token-efficiency.md +45 -0
  115. package/.claude/commands/analysis/token-usage.md +25 -0
  116. package/.claude/commands/automation/README.md +9 -0
  117. package/.claude/commands/automation/auto-agent.md +122 -0
  118. package/.claude/commands/automation/self-healing.md +106 -0
  119. package/.claude/commands/automation/session-memory.md +90 -0
  120. package/.claude/commands/automation/smart-agents.md +73 -0
  121. package/.claude/commands/automation/smart-spawn.md +25 -0
  122. package/.claude/commands/automation/workflow-select.md +25 -0
  123. package/.claude/commands/claude-flow-help.md +103 -0
  124. package/.claude/commands/claude-flow-memory.md +107 -0
  125. package/.claude/commands/claude-flow-swarm.md +205 -0
  126. package/.claude/commands/coordination/README.md +9 -0
  127. package/.claude/commands/coordination/agent-spawn.md +25 -0
  128. package/.claude/commands/coordination/init.md +44 -0
  129. package/.claude/commands/coordination/orchestrate.md +43 -0
  130. package/.claude/commands/coordination/spawn.md +45 -0
  131. package/.claude/commands/coordination/swarm-init.md +85 -0
  132. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  133. package/.claude/commands/github/README.md +11 -0
  134. package/.claude/commands/github/code-review-swarm.md +514 -0
  135. package/.claude/commands/github/code-review.md +25 -0
  136. package/.claude/commands/github/github-modes.md +147 -0
  137. package/.claude/commands/github/github-swarm.md +121 -0
  138. package/.claude/commands/github/issue-tracker.md +292 -0
  139. package/.claude/commands/github/issue-triage.md +25 -0
  140. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  141. package/.claude/commands/github/pr-enhance.md +26 -0
  142. package/.claude/commands/github/pr-manager.md +170 -0
  143. package/.claude/commands/github/project-board-sync.md +471 -0
  144. package/.claude/commands/github/release-manager.md +340 -0
  145. package/.claude/commands/github/release-swarm.md +544 -0
  146. package/.claude/commands/github/repo-analyze.md +25 -0
  147. package/.claude/commands/github/repo-architect.md +367 -0
  148. package/.claude/commands/github/swarm-issue.md +485 -0
  149. package/.claude/commands/github/swarm-pr.md +288 -0
  150. package/.claude/commands/github/sync-coordinator.md +303 -0
  151. package/.claude/commands/github/workflow-automation.md +442 -0
  152. package/.claude/commands/hive-mind/README.md +17 -0
  153. package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
  154. package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
  155. package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
  156. package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
  157. package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
  158. package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
  159. package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
  160. package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
  161. package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
  162. package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
  163. package/.claude/commands/hive-mind/hive-mind.md +27 -0
  164. package/.claude/commands/hooks/README.md +11 -0
  165. package/.claude/commands/hooks/overview.md +58 -0
  166. package/.claude/commands/hooks/post-edit.md +117 -0
  167. package/.claude/commands/hooks/post-task.md +112 -0
  168. package/.claude/commands/hooks/pre-edit.md +113 -0
  169. package/.claude/commands/hooks/pre-task.md +111 -0
  170. package/.claude/commands/hooks/session-end.md +118 -0
  171. package/.claude/commands/hooks/setup.md +103 -0
  172. package/.claude/commands/memory/README.md +9 -0
  173. package/.claude/commands/memory/memory-persist.md +25 -0
  174. package/.claude/commands/memory/memory-search.md +25 -0
  175. package/.claude/commands/memory/memory-usage.md +25 -0
  176. package/.claude/commands/memory/neural.md +47 -0
  177. package/.claude/commands/monitoring/README.md +9 -0
  178. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  179. package/.claude/commands/monitoring/agents.md +44 -0
  180. package/.claude/commands/monitoring/real-time-view.md +25 -0
  181. package/.claude/commands/monitoring/status.md +46 -0
  182. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  183. package/.claude/commands/optimization/README.md +9 -0
  184. package/.claude/commands/optimization/auto-topology.md +62 -0
  185. package/.claude/commands/optimization/cache-manage.md +25 -0
  186. package/.claude/commands/optimization/parallel-execute.md +25 -0
  187. package/.claude/commands/optimization/parallel-execution.md +50 -0
  188. package/.claude/commands/optimization/topology-optimize.md +25 -0
  189. package/.claude/commands/pair/README.md +261 -0
  190. package/.claude/commands/pair/commands.md +546 -0
  191. package/.claude/commands/pair/config.md +510 -0
  192. package/.claude/commands/pair/examples.md +512 -0
  193. package/.claude/commands/pair/modes.md +348 -0
  194. package/.claude/commands/pair/session.md +407 -0
  195. package/.claude/commands/pair/start.md +209 -0
  196. package/.claude/commands/sparc/analyzer.md +52 -0
  197. package/.claude/commands/sparc/architect.md +53 -0
  198. package/.claude/commands/sparc/ask.md +97 -0
  199. package/.claude/commands/sparc/batch-executor.md +54 -0
  200. package/.claude/commands/sparc/code.md +89 -0
  201. package/.claude/commands/sparc/coder.md +54 -0
  202. package/.claude/commands/sparc/debug.md +83 -0
  203. package/.claude/commands/sparc/debugger.md +54 -0
  204. package/.claude/commands/sparc/designer.md +53 -0
  205. package/.claude/commands/sparc/devops.md +109 -0
  206. package/.claude/commands/sparc/docs-writer.md +80 -0
  207. package/.claude/commands/sparc/documenter.md +54 -0
  208. package/.claude/commands/sparc/innovator.md +54 -0
  209. package/.claude/commands/sparc/integration.md +83 -0
  210. package/.claude/commands/sparc/mcp.md +117 -0
  211. package/.claude/commands/sparc/memory-manager.md +54 -0
  212. package/.claude/commands/sparc/optimizer.md +54 -0
  213. package/.claude/commands/sparc/orchestrator.md +132 -0
  214. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  215. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  216. package/.claude/commands/sparc/researcher.md +54 -0
  217. package/.claude/commands/sparc/reviewer.md +54 -0
  218. package/.claude/commands/sparc/security-review.md +80 -0
  219. package/.claude/commands/sparc/sparc-modes.md +174 -0
  220. package/.claude/commands/sparc/sparc.md +111 -0
  221. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  222. package/.claude/commands/sparc/supabase-admin.md +348 -0
  223. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  224. package/.claude/commands/sparc/tdd.md +54 -0
  225. package/.claude/commands/sparc/tester.md +54 -0
  226. package/.claude/commands/sparc/tutorial.md +79 -0
  227. package/.claude/commands/sparc/workflow-manager.md +54 -0
  228. package/.claude/commands/stream-chain/pipeline.md +121 -0
  229. package/.claude/commands/stream-chain/run.md +70 -0
  230. package/.claude/commands/swarm/README.md +15 -0
  231. package/.claude/commands/swarm/analysis.md +95 -0
  232. package/.claude/commands/swarm/development.md +96 -0
  233. package/.claude/commands/swarm/examples.md +168 -0
  234. package/.claude/commands/swarm/maintenance.md +102 -0
  235. package/.claude/commands/swarm/optimization.md +117 -0
  236. package/.claude/commands/swarm/research.md +136 -0
  237. package/.claude/commands/swarm/swarm-analysis.md +8 -0
  238. package/.claude/commands/swarm/swarm-background.md +8 -0
  239. package/.claude/commands/swarm/swarm-init.md +19 -0
  240. package/.claude/commands/swarm/swarm-modes.md +8 -0
  241. package/.claude/commands/swarm/swarm-monitor.md +8 -0
  242. package/.claude/commands/swarm/swarm-spawn.md +19 -0
  243. package/.claude/commands/swarm/swarm-status.md +8 -0
  244. package/.claude/commands/swarm/swarm-strategies.md +8 -0
  245. package/.claude/commands/swarm/swarm.md +87 -0
  246. package/.claude/commands/swarm/testing.md +131 -0
  247. package/.claude/commands/training/README.md +9 -0
  248. package/.claude/commands/training/model-update.md +25 -0
  249. package/.claude/commands/training/neural-patterns.md +108 -0
  250. package/.claude/commands/training/neural-train.md +75 -0
  251. package/.claude/commands/training/pattern-learn.md +25 -0
  252. package/.claude/commands/training/specialization.md +63 -0
  253. package/.claude/commands/truth/start.md +143 -0
  254. package/.claude/commands/verify/check.md +50 -0
  255. package/.claude/commands/verify/start.md +128 -0
  256. package/.claude/commands/workflows/README.md +9 -0
  257. package/.claude/commands/workflows/development.md +78 -0
  258. package/.claude/commands/workflows/research.md +63 -0
  259. package/.claude/commands/workflows/workflow-create.md +25 -0
  260. package/.claude/commands/workflows/workflow-execute.md +25 -0
  261. package/.claude/commands/workflows/workflow-export.md +25 -0
  262. package/.claude/helpers/README.md +97 -0
  263. package/.claude/helpers/adr-compliance.sh +186 -0
  264. package/.claude/helpers/auto-commit.sh +178 -0
  265. package/.claude/helpers/auto-memory-hook.mjs +368 -0
  266. package/.claude/helpers/checkpoint-manager.sh +251 -0
  267. package/.claude/helpers/daemon-manager.sh +252 -0
  268. package/.claude/helpers/ddd-tracker.sh +144 -0
  269. package/.claude/helpers/github-safe.js +156 -0
  270. package/.claude/helpers/github-setup.sh +45 -0
  271. package/.claude/helpers/guidance-hook.sh +13 -0
  272. package/.claude/helpers/guidance-hooks.sh +102 -0
  273. package/.claude/helpers/health-monitor.sh +108 -0
  274. package/.claude/helpers/hook-handler.cjs +286 -0
  275. package/.claude/helpers/intelligence.cjs +1031 -0
  276. package/.claude/helpers/learning-hooks.sh +329 -0
  277. package/.claude/helpers/learning-optimizer.sh +127 -0
  278. package/.claude/helpers/learning-service.mjs +1144 -0
  279. package/.claude/helpers/memory.js +83 -0
  280. package/.claude/helpers/metrics-db.mjs +488 -0
  281. package/.claude/helpers/pattern-consolidator.sh +86 -0
  282. package/.claude/helpers/perf-worker.sh +160 -0
  283. package/.claude/helpers/post-commit +16 -0
  284. package/.claude/helpers/pre-commit +26 -0
  285. package/.claude/helpers/quick-start.sh +19 -0
  286. package/.claude/helpers/router.js +105 -0
  287. package/.claude/helpers/ruflo-hook.cjs +59 -0
  288. package/.claude/helpers/security-scanner.sh +127 -0
  289. package/.claude/helpers/session.js +157 -0
  290. package/.claude/helpers/setup-mcp.sh +18 -0
  291. package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
  292. package/.claude/helpers/statusline-hook.sh +21 -0
  293. package/.claude/helpers/statusline.cjs +693 -0
  294. package/.claude/helpers/statusline.js +352 -0
  295. package/.claude/helpers/swarm-comms.sh +353 -0
  296. package/.claude/helpers/swarm-hooks.sh +761 -0
  297. package/.claude/helpers/swarm-monitor.sh +211 -0
  298. package/.claude/helpers/sync-v3-metrics.sh +245 -0
  299. package/.claude/helpers/update-v3-progress.sh +166 -0
  300. package/.claude/helpers/v3-quick-status.sh +58 -0
  301. package/.claude/helpers/v3.sh +111 -0
  302. package/.claude/helpers/validate-v3-config.sh +216 -0
  303. package/.claude/helpers/worker-manager.sh +170 -0
  304. package/.claude/settings.json +285 -0
  305. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  306. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  307. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  308. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  309. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  310. package/.claude/skills/auto-deploy/SKILL.md +31 -0
  311. package/.claude/skills/autosycn/SKILL.md +30 -0
  312. package/.claude/skills/browser/SKILL.md +204 -0
  313. package/.claude/skills/dual-mode/README.md +71 -0
  314. package/.claude/skills/dual-mode/dual-collect.md +103 -0
  315. package/.claude/skills/dual-mode/dual-coordinate.md +85 -0
  316. package/.claude/skills/dual-mode/dual-spawn.md +81 -0
  317. package/.claude/skills/flow-nexus-neural/SKILL.md +727 -0
  318. package/.claude/skills/flow-nexus-platform/SKILL.md +1154 -0
  319. package/.claude/skills/flow-nexus-swarm/SKILL.md +604 -0
  320. package/.claude/skills/github-code-review/SKILL.md +1125 -0
  321. package/.claude/skills/github-multi-repo/SKILL.md +862 -0
  322. package/.claude/skills/github-project-management/SKILL.md +1262 -0
  323. package/.claude/skills/github-release-management/SKILL.md +1064 -0
  324. package/.claude/skills/github-workflow-automation/SKILL.md +1047 -0
  325. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  326. package/.claude/skills/mop-help/SKILL.md +35 -0
  327. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  328. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  329. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  330. package/.claude/skills/skill-builder/SKILL.md +910 -0
  331. package/.claude/skills/sparc-methodology/SKILL.md +1106 -0
  332. package/.claude/skills/stream-chain/SKILL.md +560 -0
  333. package/.claude/skills/swarm-advanced/SKILL.md +970 -0
  334. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  335. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  336. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  337. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  338. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  339. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  340. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  341. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  342. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  343. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  344. package/.claude/skills/verification-quality/SKILL.md +691 -0
  345. package/.claude-flow/CAPABILITIES.md +403 -0
  346. package/.claude-flow/config.yaml +43 -0
  347. package/.claude-flow/metrics/learning.json +17 -0
  348. package/.claude-flow/metrics/swarm-activity.json +18 -0
  349. package/.claude-flow/metrics/v3-progress.json +26 -0
  350. package/.claude-flow/security/audit-status.json +8 -0
  351. package/.codex/config.toml +39 -0
  352. package/.gemini/settings.json +49 -0
  353. package/.mcp.json +55 -0
  354. package/.memoryofplanet/PROTOCOL.md +436 -0
  355. package/.memoryofplanet/STATE.json +561 -0
  356. package/.memoryofplanet/config/defaults.json +46 -0
  357. package/.memoryofplanet/config/team.json +7 -0
  358. package/.memoryofplanet/scripts/burhan-mop.mjs +124 -0
  359. package/.memoryofplanet/scripts/mop-auto-deploy.mjs +153 -0
  360. package/.memoryofplanet/scripts/mop-autosycn.mjs +617 -0
  361. package/.memoryofplanet/scripts/mop-core.mjs +774 -0
  362. package/.memoryofplanet/scripts/mop-workflow.mjs +348 -0
  363. package/.memoryofplanet/templates/artifacts/adversarial-review.md +33 -0
  364. package/.memoryofplanet/templates/artifacts/architecture.md +28 -0
  365. package/.memoryofplanet/templates/artifacts/decision-log.md +21 -0
  366. package/.memoryofplanet/templates/artifacts/handoff.md +21 -0
  367. package/.memoryofplanet/templates/artifacts/implementation-notes.md +21 -0
  368. package/.memoryofplanet/templates/artifacts/prd.md +29 -0
  369. package/.memoryofplanet/templates/artifacts/product-brief.md +30 -0
  370. package/.memoryofplanet/templates/artifacts/readiness-report.md +25 -0
  371. package/.memoryofplanet/templates/artifacts/release-notes.md +21 -0
  372. package/.memoryofplanet/templates/artifacts/review.md +21 -0
  373. package/.memoryofplanet/templates/artifacts/story.md +25 -0
  374. package/.memoryofplanet/templates/artifacts/ux-spec.md +32 -0
  375. package/AGENTS.md +126 -0
  376. package/CLAUDE.md +235 -0
  377. package/GEMINI.md +19 -0
  378. package/README.md +1096 -0
  379. package/bin/burhan-mop.mjs +2 -0
  380. package/bin/mop-core.mjs +2 -0
  381. package/bin/mop-workflow.mjs +2 -0
  382. package/package.json +66 -0
package/README.md ADDED
@@ -0,0 +1,1096 @@
1
+ <h1 align="center">BURHAN-MOP</h1>
2
+
3
+ <p align="center">
4
+ <strong>MemoryOfPlanet portable AI MemoryCore for Claude, Codex / ChatGPT, Gemini, and Antigravity.</strong>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/burhan-mop">
9
+ <img src="https://img.shields.io/npm/v/burhan-mop?style=for-the-badge&label=npm" alt="npm version">
10
+ </a>
11
+ <a href="https://github.com/BURHANDEV-ENTERPRISE/BURHAN-MOP">
12
+ <img src="https://img.shields.io/badge/GitHub-BURHAN--MOP-181717?style=for-the-badge&logo=github" alt="GitHub repository">
13
+ </a>
14
+ <img src="https://img.shields.io/badge/Node-%3E%3D20-339933?style=for-the-badge&logo=node.js&logoColor=white" alt="Node 20+">
15
+ <img src="https://img.shields.io/badge/License-UNLICENSED-lightgrey?style=for-the-badge" alt="License">
16
+ </p>
17
+
18
+ <p align="center">
19
+ <img src="https://img.shields.io/badge/Claude-ready-5A45FF?style=flat-square" alt="Claude ready">
20
+ <img src="https://img.shields.io/badge/Codex-ready-111111?style=flat-square" alt="Codex ready">
21
+ <img src="https://img.shields.io/badge/Gemini-ready-4285F4?style=flat-square" alt="Gemini ready">
22
+ <img src="https://img.shields.io/badge/Antigravity-ready-00A67E?style=flat-square" alt="Antigravity ready">
23
+ <img src="https://img.shields.io/badge/MOP_Workflow-BMAD_inspired-FFB000?style=flat-square" alt="MOP workflow">
24
+ </p>
25
+
26
+ <div align="center">
27
+
28
+ | English | Bahasa Melayu |
29
+ | --- | --- |
30
+ | Portable memory, agent routing, workflow gates, artifacts, autosycn, and deploy setup for AI coding workspaces. | Memory portable, routing agent, workflow gate, artifact, autosycn, dan setup deploy untuk workspace coding AI. |
31
+ | Install into any project root with `npx burhan-mop install`. | Pasang ke root mana-mana projek dengan `npx burhan-mop install`. |
32
+ | Built for multi-provider use, not Claude-only. | Dibina untuk banyak provider, bukan Claude sahaja. |
33
+
34
+ </div>
35
+
36
+ ---
37
+
38
+ ## Table of Contents
39
+
40
+ - [English](#english)
41
+ - [What is BURHAN-MOP?](#what-is-burhan-mop)
42
+ - [Quick Start](#quick-start)
43
+ - [Setup Wizard](#setup-wizard)
44
+ - [Daily Usage](#daily-usage)
45
+ - [Agents and Party Mode](#agents-and-party-mode)
46
+ - [MOP Workflow](#mop-workflow)
47
+ - [Artifacts](#artifacts)
48
+ - [Autosycn](#autosycn)
49
+ - [Auto Deploy](#auto-deploy)
50
+ - [CLI Reference](#cli-reference)
51
+ - [Provider Support](#provider-support)
52
+ - [Publishing to npm](#publishing-to-npm)
53
+ - [Troubleshooting](#troubleshooting)
54
+ - [Bahasa Melayu](#bahasa-melayu)
55
+ - [Apa itu BURHAN-MOP?](#apa-itu-burhan-mop)
56
+ - [Mula Cepat](#mula-cepat)
57
+ - [Setup Wizard](#setup-wizard-bm)
58
+ - [Cara Guna Harian](#cara-guna-harian)
59
+ - [Agent dan Party Mode](#agent-dan-party-mode)
60
+ - [MOP Workflow](#mop-workflow-bm)
61
+ - [Artifacts](#artifacts-bm)
62
+ - [Autosycn](#autosycn-bm)
63
+ - [Auto Deploy](#auto-deploy-bm)
64
+ - [Rujukan CLI](#rujukan-cli)
65
+ - [Sokongan Provider](#sokongan-provider)
66
+ - [Publish ke npm](#publish-ke-npm)
67
+ - [Troubleshooting BM](#troubleshooting-bm)
68
+
69
+ ---
70
+
71
+ # English
72
+
73
+ ## What is BURHAN-MOP?
74
+
75
+ BURHAN-MOP is a portable MemoryOfPlanet core for AI-assisted software projects.
76
+ It gives AI coding agents a shared project memory, an authentication gate, named
77
+ agent identities, workflow stages, artifact output, autosync rules, and
78
+ deployment setup guidance.
79
+
80
+ The goal is simple: when an AI enters a workspace, it should understand who is
81
+ working, which project state is true, which agent should lead, what should be
82
+ planned before coding, and how work should be saved.
83
+
84
+ ### Core Promise
85
+
86
+ | Area | What BURHAN-MOP provides |
87
+ | --- | --- |
88
+ | Memory | Durable `.memoryofplanet/STATE.json` plus protocol instructions. |
89
+ | Security | First-action authentication gate with scrypt password verification. |
90
+ | Agents | Named agents with ownership rules and task routing. |
91
+ | Workflow | BMAD-inspired MOP workflow from idea to release. |
92
+ | Artifacts | Organized outputs under `.memoryofplanet/artifacts/<category>/<slug>/<type>.md`. |
93
+ | Git | Identity-safe `autosycn` flow using real user Git identity. |
94
+ | Deploy | Opt-in auto-deploy setup for GitHub, Docker, and Vercel. |
95
+ | Providers | Claude, Codex / ChatGPT coding agents, Gemini CLI, and Antigravity entrypoints. |
96
+
97
+ ## Quick Start
98
+
99
+ ### Install from npm
100
+
101
+ After the package is published to npm:
102
+
103
+ ```bash
104
+ npx burhan-mop install
105
+ ```
106
+
107
+ Install into another folder:
108
+
109
+ ```bash
110
+ npx burhan-mop install --target "C:\path\to\project"
111
+ ```
112
+
113
+ Overwrite existing BURHAN-MOP files:
114
+
115
+ ```bash
116
+ npx burhan-mop install --force
117
+ ```
118
+
119
+ ### Install from GitHub before npm publish
120
+
121
+ This works now, even before the npm package is published:
122
+
123
+ ```bash
124
+ npx --yes github:BURHANDEV-ENTERPRISE/BURHAN-MOP install
125
+ ```
126
+
127
+ ### Verify the install
128
+
129
+ ```bash
130
+ npx burhan-mop doctor
131
+ ```
132
+
133
+ Or locally inside the project:
134
+
135
+ ```bash
136
+ node .memoryofplanet/scripts/burhan-mop.mjs doctor
137
+ ```
138
+
139
+ ## Setup Wizard
140
+
141
+ After installing the core into a project, start a new AI chat inside that
142
+ workspace. The first instruction is always to read `.memoryofplanet/STATE.json`.
143
+
144
+ If `initialized` is `false`, the AI must only run setup.
145
+
146
+ The setup wizard asks, in order:
147
+
148
+ 1. Project name, defaulting to the current folder name.
149
+ 2. Owner display name.
150
+ 3. Owner codename.
151
+ 4. Password.
152
+ 5. Project mode: `solo` or `team`.
153
+ 6. Conversation language.
154
+ 7. Coding/adventure language.
155
+ 8. GitHub project link.
156
+ 9. GitHub username.
157
+ 10. Git commit email.
158
+ 11. Team join mode, if team mode is selected.
159
+ 12. Whether to activate auto deploy now or later.
160
+
161
+ CLI setup example:
162
+
163
+ ```bash
164
+ node .memoryofplanet/scripts/mop-core.mjs setup ^
165
+ --project-name "My Project" ^
166
+ --name "MoonWiRaja" ^
167
+ --codename moon ^
168
+ --password "your-password" ^
169
+ --mode team ^
170
+ --conversation-language "Melayu" ^
171
+ --coding-language "English" ^
172
+ --git-email "168633207+MoonWIRaja@users.noreply.github.com" ^
173
+ --git-name "MoonWiRaja" ^
174
+ --github-username "MoonWIRaja" ^
175
+ --github-url "https://github.com/owner/repo.git" ^
176
+ --join-mode owner-approved
177
+ ```
178
+
179
+ ## Daily Usage
180
+
181
+ ### First action in every new session
182
+
183
+ The AI must read:
184
+
185
+ ```text
186
+ .memoryofplanet/STATE.json
187
+ ```
188
+
189
+ Then it follows:
190
+
191
+ ```text
192
+ .memoryofplanet/PROTOCOL.md
193
+ ```
194
+
195
+ If the core is initialized and no member is active, the AI asks only:
196
+
197
+ ```text
198
+ Codename dan password.
199
+ ```
200
+
201
+ No file inspection, answering, planning, or coding should happen before the
202
+ authentication gate passes.
203
+
204
+ ### After login
205
+
206
+ The AI must route the task to a primary agent:
207
+
208
+ ```bash
209
+ node .memoryofplanet/scripts/mop-core.mjs agent route --actor <codename> --task "<user task>"
210
+ ```
211
+
212
+ If an agent role is needed for the first time, the user names that agent:
213
+
214
+ ```bash
215
+ node .memoryofplanet/scripts/mop-core.mjs agent activate --actor <codename> --role architect --title "System Architect" --name "Nimo"
216
+ ```
217
+
218
+ ## Agents and Party Mode
219
+
220
+ BURHAN-MOP treats agents as named identities, not just anonymous roles.
221
+
222
+ ### Agent ownership
223
+
224
+ | Rule | Meaning |
225
+ | --- | --- |
226
+ | Same name | Shared agent consciousness across members in team mode. |
227
+ | Different name | Different agent, even if the role is the same. |
228
+ | Owners | `agentRoster[].owners` decides who can use the agent. |
229
+ | Active agent | Every real conversation or action should run through an active named agent. |
230
+
231
+ ### Router behavior
232
+
233
+ The router chooses one primary agent. It may recommend any number of support
234
+ agents when the task truly needs them.
235
+
236
+ Examples:
237
+
238
+ | User task | Primary agent | Possible support agents |
239
+ | --- | --- | --- |
240
+ | Build a new system | `architect` | `planner`, `researcher`, `prompt`, `coder`, `reviewer` |
241
+ | Design animated UI | `frontend` or `design` | `ux`, `accessibility`, `performance` |
242
+ | Review security | `security` | `reviewer`, `tester`, `architect` |
243
+ | Publish package | `deploy` or `github` | `devops`, `reviewer`, `memory` |
244
+
245
+ ### Party Mode format
246
+
247
+ When several agents should reason together, BURHAN-MOP shows:
248
+
249
+ ```text
250
+ PARTY MODE
251
+
252
+ agent: Nimo (architect) to agent: Pixel (frontend)
253
+
254
+ What browser constraints affect this scroll animation?
255
+
256
+ agent: Pixel (frontend) to agent: Nimo (architect)
257
+
258
+ We need frame-based scroll mapping, reduced-motion fallback, and asset preloading.
259
+ ```
260
+
261
+ ## MOP Workflow
262
+
263
+ MOP Workflow is BMAD-inspired, but adapted for MemoryOfPlanet and multi-agent
264
+ use.
265
+
266
+ ```text
267
+ idea -> brief -> prd -> ux-spec -> architecture -> story -> readiness -> implementation -> review -> release
268
+ ```
269
+
270
+ Use the workflow helper:
271
+
272
+ ```bash
273
+ node .memoryofplanet/scripts/mop-workflow.mjs help --actor <codename> --task "what should we do next?"
274
+ ```
275
+
276
+ It returns:
277
+
278
+ - suggested phase
279
+ - lead agent role
280
+ - support or party roles
281
+ - next artifact type
282
+ - readiness gate requirement
283
+ - next command
284
+
285
+ Before coding:
286
+
287
+ ```bash
288
+ node .memoryofplanet/scripts/mop-workflow.mjs gate readiness --actor <codename> --task "<task>"
289
+ ```
290
+
291
+ For risky or important work:
292
+
293
+ ```bash
294
+ node .memoryofplanet/scripts/mop-workflow.mjs review adversarial --actor <codename> --target "<plan or file>"
295
+ ```
296
+
297
+ ## Artifacts
298
+
299
+ Artifacts keep planning output organized and prevent root clutter.
300
+
301
+ Output layout:
302
+
303
+ ```text
304
+ .memoryofplanet/artifacts/<category>/<artifact-slug>/<type>.md
305
+ ```
306
+
307
+ Default categories:
308
+
309
+ | Category | Artifact types |
310
+ | --- | --- |
311
+ | `plan` | `product-brief`, `prd`, `story` |
312
+ | `design` | `ux-spec` |
313
+ | `architecture` | `architecture` |
314
+ | `readiness` | `readiness-report` |
315
+ | `implementation` | `implementation-notes` |
316
+ | `review` | `review`, `adversarial-review` |
317
+ | `release` | `release-notes`, `handoff` |
318
+ | `decisions` | `decision-log` |
319
+
320
+ Create an artifact:
321
+
322
+ ```bash
323
+ node .memoryofplanet/scripts/mop-workflow.mjs artifact create --actor moon --type prd --title "Portfolio System"
324
+ ```
325
+
326
+ Preview without writing:
327
+
328
+ ```bash
329
+ node .memoryofplanet/scripts/mop-workflow.mjs artifact create --actor moon --type prd --title "Portfolio System" --dry-run
330
+ ```
331
+
332
+ ## Project Root Policy
333
+
334
+ BURHAN-MOP tells AI agents that the workspace root is the project root.
335
+
336
+ Agents should not create a wrapper folder such as:
337
+
338
+ ```text
339
+ portfolio/
340
+ my-app/
341
+ <project-name>/
342
+ ```
343
+
344
+ Then build inside it, unless the user explicitly asks for a monorepo or
345
+ multiple apps.
346
+
347
+ Correct top-level folders include:
348
+
349
+ ```text
350
+ src/
351
+ app/
352
+ pages/
353
+ components/
354
+ public/
355
+ assets/
356
+ tests/
357
+ docs/
358
+ config/
359
+ scripts/
360
+ ```
361
+
362
+ ## Autosycn
363
+
364
+ `autosycn` is the intentional project spelling for the autosync skill.
365
+
366
+ It saves memory, commits with the real user identity, pushes to the correct
367
+ branch, and lets BURHAN-MOP review merges.
368
+
369
+ ### Solo mode
370
+
371
+ | Action | Branch |
372
+ | --- | --- |
373
+ | Work | `main` |
374
+ | Push | `main` |
375
+ | Merge | Not needed |
376
+
377
+ ### Team mode
378
+
379
+ | Action | Branch |
380
+ | --- | --- |
381
+ | Main trunk | `main` |
382
+ | User work | `dev/<codename>` |
383
+ | Review and merge | BURHAN-MOP checks and merges to `main` |
384
+
385
+ ### Required user Git identity
386
+
387
+ ```bash
388
+ node .memoryofplanet/scripts/mop-core.mjs member git-identity --actor moon --name "MoonWiRaja" --email "168633207+MoonWIRaja@users.noreply.github.com" --github-username "MoonWIRaja"
389
+ ```
390
+
391
+ ### Initialize autosycn
392
+
393
+ ```bash
394
+ node .memoryofplanet/scripts/mop-autosycn.mjs init --actor moon --url "https://github.com/owner/repo.git"
395
+ ```
396
+
397
+ ### Before work
398
+
399
+ ```bash
400
+ node .memoryofplanet/scripts/mop-autosycn.mjs preflight --actor moon
401
+ ```
402
+
403
+ ### After changes
404
+
405
+ ```bash
406
+ node .memoryofplanet/scripts/mop-autosycn.mjs run --actor moon --reason "Implemented feature"
407
+ ```
408
+
409
+ Important: GitHub commit attribution comes from the commit email. GitHub push
410
+ actor comes from the credential or SSH key used by `git push`.
411
+
412
+ ## Auto Deploy
413
+
414
+ Auto deploy is available, but opt-in.
415
+
416
+ Supported providers:
417
+
418
+ | Provider | Purpose |
419
+ | --- | --- |
420
+ | GitHub | GitHub Pages or GitHub Actions deploy flow. |
421
+ | Docker | Dockerfile and compose-based deployment. |
422
+ | Vercel | Vercel project linking and deploy settings. |
423
+
424
+ The AI must ask:
425
+
426
+ ```text
427
+ Nak aktifkan auto deploy sekarang? Pilih provider: GitHub, Docker, Vercel.
428
+ ```
429
+
430
+ If the user says later or no, the AI replies:
431
+
432
+ ```text
433
+ Okey, nanti kalau nak deploy beri tahu saya. Saya setup auto deploy.
434
+ ```
435
+
436
+ ## CLI Reference
437
+
438
+ ### Package installer
439
+
440
+ ```bash
441
+ npx burhan-mop install
442
+ npx burhan-mop install --target "C:\path\to\project"
443
+ npx burhan-mop install --force
444
+ npx burhan-mop doctor
445
+ npx burhan-mop package
446
+ ```
447
+
448
+ ### Core
449
+
450
+ ```bash
451
+ node .memoryofplanet/scripts/mop-core.mjs status
452
+ node .memoryofplanet/scripts/mop-core.mjs validate
453
+ node .memoryofplanet/scripts/mop-core.mjs login --codename moon --password "<password>"
454
+ node .memoryofplanet/scripts/mop-core.mjs agent route --actor moon --task "<task>"
455
+ node .memoryofplanet/scripts/mop-core.mjs agent list
456
+ ```
457
+
458
+ ### Workflow
459
+
460
+ ```bash
461
+ node .memoryofplanet/scripts/mop-workflow.mjs status --actor moon
462
+ node .memoryofplanet/scripts/mop-workflow.mjs help --actor moon --task "<task>"
463
+ node .memoryofplanet/scripts/mop-workflow.mjs artifact create --actor moon --type prd --title "Title"
464
+ node .memoryofplanet/scripts/mop-workflow.mjs gate readiness --actor moon --task "<task>"
465
+ node .memoryofplanet/scripts/mop-workflow.mjs review adversarial --actor moon --target "<target>"
466
+ ```
467
+
468
+ ## Provider Support
469
+
470
+ | Provider | Entry point |
471
+ | --- | --- |
472
+ | Codex / ChatGPT coding agents | `AGENTS.md`, `.codex/config.toml` |
473
+ | Claude Code | `CLAUDE.md`, `.claude/settings.json`, `.claude/skills/` |
474
+ | Gemini CLI | `GEMINI.md`, `.gemini/settings.json` |
475
+ | Antigravity | `.agents/AGENTS.md`, `.agents/skills/` |
476
+ | MCP-compatible clients | `.mcp.json` |
477
+
478
+ ## Publishing to npm
479
+
480
+ Package name:
481
+
482
+ ```text
483
+ burhan-mop
484
+ ```
485
+
486
+ The package name was checked against the npm registry during setup and was not
487
+ found, which means it is currently available unless someone publishes it first.
488
+
489
+ ### Local publish flow
490
+
491
+ ```bash
492
+ npm login --auth-type=web
493
+ npm whoami
494
+ npm run validate
495
+ npm run doctor
496
+ npm run pack:dry
497
+ npm publish
498
+ ```
499
+
500
+ After publish:
501
+
502
+ ```bash
503
+ npm view burhan-mop version
504
+ npx --yes burhan-mop package
505
+ npx --yes burhan-mop install --target "C:\path\to\empty-test-folder"
506
+ ```
507
+
508
+ ### GitHub Actions publish flow
509
+
510
+ This repository includes:
511
+
512
+ ```text
513
+ .github/workflows/npm-publish.yml
514
+ ```
515
+
516
+ Recommended secure setup:
517
+
518
+ 1. Open the npm package settings after the first publish.
519
+ 2. Configure trusted publishing for GitHub Actions.
520
+ 3. Use repository `BURHANDEV-ENTERPRISE/BURHAN-MOP`.
521
+ 4. Use workflow `.github/workflows/npm-publish.yml`.
522
+ 5. Run the workflow manually with `dry_run: true`.
523
+ 6. Run again with `dry_run: false` when ready.
524
+
525
+ Alternative setup:
526
+
527
+ 1. Create an npm granular access token with publish permission.
528
+ 2. Add it to GitHub repository secrets as `NPM_TOKEN`.
529
+ 3. Run the `Publish to npm` workflow.
530
+
531
+ ## Troubleshooting
532
+
533
+ <details>
534
+ <summary>npm publish says ENEEDAUTH</summary>
535
+
536
+ You are not logged in to npm on this machine. Run:
537
+
538
+ ```bash
539
+ npm login --auth-type=web
540
+ npm whoami
541
+ ```
542
+
543
+ Then publish again.
544
+ </details>
545
+
546
+ <details>
547
+ <summary>npx burhan-mop install does not work</summary>
548
+
549
+ Before npm publish, use the GitHub package source:
550
+
551
+ ```bash
552
+ npx --yes github:BURHANDEV-ENTERPRISE/BURHAN-MOP install
553
+ ```
554
+
555
+ After npm publish, use:
556
+
557
+ ```bash
558
+ npx --yes burhan-mop install
559
+ ```
560
+ </details>
561
+
562
+ <details>
563
+ <summary>GitHub shows AI or bot as the pusher</summary>
564
+
565
+ Fix the GitHub credential used by `git push`. The commit author comes from
566
+ Git email, but the push actor comes from GitHub CLI, Git Credential Manager, or
567
+ SSH key authentication.
568
+ </details>
569
+
570
+ <details>
571
+ <summary>CodeQL says no source code was seen</summary>
572
+
573
+ Keep the visible `bin/` entrypoints. They allow CodeQL default setup to detect
574
+ JavaScript source while the full implementation stays under `.memoryofplanet/`.
575
+ </details>
576
+
577
+ ## Official npm References
578
+
579
+ - [Creating and publishing unscoped public packages](https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages/)
580
+ - [Trusted publishing for npm packages](https://docs.npmjs.com/trusted-publishers/)
581
+ - [Accessing npm using two-factor authentication](https://docs.npmjs.com/accessing-npm-using-2fa/)
582
+
583
+ ---
584
+
585
+ # Bahasa Melayu
586
+
587
+ ## Apa itu BURHAN-MOP?
588
+
589
+ BURHAN-MOP ialah MemoryOfPlanet core yang portable untuk projek software yang
590
+ dibantu AI. Ia memberi AI coding agent satu memory project yang konsisten,
591
+ auth gate, identiti agent bernama, workflow stage, artifact output, autosycn,
592
+ dan panduan setup deploy.
593
+
594
+ Matlamat dia mudah: bila AI masuk workspace, AI perlu tahu siapa user aktif,
595
+ state project mana yang benar, agent mana patut lead, apa perlu dirancang
596
+ sebelum coding, dan bagaimana kerja perlu disimpan.
597
+
598
+ ### Janji Utama
599
+
600
+ | Bahagian | Apa BURHAN-MOP buat |
601
+ | --- | --- |
602
+ | Memory | State tahan lama dalam `.memoryofplanet/STATE.json` dan protocol rasmi. |
603
+ | Security | First-action authentication gate dengan scrypt password verification. |
604
+ | Agents | Agent bernama, ownership rule, dan routing ikut task. |
605
+ | Workflow | MOP workflow yang diinspirasi BMAD dari idea sampai release. |
606
+ | Artifacts | Output tersusun dalam `.memoryofplanet/artifacts/<category>/<slug>/<type>.md`. |
607
+ | Git | `autosycn` yang commit guna identiti Git user sebenar. |
608
+ | Deploy | Auto-deploy opt-in untuk GitHub, Docker, dan Vercel. |
609
+ | Providers | Claude, Codex / ChatGPT coding agents, Gemini CLI, dan Antigravity. |
610
+
611
+ ## Mula Cepat
612
+
613
+ ### Install dari npm
614
+
615
+ Selepas package dipublish ke npm:
616
+
617
+ ```bash
618
+ npx burhan-mop install
619
+ ```
620
+
621
+ Install ke folder lain:
622
+
623
+ ```bash
624
+ npx burhan-mop install --target "C:\path\to\project"
625
+ ```
626
+
627
+ Paksa overwrite fail sedia ada:
628
+
629
+ ```bash
630
+ npx burhan-mop install --force
631
+ ```
632
+
633
+ ### Install dari GitHub sebelum npm publish
634
+
635
+ Ini sudah boleh digunakan sekarang:
636
+
637
+ ```bash
638
+ npx --yes github:BURHANDEV-ENTERPRISE/BURHAN-MOP install
639
+ ```
640
+
641
+ ### Semak install
642
+
643
+ ```bash
644
+ npx burhan-mop doctor
645
+ ```
646
+
647
+ Atau secara local dalam project:
648
+
649
+ ```bash
650
+ node .memoryofplanet/scripts/burhan-mop.mjs doctor
651
+ ```
652
+
653
+ ## Setup Wizard BM
654
+
655
+ Selepas install core ke dalam project, buka chat AI baru dalam workspace itu.
656
+ Arahan pertama AI ialah baca `.memoryofplanet/STATE.json`.
657
+
658
+ Jika `initialized` ialah `false`, AI hanya boleh jalankan setup.
659
+
660
+ Setup wizard akan tanya ikut urutan ini:
661
+
662
+ 1. Nama project, default ikut nama folder semasa.
663
+ 2. Nama paparan owner.
664
+ 3. Codename owner.
665
+ 4. Password.
666
+ 5. Mode project: `solo` atau `team`.
667
+ 6. Bahasa perbualan.
668
+ 7. Bahasa coding/adventure.
669
+ 8. Link GitHub project.
670
+ 9. Username GitHub.
671
+ 10. Git commit email.
672
+ 11. Join mode jika pilih team mode.
673
+ 12. Sama ada nak aktifkan auto deploy sekarang atau nanti.
674
+
675
+ Contoh setup CLI:
676
+
677
+ ```bash
678
+ node .memoryofplanet/scripts/mop-core.mjs setup ^
679
+ --project-name "My Project" ^
680
+ --name "MoonWiRaja" ^
681
+ --codename moon ^
682
+ --password "your-password" ^
683
+ --mode team ^
684
+ --conversation-language "Melayu" ^
685
+ --coding-language "English" ^
686
+ --git-email "168633207+MoonWIRaja@users.noreply.github.com" ^
687
+ --git-name "MoonWiRaja" ^
688
+ --github-username "MoonWIRaja" ^
689
+ --github-url "https://github.com/owner/repo.git" ^
690
+ --join-mode owner-approved
691
+ ```
692
+
693
+ ## Cara Guna Harian
694
+
695
+ ### First action setiap chat baru
696
+
697
+ AI mesti baca:
698
+
699
+ ```text
700
+ .memoryofplanet/STATE.json
701
+ ```
702
+
703
+ Kemudian ikut:
704
+
705
+ ```text
706
+ .memoryofplanet/PROTOCOL.md
707
+ ```
708
+
709
+ Jika core sudah setup tetapi tiada active member, AI hanya tanya:
710
+
711
+ ```text
712
+ Codename dan password.
713
+ ```
714
+
715
+ AI tidak patut jawab soalan, baca file lain, buat plan, atau coding sebelum
716
+ auth gate lulus.
717
+
718
+ ### Selepas login
719
+
720
+ AI mesti route task kepada primary agent:
721
+
722
+ ```bash
723
+ node .memoryofplanet/scripts/mop-core.mjs agent route --actor <codename> --task "<task user>"
724
+ ```
725
+
726
+ Jika role agent belum ada nama, user perlu beri nama:
727
+
728
+ ```bash
729
+ node .memoryofplanet/scripts/mop-core.mjs agent activate --actor <codename> --role architect --title "System Architect" --name "Nimo"
730
+ ```
731
+
732
+ ## Agent dan Party Mode
733
+
734
+ BURHAN-MOP anggap agent sebagai identiti bernama, bukan role kosong.
735
+
736
+ ### Agent ownership
737
+
738
+ | Rule | Maksud |
739
+ | --- | --- |
740
+ | Nama sama | Consciousness agent dikongsi antara member dalam team mode. |
741
+ | Nama berbeza | Agent berbeza, walaupun role sama. |
742
+ | Owners | `agentRoster[].owners` tentukan siapa boleh guna agent itu. |
743
+ | Active agent | Setiap conversation atau action sebenar patut guna active named agent. |
744
+
745
+ ### Router behavior
746
+
747
+ Router pilih satu primary agent. Ia boleh cadang banyak support agent jika task
748
+ memang perlukan kepakaran ramai agent.
749
+
750
+ Contoh:
751
+
752
+ | Task user | Primary agent | Support agent mungkin |
753
+ | --- | --- | --- |
754
+ | Bina system baru | `architect` | `planner`, `researcher`, `prompt`, `coder`, `reviewer` |
755
+ | Design UI animation | `frontend` atau `design` | `ux`, `accessibility`, `performance` |
756
+ | Review security | `security` | `reviewer`, `tester`, `architect` |
757
+ | Publish package | `deploy` atau `github` | `devops`, `reviewer`, `memory` |
758
+
759
+ ### Format Party Mode
760
+
761
+ Bila beberapa agent perlu berbincang, BURHAN-MOP akan tunjuk:
762
+
763
+ ```text
764
+ PARTY MODE
765
+
766
+ agent: Nimo (architect) to agent: Pixel (frontend)
767
+
768
+ Apa constraint browser untuk scroll animation ini?
769
+
770
+ agent: Pixel (frontend) to agent: Nimo (architect)
771
+
772
+ Kita perlukan frame-based scroll mapping, reduced-motion fallback, dan asset preloading.
773
+ ```
774
+
775
+ ## MOP Workflow BM
776
+
777
+ MOP Workflow diinspirasi BMAD, tetapi disesuaikan untuk MemoryOfPlanet dan
778
+ multi-agent.
779
+
780
+ ```text
781
+ idea -> brief -> prd -> ux-spec -> architecture -> story -> readiness -> implementation -> review -> release
782
+ ```
783
+
784
+ Guna workflow helper:
785
+
786
+ ```bash
787
+ node .memoryofplanet/scripts/mop-workflow.mjs help --actor <codename> --task "lepas ni buat apa?"
788
+ ```
789
+
790
+ Ia akan pulangkan:
791
+
792
+ - suggested phase
793
+ - lead agent role
794
+ - support atau party roles
795
+ - next artifact type
796
+ - readiness gate requirement
797
+ - next command
798
+
799
+ Sebelum coding:
800
+
801
+ ```bash
802
+ node .memoryofplanet/scripts/mop-workflow.mjs gate readiness --actor <codename> --task "<task>"
803
+ ```
804
+
805
+ Untuk kerja penting atau risky:
806
+
807
+ ```bash
808
+ node .memoryofplanet/scripts/mop-workflow.mjs review adversarial --actor <codename> --target "<plan atau file>"
809
+ ```
810
+
811
+ ## Artifacts BM
812
+
813
+ Artifacts menyimpan output planning supaya tidak bersepah di root.
814
+
815
+ Layout output:
816
+
817
+ ```text
818
+ .memoryofplanet/artifacts/<category>/<artifact-slug>/<type>.md
819
+ ```
820
+
821
+ Kategori default:
822
+
823
+ | Category | Artifact types |
824
+ | --- | --- |
825
+ | `plan` | `product-brief`, `prd`, `story` |
826
+ | `design` | `ux-spec` |
827
+ | `architecture` | `architecture` |
828
+ | `readiness` | `readiness-report` |
829
+ | `implementation` | `implementation-notes` |
830
+ | `review` | `review`, `adversarial-review` |
831
+ | `release` | `release-notes`, `handoff` |
832
+ | `decisions` | `decision-log` |
833
+
834
+ Buat artifact:
835
+
836
+ ```bash
837
+ node .memoryofplanet/scripts/mop-workflow.mjs artifact create --actor moon --type prd --title "Portfolio System"
838
+ ```
839
+
840
+ Preview tanpa tulis file:
841
+
842
+ ```bash
843
+ node .memoryofplanet/scripts/mop-workflow.mjs artifact create --actor moon --type prd --title "Portfolio System" --dry-run
844
+ ```
845
+
846
+ ## Project Root Policy BM
847
+
848
+ BURHAN-MOP beritahu AI agent bahawa workspace root ialah project root.
849
+
850
+ Agent tidak patut buat wrapper folder seperti:
851
+
852
+ ```text
853
+ portfolio/
854
+ my-app/
855
+ <project-name>/
856
+ ```
857
+
858
+ Kemudian bina dalam folder itu, kecuali user memang minta monorepo atau banyak
859
+ app.
860
+
861
+ Folder top-level yang betul:
862
+
863
+ ```text
864
+ src/
865
+ app/
866
+ pages/
867
+ components/
868
+ public/
869
+ assets/
870
+ tests/
871
+ docs/
872
+ config/
873
+ scripts/
874
+ ```
875
+
876
+ ## Autosycn BM
877
+
878
+ `autosycn` ialah ejaan project yang disengajakan untuk skill autosync.
879
+
880
+ Ia save memory, commit guna identiti user sebenar, push ke branch yang betul,
881
+ dan biarkan BURHAN-MOP review merge.
882
+
883
+ ### Solo mode
884
+
885
+ | Action | Branch |
886
+ | --- | --- |
887
+ | Kerja | `main` |
888
+ | Push | `main` |
889
+ | Merge | Tidak perlu |
890
+
891
+ ### Team mode
892
+
893
+ | Action | Branch |
894
+ | --- | --- |
895
+ | Main trunk | `main` |
896
+ | Kerja user | `dev/<codename>` |
897
+ | Review dan merge | BURHAN-MOP check dan merge ke `main` |
898
+
899
+ ### Identiti Git user wajib
900
+
901
+ ```bash
902
+ node .memoryofplanet/scripts/mop-core.mjs member git-identity --actor moon --name "MoonWiRaja" --email "168633207+MoonWIRaja@users.noreply.github.com" --github-username "MoonWIRaja"
903
+ ```
904
+
905
+ ### Initialize autosycn
906
+
907
+ ```bash
908
+ node .memoryofplanet/scripts/mop-autosycn.mjs init --actor moon --url "https://github.com/owner/repo.git"
909
+ ```
910
+
911
+ ### Sebelum kerja
912
+
913
+ ```bash
914
+ node .memoryofplanet/scripts/mop-autosycn.mjs preflight --actor moon
915
+ ```
916
+
917
+ ### Selepas perubahan
918
+
919
+ ```bash
920
+ node .memoryofplanet/scripts/mop-autosycn.mjs run --actor moon --reason "Implemented feature"
921
+ ```
922
+
923
+ Penting: GitHub commit attribution datang daripada commit email. GitHub push
924
+ actor datang daripada credential atau SSH key yang digunakan oleh `git push`.
925
+
926
+ ## Auto Deploy BM
927
+
928
+ Auto deploy tersedia, tetapi opt-in.
929
+
930
+ Provider yang disokong:
931
+
932
+ | Provider | Tujuan |
933
+ | --- | --- |
934
+ | GitHub | GitHub Pages atau GitHub Actions deploy flow. |
935
+ | Docker | Dockerfile dan deployment berasaskan compose. |
936
+ | Vercel | Link project Vercel dan deploy settings. |
937
+
938
+ AI mesti tanya:
939
+
940
+ ```text
941
+ Nak aktifkan auto deploy sekarang? Pilih provider: GitHub, Docker, Vercel.
942
+ ```
943
+
944
+ Jika user jawab nanti atau tidak, AI jawab:
945
+
946
+ ```text
947
+ Okey, nanti kalau nak deploy beri tahu saya. Saya setup auto deploy.
948
+ ```
949
+
950
+ ## Rujukan CLI
951
+
952
+ ### Package installer
953
+
954
+ ```bash
955
+ npx burhan-mop install
956
+ npx burhan-mop install --target "C:\path\to\project"
957
+ npx burhan-mop install --force
958
+ npx burhan-mop doctor
959
+ npx burhan-mop package
960
+ ```
961
+
962
+ ### Core
963
+
964
+ ```bash
965
+ node .memoryofplanet/scripts/mop-core.mjs status
966
+ node .memoryofplanet/scripts/mop-core.mjs validate
967
+ node .memoryofplanet/scripts/mop-core.mjs login --codename moon --password "<password>"
968
+ node .memoryofplanet/scripts/mop-core.mjs agent route --actor moon --task "<task>"
969
+ node .memoryofplanet/scripts/mop-core.mjs agent list
970
+ ```
971
+
972
+ ### Workflow
973
+
974
+ ```bash
975
+ node .memoryofplanet/scripts/mop-workflow.mjs status --actor moon
976
+ node .memoryofplanet/scripts/mop-workflow.mjs help --actor moon --task "<task>"
977
+ node .memoryofplanet/scripts/mop-workflow.mjs artifact create --actor moon --type prd --title "Title"
978
+ node .memoryofplanet/scripts/mop-workflow.mjs gate readiness --actor moon --task "<task>"
979
+ node .memoryofplanet/scripts/mop-workflow.mjs review adversarial --actor moon --target "<target>"
980
+ ```
981
+
982
+ ## Sokongan Provider
983
+
984
+ | Provider | Entry point |
985
+ | --- | --- |
986
+ | Codex / ChatGPT coding agents | `AGENTS.md`, `.codex/config.toml` |
987
+ | Claude Code | `CLAUDE.md`, `.claude/settings.json`, `.claude/skills/` |
988
+ | Gemini CLI | `GEMINI.md`, `.gemini/settings.json` |
989
+ | Antigravity | `.agents/AGENTS.md`, `.agents/skills/` |
990
+ | MCP-compatible clients | `.mcp.json` |
991
+
992
+ ## Publish ke npm
993
+
994
+ Nama package:
995
+
996
+ ```text
997
+ burhan-mop
998
+ ```
999
+
1000
+ Nama package sudah disemak dengan npm registry semasa setup dan tidak ditemui,
1001
+ jadi ia masih available kecuali ada orang publish dahulu.
1002
+
1003
+ ### Local publish flow
1004
+
1005
+ ```bash
1006
+ npm login --auth-type=web
1007
+ npm whoami
1008
+ npm run validate
1009
+ npm run doctor
1010
+ npm run pack:dry
1011
+ npm publish
1012
+ ```
1013
+
1014
+ Selepas publish:
1015
+
1016
+ ```bash
1017
+ npm view burhan-mop version
1018
+ npx --yes burhan-mop package
1019
+ npx --yes burhan-mop install --target "C:\path\to\empty-test-folder"
1020
+ ```
1021
+
1022
+ ### GitHub Actions publish flow
1023
+
1024
+ Repo ini ada:
1025
+
1026
+ ```text
1027
+ .github/workflows/npm-publish.yml
1028
+ ```
1029
+
1030
+ Setup secure yang disarankan:
1031
+
1032
+ 1. Buka npm package settings selepas first publish.
1033
+ 2. Configure trusted publishing untuk GitHub Actions.
1034
+ 3. Guna repository `BURHANDEV-ENTERPRISE/BURHAN-MOP`.
1035
+ 4. Guna workflow `.github/workflows/npm-publish.yml`.
1036
+ 5. Run workflow manual dengan `dry_run: true`.
1037
+ 6. Run lagi dengan `dry_run: false` bila ready.
1038
+
1039
+ Setup alternatif:
1040
+
1041
+ 1. Buat npm granular access token dengan publish permission.
1042
+ 2. Simpan dalam GitHub repository secrets sebagai `NPM_TOKEN`.
1043
+ 3. Run workflow `Publish to npm`.
1044
+
1045
+ ## Troubleshooting BM
1046
+
1047
+ <details>
1048
+ <summary>npm publish keluar ENEEDAUTH</summary>
1049
+
1050
+ Mesin belum login npm. Jalankan:
1051
+
1052
+ ```bash
1053
+ npm login --auth-type=web
1054
+ npm whoami
1055
+ ```
1056
+
1057
+ Kemudian publish semula.
1058
+ </details>
1059
+
1060
+ <details>
1061
+ <summary>npx burhan-mop install tidak jalan</summary>
1062
+
1063
+ Sebelum npm publish, guna source GitHub:
1064
+
1065
+ ```bash
1066
+ npx --yes github:BURHANDEV-ENTERPRISE/BURHAN-MOP install
1067
+ ```
1068
+
1069
+ Selepas npm publish, guna:
1070
+
1071
+ ```bash
1072
+ npx --yes burhan-mop install
1073
+ ```
1074
+ </details>
1075
+
1076
+ <details>
1077
+ <summary>GitHub tunjuk AI atau bot sebagai pusher</summary>
1078
+
1079
+ Betulkan GitHub credential yang digunakan oleh `git push`. Commit author datang
1080
+ daripada Git email, tetapi push actor datang daripada GitHub CLI, Git
1081
+ Credential Manager, atau SSH key.
1082
+ </details>
1083
+
1084
+ <details>
1085
+ <summary>CodeQL kata no source code was seen</summary>
1086
+
1087
+ Kekalkan visible `bin/` entrypoints. Ia membantu CodeQL default setup detect
1088
+ JavaScript source sementara implementation penuh masih berada dalam
1089
+ `.memoryofplanet/`.
1090
+ </details>
1091
+
1092
+ ## Rujukan Rasmi npm
1093
+
1094
+ - [Creating and publishing unscoped public packages](https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages/)
1095
+ - [Trusted publishing for npm packages](https://docs.npmjs.com/trusted-publishers/)
1096
+ - [Accessing npm using two-factor authentication](https://docs.npmjs.com/accessing-npm-using-2fa/)