oh-my-codex-cli 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 (292) hide show
  1. package/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
  2. package/.agent/skills/agent-kb/README.md +46 -0
  3. package/.agent/skills/agent-kb/SKILL.md +128 -0
  4. package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
  5. package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
  6. package/.agent/skills/aireview/SKILL.md +704 -0
  7. package/.agent/skills/analyze/SKILL.md +81 -0
  8. package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
  9. package/.agent/skills/architect-planner/README.md +41 -0
  10. package/.agent/skills/architect-planner/SKILL.md +539 -0
  11. package/.agent/skills/auto-mbti/SKILL.md +291 -0
  12. package/.agent/skills/autopilot/SKILL.md +222 -0
  13. package/.agent/skills/backend-patterns/SKILL.md +602 -0
  14. package/.agent/skills/bdd-generator/README.md +78 -0
  15. package/.agent/skills/bdd-generator/SKILL.md +436 -0
  16. package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
  17. package/.agent/skills/brainstorming/README.md +41 -0
  18. package/.agent/skills/brainstorming/SKILL.md +165 -0
  19. package/.agent/skills/build-fix/SKILL.md +190 -0
  20. package/.agent/skills/cancel/SKILL.md +658 -0
  21. package/.agent/skills/checkpoint/SKILL.md +94 -0
  22. package/.agent/skills/code-review/SKILL.md +273 -0
  23. package/.agent/skills/coding-standards/SKILL.md +535 -0
  24. package/.agent/skills/conductor/SKILL.md +128 -0
  25. package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
  26. package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
  27. package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
  28. package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
  29. package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
  30. package/.agent/skills/conductor/scripts/install.sh +89 -0
  31. package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
  32. package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
  33. package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
  34. package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
  35. package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
  36. package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
  37. package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
  38. package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
  39. package/.agent/skills/conductor/templates/rules/README.md +23 -0
  40. package/.agent/skills/conductor/templates/rules/agents.md +49 -0
  41. package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
  42. package/.agent/skills/conductor/templates/rules/dev.md +20 -0
  43. package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
  44. package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
  45. package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
  46. package/.agent/skills/conductor/templates/rules/performance.md +47 -0
  47. package/.agent/skills/conductor/templates/rules/research.md +26 -0
  48. package/.agent/skills/conductor/templates/rules/review.md +22 -0
  49. package/.agent/skills/conductor/templates/rules/security.md +36 -0
  50. package/.agent/skills/conductor/templates/rules/testing.md +30 -0
  51. package/.agent/skills/conductor/templates/workflow.md +333 -0
  52. package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
  53. package/.agent/skills/consensus/README.md +41 -0
  54. package/.agent/skills/consensus/SKILL.md +317 -0
  55. package/.agent/skills/content-research-writer/SKILL.md +537 -0
  56. package/.agent/skills/debug-analysis/SKILL.md +331 -0
  57. package/.agent/skills/deepinit/SKILL.md +347 -0
  58. package/.agent/skills/deepsearch/SKILL.md +56 -0
  59. package/.agent/skills/doctor/SKILL.md +158 -0
  60. package/.agent/skills/drawio/EXAMPLES.md +382 -0
  61. package/.agent/skills/drawio/QUICK_START.md +237 -0
  62. package/.agent/skills/drawio/README.md +315 -0
  63. package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
  64. package/.agent/skills/drawio/SKILL.md +1176 -0
  65. package/.agent/skills/e2e/SKILL.md +396 -0
  66. package/.agent/skills/ecomode/SKILL.md +160 -0
  67. package/.agent/skills/electron-driver/SKILL.md +144 -0
  68. package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
  69. package/.agent/skills/eval/SKILL.md +140 -0
  70. package/.agent/skills/eval-harness/SKILL.md +242 -0
  71. package/.agent/skills/evolve/SKILL.md +213 -0
  72. package/.agent/skills/frontend-design/SKILL.md +42 -0
  73. package/.agent/skills/frontend-patterns/SKILL.md +646 -0
  74. package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
  75. package/.agent/skills/git-master/SKILL.md +75 -0
  76. package/.agent/skills/help/SKILL.md +89 -0
  77. package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
  78. package/.agent/skills/local-skills-setup/SKILL.md +483 -0
  79. package/.agent/skills/log-analyzer/SKILL.md +187 -0
  80. package/.agent/skills/mcp-setup/SKILL.md +226 -0
  81. package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
  82. package/.agent/skills/multi-model-research/README.md +233 -0
  83. package/.agent/skills/multi-model-research/SKILL.md +541 -0
  84. package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
  85. package/.agent/skills/note/SKILL.md +80 -0
  86. package/.agent/skills/omc-setup/SKILL.md +219 -0
  87. package/.agent/skills/orchestrate/SKILL.md +620 -0
  88. package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
  89. package/.agent/skills/patent-workflow/README.md +455 -0
  90. package/.agent/skills/patent-workflow/SKILL.md +1036 -0
  91. package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
  92. package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
  93. package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
  94. package/.agent/skills/pattern-recognition/SKILL.md +792 -0
  95. package/.agent/skills/pipeline/SKILL.md +448 -0
  96. package/.agent/skills/plan/SKILL.md +309 -0
  97. package/.agent/skills/planning-methodology/SKILL.md +370 -0
  98. package/.agent/skills/planning-with-files/SKILL.md +210 -0
  99. package/.agent/skills/planning-with-files/examples.md +202 -0
  100. package/.agent/skills/planning-with-files/reference.md +218 -0
  101. package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
  102. package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
  103. package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
  104. package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
  105. package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
  106. package/.agent/skills/planning-with-files/templates/findings.md +95 -0
  107. package/.agent/skills/planning-with-files/templates/progress.md +114 -0
  108. package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
  109. package/.agent/skills/project-analyze/CLAUDE.md +18 -0
  110. package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
  111. package/.agent/skills/project-analyze/README.md +42 -0
  112. package/.agent/skills/project-analyze/SKILL.md +289 -0
  113. package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
  114. package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
  115. package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
  116. package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
  117. package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
  118. package/.agent/skills/project-session-manager/SKILL.md +428 -0
  119. package/.agent/skills/project-session-manager/lib/config.sh +86 -0
  120. package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
  121. package/.agent/skills/project-session-manager/lib/session.sh +132 -0
  122. package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
  123. package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
  124. package/.agent/skills/project-session-manager/psm.sh +629 -0
  125. package/.agent/skills/project-session-manager/templates/feature.md +56 -0
  126. package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
  127. package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
  128. package/.agent/skills/project-session-manager/templates/projects.json +19 -0
  129. package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
  130. package/.agent/skills/quality-check/README.md +50 -0
  131. package/.agent/skills/quality-check/SKILL.md +240 -0
  132. package/.agent/skills/quality-check/SKILL.md.backup +238 -0
  133. package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
  134. package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
  135. package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
  136. package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
  137. package/.agent/skills/quality-validation/SKILL.md +519 -0
  138. package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
  139. package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
  140. package/.agent/skills/ralph/SKILL.md +236 -0
  141. package/.agent/skills/ralph-init/SKILL.md +78 -0
  142. package/.agent/skills/ralplan/SKILL.md +58 -0
  143. package/.agent/skills/refactor-clean/SKILL.md +49 -0
  144. package/.agent/skills/release/SKILL.md +84 -0
  145. package/.agent/skills/research/SKILL.md +526 -0
  146. package/.agent/skills/research-methodology/SKILL.md +268 -0
  147. package/.agent/skills/review/SKILL.md +53 -0
  148. package/.agent/skills/security-review/SKILL.md +509 -0
  149. package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
  150. package/.agent/skills/setup-pm/SKILL.md +102 -0
  151. package/.agent/skills/skill/SKILL.md +424 -0
  152. package/.agent/skills/skill-create/SKILL.md +209 -0
  153. package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
  154. package/.agent/skills/skill-debugger/README.md +44 -0
  155. package/.agent/skills/skill-debugger/SKILL.md +326 -0
  156. package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
  157. package/.agent/skills/skill-development/SKILL.md +661 -0
  158. package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
  159. package/.agent/skills/skill-doc-generator/README.md +37 -0
  160. package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
  161. package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
  162. package/.agent/skills/skill-quality-analyzer/README.md +61 -0
  163. package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
  164. package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
  165. package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
  166. package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
  167. package/.agent/skills/skill-tester/README.md +46 -0
  168. package/.agent/skills/skill-tester/SKILL.md +345 -0
  169. package/.agent/skills/start-dev/SKILL.md +701 -0
  170. package/.agent/skills/swarm/SKILL.md +691 -0
  171. package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
  172. package/.agent/skills/task-kb-record/SKILL.md +417 -0
  173. package/.agent/skills/tdd/SKILL.md +446 -0
  174. package/.agent/skills/tdd-generator/DEMO.md +516 -0
  175. package/.agent/skills/tdd-generator/README.md +89 -0
  176. package/.agent/skills/tdd-generator/SKILL.md +278 -0
  177. package/.agent/skills/tdd-workflow/SKILL.md +424 -0
  178. package/.agent/skills/test-coverage/SKILL.md +48 -0
  179. package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
  180. package/.agent/skills/thinkdeep/README.md +41 -0
  181. package/.agent/skills/thinkdeep/SKILL.md +343 -0
  182. package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
  183. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  184. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  185. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  186. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  187. package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  188. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  189. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  190. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  191. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  192. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  193. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  194. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  195. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  196. package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  197. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  198. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  199. package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
  200. package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
  201. package/.agent/skills/ultrapilot/SKILL.md +647 -0
  202. package/.agent/skills/ultraqa/SKILL.md +152 -0
  203. package/.agent/skills/ultrawork/SKILL.md +123 -0
  204. package/.agent/skills/update-codemaps/SKILL.md +38 -0
  205. package/.agent/skills/update-docs/SKILL.md +52 -0
  206. package/.agent/skills/verification-loop/SKILL.md +140 -0
  207. package/.agent/skills/verify/SKILL.md +80 -0
  208. package/.agent/skills/writer-memory/SKILL.md +459 -0
  209. package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
  210. package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
  211. package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
  212. package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
  213. package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
  214. package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
  215. package/.governance/skill-lint.allowlist +4 -0
  216. package/.governance/skill-llm.allowlist +4 -0
  217. package/AGENTS.md +59 -0
  218. package/LICENSE +21 -0
  219. package/README.md +169 -0
  220. package/README.zh.md +145 -0
  221. package/bin/omcodex.js +8 -0
  222. package/commands/conductor/implement.toml +358 -0
  223. package/commands/conductor/newTrack.toml +142 -0
  224. package/commands/conductor/revert.toml +123 -0
  225. package/commands/conductor/setup.toml +429 -0
  226. package/commands/conductor/status.toml +57 -0
  227. package/docs/ALIGNMENT.md +40 -0
  228. package/docs/CODEX.md +133 -0
  229. package/docs/NOTIFY.md +81 -0
  230. package/docs/SKILL_GOVERNANCE.md +72 -0
  231. package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
  232. package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
  233. package/package.json +50 -0
  234. package/prompts/architect.md +105 -0
  235. package/prompts/executor.md +134 -0
  236. package/prompts/planner.md +113 -0
  237. package/scripts/check-skill-governance.sh +84 -0
  238. package/scripts/check-skill-llm-governance.js +302 -0
  239. package/scripts/eval-skills.js +217 -0
  240. package/scripts/generate-catalog-docs.js +95 -0
  241. package/scripts/generate-codex-mcp-config.sh +22 -0
  242. package/scripts/install-codex-force.sh +5 -0
  243. package/scripts/install-codex-incremental.sh +5 -0
  244. package/scripts/install-codex.sh +79 -0
  245. package/scripts/notify-dispatch.js +15 -0
  246. package/scripts/setup-package-manager.js +137 -0
  247. package/src/catalog/generated/public-catalog.json +547 -0
  248. package/src/catalog/manifest.json +542 -0
  249. package/src/catalog/reader.js +43 -0
  250. package/src/catalog/schema.js +79 -0
  251. package/src/cli/doctor.js +62 -0
  252. package/src/cli/index.js +85 -0
  253. package/src/cli/notify.js +127 -0
  254. package/src/cli/route.js +43 -0
  255. package/src/cli/setup.js +155 -0
  256. package/src/cli/team.js +125 -0
  257. package/src/config/generator.js +119 -0
  258. package/src/mcp/memory-server.js +241 -0
  259. package/src/mcp/state-server.js +112 -0
  260. package/src/mcp/trace-server.js +168 -0
  261. package/src/notify/dispatch.js +74 -0
  262. package/src/notify/extensibility/dispatcher.js +113 -0
  263. package/src/notify/extensibility/events.js +15 -0
  264. package/src/notify/extensibility/loader.js +54 -0
  265. package/src/router/skill-router.js +90 -0
  266. package/src/team/auto-advance.js +72 -0
  267. package/src/team/orchestrator.js +82 -0
  268. package/src/team/state-store.js +33 -0
  269. package/src/utils/paths.js +33 -0
  270. package/templates/AGENTS.md +15 -0
  271. package/templates/catalog-manifest.json +542 -0
  272. package/templates/code_styleguides/csharp.md +115 -0
  273. package/templates/code_styleguides/dart.md +238 -0
  274. package/templates/code_styleguides/general.md +23 -0
  275. package/templates/code_styleguides/go.md +48 -0
  276. package/templates/code_styleguides/html-css.md +49 -0
  277. package/templates/code_styleguides/javascript.md +51 -0
  278. package/templates/code_styleguides/python.md +37 -0
  279. package/templates/code_styleguides/typescript.md +43 -0
  280. package/templates/rules/README.md +23 -0
  281. package/templates/rules/agents.md +49 -0
  282. package/templates/rules/coding-style.md +70 -0
  283. package/templates/rules/dev.md +20 -0
  284. package/templates/rules/git-workflow.md +45 -0
  285. package/templates/rules/notify.md +6 -0
  286. package/templates/rules/patterns.md +55 -0
  287. package/templates/rules/performance.md +47 -0
  288. package/templates/rules/research.md +26 -0
  289. package/templates/rules/review.md +22 -0
  290. package/templates/rules/security.md +36 -0
  291. package/templates/rules/testing.md +30 -0
  292. package/templates/workflow.md +333 -0
