@dsmm/dsmm 0.1.9 β†’ 0.2.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 (409) hide show
  1. package/README.md +40 -24
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +1949 -39
  3. package/agent-presets/dsmm-builder/preset.yml +1 -1
  4. package/agent-presets/dsmm-clarifier/agent.cordis.yml +436 -14
  5. package/agent-presets/dsmm-clarifier/preset.yml +1 -1
  6. package/agent-presets/dsmm-code-search/agent.cordis.yml +56 -14
  7. package/agent-presets/dsmm-code-search/preset.yml +1 -1
  8. package/agent-presets/dsmm-coding/agent.cordis.yml +588 -0
  9. package/agent-presets/dsmm-coding/preset.yml +3 -0
  10. package/agent-presets/dsmm-complex/agent.cordis.yml +1140 -0
  11. package/agent-presets/dsmm-complex/preset.yml +3 -0
  12. package/agent-presets/dsmm-creative/agent.cordis.yml +536 -12
  13. package/agent-presets/dsmm-creative/preset.yml +1 -1
  14. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1163 -0
  15. package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
  16. package/agent-presets/dsmm-deep/agent.cordis.yml +1173 -0
  17. package/agent-presets/dsmm-deep/preset.yml +3 -0
  18. package/agent-presets/dsmm-doc-search/agent.cordis.yml +56 -14
  19. package/agent-presets/dsmm-doc-search/preset.yml +1 -1
  20. package/agent-presets/dsmm-documenting/agent.cordis.yml +581 -0
  21. package/agent-presets/dsmm-documenting/preset.yml +3 -0
  22. package/agent-presets/dsmm-frontend/agent.cordis.yml +580 -0
  23. package/agent-presets/dsmm-frontend/preset.yml +3 -0
  24. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +572 -0
  25. package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
  26. package/agent-presets/dsmm-media-reader/agent.cordis.yml +56 -14
  27. package/agent-presets/dsmm-media-reader/preset.yml +1 -1
  28. package/agent-presets/dsmm-normal-task/agent.cordis.yml +546 -0
  29. package/agent-presets/dsmm-normal-task/preset.yml +3 -0
  30. package/agent-presets/dsmm-oracle/agent.cordis.yml +421 -12
  31. package/agent-presets/dsmm-oracle/preset.yml +1 -1
  32. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +421 -12
  33. package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
  34. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +2023 -43
  35. package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
  36. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +416 -13
  37. package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
  38. package/agent-presets/dsmm-planner/agent.cordis.yml +462 -13
  39. package/agent-presets/dsmm-planner/preset.yml +1 -1
  40. package/agent-presets/dsmm-quick/agent.cordis.yml +119 -0
  41. package/agent-presets/dsmm-quick/preset.yml +3 -0
  42. package/agent-presets/dsmm-research/agent.cordis.yml +141 -0
  43. package/agent-presets/dsmm-research/preset.yml +3 -0
  44. package/agent-presets/dsmm-reviewer/agent.cordis.yml +420 -13
  45. package/agent-presets/dsmm-reviewer/preset.yml +1 -1
  46. package/cordis.patch.yml +1 -5
  47. package/docs/agent-presets.md +64 -15
  48. package/docs/compatibility.md +61 -13
  49. package/docs/design.md +41 -0
  50. package/docs/lsp.md +12 -2
  51. package/docs/migration-from-ocmm.md +8 -0
  52. package/docs/profiles.md +41 -15
  53. package/docs/releasing.md +78 -8
  54. package/docs/roadmap.md +6 -0
  55. package/docs/runtime-recovery.md +12 -0
  56. package/docs/safety-guards.md +7 -3
  57. package/docs/settings-status.md +148 -7
  58. package/docs/skill-sync.md +52 -14
  59. package/lib/client/DeploymentPage.d.ts +18 -0
  60. package/lib/client/DeploymentPage.js +120 -0
  61. package/lib/client/ProfilesSection.js +4 -2
  62. package/lib/client/deployment-controller.d.ts +50 -0
  63. package/lib/client/deployment-controller.js +193 -0
  64. package/lib/client/deployment-data.d.ts +16 -0
  65. package/lib/client/deployment-data.js +109 -0
  66. package/lib/client/deployment-locales.d.ts +66 -0
  67. package/lib/client/deployment-locales.js +72 -0
  68. package/lib/client/index.js +50 -0
  69. package/lib/client/locales.d.ts +4 -0
  70. package/lib/client/locales.js +4 -2
  71. package/lib/client/plugins-contract.d.ts +27 -0
  72. package/lib/client/plugins-contract.js +2 -0
  73. package/lib/client/styles.d.ts +1 -1
  74. package/lib/client/styles.js +16 -0
  75. package/lib/client.js +1048 -29
  76. package/lib/commands.js +3 -0
  77. package/lib/config-file-store.d.ts +23 -0
  78. package/lib/config-file-store.js +67 -0
  79. package/lib/deployment-config.d.ts +37 -0
  80. package/lib/deployment-config.js +184 -0
  81. package/lib/dsh-home.d.ts +3 -0
  82. package/lib/dsh-home.js +10 -0
  83. package/lib/dsh-types.d.ts +12 -65
  84. package/lib/guards.d.ts +2 -1
  85. package/lib/guards.js +19 -2
  86. package/lib/index.d.ts +8 -1
  87. package/lib/index.js +115 -25
  88. package/lib/lsp.d.ts +13 -0
  89. package/lib/lsp.js +60 -0
  90. package/lib/mode.js +42 -47
  91. package/lib/model-routing.js +5 -2
  92. package/lib/modules.d.ts +27 -0
  93. package/lib/modules.js +21 -0
  94. package/lib/native-scope.d.ts +9 -0
  95. package/lib/native-scope.js +20 -0
  96. package/lib/plan-validation.js +6 -44
  97. package/lib/preset-materializer.js +2 -0
  98. package/lib/preset-registry.d.ts +1 -1
  99. package/lib/preset-registry.js +7 -4
  100. package/lib/preset-skills.d.ts +4 -1
  101. package/lib/preset-skills.js +60 -19
  102. package/lib/profile-remote.d.ts +14 -0
  103. package/lib/profile-remote.js +197 -4
  104. package/lib/profile-rpc.d.ts +24 -1
  105. package/lib/profile-rpc.js +139 -1
  106. package/lib/profile-runtime.d.ts +24 -0
  107. package/lib/profile-runtime.js +177 -33
  108. package/lib/profile-store.d.ts +45 -1
  109. package/lib/profile-store.js +236 -102
  110. package/lib/profile-types.d.ts +55 -0
  111. package/lib/prompt-content.d.ts +25 -0
  112. package/lib/prompt-content.js +27 -0
  113. package/lib/prompts.d.ts +8 -2
  114. package/lib/prompts.js +46 -34
  115. package/lib/role-policy.d.ts +51 -0
  116. package/lib/role-policy.js +224 -0
  117. package/lib/role-providers.d.ts +6 -2
  118. package/lib/role-providers.js +72 -39
  119. package/lib/role-subagents.d.ts +6 -2
  120. package/lib/role-subagents.js +187 -48
  121. package/lib/roles.d.ts +16 -4
  122. package/lib/roles.js +86 -186
  123. package/lib/runtime-recovery.js +16 -5
  124. package/lib/session-scope.js +2 -0
  125. package/lib/settings.d.ts +69 -1
  126. package/lib/settings.js +262 -91
  127. package/lib/skills.d.ts +24 -9
  128. package/lib/skills.js +114 -35
  129. package/lib/state.d.ts +10 -6
  130. package/lib/state.js +48 -49
  131. package/lib/status.d.ts +25 -0
  132. package/lib/status.js +47 -9
  133. package/locale/en.json +2 -2
  134. package/locale/zh.json +2 -2
  135. package/package.json +19 -2
  136. package/prompts/deepwork.md +144 -20
  137. package/prompts/source/agents/clarifier.md +45 -0
  138. package/prompts/source/agents/orchestrator.md +63 -0
  139. package/prompts/source/agents/plan-critic.md +25 -0
  140. package/prompts/source/agents/planner.md +19 -0
  141. package/prompts/source/agents/reviewer.md +17 -0
  142. package/prompts/source/catalog.json +548 -0
  143. package/prompts/source/category/coding.md +46 -0
  144. package/prompts/source/category/complex.md +29 -0
  145. package/prompts/source/category/creative.md +38 -0
  146. package/prompts/source/category/cross-cutting.md +52 -0
  147. package/prompts/source/category/deep.md +62 -0
  148. package/prompts/source/category/documenting.md +62 -0
  149. package/prompts/source/category/frontend.md +38 -0
  150. package/prompts/source/category/hard-reasoning.md +53 -0
  151. package/prompts/source/category/normal-task.md +27 -0
  152. package/prompts/source/category/quick.md +34 -0
  153. package/prompts/source/category/research.md +56 -0
  154. package/prompts/source/deepwork/claude-opus-5.md +28 -0
  155. package/prompts/source/deepwork/codex.md +9 -0
  156. package/prompts/source/deepwork/default.md +129 -0
  157. package/prompts/source/deepwork/gemini.md +184 -0
  158. package/prompts/source/deepwork/glm.md +256 -0
  159. package/prompts/source/deepwork/gpt.md +43 -0
  160. package/prompts/source/deepwork/kimi-k27.md +13 -0
  161. package/prompts/source/deepwork/planner.md +41 -0
  162. package/prompts/source/deepwork/swe-2.md +13 -0
  163. package/prompts/source/manifest.json +3118 -0
  164. package/prompts/source/shared/dsh-host-contract.md +6 -0
  165. package/prompts/source/shared/locale.md +8 -0
  166. package/prompts/source/shared/shell-safety.md +7 -0
  167. package/prompts/source/terminal/builder.md +13 -0
  168. package/prompts/source/terminal/clarifier.md +41 -0
  169. package/prompts/source/terminal/code-search.md +39 -0
  170. package/prompts/source/terminal/coding.md +41 -0
  171. package/prompts/source/terminal/complex.md +43 -0
  172. package/prompts/source/terminal/creative.md +41 -0
  173. package/prompts/source/terminal/cross-cutting.md +43 -0
  174. package/prompts/source/terminal/deep.md +43 -0
  175. package/prompts/source/terminal/doc-search.md +39 -0
  176. package/prompts/source/terminal/documenting.md +41 -0
  177. package/prompts/source/terminal/frontend.md +41 -0
  178. package/prompts/source/terminal/hard-reasoning.md +41 -0
  179. package/prompts/source/terminal/media-reader.md +39 -0
  180. package/prompts/source/terminal/normal-task.md +41 -0
  181. package/prompts/source/terminal/oracle-2nd.md +53 -0
  182. package/prompts/source/terminal/oracle.md +53 -0
  183. package/prompts/source/terminal/orchestrator.md +26 -0
  184. package/prompts/source/terminal/plan-critic.md +41 -0
  185. package/prompts/source/terminal/planner.md +42 -0
  186. package/prompts/source/terminal/quick.md +39 -0
  187. package/prompts/source/terminal/research.md +39 -0
  188. package/prompts/source/terminal/reviewer.md +53 -0
  189. package/skills/ast-grep/LICENSE +21 -0
  190. package/skills/ast-grep/README.md +138 -0
  191. package/skills/ast-grep/SKILL.md +284 -0
  192. package/skills/ast-grep/SOURCE +1 -0
  193. package/skills/ast-grep/install.ps1 +235 -0
  194. package/skills/ast-grep/install.sh +286 -0
  195. package/skills/ast-grep/references/cli.md +233 -0
  196. package/skills/ast-grep/references/install.md +168 -0
  197. package/skills/ast-grep/references/patterns.md +149 -0
  198. package/skills/ast-grep/references/pitfalls.md +305 -0
  199. package/skills/ast-grep/references/recipes.md +404 -0
  200. package/skills/ast-grep/references/sgconfig.md +250 -0
  201. package/skills/ast-grep/references/yaml-rules.md +511 -0
  202. package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
  203. package/skills/ast-grep/tests/smoke.ps1 +129 -0
  204. package/skills/ast-grep/tests/smoke.sh +212 -0
  205. package/skills/ast-grep/tests/test_resolver.py +154 -0
  206. package/skills/brainstorming/SKILL.md +102 -9
  207. package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
  208. package/skills/coding-agent-sessions/NOTICE.md +24 -0
  209. package/skills/coding-agent-sessions/SKILL.md +144 -0
  210. package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
  211. package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
  212. package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
  213. package/skills/coding-agent-sessions/references/claude.md +34 -0
  214. package/skills/coding-agent-sessions/references/codex.md +32 -0
  215. package/skills/coding-agent-sessions/references/opencode.md +45 -0
  216. package/skills/coding-agent-sessions/references/senpi.md +29 -0
  217. package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
  218. package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
  219. package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
  220. package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
  221. package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
  222. package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
  223. package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
  224. package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
  225. package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
  226. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
  227. package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
  228. package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
  229. package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
  230. package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
  231. package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
  232. package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
  233. package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
  234. package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
  235. package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
  236. package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
  237. package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
  238. package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
  239. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
  240. package/skills/debugging/SKILL.md +125 -4
  241. package/skills/debugging/references/logging.md +2 -0
  242. package/skills/debugging/references/methodology/00-setup.md +2 -0
  243. package/skills/debugging/references/methodology/02-investigate.md +8 -2
  244. package/skills/debugging/references/methodology/03-flaky-triage.md +3 -1
  245. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +4 -2
  246. package/skills/debugging/references/methodology/05-escalate.md +2 -0
  247. package/skills/debugging/references/methodology/06-fix.md +2 -0
  248. package/skills/debugging/references/methodology/08-qa.md +2 -0
  249. package/skills/debugging/references/methodology/09-cleanup.md +2 -0
  250. package/skills/debugging/references/methodology/partial-runtime-evidence.md +4 -2
  251. package/skills/debugging/references/runtimes/bundled-js-binary.md +2 -0
  252. package/skills/debugging/references/runtimes/go.md +2 -0
  253. package/skills/debugging/references/runtimes/native-binary.md +2 -0
  254. package/skills/debugging/references/runtimes/node.md +2 -0
  255. package/skills/debugging/references/runtimes/python.md +2 -0
  256. package/skills/debugging/references/runtimes/rust.md +2 -0
  257. package/skills/debugging/references/scripts/dap.test.mjs +539 -0
  258. package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
  259. package/skills/debugging/references/tools/dap.md +3 -1
  260. package/skills/debugging/references/tools/ghidra.md +2 -0
  261. package/skills/debugging/references/tools/playwright-cli.md +2 -0
  262. package/skills/debugging/references/tools/pwndbg.md +2 -0
  263. package/skills/debugging/references/tools/pwntools.md +2 -0
  264. package/skills/dispatching-parallel-agents/SKILL.md +94 -7
  265. package/skills/frontend/.frontend-materialized.json +856 -0
  266. package/skills/frontend/ATTRIBUTION.md +37 -0
  267. package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
  268. package/skills/frontend/LICENSE-taste-skill.txt +21 -0
  269. package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
  270. package/skills/frontend/SKILL.md +142 -0
  271. package/skills/frontend/references/design/README.md +256 -0
  272. package/skills/frontend/references/design/_INDEX.md +206 -0
  273. package/skills/frontend/references/design/airbnb.md +393 -0
  274. package/skills/frontend/references/design/airtable.md +92 -0
  275. package/skills/frontend/references/design/apple.md +250 -0
  276. package/skills/frontend/references/design/aside.md +211 -0
  277. package/skills/frontend/references/design/binance.md +348 -0
  278. package/skills/frontend/references/design/bmw.md +183 -0
  279. package/skills/frontend/references/design/brutalist-skill.md +92 -0
  280. package/skills/frontend/references/design/bugatti.md +271 -0
  281. package/skills/frontend/references/design/cal.md +262 -0
  282. package/skills/frontend/references/design/claude.md +315 -0
  283. package/skills/frontend/references/design/clay.md +307 -0
  284. package/skills/frontend/references/design/clickhouse.md +284 -0
  285. package/skills/frontend/references/design/clone-from-url.md +69 -0
  286. package/skills/frontend/references/design/cohere.md +269 -0
  287. package/skills/frontend/references/design/coinbase.md +132 -0
  288. package/skills/frontend/references/design/composio.md +310 -0
  289. package/skills/frontend/references/design/cursor.md +312 -0
  290. package/skills/frontend/references/design/design-system-architecture.md +250 -0
  291. package/skills/frontend/references/design/elevenlabs.md +268 -0
  292. package/skills/frontend/references/design/expo.md +284 -0
  293. package/skills/frontend/references/design/ferrari.md +317 -0
  294. package/skills/frontend/references/design/figma.md +223 -0
  295. package/skills/frontend/references/design/framer.md +249 -0
  296. package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
  297. package/skills/frontend/references/design/hashicorp.md +281 -0
  298. package/skills/frontend/references/design/ibm.md +335 -0
  299. package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
  300. package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
  301. package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
  302. package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
  303. package/skills/frontend/references/design/interaction-skill.md +52 -0
  304. package/skills/frontend/references/design/intercom.md +149 -0
  305. package/skills/frontend/references/design/kraken.md +128 -0
  306. package/skills/frontend/references/design/lamborghini.md +291 -0
  307. package/skills/frontend/references/design/linear.app.md +370 -0
  308. package/skills/frontend/references/design/lovable.md +301 -0
  309. package/skills/frontend/references/design/mastercard.md +368 -0
  310. package/skills/frontend/references/design/meta.md +369 -0
  311. package/skills/frontend/references/design/minimalist-skill.md +85 -0
  312. package/skills/frontend/references/design/minimax.md +260 -0
  313. package/skills/frontend/references/design/mintlify.md +329 -0
  314. package/skills/frontend/references/design/miro.md +111 -0
  315. package/skills/frontend/references/design/mistral.ai.md +264 -0
  316. package/skills/frontend/references/design/mongodb.md +269 -0
  317. package/skills/frontend/references/design/nike.md +366 -0
  318. package/skills/frontend/references/design/notion.md +312 -0
  319. package/skills/frontend/references/design/nvidia.md +296 -0
  320. package/skills/frontend/references/design/ollama.md +270 -0
  321. package/skills/frontend/references/design/opencode.ai.md +284 -0
  322. package/skills/frontend/references/design/output-skill.md +49 -0
  323. package/skills/frontend/references/design/pinterest.md +233 -0
  324. package/skills/frontend/references/design/playstation.md +367 -0
  325. package/skills/frontend/references/design/posthog.md +259 -0
  326. package/skills/frontend/references/design/raycast.md +271 -0
  327. package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
  328. package/skills/frontend/references/design/redesign-skill.md +178 -0
  329. package/skills/frontend/references/design/renault.md +314 -0
  330. package/skills/frontend/references/design/replicate.md +264 -0
  331. package/skills/frontend/references/design/resend.md +306 -0
  332. package/skills/frontend/references/design/revolut.md +188 -0
  333. package/skills/frontend/references/design/runwayml.md +247 -0
  334. package/skills/frontend/references/design/sanity.md +360 -0
  335. package/skills/frontend/references/design/sentry.md +265 -0
  336. package/skills/frontend/references/design/shopify.md +353 -0
  337. package/skills/frontend/references/design/soft-skill.md +98 -0
  338. package/skills/frontend/references/design/spacex.md +197 -0
  339. package/skills/frontend/references/design/spotify.md +249 -0
  340. package/skills/frontend/references/design/starbucks.md +583 -0
  341. package/skills/frontend/references/design/stitch-design-example.md +121 -0
  342. package/skills/frontend/references/design/stitch-skill.md +184 -0
  343. package/skills/frontend/references/design/stripe.md +325 -0
  344. package/skills/frontend/references/design/supabase.md +258 -0
  345. package/skills/frontend/references/design/superhuman.md +255 -0
  346. package/skills/frontend/references/design/taste-skill.md +1206 -0
  347. package/skills/frontend/references/design/tesla.md +289 -0
  348. package/skills/frontend/references/design/theverge.md +342 -0
  349. package/skills/frontend/references/design/together.ai.md +266 -0
  350. package/skills/frontend/references/design/uber.md +298 -0
  351. package/skills/frontend/references/design/vercel.md +313 -0
  352. package/skills/frontend/references/design/vodafone.md +426 -0
  353. package/skills/frontend/references/design/voltagent.md +326 -0
  354. package/skills/frontend/references/design/warp.md +256 -0
  355. package/skills/frontend/references/design/webflow.md +95 -0
  356. package/skills/frontend/references/design/wired.md +281 -0
  357. package/skills/frontend/references/design/wise.md +176 -0
  358. package/skills/frontend/references/design/x.ai.md +260 -0
  359. package/skills/frontend/references/design/zapier.md +331 -0
  360. package/skills/frontend/references/perfection/README.md +264 -0
  361. package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
  362. package/skills/frontend/references/ui-ux-db/README.md +659 -0
  363. package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
  364. package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
  365. package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
  366. package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
  367. package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
  368. package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
  369. package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
  370. package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
  371. package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
  372. package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
  373. package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
  374. package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
  375. package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
  376. package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
  377. package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
  378. package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
  379. package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
  380. package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
  381. package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
  382. package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
  383. package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
  384. package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
  385. package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
  386. package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
  387. package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
  388. package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
  389. package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
  390. package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
  391. package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
  392. package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
  393. package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
  394. package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
  395. package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
  396. package/skills/git-master/SKILL.md +112 -0
  397. package/skills/git-master/agents/openai.yaml +13 -0
  398. package/skills/init-deep/SKILL.md +279 -0
  399. package/skills/receiving-code-review/SKILL.md +112 -7
  400. package/skills/remove-ai-slops/SKILL.md +159 -8
  401. package/skills/requesting-code-review/SKILL.md +96 -3
  402. package/skills/requesting-code-review/code-reviewer.md +47 -0
  403. package/skills/subagent-driven-development/SKILL.md +176 -6
  404. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
  405. package/skills/subagent-driven-development/implementer-prompt.md +69 -0
  406. package/skills/subagent-driven-development/spec-reviewer-prompt.md +32 -0
  407. package/skills/using-git-worktrees/SKILL.md +141 -0
  408. package/skills/writing-plans/SKILL.md +121 -7
  409. package/skills/writing-plans/plan-document-reviewer-prompt.md +38 -0
