@istmx/skills 1.2.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/README.md +134 -40
  2. package/RELEASE_v2.1.0.md +69 -0
  3. package/bin/cli.js +95 -91
  4. package/context/conversation_transcript.md +768 -0
  5. package/context/progress.md +121 -0
  6. package/istm/SKILL.md +20 -11
  7. package/istm-animate/SKILL.md +46 -33
  8. package/istm-animate/core/motion-principles/SKILL.md +284 -0
  9. package/istm-animate/core/motion-principles/references/designers.md +127 -0
  10. package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
  11. package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
  12. package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
  13. package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
  14. package/istm-animate/frameworks/css-native/SKILL.md +319 -0
  15. package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
  16. package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
  17. package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
  18. package/istm-animate/frameworks/gsap/SKILL.md +188 -0
  19. package/istm-animate/frameworks/gsap/references/core.md +218 -0
  20. package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
  21. package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
  22. package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
  23. package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
  24. package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
  25. package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
  26. package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
  27. package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
  28. package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
  29. package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
  30. package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
  31. package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
  32. package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
  33. package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
  34. package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
  35. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
  36. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
  37. package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
  38. package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
  39. package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
  40. package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
  41. package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
  42. package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
  43. package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
  44. package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
  45. package/istm-animate/references/animate.md +199 -0
  46. package/istm-animate/references/audit.md +115 -0
  47. package/istm-animate/references/design-engineering.md +674 -0
  48. package/istm-animate/references/improve.md +101 -0
  49. package/istm-animate/references/opportunities.md +132 -0
  50. package/istm-animate/references/plan-template.md +73 -0
  51. package/istm-animate/references/recipes.md +324 -0
  52. package/istm-animate/references/review.md +112 -0
  53. package/istm-animate/references/standards.md +187 -0
  54. package/istm-animate/references/vocabulary.md +173 -0
  55. package/istm-architecture/SKILL.md +70 -14
  56. package/istm-architecture/templates/agents.md +21 -2
  57. package/istm-awwward-designer/SKILL.md +53 -17
  58. package/istm-design/SKILL.md +49 -63
  59. package/istm-design/anti-laziness/architectural-patterns.md +55 -0
  60. package/istm-design/anti-laziness/parameter-tuning.md +44 -0
  61. package/istm-design/anti-laziness/prompt-engineering.md +52 -0
  62. package/istm-design/anti-laziness/reference-prompts.md +79 -0
  63. package/istm-design/archetypes/brandkit/SKILL.md +798 -0
  64. package/istm-design/archetypes/brutalist/SKILL.md +92 -0
  65. package/istm-design/archetypes/minimalist/SKILL.md +85 -0
  66. package/istm-design/archetypes/soft/SKILL.md +98 -0
  67. package/istm-design/core/design-audit/SKILL.md +248 -0
  68. package/istm-design/core/desktop-principles/SKILL.md +363 -0
  69. package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
  70. package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
  71. package/istm-design/core/mobile-principles/SKILL.md +289 -0
  72. package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
  73. package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
  74. package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
  75. package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
  76. package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
  77. package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
  78. package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
  79. package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  80. package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
  81. package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
  82. package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
  83. package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
  84. package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
  85. package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  86. package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  87. package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  88. package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  89. package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  90. package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  91. package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  92. package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  93. package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  94. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
  95. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  96. package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  97. package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
  98. package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  99. package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  100. package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  101. package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  102. package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  103. package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  104. package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  105. package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  106. package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  107. package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
  108. package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
  109. package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  110. package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  111. package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
  112. package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
  113. package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
  114. package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
  115. package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
  116. package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
  117. package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
  118. package/istm-design/image-to-code/SKILL.md +1228 -0
  119. package/istm-design/imagegen/SKILL.md +987 -0
  120. package/istm-design/presets/airbnb/DESIGN.md +545 -0
  121. package/istm-design/presets/airbnb/README.md +5 -0
  122. package/istm-design/presets/airtable/DESIGN.md +554 -0
  123. package/istm-design/presets/airtable/README.md +5 -0
  124. package/istm-design/presets/apple/DESIGN.md +562 -0
  125. package/istm-design/presets/apple/README.md +5 -0
  126. package/istm-design/presets/binance/DESIGN.md +634 -0
  127. package/istm-design/presets/binance/README.md +5 -0
  128. package/istm-design/presets/bmw/DESIGN.md +544 -0
  129. package/istm-design/presets/bmw/README.md +5 -0
  130. package/istm-design/presets/bmw-m/DESIGN.md +503 -0
  131. package/istm-design/presets/bmw-m/README.md +5 -0
  132. package/istm-design/presets/bugatti/DESIGN.md +454 -0
  133. package/istm-design/presets/bugatti/README.md +5 -0
  134. package/istm-design/presets/cal/DESIGN.md +542 -0
  135. package/istm-design/presets/cal/README.md +5 -0
  136. package/istm-design/presets/catalog.md +127 -0
  137. package/istm-design/presets/claude/DESIGN.md +589 -0
  138. package/istm-design/presets/claude/README.md +5 -0
  139. package/istm-design/presets/clay/DESIGN.md +541 -0
  140. package/istm-design/presets/clay/README.md +5 -0
  141. package/istm-design/presets/clickhouse/DESIGN.md +544 -0
  142. package/istm-design/presets/clickhouse/README.md +5 -0
  143. package/istm-design/presets/cohere/DESIGN.md +451 -0
  144. package/istm-design/presets/cohere/README.md +5 -0
  145. package/istm-design/presets/coinbase/DESIGN.md +570 -0
  146. package/istm-design/presets/coinbase/README.md +5 -0
  147. package/istm-design/presets/composio/DESIGN.md +506 -0
  148. package/istm-design/presets/composio/README.md +5 -0
  149. package/istm-design/presets/cursor/DESIGN.md +537 -0
  150. package/istm-design/presets/cursor/README.md +5 -0
  151. package/istm-design/presets/dell-1996/DESIGN.md +632 -0
  152. package/istm-design/presets/dell-1996/README.md +5 -0
  153. package/istm-design/presets/elevenlabs/DESIGN.md +504 -0
  154. package/istm-design/presets/elevenlabs/README.md +5 -0
  155. package/istm-design/presets/expo/DESIGN.md +526 -0
  156. package/istm-design/presets/expo/README.md +5 -0
  157. package/istm-design/presets/ferrari/DESIGN.md +531 -0
  158. package/istm-design/presets/ferrari/README.md +5 -0
  159. package/istm-design/presets/figma/DESIGN.md +578 -0
  160. package/istm-design/presets/figma/README.md +5 -0
  161. package/istm-design/presets/framer/DESIGN.md +544 -0
  162. package/istm-design/presets/framer/README.md +5 -0
  163. package/istm-design/presets/hashicorp/DESIGN.md +575 -0
  164. package/istm-design/presets/hashicorp/README.md +5 -0
  165. package/istm-design/presets/hp/DESIGN.md +670 -0
  166. package/istm-design/presets/hp/README.md +5 -0
  167. package/istm-design/presets/ibm/DESIGN.md +550 -0
  168. package/istm-design/presets/ibm/README.md +5 -0
  169. package/istm-design/presets/intercom/DESIGN.md +546 -0
  170. package/istm-design/presets/intercom/README.md +5 -0
  171. package/istm-design/presets/kraken/DESIGN.md +125 -0
  172. package/istm-design/presets/kraken/README.md +5 -0
  173. package/istm-design/presets/lamborghini/DESIGN.md +288 -0
  174. package/istm-design/presets/lamborghini/README.md +5 -0
  175. package/istm-design/presets/linear/DESIGN.md +548 -0
  176. package/istm-design/presets/linear/README.md +5 -0
  177. package/istm-design/presets/lovable/DESIGN.md +298 -0
  178. package/istm-design/presets/lovable/README.md +5 -0
  179. package/istm-design/presets/mastercard/DESIGN.md +365 -0
  180. package/istm-design/presets/mastercard/README.md +5 -0
  181. package/istm-design/presets/meta/DESIGN.md +683 -0
  182. package/istm-design/presets/meta/README.md +5 -0
  183. package/istm-design/presets/minimax/DESIGN.md +746 -0
  184. package/istm-design/presets/minimax/README.md +5 -0
  185. package/istm-design/presets/mintlify/DESIGN.md +852 -0
  186. package/istm-design/presets/mintlify/README.md +5 -0
  187. package/istm-design/presets/miro/DESIGN.md +825 -0
  188. package/istm-design/presets/miro/README.md +5 -0
  189. package/istm-design/presets/mistral/DESIGN.md +773 -0
  190. package/istm-design/presets/mistral/README.md +5 -0
  191. package/istm-design/presets/mongodb/DESIGN.md +767 -0
  192. package/istm-design/presets/mongodb/README.md +5 -0
  193. package/istm-design/presets/nike/DESIGN.md +575 -0
  194. package/istm-design/presets/nike/README.md +5 -0
  195. package/istm-design/presets/nintendo-2001/DESIGN.md +649 -0
  196. package/istm-design/presets/nintendo-2001/README.md +5 -0
  197. package/istm-design/presets/notion/DESIGN.md +821 -0
  198. package/istm-design/presets/notion/README.md +5 -0
  199. package/istm-design/presets/nvidia/DESIGN.md +640 -0
  200. package/istm-design/presets/nvidia/README.md +5 -0
  201. package/istm-design/presets/ollama/DESIGN.md +539 -0
  202. package/istm-design/presets/ollama/README.md +5 -0
  203. package/istm-design/presets/opencode/DESIGN.md +521 -0
  204. package/istm-design/presets/opencode/README.md +5 -0
  205. package/istm-design/presets/pinterest/DESIGN.md +597 -0
  206. package/istm-design/presets/pinterest/README.md +5 -0
  207. package/istm-design/presets/playstation/DESIGN.md +661 -0
  208. package/istm-design/presets/playstation/README.md +5 -0
  209. package/istm-design/presets/posthog/DESIGN.md +690 -0
  210. package/istm-design/presets/posthog/README.md +5 -0
  211. package/istm-design/presets/raycast/DESIGN.md +669 -0
  212. package/istm-design/presets/raycast/README.md +5 -0
  213. package/istm-design/presets/renault/DESIGN.md +589 -0
  214. package/istm-design/presets/renault/README.md +5 -0
  215. package/istm-design/presets/replicate/DESIGN.md +616 -0
  216. package/istm-design/presets/replicate/README.md +5 -0
  217. package/istm-design/presets/resend/DESIGN.md +585 -0
  218. package/istm-design/presets/resend/README.md +5 -0
  219. package/istm-design/presets/revolut/DESIGN.md +636 -0
  220. package/istm-design/presets/revolut/README.md +5 -0
  221. package/istm-design/presets/runwayml/DESIGN.md +244 -0
  222. package/istm-design/presets/runwayml/README.md +5 -0
  223. package/istm-design/presets/sanity/DESIGN.md +357 -0
  224. package/istm-design/presets/sanity/README.md +5 -0
  225. package/istm-design/presets/sentry/DESIGN.md +551 -0
  226. package/istm-design/presets/sentry/README.md +5 -0
  227. package/istm-design/presets/shopify/DESIGN.md +516 -0
  228. package/istm-design/presets/shopify/README.md +5 -0
  229. package/istm-design/presets/slack/DESIGN.md +482 -0
  230. package/istm-design/presets/spacex/DESIGN.md +363 -0
  231. package/istm-design/presets/spacex/README.md +5 -0
  232. package/istm-design/presets/spotify/DESIGN.md +246 -0
  233. package/istm-design/presets/spotify/README.md +5 -0
  234. package/istm-design/presets/starbucks/DESIGN.md +580 -0
  235. package/istm-design/presets/starbucks/README.md +5 -0
  236. package/istm-design/presets/stripe/DESIGN.md +487 -0
  237. package/istm-design/presets/stripe/README.md +5 -0
  238. package/istm-design/presets/supabase/DESIGN.md +462 -0
  239. package/istm-design/presets/supabase/README.md +5 -0
  240. package/istm-design/presets/superhuman/DESIGN.md +448 -0
  241. package/istm-design/presets/superhuman/README.md +5 -0
  242. package/istm-design/presets/tesla/DESIGN.md +286 -0
  243. package/istm-design/presets/tesla/README.md +5 -0
  244. package/istm-design/presets/theverge/DESIGN.md +339 -0
  245. package/istm-design/presets/theverge/README.md +5 -0
  246. package/istm-design/presets/together/DESIGN.md +633 -0
  247. package/istm-design/presets/together/README.md +5 -0
  248. package/istm-design/presets/uber/DESIGN.md +636 -0
  249. package/istm-design/presets/uber/README.md +5 -0
  250. package/istm-design/presets/vercel/DESIGN.md +736 -0
  251. package/istm-design/presets/vercel/README.md +5 -0
  252. package/istm-design/presets/vodafone/DESIGN.md +538 -0
  253. package/istm-design/presets/vodafone/README.md +5 -0
  254. package/istm-design/presets/voltagent/DESIGN.md +521 -0
  255. package/istm-design/presets/voltagent/README.md +5 -0
  256. package/istm-design/presets/warp/DESIGN.md +526 -0
  257. package/istm-design/presets/warp/README.md +5 -0
  258. package/istm-design/presets/webflow/DESIGN.md +588 -0
  259. package/istm-design/presets/webflow/README.md +5 -0
  260. package/istm-design/presets/wired/DESIGN.md +497 -0
  261. package/istm-design/presets/wired/README.md +5 -0
  262. package/istm-design/presets/wise/DESIGN.md +544 -0
  263. package/istm-design/presets/wise/README.md +5 -0
  264. package/istm-design/presets/xai/DESIGN.md +465 -0
  265. package/istm-design/presets/xai/README.md +5 -0
  266. package/istm-design/presets/zapier/DESIGN.md +537 -0
  267. package/istm-design/presets/zapier/README.md +5 -0
  268. package/istm-design/references/apple-design.md +282 -0
  269. package/istm-design/references/generation-guide.md +209 -0
  270. package/istm-design/references/pick-ui-library.md +77 -0
  271. package/istm-design/references/picker.md +197 -0
  272. package/istm-design/references/prototype.md +90 -0
  273. package/istm-design/references/schema.md +366 -0
  274. package/istm-design/semantic-design/DESIGN.md +121 -0
  275. package/istm-design/semantic-design/SKILL.md +184 -0
  276. package/istm-system-design/SKILL.md +12 -5
  277. package/istm-workflow/istm-autoplan/SKILL.md +1905 -0
  278. package/istm-workflow/istm-autoplan/SKILL.md.tmpl +923 -0
  279. package/istm-workflow/istm-craft/SKILL.md +12 -6
  280. package/istm-workflow/istm-cso/ACKNOWLEDGEMENTS.md +14 -0
  281. package/istm-workflow/istm-cso/SKILL.md +1313 -0
  282. package/istm-workflow/istm-cso/SKILL.md.tmpl +407 -0
  283. package/istm-workflow/istm-cso/sections/audit-phases.md +253 -0
  284. package/istm-workflow/istm-cso/sections/audit-phases.md.tmpl +251 -0
  285. package/istm-workflow/istm-cso/sections/manifest.json +14 -0
  286. package/istm-workflow/istm-debt/SKILL.md +44 -0
  287. package/istm-workflow/istm-debug/SKILL.md +12 -3
  288. package/istm-workflow/istm-design-review/SKILL.md +2053 -0
  289. package/istm-workflow/istm-design-review/SKILL.md.tmpl +312 -0
  290. package/istm-workflow/istm-develop/SKILL.md +10 -4
  291. package/istm-workflow/istm-eng-review/SKILL.md +1112 -0
  292. package/istm-workflow/istm-eng-review/SKILL.md.tmpl +163 -0
  293. package/istm-workflow/istm-eng-review/sections/manifest.json +14 -0
  294. package/istm-workflow/istm-eng-review/sections/review-sections.md +942 -0
  295. package/istm-workflow/istm-eng-review/sections/review-sections.md.tmpl +225 -0
  296. package/istm-workflow/istm-gain/SKILL.md +50 -0
  297. package/istm-workflow/istm-health/SKILL.md +1104 -0
  298. package/istm-workflow/istm-health/SKILL.md.tmpl +320 -0
  299. package/istm-workflow/istm-qa/BROWSER.md +1468 -0
  300. package/istm-workflow/istm-qa/SKILL.md +1743 -0
  301. package/istm-workflow/istm-qa/SKILL.md.tmpl +354 -0
  302. package/istm-workflow/istm-qa/references/issue-taxonomy.md +85 -0
  303. package/istm-workflow/istm-qa/templates/qa-report-template.md +126 -0
  304. package/istm-workflow/istm-release/SKILL.md +989 -0
  305. package/istm-workflow/istm-release/SKILL.md.tmpl +160 -0
  306. package/istm-workflow/istm-release/sections/manifest.json +14 -0
  307. package/istm-workflow/istm-release/sections/release-body.md +547 -0
  308. package/istm-workflow/istm-release/sections/release-body.md.tmpl +420 -0
  309. package/istm-workflow/istm-review/SKILL.md +57 -0
  310. package/istm-workflow/istm-ship/SKILL.md +1504 -0
  311. package/istm-workflow/istm-ship/SKILL.md.tmpl +582 -0
  312. package/istm-workflow/istm-ship/sections/adversarial.md +218 -0
  313. package/istm-workflow/istm-ship/sections/adversarial.md.tmpl +19 -0
  314. package/istm-workflow/istm-ship/sections/apple-release.md +58 -0
  315. package/istm-workflow/istm-ship/sections/apple-release.md.tmpl +56 -0
  316. package/istm-workflow/istm-ship/sections/changelog.md +45 -0
  317. package/istm-workflow/istm-ship/sections/changelog.md.tmpl +3 -0
  318. package/istm-workflow/istm-ship/sections/greptile.md +51 -0
  319. package/istm-workflow/istm-ship/sections/greptile.md.tmpl +49 -0
  320. package/istm-workflow/istm-ship/sections/manifest.json +62 -0
  321. package/istm-workflow/istm-ship/sections/plan-completion.md +329 -0
  322. package/istm-workflow/istm-ship/sections/plan-completion.md.tmpl +31 -0
  323. package/istm-workflow/istm-ship/sections/pr-body.md +209 -0
  324. package/istm-workflow/istm-ship/sections/pr-body.md.tmpl +207 -0
  325. package/istm-workflow/istm-ship/sections/review-army.md +406 -0
  326. package/istm-workflow/istm-ship/sections/review-army.md.tmpl +56 -0
  327. package/istm-workflow/istm-ship/sections/test-coverage.md +264 -0
  328. package/istm-workflow/istm-ship/sections/test-coverage.md.tmpl +23 -0
  329. package/istm-workflow/istm-ship/sections/tests.md +403 -0
  330. package/istm-workflow/istm-ship/sections/tests.md.tmpl +116 -0
  331. package/package.json +6 -3
  332. package/RELEASE_v1.2.0.md +0 -40
