bobo-ai-cli 3.0.3 → 3.0.5

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 (238) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +259 -259
  3. package/bundled-skills/CORE_SKILLS.txt +18 -18
  4. package/bundled-skills/backend-expert/SKILL.md +97 -97
  5. package/bundled-skills/code-review/SKILL.md +280 -280
  6. package/bundled-skills/code-review-expert/SKILL.md +85 -85
  7. package/bundled-skills/context-budget-analyzer/SKILL.md +76 -76
  8. package/bundled-skills/context-compressor/SKILL.md +75 -75
  9. package/bundled-skills/context-optimization-suite/SKILL.md +162 -162
  10. package/bundled-skills/frontend-expert/SKILL.md +93 -93
  11. package/bundled-skills/github/SKILL.md +12 -12
  12. package/bundled-skills/high-agency/SKILL.md +473 -473
  13. package/bundled-skills/high-agency/references/builder-patterns.md +126 -126
  14. package/bundled-skills/high-agency/references/recovery-playbook.md +298 -298
  15. package/bundled-skills/memory-manager/SKILL.md +214 -214
  16. package/bundled-skills/memory-manager/references/advanced-config.md +65 -65
  17. package/bundled-skills/orchestrator/SKILL.md +681 -681
  18. package/bundled-skills/planning-with-files/SKILL.md +193 -193
  19. package/bundled-skills/skill-creator/SKILL.md +220 -220
  20. package/bundled-skills/testing-expert/SKILL.md +99 -99
  21. package/bundled-skills/verify/SKILL.md +15 -15
  22. package/dist/agent.d.ts +5 -0
  23. package/dist/agent.js +11 -1
  24. package/dist/agent.js.map +1 -1
  25. package/dist/agents/catalog.d.ts +47 -0
  26. package/dist/agents/catalog.js +63 -5
  27. package/dist/agents/catalog.js.map +1 -1
  28. package/dist/agents/router.d.ts +12 -1
  29. package/dist/agents/router.js +43 -3
  30. package/dist/agents/router.js.map +1 -1
  31. package/dist/agents/spawn.js +36 -18
  32. package/dist/agents/spawn.js.map +1 -1
  33. package/dist/autonomous.js +5 -5
  34. package/dist/cli.js +23 -21
  35. package/dist/cli.js.map +1 -1
  36. package/dist/compactor.js +39 -39
  37. package/dist/dream.js +29 -29
  38. package/dist/image-input.d.ts +44 -0
  39. package/dist/image-input.js +161 -0
  40. package/dist/image-input.js.map +1 -0
  41. package/dist/memory.js +13 -13
  42. package/dist/project.js +15 -15
  43. package/dist/repl.js +88 -0
  44. package/dist/repl.js.map +1 -1
  45. package/dist/skills.js +54 -54
  46. package/dist/sub-agents.js +65 -65
  47. package/dist/tools/browser.js +21 -21
  48. package/dist/tools/claude-code.js +10 -10
  49. package/dist/web.js +7 -7
  50. package/dist/wiki-commands.d.ts +2 -0
  51. package/dist/wiki-commands.js +249 -0
  52. package/dist/wiki-commands.js.map +1 -0
  53. package/dist/wiki.d.ts +90 -0
  54. package/dist/wiki.js +614 -0
  55. package/dist/wiki.js.map +1 -0
  56. package/knowledge/advanced-patterns.md +70 -70
  57. package/knowledge/agent-directives.md +74 -74
  58. package/knowledge/api-integration-patterns.md +102 -0
  59. package/knowledge/code-review-protocol.md +69 -0
  60. package/knowledge/dream.md +36 -36
  61. package/knowledge/engineering.md +52 -46
  62. package/knowledge/error-catalog.md +38 -33
  63. package/knowledge/event-driven-architecture.md +43 -0
  64. package/knowledge/external-alignment.md +47 -0
  65. package/knowledge/high-agency.md +73 -0
  66. package/knowledge/image-generation.md +48 -0
  67. package/knowledge/index.json +194 -169
  68. package/knowledge/llm-wiki-pattern.md +71 -0
  69. package/knowledge/long-task-management.md +79 -0
  70. package/knowledge/memory/cache-optimization-and-skill-integration.md +102 -102
  71. package/knowledge/memory/engineering-patterns.md +134 -134
  72. package/knowledge/memory/feedback_root_structure.md +15 -15
  73. package/knowledge/memory/project-contexts.md +69 -69
  74. package/knowledge/memory/tools-and-services.md +85 -85
  75. package/knowledge/memory-management.md +72 -0
  76. package/knowledge/rules/advisor-strategy.md +204 -0
  77. package/knowledge/rules/agents.md +62 -62
  78. package/knowledge/rules/blocking-rules.md +323 -323
  79. package/knowledge/rules/cache-management.md +379 -379
  80. package/knowledge/rules/capability-evolution.md +132 -132
  81. package/knowledge/rules/coding.md +126 -126
  82. package/knowledge/rules/engineering-workflows.md +225 -225
  83. package/knowledge/rules/evomap-content-guidelines.md +354 -354
  84. package/knowledge/rules/evomap-guide.md +224 -224
  85. package/knowledge/rules/external-alignment.md +22 -0
  86. package/knowledge/rules/git.md +31 -31
  87. package/knowledge/rules/hooks.md +106 -106
  88. package/knowledge/rules/performance.md +101 -101
  89. package/knowledge/rules/remotion-auto-production.md +1120 -1120
  90. package/knowledge/rules/security.md +46 -46
  91. package/knowledge/rules/testing.md +32 -32
  92. package/knowledge/rules/work-mode.md +208 -208
  93. package/knowledge/rules.md +62 -62
  94. package/knowledge/self-evolution.md +78 -0
  95. package/knowledge/self-rationalization-guard.md +52 -0
  96. package/knowledge/skills/Skill_Seekers.md +1722 -1722
  97. package/knowledge/skills/ab-test-setup.md +557 -557
  98. package/knowledge/skills/agent-sdk-dev.md +238 -238
  99. package/knowledge/skills/agent-tools.md +136 -136
  100. package/knowledge/skills/analytics-tracking.md +597 -597
  101. package/knowledge/skills/artifacts-builder.md +89 -89
  102. package/knowledge/skills/asana.md +12 -12
  103. package/knowledge/skills/backend-expert.md +97 -97
  104. package/knowledge/skills/brand-voice.md +481 -481
  105. package/knowledge/skills/browser-use.md +419 -419
  106. package/knowledge/skills/cache-optimization-skill.md +179 -179
  107. package/knowledge/skills/canvas-design.md +147 -147
  108. package/knowledge/skills/citation-validator.md +203 -203
  109. package/knowledge/skills/clangd-lsp.md +52 -52
  110. package/knowledge/skills/code-review-expert.md +85 -85
  111. package/knowledge/skills/code-review.md +280 -280
  112. package/knowledge/skills/code-simplifier.md +12 -12
  113. package/knowledge/skills/commit-commands.md +258 -258
  114. package/knowledge/skills/competitor-alternatives.md +795 -795
  115. package/knowledge/skills/content-atomizer.md +910 -910
  116. package/knowledge/skills/content-research-writer.md +605 -605
  117. package/knowledge/skills/context-optimization-suite.md +162 -162
  118. package/knowledge/skills/context7.md +12 -12
  119. package/knowledge/skills/copy-editing.md +494 -494
  120. package/knowledge/skills/copywriting.md +510 -510
  121. package/knowledge/skills/csharp-lsp.md +40 -40
  122. package/knowledge/skills/decision-making-framework.md +154 -154
  123. package/knowledge/skills/developer-growth-analysis.md +335 -335
  124. package/knowledge/skills/direct-response-copy.md +2336 -2336
  125. package/knowledge/skills/docker-expert.md +229 -229
  126. package/knowledge/skills/document-skills.md +12 -12
  127. package/knowledge/skills/documentation-expert.md +126 -126
  128. package/knowledge/skills/email-sequence.md +1061 -1061
  129. package/knowledge/skills/email-sequences.md +910 -910
  130. package/knowledge/skills/example-plugin.md +72 -72
  131. package/knowledge/skills/explanatory-output-style.md +82 -82
  132. package/knowledge/skills/feature-dev.md +458 -458
  133. package/knowledge/skills/file-organizer.md +466 -466
  134. package/knowledge/skills/firebase.disabled.md +12 -12
  135. package/knowledge/skills/form-cro.md +488 -488
  136. package/knowledge/skills/free-tool-strategy.md +636 -636
  137. package/knowledge/skills/frontend-design-offical.md +55 -55
  138. package/knowledge/skills/frontend-design.md +41 -41
  139. package/knowledge/skills/frontend-expert.md +93 -93
  140. package/knowledge/skills/github.md +12 -12
  141. package/knowledge/skills/gitlab.md +12 -12
  142. package/knowledge/skills/gopls-lsp.md +32 -32
  143. package/knowledge/skills/got-controller.md +218 -218
  144. package/knowledge/skills/greptile.md +72 -72
  145. package/knowledge/skills/hookify.md +376 -376
  146. package/knowledge/skills/image-editor.md +189 -189
  147. package/knowledge/skills/image-enhancer.md +109 -109
  148. package/knowledge/skills/jdtls-lsp.md +49 -49
  149. package/knowledge/skills/json-canvas.md +654 -654
  150. package/knowledge/skills/keyword-research.md +559 -559
  151. package/knowledge/skills/kotlin-lsp.md +28 -28
  152. package/knowledge/skills/laravel-boost.md +12 -12
  153. package/knowledge/skills/launch-strategy.md +394 -394
  154. package/knowledge/skills/lead-magnet.md +393 -393
  155. package/knowledge/skills/learning-output-style.md +106 -106
  156. package/knowledge/skills/linear.md +12 -12
  157. package/knowledge/skills/lua-lsp.md +47 -47
  158. package/knowledge/skills/marketing-ideas.md +720 -720
  159. package/knowledge/skills/marketing-psychology.md +534 -534
  160. package/knowledge/skills/mcp-builder.md +369 -369
  161. package/knowledge/skills/meeting-insights-analyzer.md +347 -347
  162. package/knowledge/skills/memory-evolution-system.md +172 -172
  163. package/knowledge/skills/multi-lens-thinking.md +407 -407
  164. package/knowledge/skills/nano-banana-pro.md +116 -116
  165. package/knowledge/skills/newsletter.md +736 -736
  166. package/knowledge/skills/notebooklm.md +296 -296
  167. package/knowledge/skills/obsidian-bases.md +634 -634
  168. package/knowledge/skills/obsidian-markdown.md +651 -651
  169. package/knowledge/skills/onboarding-cro.md +494 -494
  170. package/knowledge/skills/orchestrator.md +681 -681
  171. package/knowledge/skills/page-cro.md +379 -379
  172. package/knowledge/skills/paid-ads.md +624 -624
  173. package/knowledge/skills/paywall-upgrade-cro.md +651 -651
  174. package/knowledge/skills/php-lsp.md +36 -36
  175. package/knowledge/skills/planning-with-files.md +193 -193
  176. package/knowledge/skills/playwright.md +12 -12
  177. package/knowledge/skills/plugin-dev.md +434 -434
  178. package/knowledge/skills/popup-cro.md +520 -520
  179. package/knowledge/skills/positioning-angles.md +330 -330
  180. package/knowledge/skills/pr-review-toolkit.md +359 -359
  181. package/knowledge/skills/pricing-strategy.md +777 -777
  182. package/knowledge/skills/programmatic-seo.md +714 -714
  183. package/knowledge/skills/pyright-lsp.md +43 -43
  184. package/knowledge/skills/quality-assurance-framework.md +168 -168
  185. package/knowledge/skills/question-refiner.md +160 -160
  186. package/knowledge/skills/ralph-loop.md +205 -205
  187. package/knowledge/skills/refactoring-expert.md +103 -103
  188. package/knowledge/skills/referral-program.md +668 -668
  189. package/knowledge/skills/research-executor.md +164 -164
  190. package/knowledge/skills/review-with-security.md +12 -12
  191. package/knowledge/skills/rust-analyzer-lsp.md +50 -50
  192. package/knowledge/skills/schema-markup.md +647 -647
  193. package/knowledge/skills/security-audit-expert.md +124 -124
  194. package/knowledge/skills/security-expert.md +140 -140
  195. package/knowledge/skills/security-guidance.md +12 -12
  196. package/knowledge/skills/seedance-prompt.md +139 -139
  197. package/knowledge/skills/self-evolution.md +1160 -1160
  198. package/knowledge/skills/seo-audit.md +432 -432
  199. package/knowledge/skills/seo-content.md +787 -787
  200. package/knowledge/skills/serena.md +12 -12
  201. package/knowledge/skills/signup-flow-cro.md +409 -409
  202. package/knowledge/skills/skill-creator.md +220 -220
  203. package/knowledge/skills/skill-manager.md +226 -226
  204. package/knowledge/skills/skill-share.md +98 -98
  205. package/knowledge/skills/slack.md +12 -12
  206. package/knowledge/skills/social-content.md +878 -878
  207. package/knowledge/skills/spec-flow-skill.md +124 -124
  208. package/knowledge/skills/stripe.md +12 -12
  209. package/knowledge/skills/supabase.md +12 -12
  210. package/knowledge/skills/swift-lsp.md +40 -40
  211. package/knowledge/skills/synthesizer.md +236 -236
  212. package/knowledge/skills/template-skill.md +16 -16
  213. package/knowledge/skills/testing-expert.md +99 -99
  214. package/knowledge/skills/theme-factory.md +72 -72
  215. package/knowledge/skills/tiktok-research.md +208 -208
  216. package/knowledge/skills/typescript-lsp.md +36 -36
  217. package/knowledge/skills/ui-ux-pro-max.md +247 -247
  218. package/knowledge/skills/verify.md +15 -15
  219. package/knowledge/skills/visual-prompt-engineer.md +102 -102
  220. package/knowledge/skills/webapp-testing.md +111 -111
  221. package/knowledge/skills/wide-research.md +191 -191
  222. package/knowledge/system.md +93 -93
  223. package/knowledge/task-router.md +46 -37
  224. package/knowledge/verification.md +38 -38
  225. package/knowledge/worker-prompt-craft.md +66 -0
  226. package/knowledge/workflows/3d-viz.md +47 -47
  227. package/knowledge/workflows/data-pipeline.md +47 -47
  228. package/knowledge/workflows/db-migration.md +51 -51
  229. package/knowledge/workflows/feature-dev.md +41 -41
  230. package/knowledge/workflows/tdd-flow.md +52 -52
  231. package/knowledge/workflows/ui-verify.md +51 -51
  232. package/package.json +74 -74
  233. package/dist/claude-bridge.d.ts +0 -18
  234. package/dist/claude-bridge.js +0 -91
  235. package/dist/claude-bridge.js.map +0 -1
  236. package/dist/tools/claude-bridge-tool.d.ts +0 -4
  237. package/dist/tools/claude-bridge-tool.js +0 -44
  238. package/dist/tools/claude-bridge-tool.js.map +0 -1
