oh-my-agent-commandcode 0.0.0-stage → 20.38.4

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 (334) hide show
  1. package/README.md +35 -2
  2. package/filter-test-output.sh +52 -0
  3. package/mods/oma.ts +347 -0
  4. package/package.json +30 -4
  5. package/skills/_shared/conditional/experiment-ledger.md +28 -0
  6. package/skills/_shared/conditional/exploration-loop.md +22 -0
  7. package/skills/_shared/conditional/quality-score.md +33 -0
  8. package/skills/_shared/core/anti-ai-prose.md +191 -0
  9. package/skills/_shared/core/api-contracts/README.md +28 -0
  10. package/skills/_shared/core/api-contracts/template.md +90 -0
  11. package/skills/_shared/core/clarification-protocol.md +23 -0
  12. package/skills/_shared/core/code-intelligence.md +46 -0
  13. package/skills/_shared/core/collaboration-policy.md +28 -0
  14. package/skills/_shared/core/common-checklist.md +28 -0
  15. package/skills/_shared/core/context-budget.md +22 -0
  16. package/skills/_shared/core/context-loading.md +34 -0
  17. package/skills/_shared/core/difficulty-guide.md +26 -0
  18. package/skills/_shared/core/execution-policy.md +31 -0
  19. package/skills/_shared/core/lessons-learned.md +33 -0
  20. package/skills/_shared/core/prompt-structure.md +18 -0
  21. package/skills/_shared/core/quality-principles.md +11 -0
  22. package/skills/_shared/core/session-metrics.md +35 -0
  23. package/skills/_shared/core/skill-routing.md +39 -0
  24. package/skills/_shared/core/test-approach.md +54 -0
  25. package/skills/_shared/core/vendor-detection.md +52 -0
  26. package/skills/_shared/runtime/memory-protocol.md +118 -0
  27. package/skills/_shared/runtime/result-contract.md +64 -0
  28. package/skills/_shared/ui-interaction-quality.md +133 -0
  29. package/skills/oma-academic-writing/SKILL.md +181 -0
  30. package/skills/oma-academic-writing/resources/abstract-guide.md +51 -0
  31. package/skills/oma-academic-writing/resources/academic-verb-tiers.md +42 -0
  32. package/skills/oma-academic-writing/resources/anti-ai-checklist.md +52 -0
  33. package/skills/oma-academic-writing/resources/hedging-guide.md +132 -0
  34. package/skills/oma-academic-writing/resources/sentence-structure-reference.md +151 -0
  35. package/skills/oma-architecture/SKILL.md +203 -0
  36. package/skills/oma-architecture/resources/api-evolution.md +41 -0
  37. package/skills/oma-architecture/resources/checklist.md +42 -0
  38. package/skills/oma-architecture/resources/execution-protocol.md +115 -0
  39. package/skills/oma-architecture/resources/methodology-selection.md +92 -0
  40. package/skills/oma-architecture/resources/migration-patterns.md +28 -0
  41. package/skills/oma-architecture/resources/output-templates.md +111 -0
  42. package/skills/oma-architecture/resources/stakeholder-synthesis.md +80 -0
  43. package/skills/oma-backend/SKILL.md +202 -0
  44. package/skills/oma-backend/resources/checklist.md +45 -0
  45. package/skills/oma-backend/resources/error-playbook.md +97 -0
  46. package/skills/oma-backend/resources/execution-protocol.md +39 -0
  47. package/skills/oma-backend/resources/orm-reference.md +61 -0
  48. package/skills/oma-backend/variants/node/api-template.ts +315 -0
  49. package/skills/oma-backend/variants/node/snippets.md +475 -0
  50. package/skills/oma-backend/variants/node/stack.yaml +21 -0
  51. package/skills/oma-backend/variants/node/tech-stack.md +33 -0
  52. package/skills/oma-backend/variants/python/api-template.py +378 -0
  53. package/skills/oma-backend/variants/python/snippets.md +199 -0
  54. package/skills/oma-backend/variants/python/stack.yaml +18 -0
  55. package/skills/oma-backend/variants/python/tech-stack.md +45 -0
  56. package/skills/oma-backend/variants/rust/api-template.rs +635 -0
  57. package/skills/oma-backend/variants/rust/snippets.md +471 -0
  58. package/skills/oma-backend/variants/rust/stack.yaml +20 -0
  59. package/skills/oma-backend/variants/rust/tech-stack.md +36 -0
  60. package/skills/oma-backend/variants/stack.schema.json +73 -0
  61. package/skills/oma-brainstorm/SKILL.md +166 -0
  62. package/skills/oma-brainstorm/resources/triz-lite.md +117 -0
  63. package/skills/oma-coordination/SKILL.md +171 -0
  64. package/skills/oma-db/SKILL.md +201 -0
  65. package/skills/oma-db/resources/anti-patterns.md +177 -0
  66. package/skills/oma-db/resources/checklist.md +67 -0
  67. package/skills/oma-db/resources/document-templates.md +107 -0
  68. package/skills/oma-db/resources/error-playbook.md +50 -0
  69. package/skills/oma-db/resources/examples.md +170 -0
  70. package/skills/oma-db/resources/execution-protocol.md +127 -0
  71. package/skills/oma-db/resources/iso-controls.md +98 -0
  72. package/skills/oma-db/resources/migration-playbook.md +93 -0
  73. package/skills/oma-db/resources/query-tuning.md +57 -0
  74. package/skills/oma-db/resources/vector-db.md +159 -0
  75. package/skills/oma-debug/SKILL.md +146 -0
  76. package/skills/oma-debug/resources/bug-report-template.md +327 -0
  77. package/skills/oma-debug/resources/checklist.md +31 -0
  78. package/skills/oma-debug/resources/common-patterns.md +734 -0
  79. package/skills/oma-debug/resources/debugging-checklist.md +364 -0
  80. package/skills/oma-debug/resources/error-playbook.md +94 -0
  81. package/skills/oma-debug/resources/execution-protocol.md +40 -0
  82. package/skills/oma-design/SKILL.md +135 -0
  83. package/skills/oma-design/resources/asset-strategy.md +34 -0
  84. package/skills/oma-design/resources/checklist.md +63 -0
  85. package/skills/oma-design/resources/data-grid.md +48 -0
  86. package/skills/oma-design/resources/design-md-spec.md +107 -0
  87. package/skills/oma-design/resources/design-tokens.md +53 -0
  88. package/skills/oma-design/resources/error-playbook.md +18 -0
  89. package/skills/oma-design/resources/execution-protocol.md +95 -0
  90. package/skills/oma-design/resources/external-design-skills.md +130 -0
  91. package/skills/oma-design/resources/getdesign-fetcher.md +104 -0
  92. package/skills/oma-design/resources/product-interface-review.md +59 -0
  93. package/skills/oma-design/resources/redesign-protocol.md +52 -0
  94. package/skills/oma-design/resources/stitch-integration.md +244 -0
  95. package/skills/oma-dev-workflow/SKILL.md +375 -0
  96. package/skills/oma-dev-workflow/resources/affected-checks.py +58 -0
  97. package/skills/oma-dev-workflow/resources/api-workflows.md +58 -0
  98. package/skills/oma-dev-workflow/resources/database-patterns.md +107 -0
  99. package/skills/oma-dev-workflow/resources/i18n-patterns.md +63 -0
  100. package/skills/oma-dev-workflow/resources/release-coordination.md +240 -0
  101. package/skills/oma-dev-workflow/resources/tooling-profiles.md +217 -0
  102. package/skills/oma-dev-workflow/resources/troubleshooting.md +78 -0
  103. package/skills/oma-dev-workflow/resources/validation-pipeline.md +246 -0
  104. package/skills/oma-docs/SKILL.md +77 -0
  105. package/skills/oma-docs/resources/commands.md +76 -0
  106. package/skills/oma-explanation/SKILL.md +212 -0
  107. package/skills/oma-explanation/resources/document-structure.md +115 -0
  108. package/skills/oma-explanation/resources/draft-format.md +199 -0
  109. package/skills/oma-explanation/resources/html-contract.md +102 -0
  110. package/skills/oma-frontend/SKILL.md +227 -0
  111. package/skills/oma-frontend/resources/angular-rules.md +110 -0
  112. package/skills/oma-frontend/resources/checklist.md +76 -0
  113. package/skills/oma-frontend/resources/error-playbook.md +125 -0
  114. package/skills/oma-frontend/resources/execution-protocol.md +46 -0
  115. package/skills/oma-frontend/resources/snippets.md +354 -0
  116. package/skills/oma-frontend/resources/specialized-visual-implementation.md +193 -0
  117. package/skills/oma-frontend/resources/tailwind-rules.md +83 -0
  118. package/skills/oma-frontend/resources/tech-stack.md +156 -0
  119. package/skills/oma-hwp/SKILL.md +166 -0
  120. package/skills/oma-hwp/config/hwp-config.yaml +35 -0
  121. package/skills/oma-hwp/resources/balanced-tables.ts +39 -0
  122. package/skills/oma-hwp/resources/execution-protocol.md +145 -0
  123. package/skills/oma-hwp/resources/flatten-tables.ts +101 -0
  124. package/skills/oma-hwp/resources/package.json +13 -0
  125. package/skills/oma-hwp/resources/troubleshooting.md +70 -0
  126. package/skills/oma-hwp/resources/tsconfig.json +10 -0
  127. package/skills/oma-hwp/resources/turndown-plugin-gfm.d.ts +9 -0
  128. package/skills/oma-image/SKILL.md +142 -0
  129. package/skills/oma-image/config/image-config.yaml +70 -0
  130. package/skills/oma-image/resources/checklist.md +18 -0
  131. package/skills/oma-image/resources/execution-protocol.md +117 -0
  132. package/skills/oma-image/resources/invocation.md +105 -0
  133. package/skills/oma-image/resources/prompt-tips.md +71 -0
  134. package/skills/oma-image/resources/vendor-matrix.md +90 -0
  135. package/skills/oma-market/SKILL.md +142 -0
  136. package/skills/oma-market/resources/checklist.md +12 -0
  137. package/skills/oma-market/resources/error-playbook.md +12 -0
  138. package/skills/oma-market/resources/execution-protocol.md +60 -0
  139. package/skills/oma-market/resources/frameworks/pestel.md +101 -0
  140. package/skills/oma-market/resources/frameworks/porters-5f.md +90 -0
  141. package/skills/oma-market/resources/frameworks/swot.md +61 -0
  142. package/skills/oma-market/resources/intent-rules.md +35 -0
  143. package/skills/oma-market/resources/output-laws.md +53 -0
  144. package/skills/oma-mobile/SKILL.md +168 -0
  145. package/skills/oma-mobile/resources/checklist.md +77 -0
  146. package/skills/oma-mobile/resources/error-playbook.md +198 -0
  147. package/skills/oma-mobile/resources/execution-protocol.md +47 -0
  148. package/skills/oma-mobile/resources/screen-template.dart +331 -0
  149. package/skills/oma-mobile/resources/screen-template.swift +239 -0
  150. package/skills/oma-mobile/resources/screen-template.tsx +179 -0
  151. package/skills/oma-mobile/resources/tech-stack.md +69 -0
  152. package/skills/oma-mobile/variants/README.md +45 -0
  153. package/skills/oma-mobile/variants/flutter/api-template.dart +461 -0
  154. package/skills/oma-mobile/variants/flutter/snippets.md +1353 -0
  155. package/skills/oma-mobile/variants/flutter/stack.yaml +21 -0
  156. package/skills/oma-mobile/variants/flutter/tech-stack.md +201 -0
  157. package/skills/oma-mobile/variants/kotlin-android/api-template.kt +182 -0
  158. package/skills/oma-mobile/variants/kotlin-android/snippets.md +871 -0
  159. package/skills/oma-mobile/variants/kotlin-android/stack.yaml +32 -0
  160. package/skills/oma-mobile/variants/kotlin-android/tech-stack.md +159 -0
  161. package/skills/oma-mobile/variants/react-native/api-template.ts +531 -0
  162. package/skills/oma-mobile/variants/react-native/snippets.md +1014 -0
  163. package/skills/oma-mobile/variants/react-native/stack.yaml +22 -0
  164. package/skills/oma-mobile/variants/react-native/tech-stack.md +192 -0
  165. package/skills/oma-mobile/variants/stack.schema.json +68 -0
  166. package/skills/oma-mobile/variants/swift-ios/api-template.swift +165 -0
  167. package/skills/oma-mobile/variants/swift-ios/snippets.md +1028 -0
  168. package/skills/oma-mobile/variants/swift-ios/stack.yaml +25 -0
  169. package/skills/oma-mobile/variants/swift-ios/tech-stack.md +174 -0
  170. package/skills/oma-observability/SKILL.md +225 -0
  171. package/skills/oma-observability/resources/anti-patterns.md +555 -0
  172. package/skills/oma-observability/resources/boundaries/cross-application.md +348 -0
  173. package/skills/oma-observability/resources/boundaries/multi-tenant.md +290 -0
  174. package/skills/oma-observability/resources/boundaries/release.md +372 -0
  175. package/skills/oma-observability/resources/boundaries/slo.md +225 -0
  176. package/skills/oma-observability/resources/checklist.md +123 -0
  177. package/skills/oma-observability/resources/examples.md +448 -0
  178. package/skills/oma-observability/resources/execution-protocol.md +166 -0
  179. package/skills/oma-observability/resources/incident-forensics.md +348 -0
  180. package/skills/oma-observability/resources/intent-rules.md +307 -0
  181. package/skills/oma-observability/resources/layers/L3-network.md +281 -0
  182. package/skills/oma-observability/resources/layers/L4-transport.md +299 -0
  183. package/skills/oma-observability/resources/layers/L7-application/crash-analytics.md +359 -0
  184. package/skills/oma-observability/resources/layers/L7-application/mobile-rum.md +278 -0
  185. package/skills/oma-observability/resources/layers/L7-application/waf.md +246 -0
  186. package/skills/oma-observability/resources/layers/L7-application/web-rum.md +350 -0
  187. package/skills/oma-observability/resources/layers/mesh.md +368 -0
  188. package/skills/oma-observability/resources/matrix.md +177 -0
  189. package/skills/oma-observability/resources/meta-observability.md +605 -0
  190. package/skills/oma-observability/resources/observability-as-code.md +666 -0
  191. package/skills/oma-observability/resources/signals/audit.md +310 -0
  192. package/skills/oma-observability/resources/signals/cost.md +303 -0
  193. package/skills/oma-observability/resources/signals/logs.md +263 -0
  194. package/skills/oma-observability/resources/signals/metrics.md +478 -0
  195. package/skills/oma-observability/resources/signals/privacy.md +351 -0
  196. package/skills/oma-observability/resources/signals/profiles.md +245 -0
  197. package/skills/oma-observability/resources/signals/traces.md +360 -0
  198. package/skills/oma-observability/resources/standards.md +214 -0
  199. package/skills/oma-observability/resources/transport/collector-topology.md +308 -0
  200. package/skills/oma-observability/resources/transport/otlp-grpc-vs-http.md +256 -0
  201. package/skills/oma-observability/resources/transport/sampling-recipes.md +297 -0
  202. package/skills/oma-observability/resources/transport/udp-statsd-mtu.md +167 -0
  203. package/skills/oma-observability/resources/vendor-categories.md +352 -0
  204. package/skills/oma-orchestration/SKILL.md +302 -0
  205. package/skills/oma-orchestration/config/cli-config.yaml +92 -0
  206. package/skills/oma-orchestration/resources/memory-schema.md +232 -0
  207. package/skills/oma-orchestration/resources/subagent-prompt-template.md +30 -0
  208. package/skills/oma-orchestration/scripts/parallel-run.sh +6 -0
  209. package/skills/oma-orchestration/scripts/spawn-agent.sh +5 -0
  210. package/skills/oma-orchestration/scripts/verify.sh +20 -0
  211. package/skills/oma-orchestration/templates/backend-task.md +19 -0
  212. package/skills/oma-orchestration/templates/debug-task.md +16 -0
  213. package/skills/oma-orchestration/templates/frontend-task.md +18 -0
  214. package/skills/oma-orchestration/templates/mobile-task.md +18 -0
  215. package/skills/oma-orchestration/templates/qa-task.md +16 -0
  216. package/skills/oma-orchestration/templates/tasks-example.yaml +15 -0
  217. package/skills/oma-pdf/SKILL.md +162 -0
  218. package/skills/oma-pdf/config/pdf-config.yaml +27 -0
  219. package/skills/oma-pdf/resources/execution-protocol.md +127 -0
  220. package/skills/oma-pm/SKILL.md +157 -0
  221. package/skills/oma-pm/resources/error-playbook.md +75 -0
  222. package/skills/oma-pm/resources/examples.md +439 -0
  223. package/skills/oma-pm/resources/execution-protocol.md +62 -0
  224. package/skills/oma-pm/resources/iso-planning.md +110 -0
  225. package/skills/oma-pm/resources/plan-phase-protocol.md +66 -0
  226. package/skills/oma-pm/resources/task-template.json +86 -0
  227. package/skills/oma-qa/SKILL.md +141 -0
  228. package/skills/oma-qa/resources/checklist.md +339 -0
  229. package/skills/oma-qa/resources/error-playbook.md +98 -0
  230. package/skills/oma-qa/resources/execution-protocol.md +169 -0
  231. package/skills/oma-qa/resources/iso-quality.md +82 -0
  232. package/skills/oma-qa/resources/verify-ship-protocol.md +116 -0
  233. package/skills/oma-recap/SKILL.md +245 -0
  234. package/skills/oma-recap/resources/output-formats.md +83 -0
  235. package/skills/oma-refactor/SKILL.md +184 -0
  236. package/skills/oma-refactor/resources/definition.md +108 -0
  237. package/skills/oma-refactor/resources/governance.md +33 -0
  238. package/skills/oma-refactor/resources/hotspots.py +44 -0
  239. package/skills/oma-refactor/resources/measurement.md +93 -0
  240. package/skills/oma-scholar/SKILL.md +276 -0
  241. package/skills/oma-scholar/config/scholar-config.yaml +79 -0
  242. package/skills/oma-scholar/resources/api-endpoints.md +174 -0
  243. package/skills/oma-scholar/resources/checklist.md +92 -0
  244. package/skills/oma-scholar/resources/execution-protocol.md +224 -0
  245. package/skills/oma-scholar/resources/fallback-providers.md +143 -0
  246. package/skills/oma-scholar/resources/setup-openalex.md +85 -0
  247. package/skills/oma-scholar/resources/sidecar-spec.md +341 -0
  248. package/skills/oma-scholar/resources/upstream-spec-cache.md +972 -0
  249. package/skills/oma-scm/SKILL.md +103 -0
  250. package/skills/oma-scm/resources/cm-operations.md +56 -0
  251. package/skills/oma-scm/resources/codeowners-playbook.md +45 -0
  252. package/skills/oma-scm/resources/conventional-commits.md +108 -0
  253. package/skills/oma-scm/resources/merge-risk.md +76 -0
  254. package/skills/oma-scm/resources/onboarding-risk-signals.md +71 -0
  255. package/skills/oma-search/SKILL.md +125 -0
  256. package/skills/oma-search/resources/checklist.md +36 -0
  257. package/skills/oma-search/resources/error-playbook.md +66 -0
  258. package/skills/oma-search/resources/examples.md +80 -0
  259. package/skills/oma-search/resources/execution-protocol.md +86 -0
  260. package/skills/oma-search/resources/intent-rules.md +47 -0
  261. package/skills/oma-search/resources/trust-registry.md +53 -0
  262. package/skills/oma-security/SKILL.md +172 -0
  263. package/skills/oma-security/resources/artex.md +108 -0
  264. package/skills/oma-security/resources/ci.md +134 -0
  265. package/skills/oma-security/resources/cisco-source.md +108 -0
  266. package/skills/oma-security/resources/deepsec-config.md +45 -0
  267. package/skills/oma-security/resources/deepsec-matchers.md +35 -0
  268. package/skills/oma-security/resources/deepsec-scanning.md +45 -0
  269. package/skills/oma-security/resources/deepsec-setup.md +41 -0
  270. package/skills/oma-security/resources/findings-contract.md +408 -0
  271. package/skills/oma-security/resources/mcp-scanning.md +122 -0
  272. package/skills/oma-security/resources/skill-scanning.md +106 -0
  273. package/skills/oma-security/resources/validation.md +71 -0
  274. package/skills/oma-skill-creation/SKILL.md +84 -0
  275. package/skills/oma-skill-creation/resources/prompt-evaluation.md +36 -0
  276. package/skills/oma-skill-creation/resources/ssl-lite-template.md +108 -0
  277. package/skills/oma-skill-creation/resources/validation-checklist.md +101 -0
  278. package/skills/oma-slide/SKILL.md +277 -0
  279. package/skills/oma-slide/resources/animation-patterns.md +245 -0
  280. package/skills/oma-slide/resources/assets/deck-stage.js +514 -0
  281. package/skills/oma-slide/resources/assets/viewport-base.css +257 -0
  282. package/skills/oma-slide/resources/canva-integration.md +203 -0
  283. package/skills/oma-slide/resources/checklist.md +46 -0
  284. package/skills/oma-slide/resources/design-doctrine.md +260 -0
  285. package/skills/oma-slide/resources/fixed-stage.md +232 -0
  286. package/skills/oma-slide/resources/generation-protocol.md +393 -0
  287. package/skills/oma-slide/resources/native-pptx.md +84 -0
  288. package/skills/oma-slide/resources/selection-index.json +461 -0
  289. package/skills/oma-slide/resources/style-presets.LICENSE +10 -0
  290. package/skills/oma-slide/resources/style-presets.md +520 -0
  291. package/skills/oma-tf-infra/SKILL.md +201 -0
  292. package/skills/oma-tf-infra/resources/checklist.md +53 -0
  293. package/skills/oma-tf-infra/resources/cost-optimization.md +574 -0
  294. package/skills/oma-tf-infra/resources/error-playbook.md +68 -0
  295. package/skills/oma-tf-infra/resources/examples.md +38 -0
  296. package/skills/oma-tf-infra/resources/execution-protocol.md +129 -0
  297. package/skills/oma-tf-infra/resources/iso-42001-infra.md +229 -0
  298. package/skills/oma-tf-infra/resources/multi-cloud-examples.md +241 -0
  299. package/skills/oma-tf-infra/resources/policy-testing-examples.md +332 -0
  300. package/skills/oma-translation/SKILL.md +229 -0
  301. package/skills/oma-translation/resources/anti-ai-patterns.md +104 -0
  302. package/skills/oma-translation/resources/lang/_template.md +73 -0
  303. package/skills/oma-translation/resources/lang/en.md +123 -0
  304. package/skills/oma-translation/resources/lang/ja.md +274 -0
  305. package/skills/oma-translation/resources/lang/ko.md +228 -0
  306. package/skills/oma-translation/resources/lang/zh.md +285 -0
  307. package/skills/oma-translation/resources/style-skills.md +104 -0
  308. package/skills/oma-translation/resources/translation-rubric.md +126 -0
  309. package/skills/oma-video/SKILL.md +229 -0
  310. package/skills/oma-video/config/video-config.yaml +60 -0
  311. package/skills/oma-video/resources/checklist.md +26 -0
  312. package/skills/oma-video/resources/execution-protocol.md +122 -0
  313. package/skills/oma-video/resources/existing-media.md +185 -0
  314. package/skills/oma-video/resources/hyperframes-authoring/README.md +44 -0
  315. package/skills/oma-video/resources/hyperframes-authoring/demo.md +31 -0
  316. package/skills/oma-video/resources/hyperframes-authoring/explainer.md +10 -0
  317. package/skills/oma-video/resources/hyperframes-authoring/shorts.md +10 -0
  318. package/skills/oma-video/resources/motion-principles.md +81 -0
  319. package/skills/oma-video/resources/mpt/driver.py +301 -0
  320. package/skills/oma-video/resources/prompt-tips.md +75 -0
  321. package/skills/oma-video/resources/script-schema.md +81 -0
  322. package/skills/oma-video/resources/sound-design.md +127 -0
  323. package/skills/oma-video/resources/strudel/package.json +11 -0
  324. package/skills/oma-video/resources/strudel/page.html +87 -0
  325. package/skills/oma-video/resources/strudel/render.mjs +295 -0
  326. package/skills/oma-video/resources/vendor-matrix.md +124 -0
  327. package/skills/oma-voice/SKILL.md +249 -0
  328. package/skills/oma-voice/config/voice-config.yaml +30 -0
  329. package/skills/oma-voice/resources/audio-processing.md +119 -0
  330. package/skills/oma-voice/resources/checklist.md +47 -0
  331. package/skills/oma-voice/resources/execution-protocol.md +215 -0
  332. package/skills/oma-voice/resources/prompt-tips.md +43 -0
  333. package/skills/oma-voice/resources/voice-matrix.md +51 -0
  334. package/skills/oma-voice/resources/voicestudio.md +87 -0