@@ -0,0 +1,403 @@
1
+ <!-- AUTO-GENERATED from tests.md.tmpl — do not edit directly -->
2
+ <!-- Regenerate: bun run gen:skill-docs -->
3
+ ## Step 4: Test Framework Bootstrap
4
+
5
+ ## Test Framework Bootstrap
6
+
7
+ **Read the project's CLAUDE.md (and TESTING.md if present) FIRST.** If it documents a test command, the project already told you: no detection, no bootstrap. Skip the rest of bootstrap and use that command in Step 5.
8
+
9
+ **Otherwise gather markers. Every marker below is EVIDENCE for the question you ask — never a command to run blind.** A marker tells you which ecosystem you're in and which command to OFFER. It does not tell you the command works. Do not execute a candidate test command to "check" it: a probe on a project that never had that runner fails loudly and teaches you nothing, and installing a second framework over a working one is worse.
10
+
11
+ ```bash
12
+ setopt +o nomatch 2>/dev/null || true # zsh compat
13
+ # Definitive ecosystem markers (presence = ecosystem, NOT a command to run)
14
+ [ -f manage.py ] && echo "RUNTIME:python FRAMEWORK:django MARKER:manage.py"
15
+ { [ -f pyproject.toml ] || [ -f pytest.ini ] || [ -f tox.ini ] || [ -f setup.cfg ] || [ -f requirements.txt ]; } && echo "RUNTIME:python"
16
+ [ -f Gemfile ] || [ -f Rakefile ] || [ -f .rspec ] && echo "RUNTIME:ruby"
17
+ [ -f package.json ] && echo "RUNTIME:node"
18
+ [ -f go.mod ] && echo "RUNTIME:go"
19
+ [ -f Cargo.toml ] && echo "RUNTIME:rust"
20
+ [ -f composer.json ] && echo "RUNTIME:php"
21
+ [ -f mix.exs ] && echo "RUNTIME:elixir"
22
+ [ -f pom.xml ] && echo "RUNTIME:jvm BUILD:maven"
23
+ { [ -f build.gradle ] || [ -f build.gradle.kts ]; } && echo "RUNTIME:jvm BUILD:gradle"
24
+ # Detect sub-frameworks
25
+ [ -f Gemfile ] && grep -q "rails" Gemfile 2>/dev/null && echo "FRAMEWORK:rails"
26
+ [ -f package.json ] && grep -q '"next"' package.json 2>/dev/null && echo "FRAMEWORK:nextjs"
27
+ # Existing test path — config files, declared scripts, AND test FILES.
28
+ # A project with real tests and no config file is the common miss.
29
+ ls jest.config.* vitest.config.* playwright.config.* .rspec pytest.ini tox.ini phpunit.xml* 2>/dev/null
30
+ [ -f package.json ] && grep -q '"test"[[:space:]]*:' package.json && echo "SCRIPT:package.json test"
31
+ [ -f Makefile ] && grep -qE '^(test|check):' Makefile && echo "TARGET:make test"
32
+ [ -f pyproject.toml ] && grep -q "pytest" pyproject.toml && echo "CONFIG:pyproject pytest"
33
+ git ls-files | grep -cE '(^|/)(tests?|spec|__tests__)/|(^|/)tests?\.py$|(^|/)test_[^/]+\.py$|_test\.(go|py|rb|ts|js|exs)$|\.(test|spec)\.[jt]sx?$|_spec\.rb$|Test\.(java|kt)$' | sed 's/^/TESTFILES:/'
34
+ # Rust keeps unit tests inside src/, so file names alone miss them
35
+ [ -f Cargo.toml ] && git grep -lF '#[test]' -- 'src' >/dev/null 2>&1 && echo "TESTS:rust in-source"
36
+ # Check opt-out marker
37
+ [ -f .istm-workflow/no-test-bootstrap ] && echo "BOOTSTRAP_DECLINED"
38
+ ```
39
+
40
+ Map the markers to the command you will OFFER — never to one you run on a guess:
41
+
42
+ | Marker | Ecosystem | Candidate command to offer |
43
+ |--------|-----------|----------------------------|
44
+ | `manage.py` | Django | `python manage.py test` (or `pytest` when pytest-django is in the deps) |
45
+ | `pytest.ini` / `tox.ini` / pytest in `pyproject.toml` / `test_*.py` | Python | `pytest` |
46
+ | `go.mod` (+ any `*_test.go`) | Go | `go test ./...` |
47
+ | `Cargo.toml` | Rust | `cargo test` |
48
+ | `pom.xml` | JVM (Maven) | `mvn test` |
49
+ | `build.gradle` / `build.gradle.kts` | JVM (Gradle) | `./gradlew test` |
50
+ | `Gemfile` / `Rakefile` / `.rspec` | Ruby | `bundle exec rspec`, `bin/rails test`, or `rake test` |
51
+ | `mix.exs` | Elixir | `mix test` |
52
+ | `composer.json` | PHP | `composer test` or `./vendor/bin/phpunit` |
53
+ | `package.json` with a `test` script | Node | that script, run with the package manager the lockfile names |
54
+ | `Makefile` with a `test:` target | any | `make test` |
55
+
56
+ **If ANY existing-test evidence appears** (a config file, a declared test script or make target, a nonzero `TESTFILES:` count, or `TESTS:rust in-source`): the project has tests. **Do NOT bootstrap.** Print "Existing tests detected: {the evidence}." Then get the command the same way Step 5 does — CLAUDE.md/TESTING.md if documented, otherwise AskUserQuestion offering the candidates from the table above plus "Other", and persist the answer to CLAUDE.md's `## Testing` section so it is never asked again. When the ecosystem ships a runner (Django, Go, Rust, Elixir, Maven/Gradle), that runner is the candidate — never install a second framework beside a working one.
57
+ Read 2-3 existing test files to learn conventions (naming, imports, assertion style, setup patterns).
58
+ Store conventions as prose context for use in Phase 8e.5 or Step 7. **Skip the rest of bootstrap.**
59
+
60
+ Absent config files and absent `tests/` directories are NOT evidence of "no tests": Django keeps tests in `<app>/tests.py`, Go in `*_test.go` beside the source, Rust in `#[test]` blocks inside `src/`. A green `python manage.py test` with no `pytest.ini` is a tested project, not a bootstrap candidate.
61
+
62
+ **If BOOTSTRAP_DECLINED** appears: Print "Test bootstrap previously declined — skipping." **Skip the rest of bootstrap.**
63
+
64
+ **If NO ecosystem marker matched:** Use AskUserQuestion:
65
+ "I couldn't detect your project's language. What runtime are you using?"
66
+ Options: A) Node.js/TypeScript B) Ruby/Rails C) Python D) Go E) Rust F) PHP G) Elixir H) This project doesn't need tests.
67
+ If the runtime you need isn't listed, offer "Other" and take the runtime plus the test command as free text.
68
+ If user picks H → write `.istm-workflow/no-test-bootstrap` and continue without tests.
69
+
70
+ **If an ecosystem matched but there is no existing-test evidence at all — bootstrap:**
71
+
72
+ ### B2. Research best practices
73
+
74
+ Use WebSearch to find current best practices for the detected runtime:
75
+ - `"[runtime] best test framework 2025 2026"`
76
+ - `"[framework A] vs [framework B] comparison"`
77
+
78
+ If WebSearch is unavailable, use this built-in knowledge table:
79
+
80
+ | Runtime | Primary recommendation | Alternative |
81
+ |---------|----------------------|-------------|
82
+ | Ruby/Rails | minitest + fixtures + capybara | rspec + factory_bot + shoulda-matchers |
83
+ | Node.js | vitest + @testing-library | jest + @testing-library |
84
+ | Next.js | vitest + @testing-library/react + playwright | jest + cypress |
85
+ | Python | pytest + pytest-cov | unittest |
86
+ | Django | pytest + pytest-django | Django's built-in `manage.py test` (unittest) |
87
+ | Go | stdlib testing + testify | stdlib only |
88
+ | JVM (Maven/Gradle) | JUnit 5 + AssertJ | JUnit 5 only |
89
+ | Rust | cargo test (built-in) + mockall | — |
90
+ | PHP | phpunit + mockery | pest |
91
+ | Elixir | ExUnit (built-in) + ex_machina | — |
92
+
93
+ ### B3. Framework selection
94
+
95
+ Use AskUserQuestion:
96
+ "I detected this is a [Runtime/Framework] project with no test framework. I researched current best practices. Here are the options:
97
+ A) [Primary] — [rationale]. Includes: [packages]. Supports: unit, integration, smoke, e2e
98
+ B) [Alternative] — [rationale]. Includes: [packages]
99
+ C) Skip — don't set up testing right now
100
+ RECOMMENDATION: Choose A because [reason based on project context]"
101
+
102
+ If user picks C → write `.istm-workflow/no-test-bootstrap`. Tell user: "If you change your mind later, delete `.istm-workflow/no-test-bootstrap` and re-run." Continue without tests.
103
+
104
+ If multiple runtimes detected (monorepo) → ask which runtime to set up first, with option to do both sequentially.
105
+
106
+ ### B4. Install and configure
107
+
108
+ 1. Install the chosen packages (npm/bun/gem/pip/etc.)
109
+ 2. Create minimal config file
110
+ 3. Create directory structure (test/, spec/, etc.)
111
+ 4. Create one example test matching the project's code to verify setup works
112
+
113
+ If package installation fails → debug once. If still failing → revert with `git checkout -- package.json package-lock.json` (or equivalent for the runtime). Warn user and continue without tests.
114
+
115
+ ### B4.5. First real tests
116
+
117
+ Generate 3-5 real tests for existing code:
118
+
119
+ 1. **Find recently changed files:** `git log --since=30.days --name-only --format="" | sort | uniq -c | sort -rn | head -10`
120
+ 2. **Prioritize by risk:** Error handlers > business logic with conditionals > API endpoints > pure functions
121
+ 3. **For each file:** Write one test that tests real behavior with meaningful assertions. Never `expect(x).toBeDefined()` — test what the code DOES.
122
+ 4. Run each test. Passes → keep. Fails → fix once. Still fails → delete silently.
123
+ 5. Generate at least 1 test, cap at 5.
124
+
125
+ Never import secrets, API keys, or credentials in test files. Use environment variables or test fixtures.
126
+
127
+ ### B5. Verify
128
+
129
+ ```bash
130
+ # Run the full test suite to confirm everything works
131
+ {detected test command}
132
+ ```
133
+
134
+ If tests fail → debug once. If still failing → revert all bootstrap changes and warn user.
135
+
136
+ ### B5.5. CI/CD pipeline
137
+
138
+ ```bash
139
+ # Check CI provider
140
+ ls -d .github/ 2>/dev/null && echo "CI:github"
141
+ ls .gitlab-ci.yml .circleci/ bitrise.yml 2>/dev/null
142
+ ```
143
+
144
+ If `.github/` exists (or no CI detected — default to GitHub Actions):
145
+ Create `.github/workflows/test.yml` with:
146
+ - `runs-on: ubuntu-latest`
147
+ - Appropriate setup action for the runtime (setup-node, setup-ruby, setup-python, etc.)
148
+ - The same test command verified in B5
149
+ - Trigger: push + pull_request
150
+
151
+ If non-GitHub CI detected → skip CI generation with note: "Detected {provider} — CI pipeline generation supports GitHub Actions only. Add test step to your existing pipeline manually."
152
+
153
+ ### B6. Create TESTING.md
154
+
155
+ First check: If TESTING.md already exists → read it and update/append rather than overwriting. Never destroy existing content.
156
+
157
+ Write TESTING.md with:
158
+ - Philosophy: "100% test coverage is the key to great vibe coding. Tests let you move fast, trust your instincts, and ship with confidence — without them, vibe coding is just yolo coding. With tests, it's a superpower."
159
+ - Framework name and version
160
+ - How to run tests (the verified command from B5)
161
+ - Test layers: Unit tests (what, where, when), Integration tests, Smoke tests, E2E tests
162
+ - Conventions: file naming, assertion style, setup/teardown patterns
163
+
164
+ ### B7. Update CLAUDE.md
165
+
166
+ First check: If CLAUDE.md already has a `## Testing` section → skip. Don't duplicate.
167
+
168
+ Append a `## Testing` section:
169
+ - Run command and test directory
170
+ - Reference to TESTING.md
171
+ - Test expectations:
172
+ - 100% test coverage is the goal — tests make vibe coding safe
173
+ - When writing new functions, write a corresponding test
174
+ - When fixing a bug, write a regression test
175
+ - When adding error handling, write a test that triggers the error
176
+ - When adding a conditional (if/else, switch), write tests for BOTH paths
177
+ - Never commit code that makes existing tests fail
178
+
179
+ ### B8. Commit
180
+
181
+ ```bash
182
+ git status --porcelain
183
+ ```
184
+
185
+ Only commit if there are changes. Stage all bootstrap files (config, test directory, TESTING.md, CLAUDE.md, .github/workflows/test.yml if created):
186
+ `git commit -m "chore: bootstrap test framework ({framework name})"`
187
+
188
+ ---
189
+
190
+ ---
191
+
192
+ ## Step 5: Run tests (on merged code)
193
+
194
+ **Do NOT run `RAILS_ENV=test bin/rails db:migrate`** — `bin/test-lane` already calls
195
+ `db:test:prepare` internally, which loads the schema into the correct lane database.
196
+ Running bare test migrations without INSTANCE hits an orphan DB and corrupts structure.sql.
197
+
198
+ Run both test suites in parallel, each wrapped in the evidence ledger. The
199
+ wrapper is transparent (streams output live, exit code passes through) and
200
+ records `{command, exit, working-tree fingerprint, log path}` to
201
+ `~/.istm-workflow/projects/<slug>/<branch>-evidence.jsonl` — Step 16 cites this
202
+ record instead of re-running when the content hasn't changed:
203
+
204
+ ```bash
205
+ ~/.claude/skills/istm-workflow/bin/istm-workflow-evidence run --label tests -- 'bin/test-lane 2>&1' &
206
+ ~/.claude/skills/istm-workflow/bin/istm-workflow-evidence run --label vitest -- 'npm run test 2>&1' &
207
+ wait
208
+ ```
209
+
210
+ After both complete, check the `istm-workflow-evidence: recorded label=... exit=...
211
+ log=...` summary lines — each carries the lane's exit code and a per-run log
212
+ file (no shared /tmp collisions between concurrent ships). Read the log files
213
+ for failure detail.
214
+
215
+ **If any test fails:** Do NOT immediately stop. Apply the Test Failure Ownership Triage:
216
+
217
+ ## Test Failure Ownership Triage
218
+
219
+ When tests fail, do NOT immediately stop. First, determine ownership:
220
+
221
+ ### Step T1: Classify each failure
222
+
223
+ For each failing test:
224
+
225
+ 1. **Get the files changed on this branch:**
226
+ ```bash
227
+ git diff origin/<base>...HEAD --name-only
228
+ ```
229
+
230
+ 2. **Classify the failure:**
231
+ - **In-branch** if: the failing test file itself was modified on this branch, OR the test output references code that was changed on this branch, OR you can trace the failure to a change in the branch diff.
232
+ - **Likely pre-existing** if: neither the test file nor the code it tests was modified on this branch, AND the failure is unrelated to any branch change you can identify.
233
+ - **When ambiguous, default to in-branch.** It is safer to stop the developer than to let a broken test ship. Only classify as pre-existing when you are confident.
234
+
235
+ This classification is heuristic — use your judgment reading the diff and the test output. You do not have a programmatic dependency graph.
236
+
237
+ ### Step T2: Handle in-branch failures
238
+
239
+ **STOP.** These are your failures. Show them and do not proceed. The developer must fix their own broken tests before shipping.
240
+
241
+ ### Step T3: Handle pre-existing failures
242
+
243
+ Check `REPO_MODE` from the preamble output.
244
+
245
+ **If REPO_MODE is `solo`:**
246
+
247
+ Use AskUserQuestion:
248
+
249
+ > These test failures appear pre-existing (not caused by your branch changes):
250
+ >
251
+ > [list each failure with file:line and brief error description]
252
+ >
253
+ > Since this is a solo repo, you're the only one who will fix these.
254
+ >
255
+ > RECOMMENDATION: Choose A — fix now while the context is fresh. Completeness: 9/10.
256
+ > A) Investigate and fix now (human: ~2-4h / CC: ~15min) — Completeness: 10/10
257
+ > B) Add as P0 TODO — fix after this branch lands — Completeness: 7/10
258
+ > C) Skip — I know about this, ship anyway — Completeness: 3/10
259
+
260
+ **If REPO_MODE is `collaborative` or `unknown`:**
261
+
262
+ Use AskUserQuestion:
263
+
264
+ > These test failures appear pre-existing (not caused by your branch changes):
265
+ >
266
+ > [list each failure with file:line and brief error description]
267
+ >
268
+ > This is a collaborative repo — these may be someone else's responsibility.
269
+ >
270
+ > RECOMMENDATION: Choose B — assign it to whoever broke it so the right person fixes it. Completeness: 9/10.
271
+ > A) Investigate and fix now anyway — Completeness: 10/10
272
+ > B) Blame + assign GitHub issue to the author — Completeness: 9/10
273
+ > C) Add as P0 TODO — Completeness: 7/10
274
+ > D) Skip — ship anyway — Completeness: 3/10
275
+
276
+ ### Step T4: Execute the chosen action
277
+
278
+ **If "Investigate and fix now":**
279
+ - Switch to /investigate mindset: root cause first, then minimal fix.
280
+ - Fix the pre-existing failure.
281
+ - Commit the fix separately from the branch's changes: `git commit -m "fix: pre-existing test failure in <test-file>"`
282
+ - Continue with the workflow.
283
+
284
+ **If "Add as P0 TODO":**
285
+ - If `TODOS.md` exists, add the entry following the format in `review/TODOS-format.md` (or `.claude/skills/review/TODOS-format.md`).
286
+ - If `TODOS.md` does not exist, create it with the standard header and add the entry.
287
+ - Entry should include: title, the error output, which branch it was noticed on, and priority P0.
288
+ - Continue with the workflow — treat the pre-existing failure as non-blocking.
289
+
290
+ **If "Blame + assign GitHub issue" (collaborative only):**
291
+ - Find who likely broke it. Check BOTH the test file AND the production code it tests:
292
+ ```bash
293
+ # Who last touched the failing test?
294
+ git log --format="%an (%ae)" -1 -- <failing-test-file>
295
+ # Who last touched the production code the test covers? (often the actual breaker)
296
+ git log --format="%an (%ae)" -1 -- <source-file-under-test>
297
+ ```
298
+ If these are different people, prefer the production code author — they likely introduced the regression.
299
+ - Create an issue assigned to that person (use the platform detected in Step 0):
300
+ - **If GitHub:**
301
+ ```bash
302
+ gh issue create \
303
+ --title "Pre-existing test failure: <test-name>" \
304
+ --body "Found failing on branch <current-branch>. Failure is pre-existing.\n\n**Error:**\n```\n<first 10 lines>\n```\n\n**Last modified by:** <author>\n**Noticed by:** istm-workflow /ship on <date>" \
305
+ --assignee "<github-username>"
306
+ ```
307
+ - **If GitLab:**
308
+ ```bash
309
+ glab issue create \
310
+ -t "Pre-existing test failure: <test-name>" \
311
+ -d "Found failing on branch <current-branch>. Failure is pre-existing.\n\n**Error:**\n```\n<first 10 lines>\n```\n\n**Last modified by:** <author>\n**Noticed by:** istm-workflow /ship on <date>" \
312
+ -a "<gitlab-username>"
313
+ ```
314
+ - If neither CLI is available or `--assignee`/`-a` fails (user not in org, etc.), create the issue without assignee and note who should look at it in the body.
315
+ - Continue with the workflow.
316
+
317
+ **If "Skip":**
318
+ - Continue with the workflow.
319
+ - Note in output: "Pre-existing test failure skipped: <test-name>"
320
+
321
+ **After triage:** If any in-branch failures remain unfixed, **STOP**. Do not proceed. If all failures were pre-existing and handled (fixed, TODOed, assigned, or skipped), continue to Step 6.
322
+
323
+ **If all pass:** Continue silently — just note the counts briefly.
324
+
325
+ ---
326
+
327
+ ## Step 6: Eval Suites (conditional)
328
+
329
+ Evals are mandatory when prompt-related files change. Skip this step entirely if no prompt files are in the diff.
330
+
331
+ **1. Check if the diff touches prompt-related files:**
332
+
333
+ ```bash
334
+ git diff origin/<base> --name-only
335
+ ```
336
+
337
+ Match against these patterns (from CLAUDE.md):
338
+ - `app/services/*_prompt_builder.rb`
339
+ - `app/services/*_generation_service.rb`, `*_writer_service.rb`, `*_designer_service.rb`
340
+ - `app/services/*_evaluator.rb`, `*_scorer.rb`, `*_classifier_service.rb`, `*_analyzer.rb`
341
+ - `app/services/concerns/*voice*.rb`, `*writing*.rb`, `*prompt*.rb`, `*token*.rb`
342
+ - `app/services/chat_tools/*.rb`, `app/services/x_thread_tools/*.rb`
343
+ - `config/system_prompts/*.txt`
344
+ - `test/evals/**/*` (eval infrastructure changes affect all suites)
345
+
346
+ **If no matches:** Print "No prompt-related files changed — skipping evals." and continue to Step 9.
347
+
348
+ **2. Identify affected eval suites:**
349
+
350
+ Each eval runner (`test/evals/*_eval_runner.rb`) declares `PROMPT_SOURCE_FILES` listing which source files affect it. Grep these to find which suites match the changed files:
351
+
352
+ ```bash
353
+ grep -l "changed_file_basename" test/evals/*_eval_runner.rb
354
+ ```
355
+
356
+ Map runner → test file: `post_generation_eval_runner.rb` → `post_generation_eval_test.rb`.
357
+
358
+ **Special cases:**
359
+ - Changes to `test/evals/judges/*.rb`, `test/evals/support/*.rb`, or `test/evals/fixtures/` affect ALL suites that use those judges/support files. Check imports in the eval test files to determine which.
360
+ - Changes to `config/system_prompts/*.txt` — grep eval runners for the prompt filename to find affected suites.
361
+ - If unsure which suites are affected, run ALL suites that could plausibly be impacted. Over-testing is better than missing a regression.
362
+
363
+ **3. Run affected suites at `EVAL_JUDGE_TIER=full`:**
364
+
365
+ `/ship` is a pre-merge gate, so always use full tier (Sonnet structural + Opus persona judges).
366
+
367
+ ```bash
368
+ EVAL_JUDGE_TIER=full EVAL_VERBOSE=1 bin/test-lane --eval test/evals/<suite>_eval_test.rb 2>&1 | tee /tmp/ship_evals.txt
369
+ ```
370
+
371
+ If multiple suites need to run, run them sequentially (each needs a test lane). If the first suite fails, stop immediately — don't burn API cost on remaining suites.
372
+
373
+ **Long eval suites (30+ min): launch detached so a turn boundary can't kill them.**
374
+ A plain backgrounded eval lives in the harness's process group and dies to a
375
+ SIGTERM ("polite quit") on a turn boundary, a stopped monitor, or an interruption
376
+ (observed mid-`/ship`: `script terminated by signal SIGTERM`). Run it through
377
+ `~/.claude/skills/istm-workflow/bin/istm-workflow-detach` instead — it survives in its own
378
+ session, serializes against other worktrees via a machine lock (no API
379
+ saturation), and writes a guaranteed `### istm-workflow-detach EXIT=<code> ###` sentinel:
380
+
381
+ ```bash
382
+ ~/.claude/skills/istm-workflow/bin/istm-workflow-detach --label ship-evals --lock istm-workflow-evals --timeout 5400 -- <project eval command>
383
+ ```
384
+
385
+ Then poll the printed log path; break on the `EXIT=` sentinel (covers both pass
386
+ and crash — silence is never success). The detached run survives even if your
387
+ poller is reaped.
388
+
389
+ **4. Check results:**
390
+
391
+ - **If any eval fails:** Show the failures, the cost dashboard, and **STOP**. Do not proceed.
392
+ - **If all pass:** Note pass counts and cost. Continue to Step 9.
393
+
394
+ **5. Save eval output** — include eval results and cost dashboard in the PR body (Step 19).
395
+
396
+ **Tier reference (for context — /ship always uses `full`):**
397
+ | Tier | When | Speed (cached) | Cost |
398
+ |------|------|----------------|------|
399
+ | `fast` (Haiku) | Dev iteration, smoke tests | ~5s (14x faster) | ~$0.07/run |
400
+ | `standard` (Sonnet) | Default dev, `bin/test-lane --eval` | ~17s (4x faster) | ~$0.37/run |
401
+ | `full` (Opus persona) | **`/ship` and pre-merge** | ~72s (baseline) | ~$1.27/run |
402
+
403
+ ---
@@ -0,0 +1,116 @@
1
+ ## Step 4: Test Framework Bootstrap
2
+
3
+ {{TEST_BOOTSTRAP}}
4
+
5
+ ---
6
+
7
+ ## Step 5: Run tests (on merged code)
8
+
9
+ **Do NOT run `RAILS_ENV=test bin/rails db:migrate`** — `bin/test-lane` already calls
10
+ `db:test:prepare` internally, which loads the schema into the correct lane database.
11
+ Running bare test migrations without INSTANCE hits an orphan DB and corrupts structure.sql.
12
+
13
+ Run both test suites in parallel, each wrapped in the evidence ledger. The
14
+ wrapper is transparent (streams output live, exit code passes through) and
15
+ records `{command, exit, working-tree fingerprint, log path}` to
16
+ `~/.istm-workflow/projects/<slug>/<branch>-evidence.jsonl` — Step 16 cites this
17
+ record instead of re-running when the content hasn't changed:
18
+
19
+ ```bash
20
+ ~/.claude/skills/istm-workflow/bin/istm-workflow-evidence run --label tests -- 'bin/test-lane 2>&1' &
21
+ ~/.claude/skills/istm-workflow/bin/istm-workflow-evidence run --label vitest -- 'npm run test 2>&1' &
22
+ wait
23
+ ```
24
+
25
+ After both complete, check the `istm-workflow-evidence: recorded label=... exit=...
26
+ log=...` summary lines — each carries the lane's exit code and a per-run log
27
+ file (no shared /tmp collisions between concurrent ships). Read the log files
28
+ for failure detail.
29
+
30
+ **If any test fails:** Do NOT immediately stop. Apply the Test Failure Ownership Triage:
31
+
32
+ {{TEST_FAILURE_TRIAGE}}
33
+
34
+ **After triage:** If any in-branch failures remain unfixed, **STOP**. Do not proceed. If all failures were pre-existing and handled (fixed, TODOed, assigned, or skipped), continue to Step 6.
35
+
36
+ **If all pass:** Continue silently — just note the counts briefly.
37
+
38
+ ---
39
+
40
+ ## Step 6: Eval Suites (conditional)
41
+
42
+ Evals are mandatory when prompt-related files change. Skip this step entirely if no prompt files are in the diff.
43
+
44
+ **1. Check if the diff touches prompt-related files:**
45
+
46
+ ```bash
47
+ git diff origin/<base> --name-only
48
+ ```
49
+
50
+ Match against these patterns (from CLAUDE.md):
51
+ - `app/services/*_prompt_builder.rb`
52
+ - `app/services/*_generation_service.rb`, `*_writer_service.rb`, `*_designer_service.rb`
53
+ - `app/services/*_evaluator.rb`, `*_scorer.rb`, `*_classifier_service.rb`, `*_analyzer.rb`
54
+ - `app/services/concerns/*voice*.rb`, `*writing*.rb`, `*prompt*.rb`, `*token*.rb`
55
+ - `app/services/chat_tools/*.rb`, `app/services/x_thread_tools/*.rb`
56
+ - `config/system_prompts/*.txt`
57
+ - `test/evals/**/*` (eval infrastructure changes affect all suites)
58
+
59
+ **If no matches:** Print "No prompt-related files changed — skipping evals." and continue to Step 9.
60
+
61
+ **2. Identify affected eval suites:**
62
+
63
+ Each eval runner (`test/evals/*_eval_runner.rb`) declares `PROMPT_SOURCE_FILES` listing which source files affect it. Grep these to find which suites match the changed files:
64
+
65
+ ```bash
66
+ grep -l "changed_file_basename" test/evals/*_eval_runner.rb
67
+ ```
68
+
69
+ Map runner → test file: `post_generation_eval_runner.rb` → `post_generation_eval_test.rb`.
70
+
71
+ **Special cases:**
72
+ - Changes to `test/evals/judges/*.rb`, `test/evals/support/*.rb`, or `test/evals/fixtures/` affect ALL suites that use those judges/support files. Check imports in the eval test files to determine which.
73
+ - Changes to `config/system_prompts/*.txt` — grep eval runners for the prompt filename to find affected suites.
74
+ - If unsure which suites are affected, run ALL suites that could plausibly be impacted. Over-testing is better than missing a regression.
75
+
76
+ **3. Run affected suites at `EVAL_JUDGE_TIER=full`:**
77
+
78
+ `/ship` is a pre-merge gate, so always use full tier (Sonnet structural + Opus persona judges).
79
+
80
+ ```bash
81
+ EVAL_JUDGE_TIER=full EVAL_VERBOSE=1 bin/test-lane --eval test/evals/<suite>_eval_test.rb 2>&1 | tee /tmp/ship_evals.txt
82
+ ```
83
+
84
+ If multiple suites need to run, run them sequentially (each needs a test lane). If the first suite fails, stop immediately — don't burn API cost on remaining suites.
85
+
86
+ **Long eval suites (30+ min): launch detached so a turn boundary can't kill them.**
87
+ A plain backgrounded eval lives in the harness's process group and dies to a
88
+ SIGTERM ("polite quit") on a turn boundary, a stopped monitor, or an interruption
89
+ (observed mid-`/ship`: `script terminated by signal SIGTERM`). Run it through
90
+ `~/.claude/skills/istm-workflow/bin/istm-workflow-detach` instead — it survives in its own
91
+ session, serializes against other worktrees via a machine lock (no API
92
+ saturation), and writes a guaranteed `### istm-workflow-detach EXIT=<code> ###` sentinel:
93
+
94
+ ```bash
95
+ ~/.claude/skills/istm-workflow/bin/istm-workflow-detach --label ship-evals --lock istm-workflow-evals --timeout 5400 -- <project eval command>
96
+ ```
97
+
98
+ Then poll the printed log path; break on the `EXIT=` sentinel (covers both pass
99
+ and crash — silence is never success). The detached run survives even if your
100
+ poller is reaped.
101
+
102
+ **4. Check results:**
103
+
104
+ - **If any eval fails:** Show the failures, the cost dashboard, and **STOP**. Do not proceed.
105
+ - **If all pass:** Note pass counts and cost. Continue to Step 9.
106
+
107
+ **5. Save eval output** — include eval results and cost dashboard in the PR body (Step 19).
108
+
109
+ **Tier reference (for context — /ship always uses `full`):**
110
+ | Tier | When | Speed (cached) | Cost |
111
+ |------|------|----------------|------|
112
+ | `fast` (Haiku) | Dev iteration, smoke tests | ~5s (14x faster) | ~$0.07/run |
113
+ | `standard` (Sonnet) | Default dev, `bin/test-lane --eval` | ~17s (4x faster) | ~$0.37/run |
114
+ | `full` (Opus persona) | **`/ship` and pre-merge** | ~72s (baseline) | ~$1.27/run |
115
+
116
+ ---
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@istmx/skills",
3
- "version": "1.2.0",
4
- "description": "The Elite AI Orchestration Engine for Cursor, Windsurf, Claude Code, and Gemini. Build Awwwards-winning UI, full-stack Next.js architecture, and strictly typed APIs with zero hallucinations.",
3
+ "version": "2.1.0",
4
+ "description": "The Elite Agentic Orchestration & Enterprise SDLC Engine for Claude Code, Cursor, Windsurf, and Gemini. 70+ design presets, automated browser QA, full-stack architecture, and senior-dev efficiency.",
5
5
  "type": "module",