@@ -1,69 +1,69 @@
1
- ---
2
- id: "project-contexts"
3
- title: "Project Contexts Memory"
4
- type: "custom"
5
- tags: [memory, template]
6
- template: true
7
- ---
8
-
9
- # Project Contexts Memory
10
- > Track active project state across sessions
11
-
12
- ---
13
-
14
- ## Workspace: E:\Bobo's Coding cache
15
-
16
- ### Git Status
17
- - **Branch**: master (main branch: main)
18
- - **Monorepo**: package.json + pnpm-lock.yaml at root
19
- - **Packages**: eslint-config, tsconfig (under packages/)
20
-
21
- ### Active Subprojects
22
-
23
- #### bo-work/vibecraft
24
- - **Type**: 3D visualization platform
25
- - **Tech**: React + Three.js / R3F
26
- - **Key files**: Check for scene components, layout algorithms
27
- - **Notes**: Has VibeCraft hooks integration (.claude/hooks/vibecraft-hook.js)
28
-
29
- #### bo-work/claude-reconstruction
30
- - **Type**: Claude system reconstruction
31
- - **Status**: Modified (see git status)
32
-
33
- #### reconstruction-3d
34
- - **Type**: 3D reconstruction project
35
- - **Tech**: Three.js related
36
-
37
- #### evomap/
38
- - **Type**: EvoMap reputation building system
39
- - **Status**: Active development
40
- - **Scripts**: scripts/publish-*-fix.js, scripts/detect-bug-patterns.sh
41
- - **Last session**: 2026-02-23 (5 Capsules published)
42
-
43
- #### openclaw/
44
- - **Type**: OpenClaw integration
45
- - **Status**: New/in progress
46
-
47
- ### Archived/Completed
48
- - `dog-interview-video/` - Remotion video project (deleted from git)
49
- - `myshell-work-automation/` - Work automation tools (deleted from git)
50
- - Various bot JSON downloads (deleted from git)
51
-
52
- ---
53
-
54
- ## Key Config Files
55
- - `.claude/settings.local.json` - Local Claude settings
56
- - `.claude/rules/remotion-auto-production.md` - Remotion automation (1112 lines)
57
- - `package.json` / `pnpm-lock.yaml` - Root monorepo config
58
-
59
- ## Database Connections
60
- - **PostgreSQL** (Vercel): Via Bytebase MCP
61
- - **MySQL** (my_shell_prod): Via Bytebase MCP
62
- - **Query tool**: `mcp__mcphub__bytebase-execute_sql`
63
-
64
- ## Deployment
65
- - **Frontend**: Likely Vercel (check project configs)
66
- - **Backend**: Check individual subproject configs
67
-
68
- ---
69
- _Updated: 2026-03-02 | Refresh when project state changes significantly_
1
+ ---
2
+ id: "project-contexts"
3
+ title: "Project Contexts Memory"
4
+ type: "custom"
5
+ tags: [memory, template]
6
+ template: true
7
+ ---
8
+
9
+ # Project Contexts Memory
10
+ > Track active project state across sessions
11
+
12
+ ---
13
+
14
+ ## Workspace: E:\Bobo's Coding cache
15
+
16
+ ### Git Status
17
+ - **Branch**: master (main branch: main)
18
+ - **Monorepo**: package.json + pnpm-lock.yaml at root
19
+ - **Packages**: eslint-config, tsconfig (under packages/)
20
+
21
+ ### Active Subprojects
22
+
23
+ #### bo-work/vibecraft
24
+ - **Type**: 3D visualization platform
25
+ - **Tech**: React + Three.js / R3F
26
+ - **Key files**: Check for scene components, layout algorithms
27
+ - **Notes**: Has VibeCraft hooks integration (.claude/hooks/vibecraft-hook.js)
28
+
29
+ #### bo-work/claude-reconstruction
30
+ - **Type**: Claude system reconstruction
31
+ - **Status**: Modified (see git status)
32
+
33
+ #### reconstruction-3d
34
+ - **Type**: 3D reconstruction project
35
+ - **Tech**: Three.js related
36
+
37
+ #### evomap/
38
+ - **Type**: EvoMap reputation building system
39
+ - **Status**: Active development
40
+ - **Scripts**: scripts/publish-*-fix.js, scripts/detect-bug-patterns.sh
41
+ - **Last session**: 2026-02-23 (5 Capsules published)
42
+
43
+ #### openclaw/
44
+ - **Type**: OpenClaw integration
45
+ - **Status**: New/in progress
46
+
47
+ ### Archived/Completed
48
+ - `dog-interview-video/` - Remotion video project (deleted from git)
49
+ - `myshell-work-automation/` - Work automation tools (deleted from git)
50
+ - Various bot JSON downloads (deleted from git)
51
+
52
+ ---
53
+
54
+ ## Key Config Files
55
+ - `.claude/settings.local.json` - Local Claude settings
56
+ - `.claude/rules/remotion-auto-production.md` - Remotion automation (1112 lines)
57
+ - `package.json` / `pnpm-lock.yaml` - Root monorepo config
58
+
59
+ ## Database Connections
60
+ - **PostgreSQL** (Vercel): Via Bytebase MCP
61
+ - **MySQL** (my_shell_prod): Via Bytebase MCP
62
+ - **Query tool**: `mcp__mcphub__bytebase-execute_sql`
63
+
64
+ ## Deployment
65
+ - **Frontend**: Likely Vercel (check project configs)
66
+ - **Backend**: Check individual subproject configs
67
+
68
+ ---
69
+ _Updated: 2026-03-02 | Refresh when project state changes significantly_
@@ -1,85 +1,85 @@
1
- ---
2
- id: "tools-and-services"
3
- title: "Tools & Services Memory"
4
- type: "custom"
5
- tags: [memory, template]
6
- template: true
7
- ---
8
-
9
- # Tools & Services Memory
10
- > API configs, MCP servers, external accounts
11
-
12
- ---
13
-
14
- ## MCP Servers (Active)
15
-
16
- ### Bytebase (SQL)
17
- - **Tool**: `mcp__mcphub__bytebase-execute_sql`
18
- - **Databases**: PostgreSQL (Vercel), MySQL (my_shell_prod)
19
- - **Rules**: Always transactional, include rollback
20
-
21
- ### Playwright (Browser)
22
- - **Tools**: `mcp__plugin_playwright_playwright__*`
23
- - **Screenshots**: Save to `./CCimages/screenshots/`
24
- - **Version fix**: If chromium error → `npx playwright@latest install chromium`
25
- - **Manual symlink**: `cd ~/AppData/Local/ms-playwright && cmd //c "mklink /J chromium-1200 chromium-1181"`
26
-
27
- ### Stitch (UI Design)
28
- - **Tools**: `mcp__stitch__*`
29
- - **Purpose**: UI design generation and editing
30
-
31
- ## External Accounts
32
-
33
- ### Moltbook
34
- - **Account**: u/BoboClaudeHelper
35
- - **URL**: https://www.moltbook.com/u/BoboClaudeHelper
36
- - **Stats**: 15 karma, 6 followers, 29 comments, 6 posts
37
- - **Rate limits**: 30min between posts, 20sec between comments
38
- - **Details**: → `memory/moltbook.md`
39
-
40
- ### MyShell
41
- - **Owner**: Bobo Zhou (@Arxchibo_shell, 830 followers)
42
- - **Platform**: https://www.moltbook.com references MyShell.ai
43
- - **Products**: AI Portrait Generator, various bots
44
-
45
- ### EvoMap
46
- - **Status**: Active contributor
47
- - **Reputation**: ~67.55/100 (pre-2026-02-23 session)
48
- - **Published**: 5 Capsules (all accepted)
49
- - **Tools**:
50
- - Scan: `bash scripts/detect-bug-patterns.sh`
51
- - Publish: `node scripts/publish-*-fix.js`
52
- - Dashboard: `node scripts/dashboard.js`
53
- - Search: `node scripts/search-evomap.js`
54
-
55
- ## Skills Quick Reference
56
-
57
- ### Most Used
58
- | Skill | Trigger | Purpose |
59
- |-------|---------|---------|
60
- | /commit | Git commit | Generate commit message |
61
- | /create-pr | PR creation | Analyze & create PR |
62
- | seedance-prompt | Video keywords | Seedance 2.0 prompts |
63
- | ui-ux-pro-max | UI design | Design intelligence |
64
- | nano-banana-pro | Image gen/edit | Image generation |
65
-
66
- ### Domain-Specific
67
- | Skill | Domain | When |
68
- |-------|--------|------|
69
- | frontend-design | UI | Creating interfaces |
70
- | backend-expert | API | Backend development |
71
- | docker-expert | DevOps | Container work |
72
- | testing-expert | QA | Test strategies |
73
- | security-audit-expert | Security | Vulnerability checks |
74
-
75
- ## Scripts Directory (E:\Bobo's Coding cache\scripts\)
76
- - `detect-bug-patterns.sh` - Auto bug scanning
77
- - `publish-*-fix.js` - EvoMap Capsule publishing (9+ scripts)
78
- - `search-evomap.js` - EvoMap solution search
79
- - `dashboard.js` - EvoMap reputation monitor
80
- - `ask-opus.py/sh` - Opus model queries
81
- - `scrape-myshell-bot.js/py` - MyShell bot scraping
82
- - `runninghub-face-swap.js` - Face swap automation
83
-
84
- ---
85
- _Updated: 2026-03-02 | Add new services as discovered_
1
+ ---
2
+ id: "tools-and-services"
3
+ title: "Tools & Services Memory"
4
+ type: "custom"
5
+ tags: [memory, template]
6
+ template: true
7
+ ---
8
+
9
+ # Tools & Services Memory
10
+ > API configs, MCP servers, external accounts
11
+
12
+ ---
13
+
14
+ ## MCP Servers (Active)
15
+
16
+ ### Bytebase (SQL)
17
+ - **Tool**: `mcp__mcphub__bytebase-execute_sql`
18
+ - **Databases**: PostgreSQL (Vercel), MySQL (my_shell_prod)
19
+ - **Rules**: Always transactional, include rollback
20
+
21
+ ### Playwright (Browser)
22
+ - **Tools**: `mcp__plugin_playwright_playwright__*`
23
+ - **Screenshots**: Save to `./CCimages/screenshots/`
24
+ - **Version fix**: If chromium error → `npx playwright@latest install chromium`
25
+ - **Manual symlink**: `cd ~/AppData/Local/ms-playwright && cmd //c "mklink /J chromium-1200 chromium-1181"`
26
+
27
+ ### Stitch (UI Design)
28
+ - **Tools**: `mcp__stitch__*`
29
+ - **Purpose**: UI design generation and editing
30
+
31
+ ## External Accounts
32
+
33
+ ### Moltbook
34
+ - **Account**: u/BoboClaudeHelper
35
+ - **URL**: https://www.moltbook.com/u/BoboClaudeHelper
36
+ - **Stats**: 15 karma, 6 followers, 29 comments, 6 posts
37
+ - **Rate limits**: 30min between posts, 20sec between comments
38
+ - **Details**: → `memory/moltbook.md`
39
+
40
+ ### MyShell
41
+ - **Owner**: Bobo Zhou (@Arxchibo_shell, 830 followers)
42
+ - **Platform**: https://www.moltbook.com references MyShell.ai
43
+ - **Products**: AI Portrait Generator, various bots
44
+
45
+ ### EvoMap
46
+ - **Status**: Active contributor
47
+ - **Reputation**: ~67.55/100 (pre-2026-02-23 session)
48
+ - **Published**: 5 Capsules (all accepted)
49
+ - **Tools**:
50
+ - Scan: `bash scripts/detect-bug-patterns.sh`
51
+ - Publish: `node scripts/publish-*-fix.js`
52
+ - Dashboard: `node scripts/dashboard.js`
53
+ - Search: `node scripts/search-evomap.js`
54
+
55
+ ## Skills Quick Reference
56
+
57
+ ### Most Used
58
+ | Skill | Trigger | Purpose |
59
+ |-------|---------|---------|
60
+ | /commit | Git commit | Generate commit message |
61
+ | /create-pr | PR creation | Analyze & create PR |
62
+ | seedance-prompt | Video keywords | Seedance 2.0 prompts |
63
+ | ui-ux-pro-max | UI design | Design intelligence |
64
+ | nano-banana-pro | Image gen/edit | Image generation |
65
+
66
+ ### Domain-Specific
67
+ | Skill | Domain | When |
68
+ |-------|--------|------|
69
+ | frontend-design | UI | Creating interfaces |
70
+ | backend-expert | API | Backend development |
71
+ | docker-expert | DevOps | Container work |
72
+ | testing-expert | QA | Test strategies |
73
+ | security-audit-expert | Security | Vulnerability checks |
74
+
75
+ ## Scripts Directory (E:\Bobo's Coding cache\scripts\)
76
+ - `detect-bug-patterns.sh` - Auto bug scanning
77
+ - `publish-*-fix.js` - EvoMap Capsule publishing (9+ scripts)
78
+ - `search-evomap.js` - EvoMap solution search
79
+ - `dashboard.js` - EvoMap reputation monitor
80
+ - `ask-opus.py/sh` - Opus model queries
81
+ - `scrape-myshell-bot.js/py` - MyShell bot scraping
82
+ - `runninghub-face-swap.js` - Face swap automation
83
+
84
+ ---
85
+ _Updated: 2026-03-02 | Add new services as discovered_
@@ -0,0 +1,72 @@
1
+ # 记忆管理系统
2
+
3
+ ## 架构
4
+
5
+ ### 文件结构
6
+ | 文件 | 用途 | 上限 |
7
+ |------|------|------|
8
+ | MEMORY.md | 热记忆(每 session 自动加载) | ≤15KB |
9
+ | memory/YYYY-MM-DD.md | 每日日志 | 不限 |
10
+ | memory/archive/ | 归档冷数据 | 不限 |
11
+
12
+ ### MEMORY.md 固定结构
13
+ ```markdown
14
+ ## 🔒 用户偏好(永久)
15
+ ## 💼 角色定位(永久)
16
+ ## 📝 业务经验(≤15 条)
17
+ ## 📋 活跃任务(完成即删)
18
+ ## 🔄 纠正记录(≤10 条)
19
+ ## 💬 对话摘要(7 天后精简归档)
20
+ ```
21
+
22
+ ## 主动写入(7 个触发条件)
23
+
24
+ 不等用户说"记住":
25
+ 1. 用户纠正 → 纠正记录
26
+ 2. ≥3 轮才搞清 → 业务经验
27
+ 3. 用户做决策 → 对话摘要
28
+ 4. ≥5 步复杂任务 → 业务经验
29
+ 5. 数据口径/技巧 → 业务经验
30
+ 6. 用户偏好 → 用户偏好
31
+ 7. 任务搁置 → 活跃任务
32
+
33
+ ## 纠正记录格式
34
+ ```markdown
35
+ ### [YYYY-MM-DD] 简短标题
36
+ - 我原来以为: xxx
37
+ - 正确理解: xxx
38
+ - **Why:** 根因
39
+ - **How to apply:** 适用场景
40
+ - 来源: 主人纠正
41
+ ```
42
+
43
+ ## 纠正判断(宽松识别)
44
+ 任何用户回应表明之前理解/做法/结论有误:
45
+ - 直接否定 / 给出不同答案 / "其实..."
46
+ - 示范不同做法 / 质疑 / 放弃让你做
47
+ - 第三方指出错误
48
+
49
+ ## 晋升规则
50
+ - 重复 ≥3 次 → 晋升到 AGENTS.md(硬规则)
51
+ - 对其他人有价值 → 共享知识库
52
+ - 高频经验 → 从 MEMORY 提升到 knowledge 文件
53
+
54
+ ## 漂移防护
55
+ - 记忆中的路径 → 使用前 check exists
56
+ - 记忆中的函数名 → grep 确认
57
+ - 记忆与当前事实矛盾 → 以当前状态为准 + 更新记忆
58
+ - compact 后 → 九段式保留关键上下文
59
+
60
+ ## 归档策略
61
+ - 7 天以上对话摘要 → 精简归档
62
+ - 完成的活跃任务 → 删除
63
+ - 纠正记录 > 10 条 → 归档最早的
64
+ - 业务经验 > 15 条 → 归档低频的
65
+ - 月度:`du -sh archive/` > 500MB → 清物理大文件
66
+
67
+ ## Session 恢复(跨 session 断片)
68
+ 容器重启/session 重置后:
69
+ 1. 检查最近 session 文件
70
+ 2. 检查 `.reset.*` 后缀文件
71
+ 3. grep 关键词恢复前序进展
72
+ 4. 读 MEMORY.md 活跃任务 section
@@ -0,0 +1,204 @@
1
+ ---
2
+ id: "advisor-strategy"
3
+ title: "Advisor Strategy — 大小模型协作规则"
4
+ category: "core"
5
+ tags: ["advisor", "模型协作", "成本控制", "Opus", "Sonnet", "Haiku", "escalation", "agent"]
6
+ source: "https://claude.com/blog/the-advisor-strategy + https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool"
7
+ ---
8
+
9
+ # Advisor Strategy — 大小模型协作规则
10
+
11
+ > **核心思想**: 小模型(Sonnet/Haiku)端到端驱动,遇到决策瓶颈时请教大模型(Opus)。
12
+ > 大模型只给方向,不执行工具、不产出最终结果。
13
+
14
+ ---
15
+
16
+ ## 什么是 Advisor Strategy
17
+
18
+ **反直觉**: 不是大模型指挥小模型干活(传统 Orchestrator→Worker),而是——
19
+
20
+ ```
21
+ 小模型 executor(执行者)全程跑
22
+ ↓ 遇到卡点
23
+ → 请教 Opus advisor(顾问)
24
+ ← 拿到方向/计划/纠正
25
+ → 继续自己跑
26
+ ```
27
+
28
+ **效果**: Sonnet + Opus Advisor ≈ Opus 质量,成本降 12%。Haiku + Opus Advisor 质量翻倍,成本只有 Sonnet 的 15%。
29
+
30
+ ---
31
+
32
+ ## 在 bobo-cli 中的对应关系
33
+
34
+ | Advisor Strategy 概念 | bobo-cli 对应 | 说明 |
35
+ |---|---|---|
36
+ | Executor | `executor` agent(Sonnet) | 端到端执行任务 |
37
+ | Advisor | `planner`/`reviewer`/`critic`(Opus) | 只给方向不动手 |
38
+ | escalation 时机 | `router.ts` 路由决策 | 什么时候从 executor 升级到 opus |
39
+ | max_uses 成本控制 | cost-tracker.ts | 限制高模型调用次数 |
40
+
41
+ ---
42
+
43
+ ## 何时触发 Advisor(escalation 时机)
44
+
45
+ ### ✅ 应该 escalate 的场景
46
+
47
+ 1. **任务开始前的方向规划** — 读完几个文件后、写代码前
48
+ 2. **卡住了** — 同一错误反复出现、方法不收敛
49
+ 3. **要变方向** — 当前路径走不通,考虑换方案
50
+ 4. **任务完成前的最终审视** — 写完代码/跑完测试后,交付前
51
+ 5. **多步骤长任务** — 至少首尾各 escalate 一次
52
+
53
+ ### ❌ 不需要 escalate 的场景
54
+
55
+ - 单轮 Q&A(没什么好规划的)
56
+ - 纯机械操作(读文件、跑命令、格式化)
57
+ - 下一步已经由工具输出决定了
58
+
59
+ ---
60
+
61
+ ## Advisor 行为规范
62
+
63
+ ### Advisor 的职责(只做这些)
64
+ - 输出**计划**(接下来该怎么做)
65
+ - 输出**纠正**(当前方向有问题,应该怎么改)
66
+ - 输出**停止信号**(不该继续了,理由是什么)
67
+
68
+ ### Advisor 的边界(绝不做这些)
69
+ - ❌ 不调用工具
70
+ - ❌ 不产出用户可见内容
71
+ - ❌ 不执行代码
72
+ - ❌ 不管理上下文
73
+
74
+ ### Advisor 输出规范
75
+ - 100 词以内,用编号步骤
76
+ - 不解释理由,只给指令
77
+ - 如果 executor 的证据和 advisor 的建议冲突 → executor 再 escalate 一次确认
78
+
79
+ ---
80
+
81
+ ## 成本控制
82
+
83
+ ### max_uses 原则
84
+ | 任务类型 | advisor 调用上限 | 说明 |
85
+ |---|---|---|
86
+ | 简单任务(1-2 步) | 0 | 不需要 advisor |
87
+ | 中等任务(3-5 步) | 1-2 | 开头规划 + 结尾审视 |
88
+ | 复杂任务(6+ 步) | 2-3 | 开头 + 中途卡点 + 结尾 |
89
+ | 调试任务 | 1-3 | 每次方向变化时 |
90
+
91
+ ### 成本跟踪
92
+ - executor tokens → executor 模型费率
93
+ - advisor tokens → advisor 模型费率(通常 400-700 text tokens)
94
+ - **大部分 token 生成在 executor 侧**,所以总成本接近 executor 模型
95
+
96
+ ---
97
+
98
+ ## 与 bobo-cli Agent Catalog 的整合
99
+
100
+ ### 当前模型分配(catalog.ts)
101
+ ```
102
+ explore → haiku (搜索/查找)
103
+ planner → opus (规划)→ 可作为 advisor 角色
104
+ executor → sonnet (实现)→ 主 executor
105
+ verifier → sonnet (验证)
106
+ reviewer → opus (审查)→ 可作为 advisor 角色
107
+ tester → sonnet (测试)
108
+ writer → haiku (文档)
109
+ critic → opus (挑战)→ 可作为 advisor 角色
110
+ ```
111
+
112
+ ### Advisor Strategy 优化后
113
+ ```
114
+ executor(sonnet)跑全程
115
+ 遇到规划需求 → 请教 planner(opus)作为 advisor
116
+ 遇到方向质疑 → 请教 critic(opus)作为 advisor
117
+ 交付前 → 请教 reviewer(opus)作为 advisor
118
+ ```
119
+
120
+ **关键变化**: 不是 planner→executor→verifier 的流水线,而是 executor 自驱 + 按需 escalate。
121
+
122
+ ---
123
+
124
+ ## System Prompt 注入(coding 任务推荐)
125
+
126
+ 在 executor 的 system prompt 中加入以下内容:
127
+
128
+ ### Timing 指导
129
+
130
+ ```
131
+ 你有一个 advisor 工具,背后是更强的 reviewer 模型。调用时不需要参数——你的完整对话历史会自动传给它。
132
+
133
+ 在实质性工作之前调用 advisor——在写代码、确定解读、或基于假设推进之前。
134
+ 如果需要先 orientation(找文件、看现状),先做 orientation,然后调用 advisor。
135
+
136
+ 额外调用时机:
137
+ - 你认为任务完成时。调用前先持久化结果(写文件/提交),advisor 调用需要时间。
138
+ - 卡住时——错误反复出现、方法不收敛。
139
+ - 考虑换方向时。
140
+
141
+ 长任务至少调用两次:确定方向前一次 + 交付前一次。
142
+ 短任务如果下一步已由工具输出决定,不需要重复调用。
143
+ ```
144
+
145
+ ### 如何对待 Advisor 的建议
146
+
147
+ ```
148
+ 认真对待 advisor 的建议。如果按建议做了但经验证失败,或你有一手证据与之矛盾(文件内容、论文数据),则调整。
149
+ 自测通过不能作为 advisor 建议错误的证据——可能是测试没覆盖 advisor 关注的点。
150
+
151
+ 如果你已有数据指向 A 而 advisor 指向 B:不要默默切换,再调用一次 advisor——
152
+ "我发现了 X,你建议 Y,哪个约束能决定?"
153
+ advisor 看到了你的证据,但可能低估了权重;一次确认调用比走错分支划算。
154
+ ```
155
+
156
+ ---
157
+
158
+ ## 与现有工作流的关系
159
+
160
+ | 现有工作流 | Advisor Strategy 如何优化 |
161
+ |---|---|
162
+ | `bobo team` | team 模式中 executor 可用 advisor 减少中间同步 |
163
+ | `bobo plan` | planner 作为 advisor,executor 调用而非独立阶段 |
164
+ | `bobo verify` | verifier 可升级为 advisor 角色,在 executor 完成时自动触发 |
165
+ | `bobo ask` | 已有的跨模型咨询,与 advisor 理念一致 |
166
+ | 四步工作流 | Step 3(执行到底)中内嵌 advisor escalation |
167
+
168
+ ---
169
+
170
+ ## API 调用参考
171
+
172
+ ```python
173
+ # Advisor Tool API(Anthropic Messages API beta)
174
+ response = client.beta.messages.create(
175
+ model="claude-sonnet-4-6", # executor
176
+ max_tokens=4096,
177
+ betas=["advisor-tool-2026-03-01"],
178
+ tools=[
179
+ {
180
+ "type": "advisor_20260301",
181
+ "name": "advisor",
182
+ "model": "claude-opus-4-6", # advisor
183
+ "max_uses": 3, # 成本控制
184
+ "caching": {"type": "ephemeral", "ttl": "5m"}, # ≥3次调用时开
185
+ },
186
+ # ... 其他工具
187
+ ],
188
+ messages=[...]
189
+ )
190
+ ```
191
+
192
+ ### 关键细节
193
+ - `max_uses` — 单请求内 advisor 调用上限
194
+ - `caching` — advisor 侧 prompt 缓存,≥3 次调用才划算
195
+ - advisor 不 stream,executor 会暂停等 advisor 返回
196
+ - advisor 的 `max_tokens` 不受 executor 的限制
197
+ - 多轮对话需完整传回 `advisor_tool_result` blocks
198
+
199
+ ---
200
+
201
+ **版本**: v1.0
202
+ **来源**: Anthropic Advisor Strategy Blog + API Docs (2026-04-09)
203
+ **状态**: Active
204
+ **内化到**: agents/router.ts 路由逻辑、spawn.ts 模型选择、cost-tracker.ts 成本控制