@@ -0,0 +1,90 @@
1
+ # Vendor Matrix
2
+
3
+ ## Reference Image Support (`--reference` / `-r`)
4
+
5
+ | Vendor | Reference input | Transport | Notes |
6
+ |--------|-----------------|-----------|-------|
7
+ | `codex` | PASS | `codex exec -i <path>` (repeatable) | Local file path; 5MB-per-file cap enforced by Codex CLI |
8
+ | `antigravity` | PASS | Per-run temp dir staged via `agy --add-dir`; paths referenced inline in prompt | Up to 10 refs (skill cap); copied so agy sandboxes don't need access to the originals' parent dir |
9
+ | `pollinations` | N/A | (none) | Requires URL hosting; rejected with exit 4 when explicitly selected, silently dropped from the run set under `--vendor auto`. Planned for PR #2. |
10
+
11
+ All paths are validated in `reference-guard.ts` (magic-byte MIME check + size + count + duplicate rejection) before dispatch. The magic-byte-detected MIME is threaded through `GenerateInput.referenceImages` and used verbatim at the vendor API boundary; file extension is never trusted for MIME type.
12
+
13
+ ## Codex
14
+
15
+ | Field | Value |
16
+ |-------|-------|
17
+ | Binary | `codex` (npm: `@openai/codex`) |
18
+ | Auth | OAuth via `codex login` |
19
+ | Health check | `codex login status` output contains "Logged in" |
20
+ | Model | `gpt-image-2` |
21
+ | Transport | `codex exec --json "<instruction>"` (internal bridge invokes `image_gen` tool; the first JSONL event carries the thread id) |
22
+ | Image location | `$CODEX_HOME/generated_images/<thread_id>/*.png` (`CODEX_HOME` defaults to `~/.codex`) → copied to `outDir`. Without a thread id, images new since the run started are taken from the whole folder. |
23
+ | Sizes | Any `WxH` passing `size-guard.ts` (each edge ∈ [16, 3840], multiples of 16, aspect 1:3..3:1) or `auto`. Codex CLI clamps to its own gpt-image-2 limits internally. |
24
+ | Qualities | `low`, `medium`, `high`, `auto` |
25
+
26
+ Codex requires `--skip-git-repo-check` for invocation inside a git worktree; this is inherited from the upstream `codex-image` skill and is a known dependency of the Codex CLI image path.
27
+
28
+ ## Antigravity
29
+
30
+ The Antigravity CLI (`agy`) is an agentic CLI that runs against the user's Gemini Code Assist subscription (no separate API key, no per-image charge). Since 1.2.16, it routes native image requests through the built-in `image-generator` subagent; older sessions expose `generate_image` directly. OMA supports both routes and waits for generated image bytes to be saved or copied to the requested target paths. Image model selection remains internal: the prompt has no model hint, the manifest records `"model": "agy-internal"`, and the output filename is `antigravity-<runShortid>.<ext>` with no model segment.
31
+
32
+ | Field | Value |
33
+ |-------|-------|
34
+ | Binary | `agy` (Antigravity CLI) |
35
+ | Auth | Sign-in via Gemini Code Assist account during `agy install` |
36
+ | Health check | `agy --version` exits 0 — **install check only**. Sign-in state is not verified; a signed-out agy passes health and fails at generate time. |
37
+ | Model selection | Opaque — chosen by agy's internal agent loop. Not exposed via flags, not recorded as a vendor-side promise. |
38
+ | Transport | `agy -p --dangerously-skip-permissions --add-dir <outDir> --print-timeout <s> "<instruction>"` (spawn `cwd` is forced to `<outDir>` to prevent agy from inheriting a stale workspace context) |
39
+ | Output bytes | Saved directly by agy to absolute paths embedded in the prompt; detected via PNG/JPEG/WebP/GIF magic bytes and renamed accordingly |
40
+ | Sizes | Any `WxH` allowed by `size-guard.ts` (each edge ∈ [16, 3840], multiples of 16, aspect 1:3..3:1) or `auto`. The dimension is passed as an advisory hint in the prompt — agy/Gemini may pick its own internal aspect. |
41
+
42
+ ### Why `agy` instead of the Gemini CLI / direct API
43
+
44
+ - `gemini -p` runs the full agent loop and does not emit raw `inlineData` bytes on stdout (as of Gemini CLI 0.38) — it tries to invoke image-generation tools itself, often recursing back into `oma-image`.
45
+ - The direct `generativelanguage.googleapis.com` API requires `GEMINI_API_KEY` plus billing on AI Studio. Image models are not in the free tier.
46
+ - `agy -p` already wraps Gemini Code Assist credentials in the user's Antigravity session and provides native image generation. It writes raw bytes to disk for us, so we don't have to capture them from stdout.
47
+
48
+ ### Output format gotcha
49
+
50
+ Gemini image surfaces currently return JPEG bytes regardless of the requested filename extension. The provider writes to a `.img` placeholder, sniffs the actual format from the first 12 bytes, then renames to `.png` / `.jpg` / `.webp` / `.gif`. The result's `mime` field reflects the sniffed format, not the user's requested extension.
51
+
52
+ ## Pollinations
53
+
54
+ | Field | Value |
55
+ |-------|-------|
56
+ | Binary | (none — direct HTTP) |
57
+ | Auth | `POLLINATIONS_API_KEY` env var (free key at https://enter.pollinations.ai) |
58
+ | Health check | `POLLINATIONS_API_KEY` is set |
59
+ | Models | Free (no pollen credits): `flux`, `zimage`. Credit-gated (positive pollen balance required): `qwen-image`, `wan-image`, `gptimage`, `gptimage-large`, `gpt-image-2`, `klein`, `kontext`. Select via `--model`; default `flux`. |
60
+ | Transport | `POST https://gen.pollinations.ai/v1/images/generations` (OpenAI-compatible), `response_format: b64_json` |
61
+ | Sizes | Any `WxH` (non-`WxH` or `auto` falls back to `1024x1024`) |
62
+ | Output | PNG or JPEG, sniffed from magic bytes |
63
+
64
+ A credit-gated model without pollen balance fails as `invalid-input` (exit 4) with a hint to switch to `flux`/`zimage`.
65
+
66
+ ## Strategy Attempt Record
67
+
68
+ Manifest field `strategy_attempts` is always an array of objects:
69
+
70
+ ```
71
+ { "strategy": "codex-exec-oauth" | "agy-print" | "pollinations-http",
72
+ "status": "ok" | "skipped" | "failed",
73
+ "reason"?: string,
74
+ "duration_ms"?: number }
75
+ ```
76
+
77
+ The last successful strategy also appears on the run as `strategy`.
78
+
79
+ ## Error Classification
80
+
81
+ | Error kind | Retry policy | Exit code when solo |
82
+ |------------|-------------|---------------------|
83
+ | `not-installed` | fail (the vendor health check catches this first) | 5 |
84
+ | `auth-required` | fail; printed hint tells user how to authenticate | 5 |
85
+ | `invalid-input` | fail; surfaces validation problems from the provider | 4 |
86
+ | `safety-refused` | short-circuit (no fallback) | 2 |
87
+ | `rate-limit` | record attempt as failed | 1 (if no vendor succeeded) |
88
+ | `timeout` | record attempt as failed | 6 |
89
+ | `network` | `retryable=true` → record; `false` → record | 1 |
90
+ | `other` | record | 1 |
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: oma-market
3
+ description: Research customer pain points, trends, and competitors through the
4
+ OMA market engine. Use for market discovery or voice-of-customer analysis.
5
+ ---
6
+
7
+ # Market Research Agent - Community Signal Intelligence
8
+
9
+ ## Scheduling
10
+
11
+ ### Goal
12
+ Run the upstream `last30days` research engine (always the latest release, managed by oma) for community-signal research, then frame the result for the user's intent (pain / trend / competitor / discovery) with strategic frameworks and save one brief under `.agents/results/market/`.
13
+
14
+ ### Intent signature
15
+ - User asks about pain points, user complaints, or voice-of-customer signals for a product or category.
16
+ - User asks what is trending, growing, or declining in a space this week or month.
17
+ - User asks how one product compares to another in community sentiment or positioning.
18
+ - User asks for discovery or exploratory market research on a topic, a person, a company, or a ticker.
19
+
20
+ ### When to use
21
+ - Extracting real user pain points from community posts (Reddit with real upvotes and top comments, HN, X, Bluesky, GitHub Issues)
22
+ - Detecting trends in a category over a window (`--days 7|30|90|180`)
23
+ - Competitor sentiment analysis and SWOT / Porter's 5F positioning
24
+ - Open-ended discovery research (`--discover`), person mode, hiring signals (`--hiring-signals`), follow-up drills (`--drill`)
25
+
26
+ ### When NOT to use
27
+ - General web research without market framing -> use oma-search directly
28
+ - Academic literature -> use oma-scholar
29
+ - Live dashboards or scheduled monitoring -> `oma schedule <action>` wrapping this skill
30
+
31
+ ### Expected inputs
32
+ - Topic string; optional `--intent pain|trend|competitor|discovery` (else classified per `resources/intent-rules.md`)
33
+ - Optional window (`--days`), `--vs <entity>` (competitor), `--frameworks auto|none|swot,5f,pestel`
34
+ - Any native last30days flag (see `oma market run --help`) — passed through verbatim
35
+
36
+ ### Expected outputs
37
+ - Single markdown brief at `.agents/results/market/{topic-slug}-{YYYYMMDD}.md`
38
+ - First line: the engine's badge (`🌐 last30days v{VERSION} · synced {date}`); body per the upstream OUTPUT CONTRACT; framework sections appended per intent; engine footer preserved
39
+ - Raw engine artifacts under `market.save_dir` (default `.agents/results/market/raw/`)
40
+
41
+ ```yaml
42
+ outputs:
43
+ - name: market-brief
44
+ description: Single LAW-compliant markdown brief with framework sections
45
+ artifact: ".agents/results/market/*.md"
46
+ required: true
47
+ ```
48
+
49
+ ### Dependencies
50
+ - `oma market resolve` / `oma market run` — engine location, Python 3.12+ resolution, `--save-dir` default
51
+ - The upstream `SKILL.md` at the resolved engine root (`skillMd` in `oma market resolve --json`) — the authoritative research contract
52
+ - `resources/intent-rules.md`, `resources/frameworks/`, `resources/output-laws.md`, `resources/execution-protocol.md`
53
+
54
+ ### Control-flow features
55
+ - `oma market detect-trap` gate before anything else (exit 2 = REFUSE, exit 4 = invalid)
56
+ - Engine is the skills-CLI install of `last30days`: `oma market resolve` reads installed skill dirs (a `market.path` / `LAST30DAYS_HOME` pin wins); `oma market update` installs it when missing and updates it otherwise
57
+ - Sources needing keys/cookies auto-skip inside the engine; keyless sources (Reddit, HN, GitHub, Polymarket, arXiv, Techmeme, Digg, web) always run
58
+ - Framework auto-toggle by intent (pain/trend → SWOT; competitor → SWOT + Porter's 5F; discovery → SWOT + PESTEL)
59
+
60
+ ## Structural Flow
61
+
62
+ ### Entry
63
+ 1. Run `oma market detect-trap "<topic>"`. Exit 2 → surface the REFUSE reason and reframe suggestion, stop.
64
+ 2. Run `oma market resolve --json`. `ok: false` → report `reason` (missing engine → ask the user, then `oma market update`; missing Python → the install hint) and stop. Never fall back to WebSearch-only synthesis and present it as market research.
65
+ 3. Read the upstream contract at `engine.skillMd` **top to bottom**. It is long by design; do not skim. Treat `engine.root` as its `SKILL_DIR`.
66
+ 4. Classify intent per `resources/intent-rules.md`; map to engine flags and framework set.
67
+
68
+ ### Scenes
69
+ 1. **PREPARE**: detect-trap, resolve, read upstream SKILL.md, classify intent.
70
+ 2. **UPSTREAM STEPS**: follow the upstream SKILL.md exactly — Step 0 (first-run setup wizard, consent-driven), intent parsing, Step 0.45 (its own query-quality preflight), Step 0.5 / 0.55 (handle, subreddit, hashtag resolution when WebSearch is available), Step 0.75 (query plan). Skip only its "Runtime Preflight" Python-hunt block: `oma market run` already resolved the interpreter.
71
+ 3. **RUN**: wherever the upstream contract says `"${LAST30DAYS_PYTHON}" "${SKILL_DIR}/scripts/last30days.py" <args>`, run `oma market run <args>` with the **same arguments** (foreground, 5-minute timeout, `--emit=compact`). `--save-dir` is added automatically from `market.save_dir` unless you pass one.
72
+ 4. **SYNTHESIZE**: produce the brief exactly as the upstream OUTPUT CONTRACT dictates (badge first line, Ranked Evidence Clusters, LAWs). Then append the framework sections selected for the intent, using only clusters present in the engine output as evidence (`resources/frameworks/`).
73
+ 5. **FINALIZE**: run the self-check in `resources/output-laws.md`, write `.agents/results/market/{topic-slug}-{YYYYMMDD}.md`, preview the first 50 lines.
74
+
75
+ ### Transitions
76
+ - `--vs <entity>` or "A vs B" phrasing → competitor intent → upstream COMPARISON flow (two passes + head-to-head as its contract specifies) → SWOT + Porter's 5F.
77
+ - Person / company / ticker topics → upstream person / hiring-signals / StockTwits handling applies unchanged.
78
+ - `engine.status: stale` → include the `note` in the report (research ran on the cached engine version).
79
+
80
+ ### Failure and recovery
81
+ - detect-trap exit 2 → REFUSE; do not run the engine; `--force` only on explicit user reconfirmation.
82
+ - `oma market resolve` not ok → stop with the reason; no engine run.
83
+ - Engine non-zero exit → report stderr verbatim; do not synthesize from partial stdout unless the upstream contract says the emitted compact output is still valid.
84
+ - Upstream Python-version gate / setup wizard messages → relay to the user exactly as the upstream contract instructs.
85
+
86
+ ### Exit
87
+ - Success: brief written with badge, clusters, frameworks, and engine footer; path reported.
88
+ - Partial: engine ran with skipped sources (footer lists them) — say so; never pad with invented evidence.
89
+
90
+ ## Logical Operations
91
+
92
+ ### Actions
93
+ | Action | SSL primitive | Evidence |
94
+ |--------|---------------|----------|
95
+ | detect-trap preflight | `VALIDATE` | Topic arg, trap pattern rules |
96
+ | Resolve engine + Python | `CALL_TOOL` | `oma market resolve --json` |
97
+ | Read upstream contract | `READ` | `engine.skillMd` |
98
+ | Classify intent | `SELECT` | `resources/intent-rules.md` |
99
+ | Upstream pre-research steps | `INFER` | Upstream SKILL.md Steps 0–0.75 |
100
+ | Run engine | `CALL_TOOL` | `oma market run <args>` |
101
+ | Synthesize + frameworks | `WRITE` | Upstream OUTPUT CONTRACT, `resources/frameworks/` |
102
+ | Self-check + write brief | `WRITE` | `resources/output-laws.md`, `.agents/results/market/` |
103
+
104
+ ### Tools and instruments
105
+ - `oma market detect-trap <topic>` (preflight gate)
106
+ - `oma market resolve [--json]` (engine + Python resolution from installed skill dirs)
107
+ - `oma market update` (install the skill when missing, otherwise `bunx skills update last30days -g -y`)
108
+ - `oma market run <engine args…>` (passthrough to the resolved upstream engine’s Python entry point)
109
+
110
+ ### Canonical command path
111
+ ```bash
112
+ TOPIC="VS Code pain points"
113
+ oma market detect-trap "$TOPIC"
114
+ oma market resolve --json # read .engine.skillMd, then follow it
115
+ # … upstream Steps 0 / 0.45 / 0.5 / 0.55 / 0.75 …
116
+ oma market run "$TOPIC" --plan "$QUERY_PLAN_FILE" --subreddits=vscode --emit=compact --save-suffix=v3
117
+ ```
118
+
119
+ ### Resource scope
120
+ | Scope | Resource target |
121
+ |-------|-----------------|
122
+ | `NETWORK` | Inside the engine only (its per-source fetchers); GitHub for the managed engine refresh |
123
+ | `LOCAL_FS` | installed skill dir such as `~/.agents/skills/last30days/` (engine), `~/.config/last30days/` (engine config, keys), `.agents/results/market/` (brief + raw) |
124
+ | `PROCESS` | `oma market` subcommands → the resolved upstream Python entry point |
125
+
126
+ ### Preconditions
127
+ - Topic passes detect-trap.
128
+ - `oma market resolve` is ok (engine present; Python ≥ 3.12 found on PATH, via `uv`, or pinned with `market.python` / `LAST30DAYS_PYTHON`).
129
+
130
+ ### Effects and side effects
131
+ - Writes the brief to `.agents/results/market/{topic-slug}-{YYYYMMDD}.md` and raw engine files to `market.save_dir`.
132
+ - First run: the upstream setup wizard may write `~/.config/last30days/.env` with user consent.
133
+ - If Python 3.12+ is absent, `oma market resolve` stops before the upstream setup wizard. Relay its install hint; after an authorized interpreter installation, retry resolution. Do not expect the skipped upstream Python preflight to install it.
134
+
135
+ ## References
136
+ - Execution protocol: `resources/execution-protocol.md`
137
+ - Intent routing: `resources/intent-rules.md`
138
+ - Output contract: `resources/output-laws.md`
139
+ - Applicable framework: `resources/frameworks/swot.md`, `resources/frameworks/porters-5f.md`, or `resources/frameworks/pestel.md` (load only the selected framework)
140
+ - Validation: `resources/checklist.md`
141
+ - Recovery: `resources/error-playbook.md`
142
+ - Upstream engine instructions: read the resolved `engine.skillMd` path from `oma market resolve --json`; upstream scripts are managed engine files, not bundled skill resources.
@@ -0,0 +1,12 @@
1
+ # oma-market checklist
2
+
3
+ - [ ] `oma market detect-trap "<topic>"` ran first; exit 2 surfaced, not bypassed
4
+ - [ ] `oma market resolve --json` is `ok`; engine version and `status` noted (`stale` → mention)
5
+ - [ ] Upstream `SKILL.md` (`engine.skillMd`) read top to bottom this run
6
+ - [ ] Upstream Step 0 (setup wizard) honoured on first run; user consent for any `.env` / Python install
7
+ - [ ] Upstream Steps 0.45 / 0.5 / 0.55 / 0.75 done when WebSearch is available, else `--auto-resolve`
8
+ - [ ] Engine ran via `oma market run … --emit=compact` in the foreground
9
+ - [ ] Intent classified; framework set matches `intent-rules.md` (or user override)
10
+ - [ ] Brief: badge first line, engine structure untouched, frameworks cite only engine clusters
11
+ - [ ] `output-laws.md` self-check clean
12
+ - [ ] Written to `.agents/results/market/{slug}-{YYYYMMDD}.md`; path + skipped sources reported
@@ -0,0 +1,12 @@
1
+ # oma-market error playbook
2
+
3
+ | Symptom | Cause | Action |
4
+ |---|---|---|
5
+ | `detect-trap` exit 2 | keyword-trap / demographic-shopping / too-broad topic | Show REFUSE + reframe; stop. `--force` only after explicit user reconfirmation |
6
+ | `oma market resolve` → `ok: false`, "not installed" | last30days skill not installed | with the user's consent, `oma market update` (runs `bunx skills add mvanhorn/last30days-skill --skill last30days -g -y`), or set `market.path` / `LAST30DAYS_HOME` |
7
+ | `resolve` → "Python 3.12+" hint | no compatible interpreter | relay hint (`brew install python@3.12` / `apt install python3.12` / `uv python install 3.12`) or set `market.python` / `LAST30DAYS_PYTHON`; stop, never WebSearch-only |
8
+ | `oma market update` → `failed` | skills CLI / network / `bunx` missing | relay `detail`; the installed copy (if any) still runs |
9
+ | Engine prints setup-wizard prompts | first run, no `~/.config/last30days/.env` | follow upstream Step 0 in chat; never answer consent questions on the user's behalf |
10
+ | Engine non-zero exit | source/network/auth failure | report stderr verbatim; check `oma market run "<topic>" --diagnose` |
11
+ | Sources listed as skipped in footer | keys / cookies absent | keep the list visible; suggest the upstream setup wizard for those sources |
12
+ | Output has `Sources:` block, `—`, `##` in body | LAW violation during synthesis | fix per upstream LAWs and `output-laws.md` self-check before writing |
@@ -0,0 +1,60 @@
1
+ # Step-by-step execution protocol for oma-market
2
+
3
+ oma owns the gate, the engine lifecycle, and the framework layer. The upstream
4
+ `last30days` SKILL.md owns everything about the research itself. Never
5
+ improvise a research flow that the upstream contract already specifies.
6
+
7
+ ## Step 0 — Trap detection (CLI)
8
+
9
+ `oma market detect-trap "<topic>"`. Exit 2 → return the REFUSE message and
10
+ reframe suggestion, STOP. Exit 4 → invalid topic, STOP.
11
+
12
+ ## Step 1 — Resolve the engine (CLI)
13
+
14
+ `oma market resolve --json` → `{ ok, engine: { root, script, skillMd, version, source }, python, saveDir, reason, warnings }`.
15
+
16
+ - `ok: false` → report `reason` and STOP. Missing engine: ask the user, then
17
+ `oma market update` (installs it with the skills CLI).
18
+ Missing Python: relay the hint (brew / apt / `uv python install 3.12`).
19
+ - `warnings` → relay deprecated config keys (`market.managed|channel|check_interval_min` are ignored).
20
+
21
+ ## Step 2 — Read the upstream contract (LLM)
22
+
23
+ Read `engine.skillMd` top to bottom. `engine.root` is the upstream `SKILL_DIR`.
24
+ Everything it says about Step 0 (setup wizard), intent parsing, Step 0.45,
25
+ Step 0.5 / 0.55 (pre-research resolution), Step 0.75 (query plan), the
26
+ PRECONDITION GATE, and the OUTPUT CONTRACT applies verbatim, with exactly two
27
+ substitutions:
28
+
29
+ | Upstream says | Do instead |
30
+ |---|---|
31
+ | Runtime Preflight Python-hunt block | skip — `oma market run` already resolved `LAST30DAYS_PYTHON` |
32
+ | `"${LAST30DAYS_PYTHON}" "${SKILL_DIR}/scripts/last30days.py" <args>` | `oma market run <args>` (same args; `--save-dir` auto-added) |
33
+
34
+ ## Step 3 — Intent and frameworks (LLM)
35
+
36
+ Classify per `intent-rules.md`; pick the engine flags and framework set from
37
+ its table. Combine with the upstream-resolved flags (`--plan`, `--subreddits`,
38
+ `--x-handle`, …) — do not drop any of them.
39
+
40
+ ## Step 4 — Run the engine (CLI, foreground)
41
+
42
+ `oma market run "<topic>" <upstream flags> <intent flags> --emit=compact --save-suffix=v3`
43
+
44
+ Foreground, 5-minute timeout, read the whole output. Non-zero exit → report
45
+ stderr verbatim; do not synthesize from nothing.
46
+
47
+ ## Step 5 — Synthesize (LLM)
48
+
49
+ Follow the upstream OUTPUT CONTRACT (badge first line, Ranked Evidence
50
+ Clusters, LAWs, engine footer). Then append the framework sections for the
51
+ intent (`frameworks/*.md`), citing only clusters that appear in the engine
52
+ output. Comparison intent uses the upstream COMPARISON template.
53
+
54
+ ## Step 6 — Write, self-check, and deliver (LLM)
55
+
56
+ Write the candidate brief to
57
+ `.agents/results/market/{topic-slug}-{YYYYMMDD}.md` (same day + slug
58
+ overwrites), then run the checks in `output-laws.md` against that file. Fix
59
+ and re-check the final bytes before delivery. Preview the first 50 lines and
60
+ report the path, skipped sources, and engine version.
@@ -0,0 +1,101 @@
1
+ # PESTEL — Analyst Prompt
2
+
3
+ You are filling the `## PESTEL` section of an `oma market` brief.
4
+ This framework applies when scanning a category for macro forces (default
5
+ for `intent=discovery`).
6
+
7
+ ## Axis-by-axis classification rules
8
+
9
+ ### Political
10
+
11
+ Government action, policy direction, geopolitical alignment, sanctions,
12
+ public-sector procurement signals.
13
+
14
+ - e.g. "EU mandates open-source documentation tools" → Political tailwind.
15
+ - e.g. "정부, 외국 SaaS에 정관계 로비 의혹" → Political risk.
16
+
17
+ ### Economic
18
+
19
+ Macro demand, currency, recession, supply chain, capital availability.
20
+
21
+ - e.g. "Startup funding for the category up 3x YoY" → Economic tailwind.
22
+ - e.g. "merchants cutting subscription spend after rate hikes" → Economic
23
+ headwind.
24
+
25
+ ### Social
26
+
27
+ Demographics, generational behavior, lifestyle shift, sentiment trends,
28
+ cultural attitudes.
29
+
30
+ - e.g. "Gen Z prefers async over Zoom" → Social tailwind for async tools.
31
+ - e.g. "remote-work fatigue driving return-to-office" → Social headwind
32
+ for collaboration SaaS.
33
+
34
+ ### Technological
35
+
36
+ Platform shifts, AI capability waves, open-source adoption, dependency
37
+ trends.
38
+
39
+ - e.g. "Every product is bolting on MCP servers" → Technological tailwind
40
+ for AI agent tooling.
41
+ - e.g. "WebAssembly maturity threatens native runtimes" → Technological
42
+ disruption.
43
+
44
+ ### Environmental
45
+
46
+ Sustainability, climate impact, ESG signals, regulatory carbon mandates.
47
+
48
+ - e.g. "Datacenter carbon costs cited in vendor selection" → Environmental
49
+ pressure on cloud-heavy categories.
50
+ - Often absent in pure software categories — `_(no signal)_` is honest.
51
+
52
+ ### Legal
53
+
54
+ IP / copyright / antitrust / GDPR-PIPA / litigation / compliance.
55
+
56
+ - e.g. "GDPR fine on Notion for data residency" → Legal headwind.
57
+ - e.g. "Antitrust case against incumbent opens window for entrants"
58
+ → Legal tailwind.
59
+
60
+ ## Output rules
61
+
62
+ 1. Each axis: 1-3 cited bullets with direction
63
+ (`tailwind | headwind | neutral`). Empty → `_(no signal)_`.
64
+ 2. Every bullet cites a cluster representative as `[name](url)` with
65
+ cluster ID tag `(C#)`.
66
+ 3. End with a `**Net stance**` paragraph: which 2-3 axes are most active
67
+ right now and what they imply for the subject.
68
+
69
+ ## Output skeleton
70
+
71
+ ```markdown
72
+ **Political** - _direction_
73
+ - [name](url) - signal summary. (C#)
74
+
75
+ **Economic** - _direction_
76
+ - [name](url) - signal summary. (C#)
77
+
78
+ **Social** - _direction_
79
+ - ...
80
+
81
+ **Technological** - _direction_
82
+ - ...
83
+
84
+ **Environmental** - _direction_
85
+ - ...
86
+
87
+ **Legal** - _direction_
88
+ - ...
89
+
90
+ **Net stance**: 2-3 sentences identifying the dominant axes and
91
+ implications.
92
+ ```
93
+
94
+ ## Traps
95
+
96
+ - Don't classify cluster as Political just because the source is news
97
+ media — read the actual content.
98
+ - "AI" alone is not Technological signal — needs to show a shift the
99
+ subject must respond to.
100
+ - Environmental axis is genuinely thin in most software briefs; do not
101
+ fabricate signal. `_(no signal)_` is fine.
@@ -0,0 +1,90 @@
1
+ # Porter's Five Forces — Analyst Prompt
2
+
3
+ You are filling the `## Porter's Five Forces` section of an `oma market` brief.
4
+ This framework applies when the topic is competitive positioning of a
5
+ named subject (default for `intent=competitor`).
6
+
7
+ ## Force-by-force classification rules
8
+
9
+ ### Threat of new entrants
10
+
11
+ Cluster signals: how easy is it for new players to enter this market?
12
+
13
+ - Quote barriers (capital, regulatory licenses, network effects, brand,
14
+ patents) → Low threat.
15
+ - Quote rising number of startup launches in this category, low entry
16
+ cost commentary, easy-to-fork OSS alternatives → High threat.
17
+
18
+ ### Bargaining power of suppliers
19
+
20
+ Cluster signals: dependency on upstream suppliers / vendors / partners.
21
+
22
+ - Single-source dependency, lock-in complaints, supplier price hikes
23
+ → High supplier power.
24
+ - Multiple substitute suppliers, commoditized inputs → Low supplier power.
25
+
26
+ ### Bargaining power of buyers
27
+
28
+ Cluster signals: how price-sensitive / switching-able are customers?
29
+
30
+ - Price complaints, churn intent, easy switching cost mentions
31
+ → High buyer power.
32
+ - Locked-in customers, high switching cost (data migration, retraining)
33
+ → Low buyer power.
34
+
35
+ ### Threat of substitutes
36
+
37
+ Cluster signals: products from outside the category that satisfy the
38
+ same need.
39
+
40
+ - "I replaced X with Y" / "we don't need X anymore because Z"
41
+ → High substitute threat.
42
+ - Verified switching barriers or comparisons showing that substitutes do not
43
+ satisfy the same need → Low substitute threat, within the observed scope.
44
+ - No discussion of alternatives → insufficient signal; absence of discussion
45
+ does not establish low threat.
46
+
47
+ ### Industry rivalry
48
+
49
+ Cluster signals: intensity of competition within the category.
50
+
51
+ - Frequent head-to-head comparisons, price wars, public benchmark
52
+ fights → High rivalry.
53
+ - Sleepy category, incumbents stable, little competitive marketing
54
+ → Low rivalry.
55
+
56
+ ## Output rules
57
+
58
+ 1. Each force gets a verdict in `Low | Moderate | High` plus 1-3 cited
59
+ bullets. Empty → `_(insufficient signal)_`.
60
+ 2. Every bullet cites a cluster representative as `[name](url)` and tags
61
+ the cluster ID `(C#)`.
62
+ 3. Bottom line: one sentence summarizing the overall attractiveness of
63
+ the market position for the subject.
64
+
65
+ ## Output skeleton
66
+
67
+ ```markdown
68
+ **Threat of new entrants** - Verdict: Low | Moderate | High
69
+ - [name](url) - signal summary. (C#)
70
+
71
+ **Bargaining power of suppliers** - Verdict: ...
72
+
73
+ **Bargaining power of buyers** - Verdict: ...
74
+
75
+ **Threat of substitutes** - Verdict: ...
76
+
77
+ **Industry rivalry** - Verdict: ...
78
+
79
+ **Strategic implication**: 1-2 sentences. Where does the subject have
80
+ the most room to defend or grow?
81
+ ```
82
+
83
+ ## Traps
84
+
85
+ - Don't conflate "many competitors mentioned" with "high rivalry" — the
86
+ signal needs to be active competitive behavior (price, feature, switch).
87
+ - Substitute threat ≠ rivalry: Substitutes are OUT of category
88
+ (Notion vs Markdown files), rivalry is IN category (Notion vs Coda).
89
+ - One cluster can speak to multiple forces; pick the dominant force or
90
+ cite it twice with different framings.
@@ -0,0 +1,61 @@
1
+ # SWOT — Analyst Prompt
2
+
3
+ You are filling the `## SWOT` section of an `oma market` brief produced by the
4
+ last30days engine. The engine's Ranked Evidence Clusters are the only
5
+ evidence bank. **Do not invent quotes or sources** — only
6
+ cite clusters present in the bank.
7
+
8
+ ## Classification rules
9
+
10
+ - **Strength**: cluster signals a positive, defensible quality OF the
11
+ subject (cost advantage, scale, brand trust, technical moat). Quote
12
+ must be a positive sentiment about the subject itself, not the category.
13
+ - **Weakness**: cluster signals friction or shortcoming WITHIN the
14
+ subject's offering. Performance bug, UX gap, pricing complaint, churn
15
+ triggered by the subject's own decision. External pressure → Threat,
16
+ not Weakness.
17
+ - **Opportunity**: cluster signals an unmet need OR market shift the
18
+ subject could capture. Adjacent demand, regulatory window opening,
19
+ technology adoption curve.
20
+ - **Threat**: cluster signals an external force the subject must
21
+ respond to. Competitor launch, regulatory crackdown, customer
22
+ migration intent, sentiment swing against the subject.
23
+
24
+ Same cluster can map to multiple quadrants ONLY if its representatives
25
+ clearly speak to different forces. Default: pick one quadrant per cluster.
26
+
27
+ ## Output rules
28
+
29
+ 1. Each quadrant: 1-4 bullets. Empty → write `_(no signal)_`.
30
+ 2. Every bullet cites a cluster representative as `[name](url)`. Pull the
31
+ URL straight from the Ranked Evidence Clusters — never invent one.
32
+ 3. Append a one-line cluster-ID tag at the end of each bullet, e.g.
33
+ `(C3)`, so readers can trace back to the bank.
34
+ 4. Quadrant order: Strengths → Weaknesses → Opportunities → Threats.
35
+ 5. Korean briefs: bullet text in Korean; structural labels and citation
36
+ format stay as written here.
37
+
38
+ ## Output skeleton (replace `_(fill from cluster bank)_` lines)
39
+
40
+ ```markdown
41
+ **Strengths**
42
+ - [author or title](url) - 1-sentence summary of the signal. (C#)
43
+
44
+ **Weaknesses**
45
+ - [author or title](url) - 1-sentence summary. (C#)
46
+
47
+ **Opportunities**
48
+ - [author or title](url) - 1-sentence summary. (C#)
49
+
50
+ **Threats**
51
+ - [author or title](url) - 1-sentence summary. (C#)
52
+ ```
53
+
54
+ ## Traps to avoid
55
+
56
+ - Don't map cluster to Strength just because the source domain is
57
+ vendor-owned (e.g. `cafe24.com`) — read the actual sentiment.
58
+ - Don't map a competitor's product launch news as the subject's
59
+ Opportunity. That's a Threat (or out of scope).
60
+ - Don't merge two unrelated clusters into one bullet to fill a quadrant.
61
+ Empty quadrants are honest signal.
@@ -0,0 +1,35 @@
1
+ # Intent classification rules for oma-market — maps the request to one of 4 intents, then to engine flags and frameworks.
2
+
3
+ ## Precedence
4
+
5
+ 1. Explicit flag `--intent <pain|trend|competitor|discovery>` always wins.
6
+ 2. `--vs <entity>` present → intent = `competitor`.
7
+ 3. `" vs "` / `" 대 "` / "비교" in the topic → `competitor`.
8
+ 4. Keyword scan (table below) → highest-scoring intent wins; tie-break `competitor > pain > discovery > trend`.
9
+ 5. Fallback: complaint keyword → `pain`; else → `trend`.
10
+
11
+ | Intent | English keywords |
12
+ |---|---|
13
+ | pain | broken, bug, crash, slow, freeze, lag, outage, migrate, ditched, quit, alternative, replacing, painful, frustrating, hate, worst, unusable, deprecated |
14
+ | trend | trend, trending, growth, adoption, rising, popular, new, emerging, hot, forecast, survey, report, state of, this month |
15
+ | competitor | vs, versus, alternative, replaced, switched, comparison, compare, benchmark, better than, worse than, switch from |
16
+ | discovery | wish, need, missing, underrated, underserved, I want, if only, why doesn't, gap, overlooked, unmet, what's exploding |
17
+
18
+ Korean / Japanese / Chinese prompts are classified by reading the prompt directly (activation tokens live in `.agents/hooks/core/triggers.json §oma-market`).
19
+
20
+ ## Intent → engine invocation → frameworks
21
+
22
+ <!-- oma-docs:ignore-start -->
23
+ The engine is `oma market run` (= upstream `scripts/last30days.py`). Flags below are additive to whatever the upstream SKILL.md resolves in its Steps 0.5–0.75 (`--plan`, `--subreddits`, `--x-handle`, …).
24
+ <!-- oma-docs:ignore-end -->
25
+
26
+ | Intent | Topic shaping / engine flags | Frameworks (`--frameworks auto`) |
27
+ |---|---|---|
28
+ | pain | topic as "<subject> problems / complaints"; `--days 30` default; `--deep` when the corpus is thin | SWOT |
29
+ | trend | topic as-is; `--days 30` (7 for "this week", 90/180 for "this year"); `--discover "<domain>"` for "what's hot in X" | SWOT |
30
+ | competitor | `"<A> vs <B>"` topic → upstream COMPARISON flow (pass A, pass B, head-to-head); `--x-related` when handles resolved | SWOT + Porter's 5F |
31
+ | discovery | `--discover` (global) or `--discover "<domain>"`; then `--drill` on the chosen cluster when the user follows up | SWOT + PESTEL |
32
+
33
+ Person, company, ticker, and hiring topics keep the upstream behaviour (person mode, `--github-user`, `--hiring-signals`, StockTwits auto-activation); frameworks default to `none` for person topics unless asked.
34
+
35
+ `--frameworks none` suppresses all framework sections; an explicit list (`swot,5f,pestel`) overrides the table.