@minhduydev/mdpi 0.3.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 (561) hide show
  1. package/README.md +31 -0
  2. package/dist/index.js +1187 -0
  3. package/dist/template/.pi/.env.example +28 -0
  4. package/dist/template/.pi/AGENTS.md +226 -0
  5. package/dist/template/.pi/QUALITY.md +13 -0
  6. package/dist/template/.pi/README.md +452 -0
  7. package/dist/template/.pi/VERSION +1 -0
  8. package/dist/template/.pi/agents/INDEX.md +54 -0
  9. package/dist/template/.pi/agents/build.md +194 -0
  10. package/dist/template/.pi/agents/explore.md +85 -0
  11. package/dist/template/.pi/agents/general.md +189 -0
  12. package/dist/template/.pi/agents/plan.md +407 -0
  13. package/dist/template/.pi/agents/review.md +198 -0
  14. package/dist/template/.pi/agents/scout.md +142 -0
  15. package/dist/template/.pi/agents/vision.md +157 -0
  16. package/dist/template/.pi/artifacts/example/plan.md +12 -0
  17. package/dist/template/.pi/artifacts/example/progress.md +4 -0
  18. package/dist/template/.pi/artifacts/example/research.md +4 -0
  19. package/dist/template/.pi/artifacts/example/spec.md +16 -0
  20. package/dist/template/.pi/context/architecture.md +141 -0
  21. package/dist/template/.pi/context/fallow.md +137 -0
  22. package/dist/template/.pi/extensions/templates-injector.ts +76 -0
  23. package/dist/template/.pi/extensions/workflows-runner.ts +301 -0
  24. package/dist/template/.pi/guard.example.json +75 -0
  25. package/dist/template/.pi/prompts/INDEX.md +78 -0
  26. package/dist/template/.pi/prompts/audit.md +109 -0
  27. package/dist/template/.pi/prompts/close.md +88 -0
  28. package/dist/template/.pi/prompts/create.md +197 -0
  29. package/dist/template/.pi/prompts/fix.md +117 -0
  30. package/dist/template/.pi/prompts/gc.md +112 -0
  31. package/dist/template/.pi/prompts/init.md +206 -0
  32. package/dist/template/.pi/prompts/loop-check.md +87 -0
  33. package/dist/template/.pi/prompts/loop-init.md +157 -0
  34. package/dist/template/.pi/prompts/loop-review.md +90 -0
  35. package/dist/template/.pi/prompts/plan.md +254 -0
  36. package/dist/template/.pi/prompts/research.md +136 -0
  37. package/dist/template/.pi/prompts/ship.md +219 -0
  38. package/dist/template/.pi/prompts/status.md +92 -0
  39. package/dist/template/.pi/prompts/verify.md +154 -0
  40. package/dist/template/.pi/scripts/gc-check.sh +86 -0
  41. package/dist/template/.pi/settings.json +15 -0
  42. package/dist/template/.pi/skills/INDEX.md +331 -0
  43. package/dist/template/.pi/skills/accessibility-audit/SKILL.md +205 -0
  44. package/dist/template/.pi/skills/accessibility-audit/references/accessibility-checklist.md +109 -0
  45. package/dist/template/.pi/skills/agent-code-quality-gate/SKILL.md +131 -0
  46. package/dist/template/.pi/skills/api-and-interface-design/SKILL.md +159 -0
  47. package/dist/template/.pi/skills/behavioral-kernel/SKILL.md +92 -0
  48. package/dist/template/.pi/skills/brainstorming/SKILL.md +138 -0
  49. package/dist/template/.pi/skills/browser-testing-with-devtools/SKILL.md +90 -0
  50. package/dist/template/.pi/skills/chrome-devtools/SKILL.md +129 -0
  51. package/dist/template/.pi/skills/ci-cd-and-automation/SKILL.md +199 -0
  52. package/dist/template/.pi/skills/cloudflare/SKILL.md +271 -0
  53. package/dist/template/.pi/skills/cloudflare/references/agents-sdk/README.md +35 -0
  54. package/dist/template/.pi/skills/cloudflare/references/agents-sdk/api.md +100 -0
  55. package/dist/template/.pi/skills/cloudflare/references/agents-sdk/configuration.md +99 -0
  56. package/dist/template/.pi/skills/cloudflare/references/agents-sdk/gotchas.md +59 -0
  57. package/dist/template/.pi/skills/cloudflare/references/agents-sdk/patterns.md +89 -0
  58. package/dist/template/.pi/skills/cloudflare/references/ai-gateway/README.md +695 -0
  59. package/dist/template/.pi/skills/cloudflare/references/ai-search/README.md +14 -0
  60. package/dist/template/.pi/skills/cloudflare/references/ai-search/api.md +38 -0
  61. package/dist/template/.pi/skills/cloudflare/references/ai-search/configuration.md +52 -0
  62. package/dist/template/.pi/skills/cloudflare/references/ai-search/gotchas.md +41 -0
  63. package/dist/template/.pi/skills/cloudflare/references/ai-search/patterns.md +45 -0
  64. package/dist/template/.pi/skills/cloudflare/references/analytics-engine/README.md +14 -0
  65. package/dist/template/.pi/skills/cloudflare/references/analytics-engine/api.md +27 -0
  66. package/dist/template/.pi/skills/cloudflare/references/analytics-engine/configuration.md +45 -0
  67. package/dist/template/.pi/skills/cloudflare/references/analytics-engine/gotchas.md +3 -0
  68. package/dist/template/.pi/skills/cloudflare/references/analytics-engine/patterns.md +36 -0
  69. package/dist/template/.pi/skills/cloudflare/references/api/README.md +21 -0
  70. package/dist/template/.pi/skills/cloudflare/references/api/api.md +31 -0
  71. package/dist/template/.pi/skills/cloudflare/references/api/configuration.md +20 -0
  72. package/dist/template/.pi/skills/cloudflare/references/api/gotchas.md +28 -0
  73. package/dist/template/.pi/skills/cloudflare/references/api/patterns.md +47 -0
  74. package/dist/template/.pi/skills/cloudflare/references/api-shield/README.md +20 -0
  75. package/dist/template/.pi/skills/cloudflare/references/api-shield/api.md +78 -0
  76. package/dist/template/.pi/skills/cloudflare/references/api-shield/configuration.md +128 -0
  77. package/dist/template/.pi/skills/cloudflare/references/api-shield/gotchas.md +51 -0
  78. package/dist/template/.pi/skills/cloudflare/references/api-shield/patterns.md +145 -0
  79. package/dist/template/.pi/skills/cloudflare/references/argo-smart-routing/README.md +16 -0
  80. package/dist/template/.pi/skills/cloudflare/references/argo-smart-routing/api.md +50 -0
  81. package/dist/template/.pi/skills/cloudflare/references/argo-smart-routing/configuration.md +53 -0
  82. package/dist/template/.pi/skills/cloudflare/references/argo-smart-routing/gotchas.md +16 -0
  83. package/dist/template/.pi/skills/cloudflare/references/argo-smart-routing/patterns.md +45 -0
  84. package/dist/template/.pi/skills/cloudflare/references/bindings/README.md +14 -0
  85. package/dist/template/.pi/skills/cloudflare/references/bindings/api.md +3 -0
  86. package/dist/template/.pi/skills/cloudflare/references/bindings/configuration.md +58 -0
  87. package/dist/template/.pi/skills/cloudflare/references/bindings/gotchas.md +35 -0
  88. package/dist/template/.pi/skills/cloudflare/references/bindings/patterns.md +37 -0
  89. package/dist/template/.pi/skills/cloudflare/references/bot-management/README.md +71 -0
  90. package/dist/template/.pi/skills/cloudflare/references/bot-management/api.md +168 -0
  91. package/dist/template/.pi/skills/cloudflare/references/bot-management/configuration.md +114 -0
  92. package/dist/template/.pi/skills/cloudflare/references/bot-management/gotchas.md +99 -0
  93. package/dist/template/.pi/skills/cloudflare/references/bot-management/patterns.md +125 -0
  94. package/dist/template/.pi/skills/cloudflare/references/browser-rendering/README.md +16 -0
  95. package/dist/template/.pi/skills/cloudflare/references/browser-rendering/api.md +54 -0
  96. package/dist/template/.pi/skills/cloudflare/references/browser-rendering/configuration.md +47 -0
  97. package/dist/template/.pi/skills/cloudflare/references/browser-rendering/gotchas.md +29 -0
  98. package/dist/template/.pi/skills/cloudflare/references/browser-rendering/patterns.md +29 -0
  99. package/dist/template/.pi/skills/cloudflare/references/c3/README.md +264 -0
  100. package/dist/template/.pi/skills/cloudflare/references/cache-reserve/README.md +93 -0
  101. package/dist/template/.pi/skills/cloudflare/references/cache-reserve/api.md +176 -0
  102. package/dist/template/.pi/skills/cloudflare/references/cache-reserve/configuration.md +164 -0
  103. package/dist/template/.pi/skills/cloudflare/references/cache-reserve/gotchas.md +203 -0
  104. package/dist/template/.pi/skills/cloudflare/references/cache-reserve/patterns.md +180 -0
  105. package/dist/template/.pi/skills/cloudflare/references/containers/README.md +16 -0
  106. package/dist/template/.pi/skills/cloudflare/references/containers/api.md +43 -0
  107. package/dist/template/.pi/skills/cloudflare/references/containers/configuration.md +56 -0
  108. package/dist/template/.pi/skills/cloudflare/references/containers/gotchas.md +21 -0
  109. package/dist/template/.pi/skills/cloudflare/references/containers/patterns.md +40 -0
  110. package/dist/template/.pi/skills/cloudflare/references/cron-triggers/README.md +85 -0
  111. package/dist/template/.pi/skills/cloudflare/references/cron-triggers/api.md +198 -0
  112. package/dist/template/.pi/skills/cloudflare/references/cron-triggers/configuration.md +151 -0
  113. package/dist/template/.pi/skills/cloudflare/references/cron-triggers/gotchas.md +129 -0
  114. package/dist/template/.pi/skills/cloudflare/references/cron-triggers/patterns.md +122 -0
  115. package/dist/template/.pi/skills/cloudflare/references/d1/README.md +92 -0
  116. package/dist/template/.pi/skills/cloudflare/references/d1/api.md +141 -0
  117. package/dist/template/.pi/skills/cloudflare/references/d1/configuration.md +127 -0
  118. package/dist/template/.pi/skills/cloudflare/references/d1/gotchas.md +70 -0
  119. package/dist/template/.pi/skills/cloudflare/references/d1/patterns.md +144 -0
  120. package/dist/template/.pi/skills/cloudflare/references/ddos/README.md +34 -0
  121. package/dist/template/.pi/skills/cloudflare/references/ddos/api.md +136 -0
  122. package/dist/template/.pi/skills/cloudflare/references/ddos/configuration.md +67 -0
  123. package/dist/template/.pi/skills/cloudflare/references/ddos/gotchas.md +114 -0
  124. package/dist/template/.pi/skills/cloudflare/references/ddos/patterns.md +158 -0
  125. package/dist/template/.pi/skills/cloudflare/references/do-storage/README.md +62 -0
  126. package/dist/template/.pi/skills/cloudflare/references/do-storage/api.md +89 -0
  127. package/dist/template/.pi/skills/cloudflare/references/do-storage/configuration.md +116 -0
  128. package/dist/template/.pi/skills/cloudflare/references/do-storage/gotchas.md +93 -0
  129. package/dist/template/.pi/skills/cloudflare/references/do-storage/patterns.md +112 -0
  130. package/dist/template/.pi/skills/cloudflare/references/durable-objects/README.md +125 -0
  131. package/dist/template/.pi/skills/cloudflare/references/durable-objects/api.md +152 -0
  132. package/dist/template/.pi/skills/cloudflare/references/durable-objects/configuration.md +148 -0
  133. package/dist/template/.pi/skills/cloudflare/references/durable-objects/gotchas.md +158 -0
  134. package/dist/template/.pi/skills/cloudflare/references/durable-objects/patterns.md +255 -0
  135. package/dist/template/.pi/skills/cloudflare/references/email-routing/README.md +18 -0
  136. package/dist/template/.pi/skills/cloudflare/references/email-routing/api.md +46 -0
  137. package/dist/template/.pi/skills/cloudflare/references/email-routing/configuration.md +63 -0
  138. package/dist/template/.pi/skills/cloudflare/references/email-routing/gotchas.md +16 -0
  139. package/dist/template/.pi/skills/cloudflare/references/email-routing/patterns.md +46 -0
  140. package/dist/template/.pi/skills/cloudflare/references/email-workers/README.md +598 -0
  141. package/dist/template/.pi/skills/cloudflare/references/hyperdrive/README.md +62 -0
  142. package/dist/template/.pi/skills/cloudflare/references/hyperdrive/api.md +137 -0
  143. package/dist/template/.pi/skills/cloudflare/references/hyperdrive/configuration.md +133 -0
  144. package/dist/template/.pi/skills/cloudflare/references/hyperdrive/gotchas.md +184 -0
  145. package/dist/template/.pi/skills/cloudflare/references/hyperdrive/patterns.md +176 -0
  146. package/dist/template/.pi/skills/cloudflare/references/images/README.md +14 -0
  147. package/dist/template/.pi/skills/cloudflare/references/images/api.md +3 -0
  148. package/dist/template/.pi/skills/cloudflare/references/images/configuration.md +45 -0
  149. package/dist/template/.pi/skills/cloudflare/references/images/gotchas.md +23 -0
  150. package/dist/template/.pi/skills/cloudflare/references/images/patterns.md +31 -0
  151. package/dist/template/.pi/skills/cloudflare/references/kv/README.md +60 -0
  152. package/dist/template/.pi/skills/cloudflare/references/kv/api.md +114 -0
  153. package/dist/template/.pi/skills/cloudflare/references/kv/configuration.md +92 -0
  154. package/dist/template/.pi/skills/cloudflare/references/kv/gotchas.md +117 -0
  155. package/dist/template/.pi/skills/cloudflare/references/kv/patterns.md +139 -0
  156. package/dist/template/.pi/skills/cloudflare/references/miniflare/README.md +64 -0
  157. package/dist/template/.pi/skills/cloudflare/references/miniflare/api.md +144 -0
  158. package/dist/template/.pi/skills/cloudflare/references/miniflare/configuration.md +203 -0
  159. package/dist/template/.pi/skills/cloudflare/references/miniflare/gotchas.md +187 -0
  160. package/dist/template/.pi/skills/cloudflare/references/miniflare/patterns.md +211 -0
  161. package/dist/template/.pi/skills/cloudflare/references/network-interconnect/README.md +60 -0
  162. package/dist/template/.pi/skills/cloudflare/references/network-interconnect/api.md +240 -0
  163. package/dist/template/.pi/skills/cloudflare/references/network-interconnect/configuration.md +127 -0
  164. package/dist/template/.pi/skills/cloudflare/references/network-interconnect/gotchas.md +171 -0
  165. package/dist/template/.pi/skills/cloudflare/references/network-interconnect/patterns.md +171 -0
  166. package/dist/template/.pi/skills/cloudflare/references/observability/README.md +18 -0
  167. package/dist/template/.pi/skills/cloudflare/references/observability/api.md +51 -0
  168. package/dist/template/.pi/skills/cloudflare/references/observability/configuration.md +60 -0
  169. package/dist/template/.pi/skills/cloudflare/references/observability/gotchas.md +36 -0
  170. package/dist/template/.pi/skills/cloudflare/references/observability/patterns.md +42 -0
  171. package/dist/template/.pi/skills/cloudflare/references/pages/README.md +76 -0
  172. package/dist/template/.pi/skills/cloudflare/references/pages/api.md +200 -0
  173. package/dist/template/.pi/skills/cloudflare/references/pages/configuration.md +228 -0
  174. package/dist/template/.pi/skills/cloudflare/references/pages/gotchas.md +161 -0
  175. package/dist/template/.pi/skills/cloudflare/references/pages/patterns.md +145 -0
  176. package/dist/template/.pi/skills/cloudflare/references/pages-functions/README.md +57 -0
  177. package/dist/template/.pi/skills/cloudflare/references/pages-functions/api.md +201 -0
  178. package/dist/template/.pi/skills/cloudflare/references/pages-functions/configuration.md +159 -0
  179. package/dist/template/.pi/skills/cloudflare/references/pages-functions/gotchas.md +151 -0
  180. package/dist/template/.pi/skills/cloudflare/references/pages-functions/patterns.md +190 -0
  181. package/dist/template/.pi/skills/cloudflare/references/pipelines/README.md +664 -0
  182. package/dist/template/.pi/skills/cloudflare/references/pulumi/README.md +107 -0
  183. package/dist/template/.pi/skills/cloudflare/references/pulumi/api.md +194 -0
  184. package/dist/template/.pi/skills/cloudflare/references/pulumi/configuration.md +216 -0
  185. package/dist/template/.pi/skills/cloudflare/references/pulumi/gotchas.md +223 -0
  186. package/dist/template/.pi/skills/cloudflare/references/pulumi/patterns.md +139 -0
  187. package/dist/template/.pi/skills/cloudflare/references/queues/README.md +69 -0
  188. package/dist/template/.pi/skills/cloudflare/references/queues/api.md +138 -0
  189. package/dist/template/.pi/skills/cloudflare/references/queues/configuration.md +125 -0
  190. package/dist/template/.pi/skills/cloudflare/references/queues/gotchas.md +112 -0
  191. package/dist/template/.pi/skills/cloudflare/references/queues/patterns.md +155 -0
  192. package/dist/template/.pi/skills/cloudflare/references/r2/README.md +61 -0
  193. package/dist/template/.pi/skills/cloudflare/references/r2/api.md +127 -0
  194. package/dist/template/.pi/skills/cloudflare/references/r2/configuration.md +76 -0
  195. package/dist/template/.pi/skills/cloudflare/references/r2/gotchas.md +94 -0
  196. package/dist/template/.pi/skills/cloudflare/references/r2/patterns.md +127 -0
  197. package/dist/template/.pi/skills/cloudflare/references/r2-data-catalog/README.md +18 -0
  198. package/dist/template/.pi/skills/cloudflare/references/r2-data-catalog/api.md +29 -0
  199. package/dist/template/.pi/skills/cloudflare/references/r2-data-catalog/configuration.md +39 -0
  200. package/dist/template/.pi/skills/cloudflare/references/r2-data-catalog/gotchas.md +20 -0
  201. package/dist/template/.pi/skills/cloudflare/references/r2-data-catalog/patterns.md +46 -0
  202. package/dist/template/.pi/skills/cloudflare/references/r2-sql/README.md +512 -0
  203. package/dist/template/.pi/skills/cloudflare/references/realtime-sfu/README.md +21 -0
  204. package/dist/template/.pi/skills/cloudflare/references/realtime-sfu/api.md +135 -0
  205. package/dist/template/.pi/skills/cloudflare/references/realtime-sfu/configuration.md +63 -0
  206. package/dist/template/.pi/skills/cloudflare/references/realtime-sfu/gotchas.md +75 -0
  207. package/dist/template/.pi/skills/cloudflare/references/realtime-sfu/patterns.md +102 -0
  208. package/dist/template/.pi/skills/cloudflare/references/realtimekit/README.md +81 -0
  209. package/dist/template/.pi/skills/cloudflare/references/realtimekit/api.md +164 -0
  210. package/dist/template/.pi/skills/cloudflare/references/realtimekit/configuration.md +147 -0
  211. package/dist/template/.pi/skills/cloudflare/references/realtimekit/gotchas.md +172 -0
  212. package/dist/template/.pi/skills/cloudflare/references/realtimekit/patterns.md +155 -0
  213. package/dist/template/.pi/skills/cloudflare/references/sandbox/README.md +90 -0
  214. package/dist/template/.pi/skills/cloudflare/references/sandbox/api.md +178 -0
  215. package/dist/template/.pi/skills/cloudflare/references/sandbox/configuration.md +131 -0
  216. package/dist/template/.pi/skills/cloudflare/references/sandbox/gotchas.md +156 -0
  217. package/dist/template/.pi/skills/cloudflare/references/sandbox/patterns.md +203 -0
  218. package/dist/template/.pi/skills/cloudflare/references/secrets-store/README.md +58 -0
  219. package/dist/template/.pi/skills/cloudflare/references/secrets-store/api.md +182 -0
  220. package/dist/template/.pi/skills/cloudflare/references/secrets-store/configuration.md +140 -0
  221. package/dist/template/.pi/skills/cloudflare/references/secrets-store/gotchas.md +129 -0
  222. package/dist/template/.pi/skills/cloudflare/references/secrets-store/patterns.md +218 -0
  223. package/dist/template/.pi/skills/cloudflare/references/smart-placement/README.md +91 -0
  224. package/dist/template/.pi/skills/cloudflare/references/smart-placement/api.md +139 -0
  225. package/dist/template/.pi/skills/cloudflare/references/smart-placement/configuration.md +129 -0
  226. package/dist/template/.pi/skills/cloudflare/references/smart-placement/gotchas.md +87 -0
  227. package/dist/template/.pi/skills/cloudflare/references/smart-placement/patterns.md +135 -0
  228. package/dist/template/.pi/skills/cloudflare/references/snippets/README.md +15 -0
  229. package/dist/template/.pi/skills/cloudflare/references/snippets/api.md +47 -0
  230. package/dist/template/.pi/skills/cloudflare/references/snippets/configuration.md +33 -0
  231. package/dist/template/.pi/skills/cloudflare/references/snippets/gotchas.md +21 -0
  232. package/dist/template/.pi/skills/cloudflare/references/snippets/patterns.md +34 -0
  233. package/dist/template/.pi/skills/cloudflare/references/spectrum/README.md +16 -0
  234. package/dist/template/.pi/skills/cloudflare/references/spectrum/api.md +24 -0
  235. package/dist/template/.pi/skills/cloudflare/references/spectrum/configuration.md +43 -0
  236. package/dist/template/.pi/skills/cloudflare/references/spectrum/gotchas.md +42 -0
  237. package/dist/template/.pi/skills/cloudflare/references/spectrum/patterns.md +40 -0
  238. package/dist/template/.pi/skills/cloudflare/references/static-assets/README.md +14 -0
  239. package/dist/template/.pi/skills/cloudflare/references/static-assets/api.md +3 -0
  240. package/dist/template/.pi/skills/cloudflare/references/static-assets/configuration.md +47 -0
  241. package/dist/template/.pi/skills/cloudflare/references/static-assets/gotchas.md +44 -0
  242. package/dist/template/.pi/skills/cloudflare/references/static-assets/patterns.md +42 -0
  243. package/dist/template/.pi/skills/cloudflare/references/stream/README.md +103 -0
  244. package/dist/template/.pi/skills/cloudflare/references/stream/api.md +204 -0
  245. package/dist/template/.pi/skills/cloudflare/references/stream/configuration.md +127 -0
  246. package/dist/template/.pi/skills/cloudflare/references/stream/gotchas.md +131 -0
  247. package/dist/template/.pi/skills/cloudflare/references/stream/patterns.md +152 -0
  248. package/dist/template/.pi/skills/cloudflare/references/tail-workers/README.md +640 -0
  249. package/dist/template/.pi/skills/cloudflare/references/terraform/README.md +76 -0
  250. package/dist/template/.pi/skills/cloudflare/references/terraform/api.md +159 -0
  251. package/dist/template/.pi/skills/cloudflare/references/terraform/configuration.md +156 -0
  252. package/dist/template/.pi/skills/cloudflare/references/terraform/gotchas.md +207 -0
  253. package/dist/template/.pi/skills/cloudflare/references/terraform/patterns.md +135 -0
  254. package/dist/template/.pi/skills/cloudflare/references/tunnel/README.md +82 -0
  255. package/dist/template/.pi/skills/cloudflare/references/tunnel/api.md +105 -0
  256. package/dist/template/.pi/skills/cloudflare/references/tunnel/configuration.md +113 -0
  257. package/dist/template/.pi/skills/cloudflare/references/tunnel/gotchas.md +115 -0
  258. package/dist/template/.pi/skills/cloudflare/references/tunnel/patterns.md +157 -0
  259. package/dist/template/.pi/skills/cloudflare/references/turn/README.md +699 -0
  260. package/dist/template/.pi/skills/cloudflare/references/turnstile/README.md +14 -0
  261. package/dist/template/.pi/skills/cloudflare/references/turnstile/api.md +3 -0
  262. package/dist/template/.pi/skills/cloudflare/references/turnstile/configuration.md +19 -0
  263. package/dist/template/.pi/skills/cloudflare/references/turnstile/gotchas.md +27 -0
  264. package/dist/template/.pi/skills/cloudflare/references/turnstile/patterns.md +41 -0
  265. package/dist/template/.pi/skills/cloudflare/references/vectorize/README.md +682 -0
  266. package/dist/template/.pi/skills/cloudflare/references/waf/README.md +14 -0
  267. package/dist/template/.pi/skills/cloudflare/references/waf/api.md +3 -0
  268. package/dist/template/.pi/skills/cloudflare/references/waf/configuration.md +44 -0
  269. package/dist/template/.pi/skills/cloudflare/references/waf/gotchas.md +24 -0
  270. package/dist/template/.pi/skills/cloudflare/references/waf/patterns.md +29 -0
  271. package/dist/template/.pi/skills/cloudflare/references/web-analytics/README.md +19 -0
  272. package/dist/template/.pi/skills/cloudflare/references/web-analytics/api.md +52 -0
  273. package/dist/template/.pi/skills/cloudflare/references/web-analytics/configuration.md +31 -0
  274. package/dist/template/.pi/skills/cloudflare/references/web-analytics/gotchas.md +28 -0
  275. package/dist/template/.pi/skills/cloudflare/references/web-analytics/patterns.md +52 -0
  276. package/dist/template/.pi/skills/cloudflare/references/workerd/README.md +47 -0
  277. package/dist/template/.pi/skills/cloudflare/references/workerd/api.md +199 -0
  278. package/dist/template/.pi/skills/cloudflare/references/workerd/configuration.md +185 -0
  279. package/dist/template/.pi/skills/cloudflare/references/workerd/gotchas.md +203 -0
  280. package/dist/template/.pi/skills/cloudflare/references/workerd/patterns.md +216 -0
  281. package/dist/template/.pi/skills/cloudflare/references/workers/README.md +96 -0
  282. package/dist/template/.pi/skills/cloudflare/references/workers/api.md +137 -0
  283. package/dist/template/.pi/skills/cloudflare/references/workers/configuration.md +147 -0
  284. package/dist/template/.pi/skills/cloudflare/references/workers/gotchas.md +99 -0
  285. package/dist/template/.pi/skills/cloudflare/references/workers/patterns.md +149 -0
  286. package/dist/template/.pi/skills/cloudflare/references/workers-ai/README.md +116 -0
  287. package/dist/template/.pi/skills/cloudflare/references/workers-for-platforms/README.md +48 -0
  288. package/dist/template/.pi/skills/cloudflare/references/workers-for-platforms/api.md +169 -0
  289. package/dist/template/.pi/skills/cloudflare/references/workers-for-platforms/configuration.md +136 -0
  290. package/dist/template/.pi/skills/cloudflare/references/workers-for-platforms/gotchas.md +130 -0
  291. package/dist/template/.pi/skills/cloudflare/references/workers-for-platforms/patterns.md +170 -0
  292. package/dist/template/.pi/skills/cloudflare/references/workers-playground/README.md +16 -0
  293. package/dist/template/.pi/skills/cloudflare/references/workers-playground/api.md +20 -0
  294. package/dist/template/.pi/skills/cloudflare/references/workers-playground/configuration.md +3 -0
  295. package/dist/template/.pi/skills/cloudflare/references/workers-playground/gotchas.md +35 -0
  296. package/dist/template/.pi/skills/cloudflare/references/workers-playground/patterns.md +42 -0
  297. package/dist/template/.pi/skills/cloudflare/references/workers-vpc/README.md +579 -0
  298. package/dist/template/.pi/skills/cloudflare/references/workflows/README.md +62 -0
  299. package/dist/template/.pi/skills/cloudflare/references/workflows/api.md +125 -0
  300. package/dist/template/.pi/skills/cloudflare/references/workflows/configuration.md +177 -0
  301. package/dist/template/.pi/skills/cloudflare/references/workflows/gotchas.md +136 -0
  302. package/dist/template/.pi/skills/cloudflare/references/workflows/patterns.md +132 -0
  303. package/dist/template/.pi/skills/cloudflare/references/wrangler/README.md +90 -0
  304. package/dist/template/.pi/skills/cloudflare/references/wrangler/api.md +140 -0
  305. package/dist/template/.pi/skills/cloudflare/references/wrangler/configuration.md +128 -0
  306. package/dist/template/.pi/skills/cloudflare/references/wrangler/gotchas.md +93 -0
  307. package/dist/template/.pi/skills/cloudflare/references/wrangler/patterns.md +150 -0
  308. package/dist/template/.pi/skills/cloudflare/references/zaraz/README.md +360 -0
  309. package/dist/template/.pi/skills/code-cleanup/SKILL.md +232 -0
  310. package/dist/template/.pi/skills/code-review-and-quality/SKILL.md +344 -0
  311. package/dist/template/.pi/skills/code-simplification/SKILL.md +348 -0
  312. package/dist/template/.pi/skills/context-engineering/SKILL.md +296 -0
  313. package/dist/template/.pi/skills/core-data-expert/SKILL.md +117 -0
  314. package/dist/template/.pi/skills/core-data-expert/references/batch-operations.md +543 -0
  315. package/dist/template/.pi/skills/core-data-expert/references/cloudkit-integration.md +259 -0
  316. package/dist/template/.pi/skills/core-data-expert/references/concurrency.md +522 -0
  317. package/dist/template/.pi/skills/core-data-expert/references/fetch-requests.md +643 -0
  318. package/dist/template/.pi/skills/core-data-expert/references/glossary.md +233 -0
  319. package/dist/template/.pi/skills/core-data-expert/references/migration.md +393 -0
  320. package/dist/template/.pi/skills/core-data-expert/references/model-configuration.md +597 -0
  321. package/dist/template/.pi/skills/core-data-expert/references/performance.md +300 -0
  322. package/dist/template/.pi/skills/core-data-expert/references/persistent-history.md +553 -0
  323. package/dist/template/.pi/skills/core-data-expert/references/project-audit.md +60 -0
  324. package/dist/template/.pi/skills/core-data-expert/references/saving.md +574 -0
  325. package/dist/template/.pi/skills/core-data-expert/references/stack-setup.md +625 -0
  326. package/dist/template/.pi/skills/core-data-expert/references/testing.md +300 -0
  327. package/dist/template/.pi/skills/core-data-expert/references/threading.md +589 -0
  328. package/dist/template/.pi/skills/debugging-and-error-recovery/SKILL.md +274 -0
  329. package/dist/template/.pi/skills/deep-module-design/SKILL.md +218 -0
  330. package/dist/template/.pi/skills/defense-in-depth/SKILL.md +161 -0
  331. package/dist/template/.pi/skills/deprecation-and-migration/SKILL.md +186 -0
  332. package/dist/template/.pi/skills/design-system-audit/SKILL.md +176 -0
  333. package/dist/template/.pi/skills/design-taste-frontend/SKILL.md +255 -0
  334. package/dist/template/.pi/skills/development-lifecycle/SKILL.md +285 -0
  335. package/dist/template/.pi/skills/documentation-and-adrs/SKILL.md +217 -0
  336. package/dist/template/.pi/skills/doubt-driven-development/SKILL.md +207 -0
  337. package/dist/template/.pi/skills/fallow/SKILL.md +457 -0
  338. package/dist/template/.pi/skills/fallow/references/cli-reference.md +1905 -0
  339. package/dist/template/.pi/skills/fallow/references/gotchas.md +644 -0
  340. package/dist/template/.pi/skills/fallow/references/patterns.md +791 -0
  341. package/dist/template/.pi/skills/figma/SKILL.md +241 -0
  342. package/dist/template/.pi/skills/frontend-design/SKILL.md +262 -0
  343. package/dist/template/.pi/skills/frontend-design/references/animation/motion-advanced.md +224 -0
  344. package/dist/template/.pi/skills/frontend-design/references/animation/motion-core.md +181 -0
  345. package/dist/template/.pi/skills/frontend-design/references/canvas/execution.md +90 -0
  346. package/dist/template/.pi/skills/frontend-design/references/canvas/philosophy.md +94 -0
  347. package/dist/template/.pi/skills/frontend-design/references/design/color-system.md +111 -0
  348. package/dist/template/.pi/skills/frontend-design/references/design/interaction.md +149 -0
  349. package/dist/template/.pi/skills/frontend-design/references/design/typography-rules.md +106 -0
  350. package/dist/template/.pi/skills/frontend-design/references/design/ux-writing.md +99 -0
  351. package/dist/template/.pi/skills/frontend-design/references/shadcn/accessibility.md +132 -0
  352. package/dist/template/.pi/skills/frontend-design/references/shadcn/core-components.md +153 -0
  353. package/dist/template/.pi/skills/frontend-design/references/shadcn/form-components.md +158 -0
  354. package/dist/template/.pi/skills/frontend-design/references/shadcn/setup.md +69 -0
  355. package/dist/template/.pi/skills/frontend-design/references/shadcn/theming.md +152 -0
  356. package/dist/template/.pi/skills/frontend-design/references/tailwind/responsive.md +112 -0
  357. package/dist/template/.pi/skills/frontend-design/references/tailwind/utilities-layout.md +134 -0
  358. package/dist/template/.pi/skills/frontend-design/references/tailwind/utilities-styling.md +165 -0
  359. package/dist/template/.pi/skills/frontend-design/references/tailwind/v4-config.md +147 -0
  360. package/dist/template/.pi/skills/frontend-design/references/tailwind/v4-features.md +128 -0
  361. package/dist/template/.pi/skills/frontend-ui-engineering/SKILL.md +217 -0
  362. package/dist/template/.pi/skills/gemini-large-context/SKILL.md +238 -0
  363. package/dist/template/.pi/skills/git-workflow-and-versioning/SKILL.md +217 -0
  364. package/dist/template/.pi/skills/grill-me/SKILL.md +162 -0
  365. package/dist/template/.pi/skills/high-end-visual-design/SKILL.md +128 -0
  366. package/dist/template/.pi/skills/idea-refine/SKILL.md +195 -0
  367. package/dist/template/.pi/skills/idea-refine/examples.md +62 -0
  368. package/dist/template/.pi/skills/idea-refine/frameworks.md +63 -0
  369. package/dist/template/.pi/skills/idea-refine/refinement-criteria.md +56 -0
  370. package/dist/template/.pi/skills/incremental-implementation/SKILL.md +190 -0
  371. package/dist/template/.pi/skills/industrial-brutalist-ui/SKILL.md +131 -0
  372. package/dist/template/.pi/skills/interview-me/SKILL.md +227 -0
  373. package/dist/template/.pi/skills/jira/SKILL.md +306 -0
  374. package/dist/template/.pi/skills/loop-audit/SKILL.md +141 -0
  375. package/dist/template/.pi/skills/loop-cost/SKILL.md +130 -0
  376. package/dist/template/.pi/skills/loop-engineering/SKILL.md +175 -0
  377. package/dist/template/.pi/skills/minimalist-ui/SKILL.md +124 -0
  378. package/dist/template/.pi/skills/mockup-to-code/SKILL.md +197 -0
  379. package/dist/template/.pi/skills/observability-and-instrumentation/SKILL.md +202 -0
  380. package/dist/template/.pi/skills/opensrc/SKILL.md +297 -0
  381. package/dist/template/.pi/skills/opensrc/references/architecture.md +176 -0
  382. package/dist/template/.pi/skills/opensrc/references/cli-usage.md +176 -0
  383. package/dist/template/.pi/skills/opensrc/references/registry-support.md +137 -0
  384. package/dist/template/.pi/skills/pdf-extract/SKILL.md +461 -0
  385. package/dist/template/.pi/skills/performance-optimization/SKILL.md +233 -0
  386. package/dist/template/.pi/skills/performance-optimization/references/performance-checklist.md +85 -0
  387. package/dist/template/.pi/skills/planning-and-task-breakdown/SKILL.md +204 -0
  388. package/dist/template/.pi/skills/playwright/SKILL.md +404 -0
  389. package/dist/template/.pi/skills/playwright/references/agent-browser-cli.md +405 -0
  390. package/dist/template/.pi/skills/polar/SKILL.md +125 -0
  391. package/dist/template/.pi/skills/react-best-practices/SKILL.md +156 -0
  392. package/dist/template/.pi/skills/react-best-practices/rules/_sections.md +46 -0
  393. package/dist/template/.pi/skills/react-best-practices/rules/_template.md +28 -0
  394. package/dist/template/.pi/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  395. package/dist/template/.pi/skills/react-best-practices/rules/advanced-use-latest.md +49 -0
  396. package/dist/template/.pi/skills/react-best-practices/rules/async-api-routes.md +38 -0
  397. package/dist/template/.pi/skills/react-best-practices/rules/async-defer-await.md +80 -0
  398. package/dist/template/.pi/skills/react-best-practices/rules/async-dependencies.md +36 -0
  399. package/dist/template/.pi/skills/react-best-practices/rules/async-parallel.md +28 -0
  400. package/dist/template/.pi/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
  401. package/dist/template/.pi/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
  402. package/dist/template/.pi/skills/react-best-practices/rules/bundle-conditional.md +31 -0
  403. package/dist/template/.pi/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
  404. package/dist/template/.pi/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  405. package/dist/template/.pi/skills/react-best-practices/rules/bundle-preload.md +50 -0
  406. package/dist/template/.pi/skills/react-best-practices/rules/client-event-listeners.md +74 -0
  407. package/dist/template/.pi/skills/react-best-practices/rules/client-localstorage-schema.md +71 -0
  408. package/dist/template/.pi/skills/react-best-practices/rules/client-passive-event-listeners.md +48 -0
  409. package/dist/template/.pi/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
  410. package/dist/template/.pi/skills/react-best-practices/rules/js-batch-dom-css.md +82 -0
  411. package/dist/template/.pi/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
  412. package/dist/template/.pi/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
  413. package/dist/template/.pi/skills/react-best-practices/rules/js-cache-storage.md +70 -0
  414. package/dist/template/.pi/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
  415. package/dist/template/.pi/skills/react-best-practices/rules/js-early-exit.md +50 -0
  416. package/dist/template/.pi/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
  417. package/dist/template/.pi/skills/react-best-practices/rules/js-index-maps.md +37 -0
  418. package/dist/template/.pi/skills/react-best-practices/rules/js-length-check-first.md +49 -0
  419. package/dist/template/.pi/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
  420. package/dist/template/.pi/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
  421. package/dist/template/.pi/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
  422. package/dist/template/.pi/skills/react-best-practices/rules/rendering-activity.md +26 -0
  423. package/dist/template/.pi/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  424. package/dist/template/.pi/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
  425. package/dist/template/.pi/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
  426. package/dist/template/.pi/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  427. package/dist/template/.pi/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  428. package/dist/template/.pi/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
  429. package/dist/template/.pi/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
  430. package/dist/template/.pi/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
  431. package/dist/template/.pi/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
  432. package/dist/template/.pi/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
  433. package/dist/template/.pi/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  434. package/dist/template/.pi/skills/react-best-practices/rules/rerender-memo.md +44 -0
  435. package/dist/template/.pi/skills/react-best-practices/rules/rerender-transitions.md +40 -0
  436. package/dist/template/.pi/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
  437. package/dist/template/.pi/skills/react-best-practices/rules/server-cache-lru.md +41 -0
  438. package/dist/template/.pi/skills/react-best-practices/rules/server-cache-react.md +76 -0
  439. package/dist/template/.pi/skills/react-best-practices/rules/server-parallel-fetching.md +83 -0
  440. package/dist/template/.pi/skills/react-best-practices/rules/server-serialization.md +38 -0
  441. package/dist/template/.pi/skills/redesign-existing-projects/SKILL.md +217 -0
  442. package/dist/template/.pi/skills/resend/SKILL.md +196 -0
  443. package/dist/template/.pi/skills/resend/references/react-email.md +287 -0
  444. package/dist/template/.pi/skills/resend/references/receive-email.md +248 -0
  445. package/dist/template/.pi/skills/resend/references/send-email.md +318 -0
  446. package/dist/template/.pi/skills/root-cause-tracing/SKILL.md +216 -0
  447. package/dist/template/.pi/skills/security-and-hardening/SKILL.md +293 -0
  448. package/dist/template/.pi/skills/security-and-hardening/references/security-checklist.md +105 -0
  449. package/dist/template/.pi/skills/shipping-and-launch/SKILL.md +101 -0
  450. package/dist/template/.pi/skills/source-driven-development/SKILL.md +108 -0
  451. package/dist/template/.pi/skills/spec-driven-development/SKILL.md +177 -0
  452. package/dist/template/.pi/skills/srcwalk/SKILL.md +182 -0
  453. package/dist/template/.pi/skills/subagent-driven-development/SKILL.md +253 -0
  454. package/dist/template/.pi/skills/supabase/SKILL.md +153 -0
  455. package/dist/template/.pi/skills/supabase-postgres-best-practices/SKILL.md +88 -0
  456. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/advanced-full-text-search.md +55 -0
  457. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/advanced-jsonb-indexing.md +49 -0
  458. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/conn-idle-timeout.md +46 -0
  459. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/conn-limits.md +44 -0
  460. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/conn-pooling.md +41 -0
  461. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/conn-prepared-statements.md +46 -0
  462. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/data-batch-inserts.md +54 -0
  463. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/data-n-plus-one.md +53 -0
  464. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/data-pagination.md +50 -0
  465. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/data-upsert.md +50 -0
  466. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/lock-advisory.md +56 -0
  467. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/lock-deadlock-prevention.md +68 -0
  468. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/lock-short-transactions.md +50 -0
  469. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/lock-skip-locked.md +54 -0
  470. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/monitor-explain-analyze.md +45 -0
  471. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/monitor-pg-stat-statements.md +55 -0
  472. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/monitor-vacuum-analyze.md +55 -0
  473. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/query-composite-indexes.md +44 -0
  474. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/query-covering-indexes.md +40 -0
  475. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/query-index-types.md +45 -0
  476. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/query-missing-indexes.md +43 -0
  477. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/query-partial-indexes.md +45 -0
  478. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/schema-data-types.md +46 -0
  479. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/schema-foreign-key-indexes.md +59 -0
  480. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/schema-lowercase-identifiers.md +55 -0
  481. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/schema-partitioning.md +55 -0
  482. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/schema-primary-keys.md +61 -0
  483. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/security-privileges.md +54 -0
  484. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/security-rls-basics.md +50 -0
  485. package/dist/template/.pi/skills/supabase-postgres-best-practices/rules/security-rls-performance.md +57 -0
  486. package/dist/template/.pi/skills/swift-concurrency/SKILL.md +290 -0
  487. package/dist/template/.pi/skills/swift-concurrency/references/actors.md +640 -0
  488. package/dist/template/.pi/skills/swift-concurrency/references/async-algorithms.md +822 -0
  489. package/dist/template/.pi/skills/swift-concurrency/references/async-await-basics.md +249 -0
  490. package/dist/template/.pi/skills/swift-concurrency/references/async-sequences.md +670 -0
  491. package/dist/template/.pi/skills/swift-concurrency/references/core-data.md +533 -0
  492. package/dist/template/.pi/skills/swift-concurrency/references/glossary.md +128 -0
  493. package/dist/template/.pi/skills/swift-concurrency/references/linting.md +142 -0
  494. package/dist/template/.pi/skills/swift-concurrency/references/memory-management.md +542 -0
  495. package/dist/template/.pi/skills/swift-concurrency/references/migration.md +1076 -0
  496. package/dist/template/.pi/skills/swift-concurrency/references/performance.md +574 -0
  497. package/dist/template/.pi/skills/swift-concurrency/references/sendable.md +578 -0
  498. package/dist/template/.pi/skills/swift-concurrency/references/tasks.md +604 -0
  499. package/dist/template/.pi/skills/swift-concurrency/references/testing.md +565 -0
  500. package/dist/template/.pi/skills/swift-concurrency/references/threading.md +452 -0
  501. package/dist/template/.pi/skills/swiftui-expert-skill/SKILL.md +343 -0
  502. package/dist/template/.pi/skills/swiftui-expert-skill/references/animation-advanced.md +351 -0
  503. package/dist/template/.pi/skills/swiftui-expert-skill/references/animation-basics.md +284 -0
  504. package/dist/template/.pi/skills/swiftui-expert-skill/references/animation-transitions.md +326 -0
  505. package/dist/template/.pi/skills/swiftui-expert-skill/references/image-optimization.md +286 -0
  506. package/dist/template/.pi/skills/swiftui-expert-skill/references/layout-best-practices.md +312 -0
  507. package/dist/template/.pi/skills/swiftui-expert-skill/references/liquid-glass.md +377 -0
  508. package/dist/template/.pi/skills/swiftui-expert-skill/references/list-patterns.md +153 -0
  509. package/dist/template/.pi/skills/swiftui-expert-skill/references/modern-apis.md +400 -0
  510. package/dist/template/.pi/skills/swiftui-expert-skill/references/performance-patterns.md +377 -0
  511. package/dist/template/.pi/skills/swiftui-expert-skill/references/scroll-patterns.md +305 -0
  512. package/dist/template/.pi/skills/swiftui-expert-skill/references/sheet-navigation-patterns.md +292 -0
  513. package/dist/template/.pi/skills/swiftui-expert-skill/references/state-management.md +447 -0
  514. package/dist/template/.pi/skills/swiftui-expert-skill/references/text-formatting.md +285 -0
  515. package/dist/template/.pi/skills/swiftui-expert-skill/references/view-structure.md +276 -0
  516. package/dist/template/.pi/skills/test-driven-development/SKILL.md +400 -0
  517. package/dist/template/.pi/skills/test-driven-development/references/testing-patterns.md +155 -0
  518. package/dist/template/.pi/skills/testing-anti-patterns/SKILL.md +339 -0
  519. package/dist/template/.pi/skills/using-agent-skills/SKILL.md +371 -0
  520. package/dist/template/.pi/skills/using-git-worktrees/SKILL.md +275 -0
  521. package/dist/template/.pi/skills/vercel-deploy-claimable/SKILL.md +144 -0
  522. package/dist/template/.pi/skills/vercel-deploy-claimable/scripts/deploy.sh +249 -0
  523. package/dist/template/.pi/skills/verification-before-completion/SKILL.md +348 -0
  524. package/dist/template/.pi/skills/webclaw/SKILL.md +188 -0
  525. package/dist/template/.pi/skills/writing-skills/SKILL.md +329 -0
  526. package/dist/template/.pi/skills/writing-skills/references/anti-patterns.md +25 -0
  527. package/dist/template/.pi/skills/writing-skills/references/claude-search-optimization.md +140 -0
  528. package/dist/template/.pi/skills/writing-skills/references/discovery-workflow.md +11 -0
  529. package/dist/template/.pi/skills/writing-skills/references/file-organization.md +32 -0
  530. package/dist/template/.pi/skills/writing-skills/references/flowcharts-and-examples.md +57 -0
  531. package/dist/template/.pi/skills/writing-skills/references/rationalization-hardening.md +75 -0
  532. package/dist/template/.pi/skills/writing-skills/references/testing-methodology.md +397 -0
  533. package/dist/template/.pi/skills/writing-skills/references/testing-skill-types.md +52 -0
  534. package/dist/template/.pi/subagents.json +10 -0
  535. package/dist/template/.pi/templates/adr.md +47 -0
  536. package/dist/template/.pi/templates/design.md +61 -0
  537. package/dist/template/.pi/templates/loop-github-action.yml +162 -0
  538. package/dist/template/.pi/templates/loop-orchestrator.sh +514 -0
  539. package/dist/template/.pi/templates/loop-orchestrator.test.ts +332 -0
  540. package/dist/template/.pi/templates/loop-orchestrator.ts +936 -0
  541. package/dist/template/.pi/templates/loop-state.json +24 -0
  542. package/dist/template/.pi/templates/loop-state.md +98 -0
  543. package/dist/template/.pi/templates/loop-vision.md +110 -0
  544. package/dist/template/.pi/templates/prd.md +204 -0
  545. package/dist/template/.pi/templates/progress.md +55 -0
  546. package/dist/template/.pi/templates/project.md +58 -0
  547. package/dist/template/.pi/templates/proposal.md +40 -0
  548. package/dist/template/.pi/templates/review-state.json +20 -0
  549. package/dist/template/.pi/templates/roadmap.md +93 -0
  550. package/dist/template/.pi/templates/state.md +97 -0
  551. package/dist/template/.pi/templates/tasks.md +202 -0
  552. package/dist/template/.pi/templates/tech-stack.md +85 -0
  553. package/dist/template/.pi/templates/user.md +26 -0
  554. package/dist/template/.pi/workflows/INDEX.md +63 -0
  555. package/dist/template/.pi/workflows/audit-pattern.md +84 -0
  556. package/dist/template/.pi/workflows/batch-implement.md +121 -0
  557. package/dist/template/.pi/workflows/deep-research.md +89 -0
  558. package/dist/template/.pi/workflows/development-lifecycle-workflow.md +175 -0
  559. package/dist/template/.pi/workflows/garbage-collection.md +144 -0
  560. package/dist/template/.pi/workflows/quality-loop.md +211 -0
  561. package/package.json +57 -0