@@ -0,0 +1,262 @@
1
+ # /// script
2
+ # requires-python = ">=3.11"
3
+ # dependencies = ["pytest"]
4
+ # ///
5
+ # --- How to run ---
6
+ # uv run --with pytest pytest scripts/tests/test_extended_scanners.py -v
7
+ # pyright: reportImplicitRelativeImport=false, reportMissingImports=false
8
+ from __future__ import annotations
9
+
10
+ import json
11
+ import sqlite3
12
+ import sys
13
+ from pathlib import Path
14
+
15
+ import pytest
16
+
17
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
18
+
19
+ from agent_sessions import scanners
20
+ from agent_sessions.cli import _get_payload
21
+ from agent_sessions.file_scanners import _file_uri_path
22
+ from agent_sessions.sqlite_scanners import scan_kodu
23
+ from agent_sessions.types import JsonMap, Session
24
+
25
+
26
+ def _write_jsonl(path: Path, rows: list[JsonMap]) -> None:
27
+ path.parent.mkdir(parents=True, exist_ok=True)
28
+ _ = path.write_text("\n".join(json.dumps(row) for row in rows) + "\n")
29
+
30
+
31
+ def _sessions_by_platform(items: list[Session]) -> dict[str, Session]:
32
+ return {item.platform: item for item in items}
33
+
34
+
35
+ def test_default_platforms_are_canonical_transcript_sources() -> None:
36
+ required = {
37
+ "codex",
38
+ "claude",
39
+ "senpi",
40
+ "oh-my-pi",
41
+ "gajae-code",
42
+ "opencode",
43
+ "openclaw",
44
+ "droid",
45
+ "amp",
46
+ "gemini",
47
+ "kimi",
48
+ "qwen",
49
+ "codebuff",
50
+ "roo-code",
51
+ "kilo-code",
52
+ "cline",
53
+ "kodu",
54
+ "cursor-cli",
55
+ "aider",
56
+ "kilo-cli",
57
+ "hermes",
58
+ "goose",
59
+ "crush",
60
+ "zed",
61
+ "kiro",
62
+ "aside",
63
+ }
64
+ forbidden = {"copilot", "mux", "antigravity", "synthetic", "cursor"}
65
+
66
+ assert scanners.DEFAULT_PLATFORMS == required
67
+ assert not forbidden & scanners.DEFAULT_PLATFORMS
68
+ assert scanners.PLATFORM_ALIASES["roocode"] == "roo-code"
69
+ assert scanners.PLATFORM_ALIASES["kilocode"] == "kilo-code"
70
+ assert scanners.PLATFORM_ALIASES["kilo"] == "kilo-cli"
71
+
72
+
73
+ def test_extended_default_scanners_find_transcript_rich_stores(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
74
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
75
+ monkeypatch.setenv("APPDATA", str(tmp_path / "appdata"))
76
+
77
+ _write_jsonl(
78
+ tmp_path / ".openclaw" / "agents" / "main" / "sessions" / "openclaw-1.jsonl",
79
+ [
80
+ {"type": "session", "id": "openclaw-1", "timestamp": "2026-06-10T00:00:00Z", "cwd": "/tmp/openclaw"},
81
+ {"type": "message", "timestamp": "2026-06-10T00:00:01Z", "message": {"role": "user", "content": [{"type": "text", "text": "openclaw build"}]}},
82
+ ],
83
+ )
84
+ _write_jsonl(
85
+ tmp_path / ".factory" / "sessions" / "-tmp-droid" / "droid-1.jsonl",
86
+ [
87
+ {"type": "session_start", "id": "droid-1", "timestamp": "2026-06-10T00:00:00Z", "cwd": "/tmp/droid"},
88
+ {"type": "message", "timestamp": "2026-06-10T00:00:01Z", "message": {"role": "user", "content": [{"type": "text", "text": "<system-reminder>noise</system-reminder>"}, {"type": "text", "text": "droid real prompt"}]}},
89
+ ],
90
+ )
91
+ amp = tmp_path / ".local" / "share" / "amp" / "threads"
92
+ amp.mkdir(parents=True)
93
+ (amp / "T-amp-1.json").write_text(
94
+ json.dumps(
95
+ {
96
+ "id": "T-amp-1",
97
+ "created": 1771748797025,
98
+ "env": {"initial": {"trees": [{"uri": "file:///tmp/amp"}], "tags": ["model:claude-opus-4-6"]}},
99
+ "messages": [{"role": "user", "content": [{"type": "text", "text": "amp prompt"}], "meta": {"sentAt": 1771748810692}}],
100
+ }
101
+ )
102
+ )
103
+
104
+ sessions = _sessions_by_platform(scanners.scan(scanners.DEFAULT_PLATFORMS, (), 4))
105
+
106
+ assert sessions["openclaw"].first_user_message == "openclaw build"
107
+ assert sessions["droid"].first_user_message == "droid real prompt"
108
+ assert sessions["amp"].first_user_message == "amp prompt"
109
+
110
+
111
+ def test_sqlite_and_repo_scanners_use_bounded_default_roots(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
112
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
113
+ monkeypatch.setenv("APPDATA", str(tmp_path / "appdata"))
114
+
115
+ kodu_dir = tmp_path / "Library" / "Application Support" / "Code" / "User" / "globalStorage" / "kodu-ai.claude-dev-experimental" / "db"
116
+ kodu_dir.mkdir(parents=True)
117
+ with sqlite3.connect(kodu_dir / "Azad.db") as conn:
118
+ conn.execute("CREATE TABLE tasks (id TEXT PRIMARY KEY, created_at INTEGER, updated_at INTEGER, name TEXT, dir_absolute_path TEXT, tokens_in INTEGER, tokens_out INTEGER, cache_writes INTEGER, cache_reads INTEGER, cost INTEGER)")
119
+ conn.execute("CREATE TABLE messages (id TEXT PRIMARY KEY, task_id TEXT, role TEXT, content TEXT, model_id TEXT, started_at INTEGER, finished_at INTEGER, tokens_in INTEGER, tokens_out INTEGER, cache_writes INTEGER, cache_reads INTEGER, cost INTEGER)")
120
+ conn.execute("INSERT INTO tasks VALUES ('kodu-task', 1000, 3000, 'kodu title', '/tmp/kodu', 1, 2, 3, 4, 5)")
121
+ conn.execute("INSERT INTO messages VALUES ('m1', 'kodu-task', 'user', '[{\"type\":\"text\",\"text\":\"kodu prompt\"}]', 'claude', 1100, 1200, 1, 0, 0, 0, 0)")
122
+ conn.execute("INSERT INTO messages VALUES ('m2', 'kodu-task', 'assistant', 'answer', 'claude', 1300, 1400, 0, 2, 0, 0, 5)")
123
+
124
+ cursor_dir = tmp_path / ".cursor" / "chats" / "hash" / "cursor-session"
125
+ cursor_dir.mkdir(parents=True)
126
+ with sqlite3.connect(cursor_dir / "store.db") as conn:
127
+ conn.execute("CREATE TABLE blobs (id TEXT PRIMARY KEY, data BLOB)")
128
+ conn.execute("CREATE TABLE meta (key TEXT PRIMARY KEY, value TEXT)")
129
+ conn.execute("INSERT INTO blobs VALUES ('b1', ?)", (json.dumps({"role": "user", "content": "<user_info>metadata</user_info>"}).encode(),))
130
+ conn.execute("INSERT INTO blobs VALUES ('b2', ?)", (json.dumps({"role": "user", "content": [{"type": "text", "text": "<user_query>\ncursor prompt\n</user_query>"}]}).encode(),))
131
+ (tmp_path / ".cursor" / "prompt_history.json").write_text(json.dumps(["cursor prompt"]))
132
+
133
+ aider = tmp_path / "local-workspaces" / "repo"
134
+ aider.mkdir(parents=True)
135
+ (aider / ".aider.chat.history.md").write_text("# aider chat started at 2026-06-10 00:00:00\n\n#### aider prompt\n\nassistant reply\n")
136
+
137
+ kiro = tmp_path / ".kiro" / "sessions" / "cli"
138
+ kiro.mkdir(parents=True)
139
+ (kiro / "kiro-session.json").write_text(
140
+ json.dumps(
141
+ {
142
+ "session_id": "kiro-session",
143
+ "cwd": "/tmp/kiro",
144
+ "session_state": {
145
+ "rts_model_state": {"model_info": {"model_id": "claude-sonnet-4-5"}},
146
+ "conversation_metadata": {"user_turn_metadatas": [{"message_ids": ["prompt-1", "assistant-1"]}]},
147
+ },
148
+ }
149
+ )
150
+ )
151
+ _write_jsonl(
152
+ kiro / "kiro-session.jsonl",
153
+ [
154
+ {"version": "v1", "kind": "Prompt", "data": {"message_id": "prompt-1", "content": [{"kind": "text", "data": "kiro prompt"}], "meta": {"timestamp": 1770983426.42}}},
155
+ {"version": "v1", "kind": "AssistantMessage", "data": {"message_id": "assistant-1", "content": [{"kind": "text", "data": "kiro answer"}]}},
156
+ ],
157
+ )
158
+
159
+ sessions = {(item.platform, item.id): item for item in scanners.scan(scanners.DEFAULT_PLATFORMS, (), 4)}
160
+
161
+ assert sessions[("kodu", "kodu-task")].first_user_message == "kodu prompt"
162
+ assert sessions[("cursor-cli", "cursor-session")].first_user_message == "cursor prompt"
163
+ assert sessions[("aider", "repo-2026-06-10-00-00-00")].first_user_message == "aider prompt"
164
+ assert sessions[("kiro", "kiro-session")].first_user_message == "kiro prompt"
165
+ assert sessions[("kiro", "kiro-session")].model == "claude-sonnet-4-5"
166
+
167
+
168
+ def test_vscode_extension_scanners_include_windows_appdata_roots(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
169
+ monkeypatch.setattr(Path, "home", lambda: tmp_path / "home")
170
+ monkeypatch.setenv("APPDATA", str(tmp_path / "AppData" / "Roaming"))
171
+
172
+ roo_history = (
173
+ tmp_path
174
+ / "AppData"
175
+ / "Roaming"
176
+ / "Code"
177
+ / "User"
178
+ / "globalStorage"
179
+ / "rooveterinaryinc.roo-cline"
180
+ / "tasks"
181
+ / "roo-task"
182
+ / "api_conversation_history.json"
183
+ )
184
+ roo_history.parent.mkdir(parents=True)
185
+ roo_history.write_text(json.dumps([{"role": "user", "content": [{"type": "text", "text": "windows roo prompt"}]}]))
186
+
187
+ kodu_dir = (
188
+ tmp_path
189
+ / "AppData"
190
+ / "Roaming"
191
+ / "Code"
192
+ / "User"
193
+ / "globalStorage"
194
+ / "kodu-ai.claude-dev-experimental"
195
+ / "db"
196
+ )
197
+ kodu_dir.mkdir(parents=True)
198
+ with sqlite3.connect(kodu_dir / "Azad.db") as conn:
199
+ conn.execute("CREATE TABLE tasks (id TEXT PRIMARY KEY, created_at INTEGER, updated_at INTEGER, name TEXT, dir_absolute_path TEXT, tokens_in INTEGER, tokens_out INTEGER, cache_writes INTEGER, cache_reads INTEGER, cost INTEGER)")
200
+ conn.execute("CREATE TABLE messages (id TEXT PRIMARY KEY, task_id TEXT, role TEXT, content TEXT, model_id TEXT, started_at INTEGER, finished_at INTEGER, tokens_in INTEGER, tokens_out INTEGER, cache_writes INTEGER, cache_reads INTEGER, cost INTEGER)")
201
+ conn.execute("INSERT INTO tasks VALUES ('kodu-windows', 1000, 3000, 'kodu title', 'C:/repo', 1, 2, 3, 4, 5)")
202
+ conn.execute("INSERT INTO messages VALUES ('m1', 'kodu-windows', 'user', '[{\"type\":\"text\",\"text\":\"windows kodu prompt\"}]', 'claude', 1100, 1200, 1, 0, 0, 0, 0)")
203
+
204
+ roo_sessions = scanners.scan(frozenset({"roo-code"}), (), 4)
205
+ kodu_sessions = scan_kodu((), 4)
206
+
207
+ assert [item.first_user_message for item in roo_sessions] == ["windows roo prompt"]
208
+ assert [item.first_user_message for item in kodu_sessions] == ["windows kodu prompt"]
209
+
210
+
211
+ def test_file_uri_path_preserves_windows_drive_and_unc_paths() -> None:
212
+ assert _file_uri_path("file:///tmp/amp") == "/tmp/amp"
213
+ assert _file_uri_path("file:///C:/Users/yeongyu/project") == "C:/Users/yeongyu/project"
214
+ assert _file_uri_path("file://server/share/project") == "//server/share/project"
215
+
216
+
217
+ def test_kiro_scanner_skips_metadata_only_sessions(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
218
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
219
+
220
+ kiro = tmp_path / ".kiro" / "sessions" / "cli"
221
+ kiro.mkdir(parents=True)
222
+ (kiro / "metadata-only.json").write_text(
223
+ json.dumps(
224
+ {
225
+ "session_id": "metadata-only",
226
+ "cwd": "/tmp/kiro",
227
+ "session_state": {
228
+ "rts_model_state": {"model_info": {"model_id": "claude-sonnet-4-5"}},
229
+ "conversation_metadata": {"user_turn_metadatas": [{"message_ids": ["prompt-1"]}]},
230
+ },
231
+ }
232
+ )
233
+ )
234
+
235
+ sessions = scanners.scan(frozenset({"kiro"}), (), 4)
236
+
237
+ assert ("kiro", "metadata-only") not in {(item.platform, item.id) for item in sessions}
238
+
239
+
240
+ def test_get_payload_reconstructs_events_for_non_jsonl_sessions() -> None:
241
+ session = Session(
242
+ "amp",
243
+ "T-amp-1",
244
+ "/tmp/T-amp-1.json",
245
+ "/tmp/amp",
246
+ "2026-06-10T00:00:00+00:00",
247
+ "2026-06-10T00:00:01+00:00",
248
+ None,
249
+ "claude-opus-4-6",
250
+ "first prompt",
251
+ {},
252
+ last_user_message="last prompt",
253
+ )
254
+
255
+ payload = _get_payload([session], ["T-amp-1"])
256
+
257
+ result = payload["results"][0]
258
+ assert isinstance(result, dict)
259
+ assert result["events"] == [
260
+ {"type": "message", "message": {"role": "user", "content": "first prompt"}},
261
+ {"type": "message", "message": {"role": "user", "content": "last prompt"}},
262
+ ]
@@ -0,0 +1,79 @@
1
+ # /// script
2
+ # requires-python = ">=3.11"
3
+ # dependencies = ["pytest"]
4
+ # ///
5
+ # --- How to run ---
6
+ # uv run --with pytest pytest scripts/tests/test_optional_sqlite_scanners.py -v
7
+ # pyright: reportImplicitRelativeImport=false, reportMissingImports=false
8
+ from __future__ import annotations
9
+
10
+ import json
11
+ import sqlite3
12
+ import sys
13
+ from pathlib import Path
14
+
15
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
16
+
17
+ from agent_sessions.sqlite_optional_scanners import scan_crush, scan_goose, scan_hermes, scan_kilo_cli, scan_zed
18
+
19
+
20
+ def _message_db(path: Path, table: str, prompt: str) -> None:
21
+ path.parent.mkdir(parents=True, exist_ok=True)
22
+ with sqlite3.connect(path) as conn:
23
+ _ = conn.execute(f"CREATE TABLE {table} (session_id TEXT, role TEXT, data TEXT, created_at INTEGER)")
24
+ _ = conn.execute(
25
+ f"INSERT INTO {table} VALUES ('s1', 'user', ?, 1770983426420)",
26
+ (json.dumps({"role": "user", "content": [{"type": "text", "text": prompt}]}),),
27
+ )
28
+ _ = conn.execute(
29
+ f"INSERT INTO {table} VALUES ('s1', 'assistant', ?, 1770983427420)",
30
+ (json.dumps({"role": "assistant", "modelID": "claude-sonnet-4-5", "providerID": "anthropic", "content": "answer"}),),
31
+ )
32
+
33
+
34
+ def test_optional_sqlite_scanners_reconstruct_present_prompt_stores(tmp_path: Path) -> None:
35
+ _message_db(tmp_path / "kilo" / "kilo.db", "message", "kilo prompt")
36
+ _message_db(tmp_path / "hermes" / "state.db", "messages", "hermes prompt")
37
+ _message_db(tmp_path / "goose" / "sessions.db", "messages", "goose prompt")
38
+
39
+ (tmp_path / "crush").mkdir()
40
+ with sqlite3.connect(tmp_path / "crush" / "crush.db") as conn:
41
+ _ = conn.execute("CREATE TABLE messages (session_id TEXT, role TEXT, parts TEXT, created_at INTEGER)")
42
+ _ = conn.execute("INSERT INTO messages VALUES ('s1', 'user', ?, 1770983426420)", (json.dumps([{"type": "text", "text": "crush prompt"}]),))
43
+
44
+ (tmp_path / "zed").mkdir()
45
+ with sqlite3.connect(tmp_path / "zed" / "threads.db") as conn:
46
+ _ = conn.execute("CREATE TABLE threads (id TEXT, data_type TEXT, data BLOB, updated_at TEXT)")
47
+ _ = conn.execute(
48
+ "INSERT INTO threads VALUES ('t1', 'json', ?, '2026-06-10T00:00:00Z')",
49
+ (json.dumps({"model": {"provider": "zed.dev", "model": "claude"}, "messages": [{"role": "user", "content": "zed prompt"}]}).encode(),),
50
+ )
51
+
52
+ sessions = [
53
+ *scan_kilo_cli((tmp_path / "kilo",), 4),
54
+ *scan_hermes((tmp_path / "hermes",), 4),
55
+ *scan_goose((tmp_path / "goose",), 4),
56
+ *scan_crush((tmp_path / "crush",), 4),
57
+ *scan_zed((tmp_path / "zed",), 4),
58
+ ]
59
+ prompts = {item.platform: item.first_user_message for item in sessions}
60
+
61
+ assert prompts == {
62
+ "kilo-cli": "kilo prompt",
63
+ "hermes": "hermes prompt",
64
+ "goose": "goose prompt",
65
+ "crush": "crush prompt",
66
+ "zed": "zed prompt",
67
+ }
68
+
69
+
70
+ def test_optional_sqlite_scanners_skip_unsupported_schemas(tmp_path: Path) -> None:
71
+ for name in ("kilo.db", "state.db", "sessions.db", "crush.db", "threads.db"):
72
+ with sqlite3.connect(tmp_path / name) as conn:
73
+ _ = conn.execute("CREATE TABLE unrelated (id TEXT)")
74
+
75
+ assert scan_kilo_cli((tmp_path,), 4) == []
76
+ assert scan_hermes((tmp_path,), 4) == []
77
+ assert scan_goose((tmp_path,), 4) == []
78
+ assert scan_crush((tmp_path,), 4) == []
79
+ assert scan_zed((tmp_path,), 4) == []
@@ -0,0 +1,130 @@
1
+ # /// script
2
+ # requires-python = ">=3.11"
3
+ # dependencies = ["pytest"]
4
+ # ///
5
+ # --- How to run ---
6
+ # uv run --with pytest pytest scripts/tests/test_pi_family_scanners.py -v
7
+ # pyright: reportImplicitRelativeImport=false, reportMissingImports=false
8
+ from __future__ import annotations
9
+
10
+ import json
11
+ import sys
12
+ from pathlib import Path
13
+
14
+ import pytest
15
+
16
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
17
+
18
+ from agent_sessions import scanners
19
+ from agent_sessions.types import JsonMap, Session
20
+
21
+ PI_FAMILY = frozenset({"senpi", "oh-my-pi", "gajae-code"})
22
+
23
+
24
+ def _write_session(path: Path, session_id: str, cwd: str, prompt: str) -> None:
25
+ rows: list[JsonMap] = [
26
+ {"type": "session", "version": 3, "id": session_id, "timestamp": "2026-07-20T00:00:00.000Z", "cwd": cwd},
27
+ {"type": "model_change", "id": "m1", "timestamp": "2026-07-20T00:00:00.100Z", "model": "anthropic/claude-fable-5"},
28
+ {
29
+ "type": "message",
30
+ "id": "e1",
31
+ "timestamp": "2026-07-20T00:00:01.000Z",
32
+ "message": {"role": "user", "content": [{"type": "text", "text": prompt}]},
33
+ },
34
+ ]
35
+ path.parent.mkdir(parents=True, exist_ok=True)
36
+ _ = path.write_text("\n".join(json.dumps(row) for row in rows) + "\n")
37
+
38
+
39
+ def _by_platform(items: list[Session]) -> dict[str, Session]:
40
+ return {item.platform: item for item in items}
41
+
42
+
43
+ def test_pi_family_platforms_and_aliases_are_registered() -> None:
44
+ assert PI_FAMILY <= scanners.DEFAULT_PLATFORMS
45
+ assert scanners.PLATFORM_ALIASES["omp"] == "oh-my-pi"
46
+ assert scanners.PLATFORM_ALIASES["ohmypi"] == "oh-my-pi"
47
+ assert scanners.PLATFORM_ALIASES["gjc"] == "gajae-code"
48
+ assert scanners.PLATFORM_ALIASES["gajae"] == "gajae-code"
49
+
50
+
51
+ def test_pi_family_scanners_read_each_product_home_store(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
52
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
53
+ monkeypatch.delenv("XDG_DATA_HOME", raising=False)
54
+
55
+ _write_session(
56
+ tmp_path / ".senpi" / "agent" / "sessions" / "-tmp-senpi" / "2026-07-20T00-00-00-000Z_senpi-1.jsonl",
57
+ "senpi-1",
58
+ "/tmp/senpi",
59
+ "senpi prompt",
60
+ )
61
+ _write_session(
62
+ tmp_path / ".omp" / "agent" / "sessions" / "-tmp-omp" / "2026-07-20T00-00-00-000Z_omp-1.jsonl",
63
+ "omp-1",
64
+ "/tmp/omp",
65
+ "oh-my-pi prompt",
66
+ )
67
+ _write_session(
68
+ tmp_path / ".gjc" / "agent" / "sessions" / "-tmp-gjc" / "2026-07-20T00-00-00-000Z_gjc-1.jsonl",
69
+ "gjc-1",
70
+ "/tmp/gjc",
71
+ "gajae-code prompt",
72
+ )
73
+
74
+ sessions = _by_platform(scanners.scan(PI_FAMILY, (), 4))
75
+
76
+ assert sessions["senpi"].first_user_message == "senpi prompt"
77
+ assert sessions["oh-my-pi"].id == "omp-1"
78
+ assert sessions["oh-my-pi"].first_user_message == "oh-my-pi prompt"
79
+ assert sessions["oh-my-pi"].cwd == "/tmp/omp"
80
+ assert sessions["oh-my-pi"].model == "anthropic/claude-fable-5"
81
+ assert sessions["gajae-code"].id == "gjc-1"
82
+ assert sessions["gajae-code"].first_user_message == "gajae-code prompt"
83
+
84
+
85
+ def test_pi_family_scanners_cover_profile_and_xdg_roots(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
86
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
87
+ monkeypatch.setenv("XDG_DATA_HOME", str(tmp_path / "xdg-data"))
88
+
89
+ _write_session(
90
+ tmp_path / ".omp" / "profiles" / "work" / "agent" / "sessions" / "-repo" / "2026-07-20T00-00-00-000Z_omp-work.jsonl",
91
+ "omp-work",
92
+ "/repo",
93
+ "omp profile prompt",
94
+ )
95
+ _write_session(
96
+ tmp_path / "xdg-data" / "gjc" / "sessions" / "-repo" / "2026-07-20T00-00-00-000Z_gjc-xdg.jsonl",
97
+ "gjc-xdg",
98
+ "/repo",
99
+ "gjc xdg prompt",
100
+ )
101
+ _write_session(
102
+ tmp_path / "xdg-data" / "omp" / "profiles" / "work" / "sessions" / "-repo" / "2026-07-20T00-00-00-000Z_omp-xdg.jsonl",
103
+ "omp-xdg",
104
+ "/repo",
105
+ "omp xdg profile prompt",
106
+ )
107
+
108
+ found = {(item.platform, item.id) for item in scanners.scan(PI_FAMILY, (), 4)}
109
+
110
+ assert ("oh-my-pi", "omp-work") in found
111
+ assert ("gajae-code", "gjc-xdg") in found
112
+ assert ("oh-my-pi", "omp-xdg") in found
113
+
114
+
115
+ def test_pi_family_stores_do_not_leak_across_platform_keys(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
116
+ monkeypatch.setattr(Path, "home", lambda: tmp_path)
117
+ monkeypatch.delenv("XDG_DATA_HOME", raising=False)
118
+
119
+ _write_session(
120
+ tmp_path / ".omp" / "agent" / "sessions" / "-tmp-omp" / "2026-07-20T00-00-00-000Z_omp-only.jsonl",
121
+ "omp-only",
122
+ "/tmp/omp",
123
+ "oh-my-pi prompt",
124
+ )
125
+
126
+ senpi_sessions = scanners.scan(frozenset({"senpi"}), (), 4)
127
+ omp_sessions = scanners.scan(frozenset({"omp"}), (), 4)
128
+
129
+ assert senpi_sessions == []
130
+ assert [(item.platform, item.id) for item in omp_sessions] == [("oh-my-pi", "omp-only")]
@@ -1,12 +1,133 @@
1
1
  ---
2
2
  name: debugging
3
- description: Use on demand for real runtime failures, flaky tests and DAP-assisted investigation; this is not one of the seven automatically injected core workflow skills.
3
+ description: "MUST USE for any real runtime debugging across ANY language or binary β€” crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, flaky tests, intermittent failures, passes in isolation, different test fails, order-dependent behavior, CI-only failures, reverse engineering. Runs a hypothesis-driven loop: form β‰₯3 hypotheses, investigate in parallel, after 2 failed evidence rounds allow one hard-reasoning escalation only when the task is genuinely difficult, confirm root cause, capture a failing reproduction before the fix and verify the same case after, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` β€” READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'tsx debug', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'attach the debugger', 'debug it', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'reverse engineering', 'playwright', 'flaky test', 'intermittent failure', 'passes in isolation', 'different test fails', 'order-dependent', 'CI-only failure'."
4
4
  ---
5
5
 
6
+ ## DSH resource and authority contract
7
+
8
+ This is a full OCMM source adaptation for DSH 0.2.0-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
+
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
+ - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API.
12
+ - Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Dispatch only through the actual role-specific native subagent tool in the current catalog, within the caller's effective policy, depth and authority. No generated file, metadata row or template proves callability. A missing permitted role is a blocker for a required formal stage, not permission to invent it or bypass planning.
13
+ - Templates describe assignment content, not a callable argument schema. Native continuation, background, message/interrupt and result handling are used only when actually exposed and supported; do not send task_id, subagent_type or guessed timeout fields. Otherwise perform permitted direct work or return the dependency to the stage owner.
14
+ - Use a concise response or an authorized project plan for tracking when no native tracking tool is exposed. Compression is unavailable unless a real tool is exposed; do not simulate it. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
15
+ - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
16
+ - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
17
+
6
18
  # Debugging
7
19
 
8
- Investigate the observed runtime behavior in the actual DSH environment. Form several plausible hypotheses, collect distinguishing evidence, and capture a failing case before applying a minimal fix. Verify that same case afterward and exercise the real affected surface. Clean up only task-owned artifacts after inspecting exact targets.
20
+ You are a hypothesis-driven debugger. Two disciplines apply regardless of language, runtime, or whether you have source:
21
+
22
+ 1. **Runtime truth beats code reading.** Every claim about why the bug happens must come from observed state β€” never from a plausible story spun from reading code.
23
+ 2. **Leave no trace.** Debugging creates artifacts. Every artifact is journaled and removed before you call the task done.
24
+
25
+ The rest of this file is a map. **The knowledge is in `references/`.** This file cannot teach you how to debug β€” it can only tell you which reference will, for your exact situation.
26
+
27
+ ---
28
+
29
+ # 🚨 READ THE REFERENCES. THIS IS NOT OPTIONAL.
30
+
31
+ > **This skill is intentionally small.** Ninety percent of what you need to know lives in `references/`. If you skim this file and start working without opening the references, you will reattach a debugger the wrong way, miss a silent-failure pattern you've never seen before, waste an hour on a source-map gotcha, or invent a worse version of a tool that already solves your problem.
32
+ >
33
+ > **Every reference below is mandatory when its scenario applies.** "I know this language" is not an exemption. The references exist because every runtime and every specialist tool has at least one gotcha that silently wastes hours, and you will not know which gotcha until you read the file.
34
+ >
35
+ > **The gate rule**: before you run a command from a given reference's domain, you must have read that reference in this session. Re-reading across sessions is cheap. Guessing is expensive.
36
+
37
+ ---
38
+
39
+ ## Runtime Setup β€” MANDATORY READING BEFORE ATTACHING
40
+
41
+ The methodology is language-agnostic. The commands to launch, attach, breakpoint, and inspect are not. **Open the matching reference before Phase 0. Not during. Not after.**
42
+
43
+ | Your runtime is… | Open this before attaching anything | Non-negotiable because… |
44
+ |---|---|---|
45
+ | Python (CPython, pytest, asyncio, Django, FastAPI) | πŸ“– **[references/runtimes/python.md](references/runtimes/python.md)** | pdb vs ipdb vs debugpy vs pytest --pdb all have different attach semantics. Async code needs special breakpoint handling. Wrappers like `poetry run` swallow flags. |
46
+ | Node.js / tsx / ts-node / Bun / Deno (running source) | πŸ“– **[references/runtimes/node.md](references/runtimes/node.md)** | `tsx` + `node inspect` CLI has a **silent source-map failure** β€” breakpoints by line number do not fire. You will not notice unless you read this first. |
47
+ | Rust (cargo, tokio, panics) | πŸ“– **[references/runtimes/rust.md](references/runtimes/rust.md)** | Release builds strip symbols. Tokio tasks need `tokio-console`. The borrow checker makes `dbg!` the faster tool most of the time. |
48
+ | Go (goroutines, dlv, pprof, race) | πŸ“– **[references/runtimes/go.md](references/runtimes/go.md)** | Goroutine leaks and recovered panics are silent by default. `dlv` has a specific port convention. `go test -race` is the first thing to run, not the last. |
49
+ | Native binary / stripped C/C++ / no source | πŸ“– **[references/runtimes/native-binary.md](references/runtimes/native-binary.md)** | The workflow (triage β†’ dynamic β†’ static β†’ scripted repro) is counterintuitive if you've never done it. `strings -n 8` silently drops short interpolations like `${x}` β€” read bytes directly for any extraction that matters. macOS adds SIP / Mach-O / lldb specifics that don't apply on Linux. |
50
+ | **Bundled-app binary** (Bun SEA, Node SEA, Deno compile, pkg, nexe, Electron, Tauri, PyInstaller) | πŸ“– **[references/runtimes/bundled-js-binary.md](references/runtimes/bundled-js-binary.md)** | These look like Mach-O / ELF but their *high-level* source is recoverable with the right per-bundler tool β€” Ghidra is overkill. Source-format reality varies: Bun/pkg/nexe/Electron-asar are usually plaintext; Node SEA with code-cache, PyInstaller `.pyc`, and Deno eszip need extra tooling; Tauri's Rust core still needs native-binary.md. Workflow: identify bundler β†’ locate bundle β†’ extract with the bundler-specific tool β†’ grep. |
51
+
52
+ **If you cannot honestly say you just opened the reference for your runtime, open it now.**
53
+
54
+ > 🚨 **Native binary vs bundled binary β€” check before committing**: `file ./target` calls them both Mach-O / ELF. The 30-second discriminator is `du -h ./target` (50 MB+ suspect bundled) plus `strings -n 12 ./target | rg -iE 'bun|node_modules|webpack|esbuild|deno|pkg/lib|electron|pyinstaller|nexe|NODE_SEA_FUSE|tauri'`. If hits β†’ bundled-js-binary.md. If clean β†’ native-binary.md.
55
+
56
+ ---
57
+
58
+ ## Specialist Tools β€” ACTIVELY USE WHEN THE SCENARIO FITS
59
+
60
+ These are not "optional extras". They are the correct tool in their domain, and anything else is slower and less reliable. **If the bug fits the domain, you MUST use the tool. Read the reference first to know how.**
61
+
62
+ | Tool | Use when | Reference |
63
+ |---|---|---|
64
+ | **Playwright CLI** | Any browser-served web UI bug. Any flow that requires clicking/typing/navigating. Any "works locally, breaks in prod" where the browser or viewport is the variable. **For Phase 8 QA of any browser product, you MUST drive a real browser via Playwright β€” not curl, not imagination.** | πŸ“– **[references/tools/playwright-cli.md](references/tools/playwright-cli.md)** |
65
+ | **Ghidra** | Any binary without trustworthy source β€” third-party closed libs, malware, vendored binaries whose behavior contradicts docs, CTF, firmware. **Use Ghidra's decompiler before `strings`/`objdump` guessing. It turns machine code into readable C.** | πŸ“– **[references/tools/ghidra.md](references/tools/ghidra.md)** |
66
+ | **pwndbg** | Any native binary debugging session. It is GDB with the useful views (registers, stack, disasm, heap) always visible. **If you'd reach for plain `gdb`, reach for `pwndbg` instead β€” it is strictly a superset.** | πŸ“– **[references/tools/pwndbg.md](references/tools/pwndbg.md)** |
67
+ | **pwntools** | Any time you need a reproducible interaction with a binary or network service β€” crafted payloads, exploit automation, fuzz harness, CTF scripting. | πŸ“– **[references/tools/pwntools.md](references/tools/pwntools.md)** |
68
+ | **DAP client (`dap.mjs`)** | Any time you would drive a source debugger through a PTY and screen-scrape its text. Debuggers that speak the Debug Adapter Protocol (DAP) expose structured stops, variables, and errors; this bundled zero-dependency client keeps that output bounded and monitorable. **Prefer it over scraping debugger text whenever an already-available adapter speaks DAP.** | πŸ“– **[references/tools/dap.md](references/tools/dap.md)** |
69
+
70
+ **Failing to use these tools in their domain is a process failure, not a stylistic choice.** If the bug is in a browser and you did Phase 8 without Playwright, you are doing it wrong. If the bug is in a stripped binary and you read hex with `xxd`, you are doing it wrong. The references tell you how. Read them.
71
+
72
+ Browser tools always run in a **run-owned temporary empty browser profile or isolated empty context**. **Do not sign in to any browser, vendor, site, or account, including disposable or test accounts.** **Do not import, copy, reuse, or sync user browser settings, extensions, cookies, authentication, or storage state.** If the required flow is authentication-gated, stop at that boundary and **report authentication as a verification limitation**; never attach to a live browser or weaken the boundary to complete QA.
73
+
74
+ ---
75
+
76
+ ## The Phase Loop β€” READ THE REFERENCE FOR THE PHASE YOU ARE ENTERING
77
+
78
+ Each phase has exactly one reference. Read it as you enter the phase β€” not in advance, not from memory. The references are self-contained and short.
79
+
80
+ | # | Phase | πŸ“– Open this when entering |
81
+ |---|---|---|
82
+ | 0 | **Environment assessment** β€” know the runtime, ports, symbols, env vars, watchers before attaching | [references/methodology/00-setup.md](references/methodology/00-setup.md) |
83
+ | 1 | **Journal setup** β€” single `.debug-journal.md` tracks every artifact for guaranteed revert | [references/methodology/00-setup.md](references/methodology/00-setup.md) |
84
+ | 2 | **Hypothesis formation** β€” minimum three, across orthogonal axes, each with distinguishing evidence | [references/methodology/02-investigate.md](references/methodology/02-investigate.md) |
85
+ | 3 | **Parallel investigation** β€” independent direct probes or permitted callable native roles | [references/methodology/02-investigate.md](references/methodology/02-investigate.md) |
86
+ | 4 | **Hard-reasoning escalation** β€” only after 2 consecutive failed evidence rounds make the task genuinely difficult; consult one hard-reasoning agent with orthogonal framings | [references/methodology/04-hard-reasoning-escalation.md](references/methodology/04-hard-reasoning-escalation.md) |
87
+ | 5 | **User decision escalation** β€” only when evidence exhausted and the call has policy implications | [references/methodology/05-escalate.md](references/methodology/05-escalate.md) |
88
+ | 6 | **Root cause confirmation** β€” confirmed only when toggling the suspected cause toggles the bug | [references/methodology/06-fix.md](references/methodology/06-fix.md) |
89
+ | 7 | **Reproduction-first fix** β€” capture failure first, minimal change, same case passes, no scope expansion | [references/methodology/06-fix.md](references/methodology/06-fix.md) |
90
+ | 8 | **Manual QA** β€” actually use the system (tmux for CLI, Playwright for browser, real curl for API, real repro for binary) | [references/methodology/08-qa.md](references/methodology/08-qa.md) |
91
+ | 9 | **Cleanup** β€” walk the journal, revert every artifact, verify `git diff` shows only the fix and any retained reproduction evidence | [references/methodology/09-cleanup.md](references/methodology/09-cleanup.md) |
92
+ | 10 | **Final verification** β€” four evidence gates before declaring done | [references/methodology/09-cleanup.md](references/methodology/09-cleanup.md) |
93
+
94
+ **Phase references are short by design.** Reading one takes a minute. Skipping one costs an hour.
95
+
96
+ ### Cross-cutting methodology references
97
+
98
+ These are not phases β€” read them when the situation calls for them:
99
+
100
+ | Situation | Reference |
101
+ |---|---|
102
+ | A test is flaky/intermittent, a different test fails, it passes in isolation, it is order-dependent, or it fails only in CI | πŸ“– **[references/methodology/03-flaky-triage.md](references/methodology/03-flaky-triage.md)** β€” establish the three-run signature and classify shared state before Phase 2. |
103
+ | You cannot run the actual operation (paid API, blocked network, missing hardware) but still need runtime evidence | πŸ“– **[references/methodology/partial-runtime-evidence.md](references/methodology/partial-runtime-evidence.md)** |
104
+ | You're about to declare an extraction / audit / reverse-engineering task done and want a skeptical pass | πŸ“– **[references/methodology/partial-runtime-evidence.md#independent-verification-for-non-debug-artifacts](references/methodology/partial-runtime-evidence.md#independent-verification-for-non-debug-artifacts)** |
105
+
106
+ ---
107
+
108
+ ## Non-Negotiable Safety Invariants
109
+
110
+ <safety>
111
+ 1. **Runtime state is the only source of truth.** A hypothesis without an observed value is a guess. Do not fix guesses.
112
+ 2. **Every debug artifact is journaled before it is created.** Journal-then-modify, not modify-then-remember-maybe.
113
+ 3. **Never ship a fix without its reproduction.** The failing case captured BEFORE the fix, the same case passing after it, or the fix is unverified. Where the repository keeps tests for this behavior, that case is the regression test.
114
+ 4. **Never declare done on type-check/compile alone.** Types catch declaration bugs. Only running the actual user scenario catches the actual user bug.
115
+ 5. **Never ask the user a question that runtime evidence can already answer.** Escalation is for genuine ambiguity.
116
+ 6. **Never silently swallow errors while debugging.** If the system swallows errors, that is often the bug itself. Make them loud temporarily; restore at cleanup.
117
+ 7. **Never `git commit` from inside this skill.** Commits belong to `/git-master` after the user confirms the fix.
118
+ 8. **Never attach without having read the runtime reference.** The gate rule.
119
+ </safety>
120
+
121
+ ---
122
+
123
+ ## What to Do Right Now
9
124
 
10
- Read the relevant runtime and methodology guides in `references/` as needed. For a DAP-capable debugger, read `references/tools/dap.md` and use the bundled zero-dependency `references/scripts/dap.mjs` through a currently available shell tool; do not invent a DSH debugger API or install an adapter without authorization. Keep debugger target directories and credentials isolated. The DAP client does not grant permissions beyond the current DSH sandbox, shell and user approval policy.
125
+ 1. Read the user's bug description.
126
+ 2. Identify the runtime.
127
+ 3. If the report is a flaky test, intermittent failure, passes in isolation, different test fails, order-dependent, or CI-only failure, **open `references/methodology/03-flaky-triage.md` before forming hypotheses.**
128
+ 4. **Open `references/runtimes/<runtime>.md`.** Read it.
129
+ 5. Identify which specialist tools apply. **Open each matching `references/tools/*.md`.** Read them.
130
+ 6. Open `references/methodology/00-setup.md` and start Phase 0.
131
+ 7. Follow the phase loop. Read each methodology reference as you enter the phase.
11
132
 
12
- The coordinator chooses any genuinely useful independent investigation through currently callable role-specific DSH tools. Do not assume OpenCode/Codex tool names, session errors or retry ownership. Never stage, commit, push, tag, rebase or release as an incidental debugging step.
133
+ **The references are the skill. This file is an index.**
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Logging β€” Cross-Language Methodology
2
4
 
3
5
  Every log line has exactly two legitimate readers: the operator reconstructing an incident and the developer reproducing a bug. A line that serves neither is cost β€” storage, noise, and attention stolen from the lines that matter. Everything below derives from that.
@@ -1,3 +1,5 @@
1
+ > DSH adapter boundary: resolve this resource from the loaded skill's directory resourceBase. Examples are not authority: installation/download/login, private state, Git writes and destructive operations need exact explicit authorization. Use only tools and native roles actually exposed in the current catalog and allowed by the caller; otherwise use a real direct fallback or report the limitation. Translate shell examples to the active runtime.
2
+
1
3
  # Phase 0 + 1 β€” Environment Assessment & Journal Setup
2
4
 
3
5
  Before a debugger touches anything, you need a map of what's running and a ledger of what you'll touch. Skipping either phase is how debug sessions turn into "why is my repo dirty a week later" sessions.