6
6
  "bin": "bin/cli.js",
7
7
  "scripts": {
@@ -18,7 +18,10 @@
18
18
  "istm skills",
19
19
  "agentic-orchestration",
20
20
  "orchestration-engine",
21
- "zenix",
21
+ "enterprise-sdlc",
22
+ "browser-qa",
23
+ "security-audit",
24
+ "anti-laziness",
22
25
  "ai",
23
26
  "ai-agents",
24
27
  "autonomous-agents",
package/RELEASE_v1.2.0.md DELETED
@@ -1,40 +0,0 @@
1
- # Release Title
2
- v1.2.0: The Deterministic Architecture & Anti-Slop Update 🚀
3
-
4
- # Release Body
5
-
6
- We are thrilled to announce **v1.2.0** of the `@istmx/skills` AI Orchestration Framework! This massive release fundamentally changes how AI models handle Day-Zero architecture, specification writing, and code execution.
7
-
8
- We have completely eliminated the "Sledgehammer AI" problem (where AI blindly destroys existing folder structures) and added real-time, dynamic documentation parsing so your AI never hallucinates deprecated code again.
9
-
10
- Here is what's new in the ultimate God Mode engine:
11
-
12
- ### 🏛️ Architecture & Scaffolding (`/istm-architecture`)
13
- - **Just-In-Time Scaffolding:** The AI is now explicitly banned from generating massive, empty folder trees upfront. It will only create folders when a specific feature requires them.
14
- - **Strict Framework Respect:** No more overriding your native Next.js `app/` directory with a forced `src/app/` layout. The orchestrator now reads and respects your existing stack conventions.
15
- - **Public vs. Private Components:** We codified the Feature-Based Architecture model. Reusable components go to `shared/components/` (or `components/ui/` for Shadcn), while feature-specific logic is locked securely inside `features/<name>/components/`.
16
-
17
- ### 📝 The Spec Writer (`/istm-craft`)
18
- - **"One Spec At A Time" Mandate:** Prevented the AI from hallucinating 10 features simultaneously. If you ask for Auth, Billing, and a Dashboard, it will now strictly spec Auth first and force you to build it before moving on.
19
- - **Global Design First:** Step 1 of any generated build plan is now mandated to be setting up `globals.css` (with your custom design tokens) and configuring the `layout.tsx` wrapper.
20
- - **Dynamic URL Documentation:** You can now paste documentation URLs directly into your prompt. The AI will web-scrape them, override its outdated internal training data with the bleeding-edge syntax, and cache the rules in `.istm-context/docs/` for future sessions.
21
-
22
- ### 💻 The Execution Engine (`/istm-develop`)
23
- - **Native Shadcn Support:** The builder AI is now fully authorized to use `shadcn/ui` instead of reinventing buttons from scratch, provided it perfectly overrides the Shadcn tokens to match your bespoke `design.md`.
24
- - **Absolute Typing Ban:** Enforced a strict `No any` rule. The AI must create dedicated `types/` and `constants/` folders instead of dumping magic strings randomly in the codebase.
25
-
26
- ### 🎨 The Design Orchestrator (`/istm-design`)
27
- - **Bespoke Prompt Parsing:** Removed the lazy "4 generic styles" presets. The AI now deeply parses your prompt to extract your unique aesthetic vision (e.g., "massive typography and vibrant colors") and builds a custom design token system.
28
- - **Mandatory Pre-Reading:** Implemented a new `Step 0` execution gate. The AI must recursively read the massive rule sets in the `istm-design/` subdirectories before generating any templates.
29
-
30
- ### 🤝 Open Source & Licensing
31
- - Upgraded the repository for public collaboration.
32
- - Added a comprehensive **AI Collaboration Code of Conduct**.
33
- - Expanded the **MIT License** to explicitly state that all output generated by the AI is 100% owned by the user, shielding developers from legal friction.
34
-
35
- ---
36
-
37
- **Upgrade today to experience true Agentic Orchestration:**
38
- ```bash
39
- npx @istmx/skills init
40
- ```