@@ -0,0 +1,238 @@
1
+ ---
2
+ name: gemini-large-context
3
+ description: Use when analyzing large codebases, comparing multiple files, or researching project-wide patterns that exceed typical context limits - leverages Gemini CLI's 1M token context window for comprehensive analysis
4
+ ---
5
+
6
+ # Gemini CLI Large Context Analysis
7
+
8
+ ## When to Use
9
+
10
+ - Large, multi-file or project-wide analysis that exceeds local context limits.
11
+
12
+ ## When NOT to Use
13
+
14
+ - Small, focused tasks that fit within normal context or require edits.
15
+
16
+ ## Overview
17
+
18
+ Use Gemini CLI's massive context window (1M tokens) when analysis requires more context than available in current session. Ideal for codebase-wide searches, multi-file comparisons, and pattern discovery across large projects.
19
+
20
+ ## When to Use
21
+
22
+ - Analyzing entire codebases or large directories (100KB+)
23
+ - Comparing multiple large files simultaneously
24
+ - Understanding project-wide patterns or architecture
25
+ - Context window insufficient for current task
26
+ - Verifying feature implementations across codebase
27
+ - Research that needs to scan many files at once
28
+
29
+ ## Quick Reference
30
+
31
+ ```bash
32
+ # Basic non-interactive analysis
33
+ gemini -p "@src/ Summarize architecture"
34
+
35
+ # Multiple directories
36
+ gemini -p "@src/ @tests/ Analyze test coverage"
37
+
38
+ # All project files
39
+ gemini --all-files -p "Project overview"
40
+
41
+ # Specific model (Pro = 1M context)
42
+ gemini -m gemini-2.5-pro -p "@src/ Deep analysis"
43
+ ```
44
+
45
+ ## File/Directory Inclusion Syntax
46
+
47
+ ```bash
48
+ # Single file
49
+ gemini -p "@src/main.py Explain this file"
50
+
51
+ # Multiple files
52
+ gemini -p "@package.json @src/index.js Analyze dependencies"
53
+
54
+ # Entire directory (recursive)
55
+ gemini -p "@src/ Summarize architecture"
56
+
57
+ # Multiple directories
58
+ gemini -p "@src/ @tests/ Analyze test coverage"
59
+
60
+ # Current directory
61
+ gemini -p "@./ Project overview"
62
+
63
+ # Alternative: all files flag
64
+ gemini --all-files -p "Analyze project structure"
65
+ ```
66
+
67
+ ## Research Patterns
68
+
69
+ ### Architecture Analysis
70
+
71
+ ```bash
72
+ gemini -p "@src/
73
+ Describe:
74
+ 1. Overall architecture pattern (MVC, Clean, etc.)
75
+ 2. Key modules and their responsibilities
76
+ 3. Data flow between components
77
+ 4. External dependencies and integrations"
78
+ ```
79
+
80
+ ### Feature Implementation Check
81
+
82
+ ```bash
83
+ gemini -p "@src/ @lib/
84
+ Has [FEATURE] been implemented?
85
+ Show:
86
+ - Relevant files and functions
87
+ - Implementation approach
88
+ - Any gaps or incomplete areas"
89
+ ```
90
+
91
+ ### Pattern Discovery
92
+
93
+ ```bash
94
+ gemini -p "@src/
95
+ Find all instances of [PATTERN]:
96
+ - File paths
97
+ - Implementation variations
98
+ - Consistency assessment"
99
+ ```
100
+
101
+ ### Security Audit
102
+
103
+ ```bash
104
+ gemini -p "@src/ @api/
105
+ Security review:
106
+ - Input validation practices
107
+ - Authentication/authorization patterns
108
+ - SQL injection protections
109
+ - XSS prevention measures"
110
+ ```
111
+
112
+ ### Test Coverage Analysis
113
+
114
+ ```bash
115
+ gemini -p "@src/ @tests/
116
+ Assess test coverage:
117
+ - Which modules have tests?
118
+ - Which are missing tests?
119
+ - Test quality (unit vs integration)
120
+ - Edge cases covered"
121
+ ```
122
+
123
+ ## Integration with OpenCode Workflow
124
+
125
+ ### For Task-Constrained Research
126
+
127
+ When researching within task boundaries:
128
+
129
+ ```bash
130
+ # 1. Include plan spec in context
131
+ gemini -p "@src/ @.pi/artifacts/$(cat .pi/artifacts/.active)/spec.md
132
+ Research implementations matching spec constraints"
133
+
134
+ # 2. Save findings to plan files
135
+ # Write to .pi/artifacts/$(cat .pi/artifacts/.active)/research.md
136
+ ```
137
+
138
+ ### Delegating Large Research to Gemini
139
+
140
+ In AGENTS.md or prompts, instruct agents:
141
+
142
+ ```markdown
143
+ When analysis requires more than 100KB of files:
144
+
145
+ 1. Use Gemini CLI: `gemini -p "@[paths] [question]"`
146
+ 2. Capture output
147
+ 3. Synthesize findings in response
148
+ ```
149
+
150
+ ## Output Options
151
+
152
+ ```bash
153
+ # Plain text (default)
154
+ gemini -p "query"
155
+
156
+ # JSON for parsing
157
+ gemini -p "query" --output-format json
158
+
159
+ # Streaming for long ops
160
+ gemini -p "query" --output-format stream-json
161
+ ```
162
+
163
+ ## Common Research Queries
164
+
165
+ - **Architecture overview:** `gemini -p "@src/ Describe architecture"`
166
+ - **Find implementations:** `gemini -p "@src/ Where is [X] implemented?"`
167
+ - **Pattern audit:** `gemini -p "@src/ Find all [pattern] usages"`
168
+ - **Dependency analysis:** `gemini -p "@package.json @src/ Analyze dependency usage"`
169
+ - **Code quality:** `gemini -p "@src/ Identify code smells"`
170
+ - **Migration planning:** `gemini -p "@src/ Plan migration from [A] to [B]"`
171
+
172
+ ## Configuration
173
+
174
+ ### Authentication
175
+
176
+ ```bash
177
+ # Google login (free tier: 60 req/min, 1000/day)
178
+ gemini # Follow OAuth flow
179
+
180
+ # Or API key
181
+ export GEMINI_API_KEY="your-key"
182
+ ```
183
+
184
+ ### Model Selection
185
+
186
+ For most analysis tasks, **`gemini-2.5-pro`** is the best choice—it has a 1M token context window and handles code, text, and image analysis exceptionally well. This is the default model.
187
+
188
+ Use **`gemini-2.5-flash`** when you need faster responses and don't need the full context window.
189
+
190
+ **Important:** If you're analyzing images or screenshots, use `gemini-2.5-pro`. Image generation models like `imagen-3.0-generate-002` are for _creating_ new images, not understanding existing ones.
191
+
192
+ ```bash
193
+ # Gemini 2.5 Pro (1M context) - default, best for analysis
194
+ gemini -p "query"
195
+
196
+ # Gemini Flash (faster, smaller context)
197
+ gemini -m gemini-2.5-flash -p "query"
198
+ ```
199
+
200
+ ## Best Practices
201
+
202
+ 1. **Scope appropriately** - Include only relevant directories
203
+ 2. **Be specific** - Ask focused questions, not vague queries
204
+ 3. **Use for read-only analysis** - Don't ask Gemini to modify files in non-interactive mode
205
+ 4. **Capture output** - Redirect to file for long analyses: `gemini -p "..." > analysis.md`
206
+ 5. **Combine with local tools** - Use Gemini for research, local tools for implementation
207
+
208
+ ## Limitations
209
+
210
+ - Non-interactive mode: no tool approvals (file writes, shell commands)
211
+ - `@file` syntax: best in interactive mode
212
+ - Network dependency: requires internet connection
213
+ - Rate limits: 60 req/min free tier
214
+
215
+ ## Common Rationalizations
216
+
217
+ | Rationalization | Reality |
218
+ |---|---|
219
+ | "I'll just read files one by one" | Serial reading misses cross-file patterns. Large context reveals architecture-wide insights. |
220
+ | "The context window is big, dump everything in" | More context ≠ better answers. Curate what you load. Focus on relevant files. |
221
+ | "Gemini will figure out what's important" | Gemini sees what you show it. If you omit key files, it can't know they exist. |
222
+
223
+ ## Red Flags
224
+
225
+ - Dumping entire codebase into context without curation
226
+ - Analysis results not cross-referenced with actual file reads
227
+ - Large-context analysis used as substitute for reading specific files
228
+ - Context window filled with files irrelevant to the current task
229
+ - Gemini findings accepted without verification against source code
230
+
231
+ ## Verification
232
+
233
+ After using Gemini large context:
234
+
235
+ - [ ] Analysis results are cross-referenced with actual file reads
236
+ - [ ] Context was curated (not dumped) — only relevant files loaded
237
+ - [ ] Findings are actionable (file:line references, not vague observations)
238
+ - [ ] Gemini-generated insights are verified against source code
@@ -0,0 +1,217 @@
1
+ ---
2
+ name: git-workflow-and-versioning
3
+ description: "Use when making code changes that need safe git hygiene, atomic commits, branch strategy, versioning, changelog entries, or release preparation. Covers trunk-based development, commit-as-save-point discipline, and avoiding accidental unrelated changes."
4
+ ---
5
+
6
+ # Git Workflow and Versioning
7
+
8
+ ## Overview
9
+
10
+ Git is your safety net. Treat commits as save points, branches as sandboxes, and history as documentation. With AI agents generating code at high speed, disciplined version control is the mechanism that keeps changes manageable, reviewable, and reversible.
11
+
12
+ Git workflow keeps changes reviewable, reversible, and shippable. Treat commits as verified save points, not dumping grounds. A clean history lets you bisect regressions, revert bad deploys, and hand off context to the next agent or reviewer without confusion.
13
+
14
+ ## When to Use
15
+
16
+ - Always. Every code change flows through git.
17
+ - Any meaningful code change that may be committed, reviewed, or shipped.
18
+ - Creating or finishing a feature branch.
19
+ - Preparing release notes, version bumps, or changelog entries.
20
+ - Splitting a large diff into safe review units.
21
+ - Working in a dirty worktree where unrelated user changes may exist.
22
+
23
+ ## When NOT to Use
24
+
25
+ - Read-only investigation with no file changes.
26
+ - Throwaway local experiments that will be discarded before reporting.
27
+
28
+ ## Core Principles
29
+
30
+ ### 1. Commit Early, Commit Often
31
+
32
+ Each successful increment gets its own commit. Don't accumulate large uncommitted changes. If you can explain what changed and why in one sentence, it is probably commit-ready.
33
+
34
+ ### 2. Atomic Commits
35
+
36
+ Each commit does one logical thing. Good: `feat: add task creation endpoint with validation`. Bad: `Add task feature, fix sidebar, update deps`. Atomic commits make review, bisect, revert, and cherry-pick possible.
37
+
38
+ ### 3. Descriptive Messages
39
+
40
+ Format: `type: short summary`. Keep the summary imperative and specific. Types:
41
+
42
+ - `feat` — new behavior or capability
43
+ - `fix` — bug correction
44
+ - `refactor` — code change that preserves behavior
45
+ - `test` — test additions or corrections
46
+ - `docs` — documentation-only changes
47
+ - `chore` — tooling, deps, or maintenance
48
+
49
+ Add a body when the why or trade-off isn't obvious from the summary.
50
+
51
+ ### 4. Keep Concerns Separate
52
+
53
+ Don't combine formatting changes with behavior changes. Don't combine refactors with features. Don't mix dependency updates with domain logic. Each concern deserves its own commit and, when shared, its own PR.
54
+
55
+ ### 5. Size Your Changes
56
+
57
+ Target ~100 lines per commit/PR. Changes over ~1000 lines should be split. Small changes are easier to review, safer to deploy, and simpler to roll back.
58
+
59
+ ## Trunk-Based Development
60
+
61
+ Keep `main` always deployable. Work in short-lived feature branches that merge back within 1-3 days.
62
+
63
+ - Integrate frequently. Long-lived branches diverge, accumulate conflict debt, and hide risk.
64
+ - Protect `main` with required reviews, CI checks, and branch rules when available.
65
+ - Avoid long-running release branches; prefer tags and feature flags for in-progress work.
66
+
67
+ ## Atomic Commits
68
+
69
+ An atomic commit:
70
+
71
+ 1. Addresses exactly one intent (feature slice, fix, refactor, docs update, or dependency bump).
72
+ 2. Passes its own verification (tests, lint, typecheck) before being committed.
73
+ 3. Leaves the codebase in a working state.
74
+ 4. Has a message that explains the why, not only the what.
75
+
76
+ If you find yourself writing `and` or `also` in a commit message, split the commit.
77
+
78
+ ## Descriptive Messages
79
+
80
+ A good commit message answers three questions:
81
+
82
+ - What changed?
83
+ - Why did it change?
84
+ - What should a reviewer or future maintainer watch for?
85
+
86
+ Examples:
87
+
88
+ ```
89
+ feat: add email validation to task creation endpoint
90
+
91
+ Reject empty or malformed addresses before persistence.
92
+ Returns 422 with a structured error body.
93
+ ```
94
+
95
+ ```
96
+ fix: prevent duplicate tasks when form is double-submitted
97
+
98
+ Uses a client-side submission lock and idempotency key.
99
+ ```
100
+
101
+ Avoid messages like `fix`, `update`, `misc`, `wip`, or `asdf`.
102
+
103
+ ## Change Sizing
104
+
105
+ | Size | Guidance |
106
+ | --- | --- |
107
+ | < 100 lines | Ideal. Easy to review, test, and revert. |
108
+ | 100–500 lines | Acceptable for a single logical change with clear boundaries. |
109
+ | 500–1000 lines | Should be split unless it is purely mechanical (e.g., generated types, renames). |
110
+ | > 1000 lines | Must be split. Large changes are harder to review, riskier to deploy, and harder to revert. |
111
+
112
+ ## Branching Strategy
113
+
114
+ - Branch from `main`.
115
+ - Keep branches short-lived (merge within 1-3 days).
116
+ - Delete branches after merge.
117
+ - Branch naming: `feature/`, `fix/`, `chore/`, `refactor/`.
118
+
119
+ Name branches after the intent, not the ticket number alone. Good: `feature/task-creation-validation`. Bad: `feature/TICKET-123`.
120
+
121
+ ## The Save Point Pattern
122
+
123
+ Use commits as verified checkpoints during agent work:
124
+
125
+ ```
126
+ Agent starts work
127
+ → Makes a focused change
128
+ → Runs verification (tests, lint, typecheck)
129
+ → Passes? → Commit
130
+ → Continues to next increment
131
+ → Fails? → Revert to last good commit → Investigate
132
+ ```
133
+
134
+ Partial or exploratory work should be committed only after clearly labeling it (e.g., `chore: WIP — spike on pagination approach`) or kept on a separate branch.
135
+
136
+ ## Change Summaries
137
+
138
+ After any modification, provide a structured summary:
139
+
140
+ - **CHANGES MADE** — what files changed and what behavior was added, removed, or fixed.
141
+ - **THINGS I DIDN'T TOUCH** — adjacent code, unrelated worktree files, or out-of-scope concerns deliberately left alone.
142
+ - **POTENTIAL CONCERNS** — edge cases, manual steps, rollback considerations, or follow-up work.
143
+
144
+ ## Pre-Commit Hygiene
145
+
146
+ Before every commit:
147
+
148
+ 1. `git status --short` — know what is staged and unstaged.
149
+ 2. `git diff --staged` — review the exact diff you are about to commit.
150
+ 3. Check for secrets, tokens, or credentials in the diff.
151
+ 4. Run tests, lint, and type checks for the affected scope.
152
+ 5. Confirm `.gitignore` excludes generated files, dependencies, and build artifacts.
153
+
154
+ ## Process
155
+
156
+ 1. Inspect worktree state before editing: `git status --short`.
157
+ 2. Identify unrelated changes and leave them untouched.
158
+ 3. Keep each change atomic: one intent, one reviewable diff, one verification story.
159
+ 4. Prefer trunk-based flow: short-lived branches, small PRs, frequent integration.
160
+ 5. Use commits as save points only after verification passes or after clearly labeling partial work.
161
+ 6. Scope staging to your files only; never use `git add .` in a mixed worktree.
162
+ 7. For versioning, update the smallest required surface: package version, changelog, migration note, release tag, or docs.
163
+ 8. Before shipping, confirm status, diff summary, verification evidence, and rollback path.
164
+
165
+ ## Common Rationalizations
166
+
167
+ | Rationalization | Reality |
168
+ | --- | --- |
169
+ | "I'll commit when the feature is done." | One giant commit is impossible to review, debug, or revert. Commit each slice. |
170
+ | "The message doesn't matter." | Messages are documentation. Future you will need to understand what changed and why. |
171
+ | "I'll squash it all later." | Squashing destroys the development narrative and makes bisecting harder. |
172
+ | "Branches add overhead." | Short-lived branches are free and prevent conflicting work. |
173
+ | "Large PRs are fine." | Large changes are harder to review, riskier to deploy, and harder to revert. |
174
+ | "I'll clean up the commit later." | Later cleanup often loses intent. Keep the diff clean while it is fresh. |
175
+ | "This unrelated formatting is harmless." | It increases review noise and can hide real regressions. |
176
+ | "One big commit is faster." | Small verified commits are easier to review, revert, bisect, and ship. |
177
+ | "The worktree was already dirty." | Dirty worktrees require more discipline, not less. |
178
+
179
+ ## Red Flags
180
+
181
+ - Large uncommitted changes accumulating.
182
+ - Commit messages like `fix`, `update`, `misc`, `wip`, or `asdf`.
183
+ - Formatting changes mixed with behavior changes.
184
+ - No `.gitignore` in the project.
185
+ - Committing `node_modules/`, `.env`, or build artifacts.
186
+ - Staging broad paths without reviewing the diff.
187
+ - Mixing feature work, refactors, formatting, and dependency updates in one commit.
188
+ - Committing generated or cache files unintentionally.
189
+ - Version bump without changelog or release rationale.
190
+ - Claiming clean worktree without checking status.
191
+
192
+ ## Verification
193
+
194
+ Before declaring git workflow complete, confirm:
195
+
196
+ - [ ] Commit does one logical thing.
197
+ - [ ] Message explains the why and follows type conventions.
198
+ - [ ] Tests pass before committing.
199
+ - [ ] No secrets in the diff.
200
+ - [ ] No formatting-only changes mixed with behavior changes.
201
+ - [ ] `.gitignore` covers standard exclusions.
202
+ - [ ] `git status --short` summary is provided.
203
+ - [ ] Diff or staged-file summary for touched files is provided.
204
+ - [ ] Verification commands and outcomes are recorded.
205
+ - [ ] Commit/version/changelog action taken, or explicit reason none was needed.
206
+
207
+ ## Skill Result Contract
208
+
209
+ ```xml
210
+ <skill_result>
211
+ <skill>git-workflow-and-versioning</skill>
212
+ <status>completed|blocked|skipped</status>
213
+ <artifacts>Branch, commit, changelog, version file, or none</artifacts>
214
+ <evidence>git status/diff summary and verification commands</evidence>
215
+ <risks>Unrelated worktree changes, uncommitted files, release risk, or none</risks>
216
+ </skill_result>
217
+ ```
@@ -0,0 +1,162 @@
1
+ ---
2
+ name: grill-me
3
+ description: Adversarial interrogation of ideas before implementation — pushes on ambiguity, hidden assumptions, missing constraints, and hand-waving. Use when you have a rough idea, ADR, PRD, or spec that needs to survive scrutiny before code is written.
4
+ ---
5
+
6
+ # Grill Me — Adversarial Idea Interrogation
7
+
8
+ > **Replaces** skipping straight from idea to implementation without pressure-testing the plan.
9
+ > **Sits between** `brainstorming` (collaborative refinement) and `spec-driven-development` (formal spec/ADR creation).
10
+
11
+ ## When to Use
12
+
13
+ - You have a rough idea that needs to be tested before implementation
14
+ - You just finished brainstorming and need to find the flaws
15
+ - You have an existing ADR, PRD, or spec that needs to be stress-tested
16
+ - The agent (me) seems unclear about what to build and you want to surface that confusion
17
+
18
+ ## When NOT to Use
19
+
20
+ - Requirements are already well-understood and the task is mechanical
21
+ - You are already in implementation with a validated plan
22
+ - The task is trivial (< 1 file, no decisions needed)
23
+ - You need creative exploration (use `brainstorming` instead)
24
+
25
+ ## How This Is Different From Brainstorming
26
+
27
+ | Brainstorming | Grill Me |
28
+ |---|---|
29
+ | Collaborative exploration | Adversarial interrogation |
30
+ | "What do we need to build?" | "Why is this idea wrong or incomplete?" |
31
+ | Generates options and approaches | Destroys weak options |
32
+ | Asks clarifying questions | Asks challenging, uncomfortable questions |
33
+ | Refines the idea | Tests if the idea survives scrutiny |
34
+ | Output: a better design | Output: resolved uncertainties, killed bad ideas, hardened decisions |
35
+
36
+ ## Process
37
+
38
+ ### Phase 1: Surface the Idea
39
+
40
+ Read the available context — the user's prompt, any existing docs, the repo structure, relevant code. Identify exactly what is being proposed. Restate it clearly so the human can correct any misunderstanding.
41
+
42
+ ### Phase 2: Interrogate
43
+
44
+ Go after the idea systematically. Do not be polite. Do not assume the idea is sound. Push on:
45
+
46
+ **Ambiguity**
47
+ - Which terms in this description could mean different things to different people?
48
+ - What's the actual scope boundary — what's explicitly in, what's explicitly out?
49
+ - Can you point to a concrete example of the expected behavior?
50
+
51
+ **Hidden assumptions**
52
+ - What does this idea assume about the existing system?
53
+ - What does it assume about user behavior, data quality, or failure modes?
54
+ - What does it assume about team capacity, deployment timeline, or external dependencies?
55
+ - What does it assume the human reviewer will accept without question?
56
+
57
+ **Missing constraints**
58
+ - What constraints are implicit but never stated?
59
+ - Performance? Security? Backward compatibility? Error handling? Observability?
60
+ - What existing patterns in the codebase constrain this design?
61
+ - What deadlines or external commitments constrain the approach?
62
+
63
+ **Hand-waving**
64
+ - Where does the idea say "we'll figure that out later"?
65
+ - Where are the "obviously" or "simply" or "just" statements? Those are hiding complexity.
66
+ - What's the hardest part of this idea, and how does the current plan address it?
67
+ - What would have to go wrong for this idea to fail, and how would we know?
68
+
69
+ **Integration & blast radius**
70
+ - What existing code would this touch?
71
+ - What would break if this change were deployed?
72
+ - What tests would need to change?
73
+ - What documentation would become outdated?
74
+
75
+ ### Phase 3: Resolve
76
+
77
+ For each question raised in Phase 2:
78
+
79
+ 1. Present the question to the human with a concrete example
80
+ 2. Let the human answer or make a decision
81
+ 3. Record the resolution
82
+ 4. Update any existing documents (ADR, PRD, spec) with the new information
83
+
84
+ If the human cannot answer a question, flag it as a blocker — do not proceed to implementation until it's resolved.
85
+
86
+ ### Phase 4: Assess
87
+
88
+ After all questions have been addressed:
89
+
90
+ - **Is the idea clearly defined enough to proceed?** YES → recommend writing it up as an ADR or spec via `documentation-and-adrs` or `spec-driven-development`.
91
+ - **Is the idea fundamentally flawed?** YES → say so directly. Explain why and suggest alternatives.
92
+ - **Are there too many unresolved questions?** YES → recommend another brainstorming round or more research before committing to implementation.
93
+
94
+ ### Phase 5 (optional): Grill-with-Docs
95
+
96
+ If you're working with an existing ADR, PRD, or spec document:
97
+
98
+ 1. Read the document(s) thoroughly
99
+ 2. Apply the same interrogation against the document content
100
+ 3. For each gap found, propose edits to the document
101
+ 4. Present the proposed edits to the human for approval
102
+ 5. Apply approved edits
103
+
104
+ ## Success Criteria
105
+
106
+ The grilling is complete when:
107
+ - Questions start repeating (you've exhausted the line of inquiry)
108
+ - Added precision stops changing the plan (diminishing returns)
109
+ - Every ambiguity, assumption, constraint gap, and hand-wave has been surfaced and either resolved or flagged as a blocker
110
+ - You can state clearly: "this idea is ready for an ADR/spec" or "this idea should be killed/reworked"
111
+
112
+ ## Output
113
+
114
+ Leave behind a clear summary of:
115
+ - What was challenged and resolved
116
+ - What decisions were made
117
+ - What remains blocked or unresolved
118
+ - Recommended next step (ADR, spec, more research, kill the idea)
119
+
120
+ This summary becomes the input for the next phase (ADR writing or spec-driven-development).
121
+
122
+ ## Anti-Patterns
123
+
124
+ - **Being too nice.** This is not a collaborative exploration — this is an adversarial review. If you're not making the human think hard, you're doing it wrong.
125
+ - **Grilling during implementation.** Do this BEFORE any code is written. Once files change, the cost of finding a flaw is much higher.
126
+ - **Grilling trivial tasks.** A one-line bugfix doesn't need this. Use judgment.
127
+ - **Accepting "we'll fix it later."** If something is identified as risky, it needs a decision now or a clear blocker flag.
128
+ - **Grilling without context.** Read the repo, understand the existing patterns, and ground your questions in actual code.
129
+
130
+ ## See Also
131
+
132
+ - `brainstorming` — collaborative exploration (use before grilling)
133
+ - `spec-driven-development` — formal spec writing (use after grilling)
134
+ - `documentation-and-adrs` — recording decisions in ADR format
135
+ - `development-lifecycle` — full phased workflow
136
+
137
+ ## Common Rationalizations
138
+
139
+ | Rationalization | Reality |
140
+ |---|---|
141
+ | "The idea seems solid, no need to grill it" | Solid-seeming ideas fail under scrutiny. Confidence ≠ correctness. |
142
+ | "Grilling will kill momentum" | Moving fast in the wrong direction wastes more time than stopping to verify. |
143
+ | "I'll surface issues as I build" | Issues surfaced during build become rework. Surface them before code exists. |
144
+ | "The user already approved the idea" | Users approve what they think they want. Grilling reveals what they actually need. |
145
+
146
+ ## Red Flags
147
+
148
+ - Accepting the idea without challenging any assumption
149
+ - No "what could go wrong?" questions asked
150
+ - The interrogation produces zero changes to the original idea
151
+ - User's answers accepted without follow-up probing
152
+ - Skipping the "hidden assumptions" category entirely
153
+
154
+ ## Verification
155
+
156
+ After grilling an idea:
157
+
158
+ - [ ] Every category (ambiguity, hidden assumptions, missing constraints) was interrogated
159
+ - [ ] At least one "what could go wrong?" scenario was explored per assumption
160
+ - [ ] Weak assumptions were either strengthened or the idea was modified to eliminate them
161
+ - [ ] The user acknowledged the surfaced issues
162
+ - [ ] A hardened version of the idea is documented with resolved uncertainties