@@ -0,0 +1,614 @@
1
+ # Multi-Model Research - Detailed Usage Guide
2
+
3
+ ## Overview
4
+
5
+ Multi-model research skill directly calls Gemini/Codex CLIs for collaborative technical analysis, bypassing MCP to avoid timeouts. Uses OAuth authentication with zero maintenance cost and full control over input/output.
6
+
7
+ **Key Advantages**:
8
+ - ✅ No timeout issues (bypasses PAL MCP 2-minute limit)
9
+ - ✅ Uses OAuth (no API key configuration needed)
10
+ - ✅ Zero maintenance (no MCP server required)
11
+ - ✅ Easy debugging (direct CLI output, testable commands)
12
+ - ✅ Full control (custom parameters, formats, timeouts)
13
+ - ✅ True multi-model: Gemini (1M context) + Codex (GPT-5) + Claude
14
+
15
+ ---
16
+
17
+ ## Auto-Trigger Conditions
18
+
19
+ This skill auto-invokes when user says:
20
+ - "多模型调研" (multi-model research)
21
+ - "技术选型分析" (technology selection analysis)
22
+ - "架构决策" (architecture decision)
23
+ - "用 Gemini 和 Codex 分析" (analyze with Gemini and Codex)
24
+ - "多 AI 协作研究" (multi-AI collaborative research)
25
+ - "对比不同模型的观点" (compare different model perspectives)
26
+
27
+ **Manual Trigger**:
28
+ ```
29
+ 使用 multi-model-research 分析 <your question>
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Usage Scenarios
35
+
36
+ ### Scenario 1: Technology Selection Decision
37
+
38
+ **Use Case**: Choosing between competing technologies or approaches
39
+
40
+ **Example Query**:
41
+ ```
42
+ "Should I use Redis or Memcached for session storage in a high-traffic web application?"
43
+ ```
44
+
45
+ **What Happens**:
46
+
47
+ 1. **Gemini Analysis** (Architecture Perspective, 1M context):
48
+ - Evaluates overall architecture fit
49
+ - Analyzes scalability implications
50
+ - Assesses deployment complexity
51
+ - Predicts performance at scale
52
+
53
+ 2. **Codex Analysis** (Code Perspective, GPT-5):
54
+ - Reviews implementation best practices
55
+ - Compares client library quality
56
+ - Identifies common code patterns
57
+ - Suggests optimization techniques
58
+
59
+ 3. **Claude Synthesis**:
60
+ - Identifies consensus (e.g., both recommend Redis for persistence needs)
61
+ - Analyzes disagreements (e.g., Gemini focuses on ops, Codex on code)
62
+ - Provides final recommendation with decision rationale
63
+
64
+ **Expected Output**:
65
+ ```markdown
66
+ ## 📊 Multi-Model Technical Research Report
67
+
68
+ ### 🤖 Gemini Architecture Analysis (1M Context Perspective)
69
+
70
+ **Core Insights**:
71
+ - Redis better for session data persistence
72
+ - Built-in replication and clustering
73
+ - Richer data structures enable session metadata
74
+
75
+ **Architecture Advantages**: [...]
76
+ **Potential Risks**: [...]
77
+ **Optimization Suggestions**: [...]
78
+
79
+ ---
80
+
81
+ ### 💻 Codex Code Quality Assessment (GPT-5 Perspective)
82
+
83
+ **Core Insights**:
84
+ - Node.js Redis clients more mature
85
+ - Connection pooling patterns well-established
86
+ - Error handling better documented
87
+
88
+ **Best Practices**: [...]
89
+ **Common Pitfalls**: [...]
90
+ **Performance Optimization**: [...]
91
+
92
+ ---
93
+
94
+ ### 🎯 Claude Comprehensive Decision
95
+
96
+ #### ✅ Consensus
97
+ Both models agree:
98
+ - Redis for persistent session storage
99
+ - Memcached for pure caching
100
+ - Redis has better client library support
101
+
102
+ #### ⚠️ Differences
103
+ | Dimension | Gemini View | Codex View | Analysis |
104
+ |-----------|-------------|------------|----------|
105
+ | Complexity | Higher operational overhead | More code boilerplate | Redis requires more ops knowledge |
106
+ | Performance | Comparable for read-heavy | Redis faster for complex data | Depends on use case |
107
+
108
+ #### 💡 Complementary Insights
109
+ - Gemini: Redis Sentinel for HA, cluster for horizontal scale
110
+ - Codex: ioredis library with TypeScript support, connection retry patterns
111
+
112
+ #### 🎯 Final Recommendation
113
+ **Choose Redis if**:
114
+ - Need session persistence
115
+ - Require complex data types
116
+ - Plan to scale horizontally
117
+
118
+ **Choose Memcached if**:
119
+ - Pure ephemeral caching
120
+ - Minimal operational complexity
121
+ - Simple key-value only
122
+
123
+ **Action Plan**:
124
+ 1. Start with Redis Standalone for development
125
+ 2. Implement ioredis with connection pooling
126
+ 3. Plan Redis Cluster migration path
127
+ 4. Monitor memory usage and eviction policies
128
+ ```
129
+
130
+ ---
131
+
132
+ ### Scenario 2: Architecture Pattern Evaluation
133
+
134
+ **Use Case**: Evaluating architectural patterns for complex systems
135
+
136
+ **Example Query**:
137
+ ```
138
+ "Should I use microservices or monolith for a SaaS application with 10 developers and 100k users?"
139
+ ```
140
+
141
+ **What Happens**:
142
+
143
+ 1. **Gemini**: Analyzes from system design perspective
144
+ - Team size vs architecture complexity
145
+ - Deployment and operational overhead
146
+ - Scalability ceiling considerations
147
+ - Technology risk assessment
148
+
149
+ 2. **Codex**: Analyzes from code organization perspective
150
+ - Module boundaries and dependencies
151
+ - Testing and CI/CD complexity
152
+ - Code sharing and reuse patterns
153
+ - Development velocity impact
154
+
155
+ 3. **Claude**: Synthesizes team/scale/context-specific recommendation
156
+
157
+ **Key Output Sections**:
158
+ - **Consensus**: Both likely recommend modular monolith for this scale
159
+ - **Gemini Focus**: Operational complexity, deployment flexibility
160
+ - **Codex Focus**: Code structure, testing strategies
161
+ - **Decision Framework**: When to migrate to microservices (team size, traffic, complexity)
162
+
163
+ ---
164
+
165
+ ### Scenario 3: Performance Optimization Strategy
166
+
167
+ **Use Case**: Optimizing existing system performance
168
+
169
+ **Example Query**:
170
+ ```
171
+ "How to reduce API response time from 2 seconds to 200ms in Node.js Express application?"
172
+ ```
173
+
174
+ **What Happens**:
175
+
176
+ 1. **Gemini**: System-level optimization
177
+ - Database query optimization
178
+ - Caching strategy (Redis, CDN)
179
+ - Load balancing and scaling
180
+ - Infrastructure recommendations
181
+
182
+ 2. **Codex**: Code-level optimization
183
+ - Express middleware optimization
184
+ - Async/await patterns
185
+ - Memory leak detection
186
+ - Profiling tool recommendations
187
+
188
+ 3. **Claude**: Prioritized action plan combining both perspectives
189
+
190
+ **Output Structure**:
191
+ - **Quick Wins** (Codex + Gemini consensus): Add Redis caching, optimize DB queries
192
+ - **Medium-term** (Gemini): Scale horizontally, add read replicas
193
+ - **Long-term** (Codex): Refactor hot paths, implement async processing
194
+ - **Measurement**: Profiling tools, APM setup, metrics to track
195
+
196
+ ---
197
+
198
+ ### Scenario 4: Security Risk Assessment
199
+
200
+ **Use Case**: Evaluating security implications of technical decisions
201
+
202
+ **Example Query**:
203
+ ```
204
+ "What are the security risks of using JWT for authentication in a React + Node.js app?"
205
+ ```
206
+
207
+ **What Happens**:
208
+
209
+ 1. **Gemini**: Infrastructure and architecture security
210
+ - Token storage best practices
211
+ - HTTPS requirements
212
+ - API gateway considerations
213
+ - Deployment security
214
+
215
+ 2. **Codex**: Implementation-level security
216
+ - JWT library vulnerabilities
217
+ - XSS prevention in React
218
+ - CSRF protection patterns
219
+ - Secure coding practices
220
+
221
+ 3. **Claude**: Comprehensive security checklist + mitigation strategies
222
+
223
+ ---
224
+
225
+ ## CLI Usage Details
226
+
227
+ ### Gemini CLI Commands
228
+
229
+ **Priority 1: gemp (Long-Task Optimized)**
230
+
231
+ ```bash
232
+ # Step 1: Write prompt to temporary file
233
+ cat > /tmp/gemini_prompt.txt << 'PROMPT_EOF'
234
+ You are a senior architecture expert with 20 years of large-scale system design experience.
235
+
236
+ Please deeply analyze the following technical approach:
237
+
238
+ 【User Question】
239
+ <INSERT_QUESTION_HERE>
240
+
241
+ Analysis Requirements:
242
+ 1. **Architecture Design Rationality**
243
+ 2. **Scalability and Performance**
244
+ 3. **Technical Risk Assessment**
245
+ 4. **Optimization Recommendations**
246
+ PROMPT_EOF
247
+
248
+ # Step 2: Use gemp (20-minute timeout, Vertex AI)
249
+ cat /tmp/gemini_prompt.txt | node ~/.gemini/long_task_runner.js 2>&1
250
+ ```
251
+
252
+ **Priority 2: gemini CLI (Fallback)**
253
+
254
+ ```bash
255
+ # Use standard gemini CLI as fallback
256
+ cat /tmp/gemini_prompt.txt | gemini --yolo 2>&1 | grep -v "STARTUP\|YOLO\|Load"
257
+ ```
258
+
259
+ **Comparison**:
260
+ | Feature | gemp | gemini CLI |
261
+ |---------|------|------------|
262
+ | Timeout | 20 minutes | ~2-3 minutes |
263
+ | Startup Speed | Fast (direct API) | Slow (loads plugins) |
264
+ | Output Format | Clean | Has startup logs |
265
+ | Use Case | Long tasks / complex analysis | Simple queries |
266
+
267
+ ---
268
+
269
+ ### Codex CLI Commands
270
+
271
+ **⚠️ Important: Always use temporary file method (avoid shell escaping issues)**
272
+
273
+ ```bash
274
+ # Step 1: Write prompt to temporary file
275
+ cat > /tmp/codex_prompt.txt << 'PROMPT_EOF'
276
+ You are a senior code review expert focused on code quality, security, and best practices.
277
+
278
+ Please evaluate the following technical approach:
279
+
280
+ 【User Question】
281
+ <INSERT_QUESTION_HERE>
282
+
283
+ Evaluation Requirements:
284
+ 1. **Code Implementation Best Practices**
285
+ 2. **Performance Optimization Recommendations**
286
+ 3. **Security Risk Protection**
287
+ 4. **Maintainability Analysis**
288
+ PROMPT_EOF
289
+
290
+ # Step 2: Read from stdin using pipe (use - parameter)
291
+ cat /tmp/codex_prompt.txt | codex exec --dangerously-bypass-approvals-and-sandbox - 2>&1 | head -500
292
+ ```
293
+
294
+ **With Output File** (for longer responses):
295
+ ```bash
296
+ cat /tmp/codex_prompt.txt | codex exec --dangerously-bypass-approvals-and-sandbox -o /tmp/codex_output.txt - 2>&1 && cat /tmp/codex_output.txt
297
+ ```
298
+
299
+ ---
300
+
301
+ ## Workflow Steps
302
+
303
+ ### Step 1: Preparation and Validation
304
+
305
+ **Claude's Task**:
306
+ 1. Collect user's complete question
307
+ 2. Organize into clear prompt
308
+ 3. Confirm analysis dimensions (architecture/code/performance)
309
+
310
+ **Output to User**:
311
+ ```
312
+ 📊 Starting Multi-Model Technical Research
313
+
314
+ **Research Topic**: [User Question]
315
+
316
+ **Research Models**:
317
+ - 🤖 Gemini (Architecture Analysis, 1M Context)
318
+ - 💻 Codex (Code Assessment, GPT-5)
319
+ - 🧠 Claude (Comprehensive Decision)
320
+
321
+ **Estimated Time**: 2-3 minutes
322
+
323
+ Starting research...
324
+ ```
325
+
326
+ ---
327
+
328
+ ### Step 2: Gemini Architecture Deep Analysis
329
+
330
+ **Claude's Task**:
331
+ 1. Execute Gemini CLI command (prioritize gemp)
332
+ 2. Filter out startup logs and error messages
333
+ 3. Extract Gemini's actual analysis content
334
+ 4. Organize into structured format
335
+
336
+ **Show to User**:
337
+ ```
338
+ ✅ Gemini Analysis Complete
339
+
340
+ #### 🤖 Gemini Architecture Analysis (1M Context Perspective)
341
+
342
+ [Gemini's Complete Analysis Content]
343
+
344
+ ---
345
+ Continuing with Codex code assessment...
346
+ ```
347
+
348
+ ---
349
+
350
+ ### Step 3: Codex Code Quality Assessment
351
+
352
+ **Claude's Task**:
353
+ 1. Execute Codex CLI command
354
+ 2. Parse JSONL output
355
+ 3. Extract Codex's analysis content
356
+ 4. Organize into structured format
357
+
358
+ **Show to User**:
359
+ ```
360
+ ✅ Codex Analysis Complete
361
+
362
+ #### 💻 Codex Code Assessment (GPT-5 Perspective)
363
+
364
+ [Codex's Complete Analysis Content]
365
+
366
+ ---
367
+ Performing comprehensive decision...
368
+ ```
369
+
370
+ ---
371
+
372
+ ### Step 4: Claude Comprehensive Decision
373
+
374
+ **Claude's Task**:
375
+ 1. Compare Gemini and Codex perspectives
376
+ 2. Identify consensus points and disagreements
377
+ 3. Analyze unique insights from each
378
+ 4. Provide final recommendation
379
+
380
+ **Analysis Dimensions**:
381
+
382
+ 1. **Consensus Identification**
383
+ - Points both models emphasize
384
+ - Highly consistent recommendations
385
+ - Critical technical decisions
386
+
387
+ 2. **Disagreement Analysis**
388
+ - Gemini's architecture view vs Codex's code view
389
+ - Different priority rankings
390
+ - Complementary suggestions
391
+
392
+ 3. **Unique Insights**
393
+ - Gemini-exclusive architecture insights (1M context advantage)
394
+ - Codex-exclusive code practices (GPT-5 capability)
395
+
396
+ 4. **Final Decision**
397
+ - Comprehensive recommended approach
398
+ - Decision basis and rationale
399
+ - Step-by-step action plan
400
+ - Risk mitigation measures
401
+
402
+ ---
403
+
404
+ ## Advanced Usage
405
+
406
+ ### Combining with Other Skills
407
+
408
+ **Multi-Model Research + Agent-KB**:
409
+ ```
410
+ 1. multi-model-research: Get fresh perspectives from Gemini/Codex
411
+ 2. agent-kb: Cross-reference with historical expert cases
412
+ 3. Synthesize: New analysis + validated historical patterns
413
+ ```
414
+
415
+ **Multi-Model Research + Brainstorming**:
416
+ ```
417
+ 1. brainstorming: Generate multiple solution approaches
418
+ 2. multi-model-research: Evaluate each approach with Gemini/Codex
419
+ 3. Select best approach based on multi-model consensus
420
+ ```
421
+
422
+ **Multi-Model Research + Code-Review**:
423
+ ```
424
+ 1. code-review: Analyze existing codebase
425
+ 2. multi-model-research: Get improvement recommendations
426
+ 3. Implement changes with validated patterns
427
+ ```
428
+
429
+ ---
430
+
431
+ ## Troubleshooting
432
+
433
+ ### Issue 1: Gemini CLI Timeout
434
+
435
+ **Symptoms**: Gemini command hangs or times out
436
+
437
+ **Solutions**:
438
+ 1. **Use gemp instead**:
439
+ ```bash
440
+ cat /tmp/gemini_prompt.txt | node ~/.gemini/long_task_runner.js 2>&1
441
+ ```
442
+ 2. **Shorten prompt** (reduce context if too long)
443
+ 3. **Check OAuth token**:
444
+ ```bash
445
+ gemini --version # Should show authenticated
446
+ ```
447
+
448
+ ---
449
+
450
+ ### Issue 2: Codex Returns JSONL Format
451
+
452
+ **Symptoms**: Codex output is JSONL with event types
453
+
454
+ **Solutions**:
455
+ 1. **Parse events correctly**:
456
+ - Look for `type: "text"` events
457
+ - Extract `data` field content
458
+ - Combine chunks for full response
459
+
460
+ 2. **Use head to limit output**:
461
+ ```bash
462
+ cat /tmp/codex_prompt.txt | codex exec --dangerously-bypass-approvals-and-sandbox - 2>&1 | head -500
463
+ ```
464
+
465
+ ---
466
+
467
+ ### Issue 3: CLI Commands Not Found
468
+
469
+ **Symptoms**: `gemini: command not found` or `codex: command not found`
470
+
471
+ **Solutions**:
472
+ 1. **Check installations**:
473
+ ```bash
474
+ which gemini # Should show path
475
+ which codex # Should show path
476
+ ```
477
+
478
+ 2. **Verify PATH**:
479
+ ```bash
480
+ echo $PATH | grep -o '[^:]*gemini[^:]*'
481
+ echo $PATH | grep -o '[^:]*codex[^:]*'
482
+ ```
483
+
484
+ 3. **Reinstall if needed**:
485
+ ```bash
486
+ # Gemini: See gemini CLI documentation
487
+ # Codex: npm install -g @anthropic/claude-code-cli
488
+ ```
489
+
490
+ ---
491
+
492
+ ## Tips & Best Practices
493
+
494
+ ### Query Formulation
495
+
496
+ **Good Queries** ✅:
497
+ - "Should I use GraphQL or REST for mobile app backend with 50+ endpoints?"
498
+ - "How to architect real-time notification system for 1M+ concurrent users?"
499
+ - "What's the best database choice for time-series data with 1TB+ daily ingestion?"
500
+
501
+ **Poor Queries** ❌:
502
+ - "Which is better?" (no context)
503
+ - "Help me decide" (unclear what to decide)
504
+ - "Optimize my code" (no code provided)
505
+
506
+ ---
507
+
508
+ ### Maximizing Multi-Model Value
509
+
510
+ 1. **Leverage Model Strengths**:
511
+ - Gemini: Large-scale architecture, complex system design (1M context)
512
+ - Codex: Code implementation, library choices, coding patterns (GPT-5)
513
+ - Claude: Synthesis, decision-making, context-specific recommendations
514
+
515
+ 2. **Ask Multi-Dimensional Questions**:
516
+ - Include architecture, code, performance, security dimensions
517
+ - Request trade-off analysis
518
+ - Ask for specific metrics and benchmarks
519
+
520
+ 3. **Iterate with Follow-up**:
521
+ ```
522
+ Initial: "Microservices vs monolith for our SaaS?"
523
+ Follow-up: "How would service mesh impact operational complexity in microservices?"
524
+ Deep-dive: "Show code examples of service-to-service auth in microservices"
525
+ ```
526
+
527
+ ---
528
+
529
+ ## Real-World Examples
530
+
531
+ ### Example 1: Database Selection for E-Commerce
532
+
533
+ **Query**: "PostgreSQL vs MongoDB for e-commerce product catalog with 1M+ SKUs, complex filtering, and inventory management"
534
+
535
+ **Gemini Analysis**:
536
+ - Strong relational model for inventory tracking
537
+ - ACID transactions critical for stock management
538
+ - PostgreSQL JSONB for flexible product attributes
539
+ - Horizontal scaling with partitioning
540
+
541
+ **Codex Analysis**:
542
+ - TypeORM/Sequelize ecosystem for PostgreSQL
543
+ - Mongoose patterns for MongoDB
544
+ - Complex join queries easier in PostgreSQL
545
+ - Full-text search considerations
546
+
547
+ **Claude Decision**:
548
+ - **Recommend PostgreSQL** for transactional integrity
549
+ - Use JSONB for flexible product attributes
550
+ - Implement read replicas for search/filtering
551
+ - Consider Elasticsearch for advanced search
552
+
553
+ ---
554
+
555
+ ### Example 2: Real-Time Feature Implementation
556
+
557
+ **Query**: "WebSocket vs Server-Sent Events for real-time dashboard with 5k concurrent users"
558
+
559
+ **Gemini Analysis**:
560
+ - SSE simpler deployment (HTTP/2)
561
+ - WebSocket bi-directional but complex scaling
562
+ - Load balancer sticky session requirements
563
+ - Horizontal scaling considerations
564
+
565
+ **Codex Analysis**:
566
+ - Socket.IO library for WebSocket
567
+ - EventSource API for SSE
568
+ - Reconnection logic patterns
569
+ - Browser compatibility
570
+
571
+ **Claude Decision**:
572
+ - **Recommend SSE** for one-way updates (dashboard)
573
+ - Simpler infrastructure, easier scaling
574
+ - Fallback to polling for old browsers
575
+ - Use WebSocket only if bi-directional needed
576
+
577
+ ---
578
+
579
+ ## Performance Characteristics
580
+
581
+ ### Execution Time
582
+
583
+ | Phase | Typical Duration | Notes |
584
+ |-------|------------------|-------|
585
+ | Gemini Analysis | 15-30 seconds | Longer with gemp for complex queries |
586
+ | Codex Analysis | 10-20 seconds | Faster for focused code questions |
587
+ | Claude Synthesis | 5-10 seconds | Analysis and formatting |
588
+ | **Total** | **30-60 seconds** | 2-3 minutes for very complex topics |
589
+
590
+ ### Cost Considerations
591
+
592
+ - **Gemini**: Free with OAuth (Google account)
593
+ - **Codex**: Included with Claude Code license
594
+ - **Claude**: Current session (no additional cost)
595
+
596
+ ---
597
+
598
+ ## Skill Metadata
599
+
600
+ - **Version**: 2.0 (Direct CLI, No MCP)
601
+ - **Last Updated**: 2025-12-30
602
+ - **CLI Dependencies**:
603
+ - Gemini CLI (OAuth authenticated)
604
+ - Codex CLI (Claude Code CLI)
605
+ - node ~/.gemini/long_task_runner.js (gemp wrapper)
606
+ - **Auto-Invoke**: Yes (see trigger conditions)
607
+
608
+ ## Related Skills
609
+
610
+ - **agent-kb**: Combine with historical expert insights
611
+ - **brainstorming**: Use for solution exploration before analysis
612
+ - **code-review**: Apply recommendations to code review
613
+ - **quality-check**: Validate architectural decisions
614
+ - **architect-planner**: Deep-dive into architecture planning