agent-skill-kit 3.9.135 → 3.9.140

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.

Potentially problematic release.


This version of agent-skill-kit might be problematic. Click here for more details.

Files changed (477) hide show
  1. package/.agent/rules/GEMINI.md +173 -210
  2. package/.agent/rules/autopilot.md +198 -287
  3. package/.agent/rules/code-rules.md +187 -227
  4. package/.agent/scripts/version-sync.ts +1 -1
  5. package/.agent/skills/SKILL_INDEX.md +1 -1
  6. package/.agent/skills/agent-browser/AGENTS.md +1 -1
  7. package/.agent/skills/agent-browser/SKILL.md +2 -2
  8. package/.agent/skills/agent-browser/rules/_sections.md +1 -1
  9. package/.agent/skills/agent-browser/rules/_template.md +1 -1
  10. package/.agent/skills/agent-browser/rules/engineering-spec.md +1 -1
  11. package/.agent/skills/ai-artist/AGENTS.md +6 -6
  12. package/.agent/skills/ai-artist/SKILL.md +2 -2
  13. package/.agent/skills/ai-artist/rules/_sections.md +1 -1
  14. package/.agent/skills/ai-artist/rules/_template.md +1 -1
  15. package/.agent/skills/ai-artist/rules/domain-code.md +1 -1
  16. package/.agent/skills/ai-artist/rules/domain-marketing.md +1 -1
  17. package/.agent/skills/ai-artist/rules/engineering-spec.md +1 -1
  18. package/.agent/skills/ai-artist/rules/image-prompts.md +1 -1
  19. package/.agent/skills/ai-artist/rules/model-syntax.md +1 -1
  20. package/.agent/skills/api-architect/AGENTS.md +1 -1
  21. package/.agent/skills/api-architect/SKILL.md +2 -2
  22. package/.agent/skills/api-architect/rules/_sections.md +1 -1
  23. package/.agent/skills/api-architect/rules/_template.md +1 -1
  24. package/.agent/skills/api-architect/rules/api-style.md +1 -1
  25. package/.agent/skills/api-architect/rules/auth.md +1 -1
  26. package/.agent/skills/api-architect/rules/documentation.md +1 -1
  27. package/.agent/skills/api-architect/rules/engineering-spec.md +1 -1
  28. package/.agent/skills/api-architect/rules/graphql.md +1 -1
  29. package/.agent/skills/api-architect/rules/rate-limiting.md +1 -1
  30. package/.agent/skills/api-architect/rules/response.md +1 -1
  31. package/.agent/skills/api-architect/rules/rest.md +1 -1
  32. package/.agent/skills/api-architect/rules/security-testing.md +1 -1
  33. package/.agent/skills/api-architect/rules/trpc.md +1 -1
  34. package/.agent/skills/api-architect/rules/versioning.md +1 -1
  35. package/.agent/skills/auth-patterns/AGENTS.md +1 -1
  36. package/.agent/skills/auth-patterns/SKILL.md +2 -2
  37. package/.agent/skills/auth-patterns/rules/_sections.md +1 -1
  38. package/.agent/skills/auth-patterns/rules/_template.md +1 -1
  39. package/.agent/skills/auth-patterns/rules/engineering-spec.md +1 -1
  40. package/.agent/skills/auth-patterns/rules/jwt-deep.md +1 -1
  41. package/.agent/skills/auth-patterns/rules/mfa.md +1 -1
  42. package/.agent/skills/auth-patterns/rules/oauth2.md +1 -1
  43. package/.agent/skills/auth-patterns/rules/passkey.md +1 -1
  44. package/.agent/skills/auth-patterns/rules/rbac-abac.md +1 -1
  45. package/.agent/skills/auth-patterns/rules/session.md +1 -1
  46. package/.agent/skills/chrome-devtools/AGENTS.md +1 -1
  47. package/.agent/skills/chrome-devtools/SKILL.md +2 -2
  48. package/.agent/skills/chrome-devtools/rules/_sections.md +1 -1
  49. package/.agent/skills/chrome-devtools/rules/_template.md +1 -1
  50. package/.agent/skills/chrome-devtools/rules/aria-snapshot.md +1 -1
  51. package/.agent/skills/chrome-devtools/rules/engineering-spec.md +1 -1
  52. package/.agent/skills/chrome-devtools/rules/scripts-guide.md +1 -1
  53. package/.agent/skills/cicd-pipeline/AGENTS.md +2 -2
  54. package/.agent/skills/cicd-pipeline/SKILL.md +2 -2
  55. package/.agent/skills/cicd-pipeline/rules/_sections.md +1 -1
  56. package/.agent/skills/cicd-pipeline/rules/_template.md +1 -1
  57. package/.agent/skills/cicd-pipeline/rules/engineering-spec.md +1 -1
  58. package/.agent/skills/code-constitution/AGENTS.md +2 -2
  59. package/.agent/skills/code-constitution/CHANGELOG.md +1 -1
  60. package/.agent/skills/code-constitution/SKILL.md +2 -2
  61. package/.agent/skills/code-constitution/examples/violation-backend-mutation/explanation.md +1 -1
  62. package/.agent/skills/code-constitution/examples/violation-chart-injection/explanation.md +1 -1
  63. package/.agent/skills/code-constitution/proposals/v1.1-change-proposal-template.md +2 -2
  64. package/.agent/skills/code-constitution/resources/AUTHORITY_MODEL.md +1 -1
  65. package/.agent/skills/code-constitution/resources/ENFORCEMENT_GUIDE.md +1 -1
  66. package/.agent/skills/code-constitution/resources/LOAD_ORDER.md +1 -1
  67. package/.agent/skills/code-constitution/rules/_sections.md +1 -1
  68. package/.agent/skills/code-constitution/rules/_template.md +1 -1
  69. package/.agent/skills/code-constitution/rules/constitution/master-constitution.md +2 -2
  70. package/.agent/skills/code-constitution/rules/doctrines/architecture/architecture-doctrine.md +2 -2
  71. package/.agent/skills/code-constitution/rules/doctrines/backend/backend-data-engine-doctrine.md +2 -2
  72. package/.agent/skills/code-constitution/rules/doctrines/commercial/commercial-guardrails-doctrine.md +2 -2
  73. package/.agent/skills/code-constitution/rules/doctrines/data/data-integrity-doctrine.md +2 -2
  74. package/.agent/skills/code-constitution/rules/doctrines/frontend/frontend-mobile-doctrine.md +2 -2
  75. package/.agent/skills/code-constitution/rules/doctrines/frontend/interaction-patterns-doctrine.md +2 -2
  76. package/.agent/skills/code-constitution/rules/doctrines/learning/learning-engine-doctrine.md +2 -2
  77. package/.agent/skills/code-constitution/rules/doctrines/performance/performance-doctrine.md +2 -2
  78. package/.agent/skills/code-constitution/rules/doctrines/review/code-review-doctrine.md +2 -2
  79. package/.agent/skills/code-constitution/rules/enforcement/agents/agent-enforcement-protocol.md +2 -2
  80. package/.agent/skills/code-constitution/rules/enforcement/agents/agent-system-prompt.md +2 -2
  81. package/.agent/skills/code-constitution/rules/enforcement/checklists/backend-api-review-checklist.md +1 -1
  82. package/.agent/skills/code-constitution/rules/enforcement/checklists/chart-component-review-checklist.md +1 -1
  83. package/.agent/skills/code-constitution/rules/enforcement/checklists/frontend-review-checklist.md +2 -2
  84. package/.agent/skills/code-constitution/rules/enforcement/playbooks/doctrine-violation-playbook.md +2 -2
  85. package/.agent/skills/code-constitution/rules/engineering-spec.md +1 -1
  86. package/.agent/skills/code-craft/AGENTS.md +2 -2
  87. package/.agent/skills/code-craft/SKILL.md +2 -2
  88. package/.agent/skills/code-craft/rules/_sections.md +1 -1
  89. package/.agent/skills/code-craft/rules/_template.md +1 -1
  90. package/.agent/skills/code-craft/rules/engineering-spec.md +1 -1
  91. package/.agent/skills/code-craft/rules/verification-scripts.md +1 -1
  92. package/.agent/skills/code-review/AGENTS.md +2 -2
  93. package/.agent/skills/code-review/SKILL.md +2 -2
  94. package/.agent/skills/code-review/rules/_sections.md +1 -1
  95. package/.agent/skills/code-review/rules/_template.md +1 -1
  96. package/.agent/skills/code-review/rules/engineering-spec.md +1 -1
  97. package/.agent/skills/context-engineering/AGENTS.md +2 -2
  98. package/.agent/skills/context-engineering/SKILL.md +2 -2
  99. package/.agent/skills/context-engineering/rules/_sections.md +1 -1
  100. package/.agent/skills/context-engineering/rules/_template.md +1 -1
  101. package/.agent/skills/context-engineering/rules/engineering-spec.md +1 -1
  102. package/.agent/skills/copywriting/AGENTS.md +2 -2
  103. package/.agent/skills/copywriting/SKILL.md +2 -2
  104. package/.agent/skills/copywriting/rules/_sections.md +1 -1
  105. package/.agent/skills/copywriting/rules/_template.md +1 -1
  106. package/.agent/skills/copywriting/rules/engineering-spec.md +1 -1
  107. package/.agent/skills/data-modeler/AGENTS.md +2 -2
  108. package/.agent/skills/data-modeler/SKILL.md +2 -2
  109. package/.agent/skills/data-modeler/rules/_sections.md +1 -1
  110. package/.agent/skills/data-modeler/rules/_template.md +1 -1
  111. package/.agent/skills/data-modeler/rules/database-selection.md +1 -1
  112. package/.agent/skills/data-modeler/rules/engineering-spec.md +1 -1
  113. package/.agent/skills/data-modeler/rules/indexing.md +1 -1
  114. package/.agent/skills/data-modeler/rules/migrations.md +1 -1
  115. package/.agent/skills/data-modeler/rules/optimization.md +1 -1
  116. package/.agent/skills/data-modeler/rules/orm-selection.md +1 -1
  117. package/.agent/skills/data-modeler/rules/schema-design.md +1 -1
  118. package/.agent/skills/debug-pro/AGENTS.md +2 -2
  119. package/.agent/skills/debug-pro/SKILL.md +2 -2
  120. package/.agent/skills/debug-pro/defense-in-depth/SKILL.md +2 -2
  121. package/.agent/skills/debug-pro/root-cause-tracing/SKILL.md +2 -2
  122. package/.agent/skills/debug-pro/rules/_sections.md +1 -1
  123. package/.agent/skills/debug-pro/rules/_template.md +1 -1
  124. package/.agent/skills/debug-pro/rules/engineering-spec.md +1 -1
  125. package/.agent/skills/debug-pro/verification-before-completion/SKILL.md +2 -2
  126. package/.agent/skills/design-system/AGENTS.md +1 -1
  127. package/.agent/skills/design-system/SKILL.md +2 -2
  128. package/.agent/skills/design-system/rules/_sections.md +1 -1
  129. package/.agent/skills/design-system/rules/_template.md +1 -1
  130. package/.agent/skills/design-system/rules/animation-guide.md +1 -1
  131. package/.agent/skills/design-system/rules/color-system.md +1 -1
  132. package/.agent/skills/design-system/rules/color-systems.md +1 -1
  133. package/.agent/skills/design-system/rules/decision-trees.md +1 -1
  134. package/.agent/skills/design-system/rules/design-extraction.md +1 -1
  135. package/.agent/skills/design-system/rules/engineering-spec.md +1 -1
  136. package/.agent/skills/design-system/rules/motion-design.md +1 -1
  137. package/.agent/skills/design-system/rules/motion-graphics.md +1 -1
  138. package/.agent/skills/design-system/rules/spatial-composition.md +1 -1
  139. package/.agent/skills/design-system/rules/typography-system.md +1 -1
  140. package/.agent/skills/design-system/rules/typography.md +1 -1
  141. package/.agent/skills/design-system/rules/ux-psychology.md +1 -1
  142. package/.agent/skills/design-system/rules/visual-effects.md +1 -1
  143. package/.agent/skills/doc-templates/AGENTS.md +2 -2
  144. package/.agent/skills/doc-templates/SKILL.md +2 -2
  145. package/.agent/skills/doc-templates/rules/_sections.md +1 -1
  146. package/.agent/skills/doc-templates/rules/_template.md +1 -1
  147. package/.agent/skills/doc-templates/rules/doc.md +1 -1
  148. package/.agent/skills/doc-templates/rules/engineering-spec.md +1 -1
  149. package/.agent/skills/e2e-automation/AGENTS.md +1 -1
  150. package/.agent/skills/e2e-automation/SKILL.md +2 -2
  151. package/.agent/skills/e2e-automation/rules/_sections.md +1 -1
  152. package/.agent/skills/e2e-automation/rules/_template.md +1 -1
  153. package/.agent/skills/e2e-automation/rules/aria-snapshot.md +1 -1
  154. package/.agent/skills/e2e-automation/rules/engineering-spec.md +1 -1
  155. package/.agent/skills/execution-reporter/AGENTS.md +5 -5
  156. package/.agent/skills/execution-reporter/SKILL.md +4 -4
  157. package/.agent/skills/execution-reporter/rules/_sections.md +1 -1
  158. package/.agent/skills/execution-reporter/rules/_template.md +1 -1
  159. package/.agent/skills/execution-reporter/rules/engineering-spec.md +4 -4
  160. package/.agent/skills/game-development/2d-games/SKILL.md +2 -2
  161. package/.agent/skills/game-development/3d-games/SKILL.md +2 -2
  162. package/.agent/skills/game-development/AGENTS.md +2 -2
  163. package/.agent/skills/game-development/SKILL.md +2 -2
  164. package/.agent/skills/game-development/game-art/SKILL.md +2 -2
  165. package/.agent/skills/game-development/game-audio/SKILL.md +2 -2
  166. package/.agent/skills/game-development/game-design/SKILL.md +2 -2
  167. package/.agent/skills/game-development/mobile-games/SKILL.md +2 -2
  168. package/.agent/skills/game-development/multiplayer/SKILL.md +2 -2
  169. package/.agent/skills/game-development/pc-games/SKILL.md +2 -2
  170. package/.agent/skills/game-development/rules/_sections.md +1 -1
  171. package/.agent/skills/game-development/rules/_template.md +1 -1
  172. package/.agent/skills/game-development/rules/engineering-spec.md +1 -1
  173. package/.agent/skills/game-development/vr-ar/SKILL.md +2 -2
  174. package/.agent/skills/game-development/web-games/SKILL.md +2 -2
  175. package/.agent/skills/git-workflow/AGENTS.md +2 -2
  176. package/.agent/skills/git-workflow/SKILL.md +2 -2
  177. package/.agent/skills/git-workflow/rules/_sections.md +1 -1
  178. package/.agent/skills/git-workflow/rules/_template.md +1 -1
  179. package/.agent/skills/git-workflow/rules/engineering-spec.md +1 -1
  180. package/.agent/skills/gitops/AGENTS.md +1 -1
  181. package/.agent/skills/gitops/SKILL.md +2 -2
  182. package/.agent/skills/gitops/rules/_sections.md +1 -1
  183. package/.agent/skills/gitops/rules/_template.md +1 -1
  184. package/.agent/skills/gitops/rules/argocd-setup.md +1 -1
  185. package/.agent/skills/gitops/rules/engineering-spec.md +1 -1
  186. package/.agent/skills/gitops/rules/sync-policies.md +1 -1
  187. package/.agent/skills/google-adk-python/AGENTS.md +1 -1
  188. package/.agent/skills/google-adk-python/SKILL.md +2 -2
  189. package/.agent/skills/google-adk-python/rules/_sections.md +1 -1
  190. package/.agent/skills/google-adk-python/rules/_template.md +1 -1
  191. package/.agent/skills/google-adk-python/rules/deployment.md +1 -1
  192. package/.agent/skills/google-adk-python/rules/engineering-spec.md +1 -1
  193. package/.agent/skills/google-adk-python/rules/multi-agent.md +1 -1
  194. package/.agent/skills/google-adk-python/rules/tools.md +1 -1
  195. package/.agent/skills/idea-storm/AGENTS.md +4 -4
  196. package/.agent/skills/idea-storm/SKILL.md +2 -2
  197. package/.agent/skills/idea-storm/rules/_sections.md +1 -1
  198. package/.agent/skills/idea-storm/rules/_template.md +1 -1
  199. package/.agent/skills/idea-storm/rules/architecture-debate.md +1 -1
  200. package/.agent/skills/idea-storm/rules/dynamic-questioning.md +1 -1
  201. package/.agent/skills/idea-storm/rules/engineering-spec.md +1 -1
  202. package/.agent/skills/knowledge-compiler/SKILL.md +7 -7
  203. package/.agent/skills/knowledge-graph/AGENTS.md +2 -2
  204. package/.agent/skills/knowledge-graph/SKILL.md +2 -2
  205. package/.agent/skills/knowledge-graph/rules/_sections.md +1 -1
  206. package/.agent/skills/knowledge-graph/rules/_template.md +1 -1
  207. package/.agent/skills/knowledge-graph/rules/engineering-spec.md +1 -1
  208. package/.agent/skills/knowledge-linter/SKILL.md +2 -2
  209. package/.agent/skills/lifecycle-orchestrator/AGENTS.md +2 -2
  210. package/.agent/skills/lifecycle-orchestrator/SKILL.md +2 -2
  211. package/.agent/skills/lifecycle-orchestrator/rules/_sections.md +1 -1
  212. package/.agent/skills/lifecycle-orchestrator/rules/_template.md +1 -1
  213. package/.agent/skills/lifecycle-orchestrator/rules/engineering-spec.md +1 -1
  214. package/.agent/skills/mcp-builder/AGENTS.md +1 -1
  215. package/.agent/skills/mcp-builder/SKILL.md +2 -2
  216. package/.agent/skills/mcp-builder/rules/_sections.md +1 -1
  217. package/.agent/skills/mcp-builder/rules/_template.md +1 -1
  218. package/.agent/skills/mcp-builder/rules/best-practices.md +1 -1
  219. package/.agent/skills/mcp-builder/rules/design-principles.md +1 -1
  220. package/.agent/skills/mcp-builder/rules/engineering-spec.md +1 -1
  221. package/.agent/skills/mcp-builder/rules/evaluation.md +1 -1
  222. package/.agent/skills/mcp-builder/rules/python-implementation.md +1 -1
  223. package/.agent/skills/mcp-builder/rules/quickstart.md +1 -1
  224. package/.agent/skills/mcp-builder/rules/typescript-implementation.md +1 -1
  225. package/.agent/skills/mcp-management/AGENTS.md +4 -4
  226. package/.agent/skills/mcp-management/SKILL.md +2 -2
  227. package/.agent/skills/mcp-management/rules/_sections.md +1 -1
  228. package/.agent/skills/mcp-management/rules/_template.md +1 -1
  229. package/.agent/skills/mcp-management/rules/cli-usage.md +1 -1
  230. package/.agent/skills/mcp-management/rules/engineering-spec.md +1 -1
  231. package/.agent/skills/mcp-management/rules/protocol.md +1 -1
  232. package/.agent/skills/media-processing/AGENTS.md +2 -2
  233. package/.agent/skills/media-processing/SKILL.md +2 -2
  234. package/.agent/skills/media-processing/rules/_sections.md +1 -1
  235. package/.agent/skills/media-processing/rules/_template.md +1 -1
  236. package/.agent/skills/media-processing/rules/engineering-spec.md +1 -1
  237. package/.agent/skills/mobile-design/AGENTS.md +1 -1
  238. package/.agent/skills/mobile-design/SKILL.md +2 -2
  239. package/.agent/skills/mobile-design/rules/_sections.md +1 -1
  240. package/.agent/skills/mobile-design/rules/_template.md +1 -1
  241. package/.agent/skills/mobile-design/rules/decision-trees.md +1 -1
  242. package/.agent/skills/mobile-design/rules/engineering-spec.md +1 -1
  243. package/.agent/skills/mobile-design/rules/mobile-backend.md +1 -1
  244. package/.agent/skills/mobile-design/rules/mobile-color-system.md +1 -1
  245. package/.agent/skills/mobile-design/rules/mobile-debugging.md +1 -1
  246. package/.agent/skills/mobile-design/rules/mobile-design-thinking.md +1 -1
  247. package/.agent/skills/mobile-design/rules/mobile-navigation.md +1 -1
  248. package/.agent/skills/mobile-design/rules/mobile-performance.md +1 -1
  249. package/.agent/skills/mobile-design/rules/mobile-testing.md +1 -1
  250. package/.agent/skills/mobile-design/rules/mobile-typography.md +1 -1
  251. package/.agent/skills/mobile-design/rules/platform-android.md +1 -1
  252. package/.agent/skills/mobile-design/rules/platform-ios.md +1 -1
  253. package/.agent/skills/mobile-design/rules/touch-psychology.md +1 -1
  254. package/.agent/skills/mobile-developer/AGENTS.md +2 -2
  255. package/.agent/skills/mobile-developer/SKILL.md +2 -2
  256. package/.agent/skills/mobile-developer/rules/_sections.md +1 -1
  257. package/.agent/skills/mobile-developer/rules/_template.md +1 -1
  258. package/.agent/skills/mobile-developer/rules/anti-patterns.md +1 -1
  259. package/.agent/skills/mobile-developer/rules/app-store-optimization.md +1 -1
  260. package/.agent/skills/mobile-developer/rules/decision-trees.md +1 -1
  261. package/.agent/skills/mobile-developer/rules/deep-linking.md +1 -1
  262. package/.agent/skills/mobile-developer/rules/engineering-spec.md +1 -1
  263. package/.agent/skills/mobile-developer/rules/flutter.md +1 -1
  264. package/.agent/skills/mobile-developer/rules/mobile-backend.md +1 -1
  265. package/.agent/skills/mobile-developer/rules/mobile-color-system.md +1 -1
  266. package/.agent/skills/mobile-developer/rules/mobile-debugging.md +1 -1
  267. package/.agent/skills/mobile-developer/rules/mobile-design-thinking.md +1 -1
  268. package/.agent/skills/mobile-developer/rules/mobile-navigation.md +1 -1
  269. package/.agent/skills/mobile-developer/rules/mobile-performance.md +1 -1
  270. package/.agent/skills/mobile-developer/rules/mobile-testing.md +1 -1
  271. package/.agent/skills/mobile-developer/rules/mobile-typography.md +1 -1
  272. package/.agent/skills/mobile-developer/rules/native.md +1 -1
  273. package/.agent/skills/mobile-developer/rules/platform-android.md +1 -1
  274. package/.agent/skills/mobile-developer/rules/platform-ios.md +1 -1
  275. package/.agent/skills/mobile-developer/rules/push-notifications.md +1 -1
  276. package/.agent/skills/mobile-developer/rules/react-native.md +1 -1
  277. package/.agent/skills/mobile-developer/rules/touch-psychology.md +1 -1
  278. package/.agent/skills/nextjs-pro/AGENTS.md +1 -1
  279. package/.agent/skills/nextjs-pro/SKILL.md +2 -2
  280. package/.agent/skills/nextjs-pro/rules/_sections.md +1 -1
  281. package/.agent/skills/nextjs-pro/rules/_template.md +1 -1
  282. package/.agent/skills/nextjs-pro/rules/advanced-event-handler-refs.md +1 -1
  283. package/.agent/skills/nextjs-pro/rules/advanced-init-once.md +1 -1
  284. package/.agent/skills/nextjs-pro/rules/advanced-use-latest.md +1 -1
  285. package/.agent/skills/nextjs-pro/rules/async-api-routes.md +1 -1
  286. package/.agent/skills/nextjs-pro/rules/async-defer-await.md +1 -1
  287. package/.agent/skills/nextjs-pro/rules/async-dependencies.md +1 -1
  288. package/.agent/skills/nextjs-pro/rules/async-parallel.md +1 -1
  289. package/.agent/skills/nextjs-pro/rules/async-suspense-boundaries.md +1 -1
  290. package/.agent/skills/nextjs-pro/rules/bundle-barrel-imports.md +1 -1
  291. package/.agent/skills/nextjs-pro/rules/bundle-conditional.md +1 -1
  292. package/.agent/skills/nextjs-pro/rules/bundle-defer-third-party.md +1 -1
  293. package/.agent/skills/nextjs-pro/rules/bundle-dynamic-imports.md +1 -1
  294. package/.agent/skills/nextjs-pro/rules/bundle-preload.md +1 -1
  295. package/.agent/skills/nextjs-pro/rules/client-event-listeners.md +1 -1
  296. package/.agent/skills/nextjs-pro/rules/client-localstorage-schema.md +1 -1
  297. package/.agent/skills/nextjs-pro/rules/client-passive-event-listeners.md +1 -1
  298. package/.agent/skills/nextjs-pro/rules/client-swr-dedup.md +1 -1
  299. package/.agent/skills/nextjs-pro/rules/engineering-spec.md +1 -1
  300. package/.agent/skills/nextjs-pro/rules/js-batch-dom-css.md +1 -1
  301. package/.agent/skills/nextjs-pro/rules/js-cache-function-results.md +1 -1
  302. package/.agent/skills/nextjs-pro/rules/js-cache-property-access.md +1 -1
  303. package/.agent/skills/nextjs-pro/rules/js-cache-storage.md +1 -1
  304. package/.agent/skills/nextjs-pro/rules/js-combine-iterations.md +1 -1
  305. package/.agent/skills/nextjs-pro/rules/js-early-exit.md +1 -1
  306. package/.agent/skills/nextjs-pro/rules/js-hoist-regexp.md +1 -1
  307. package/.agent/skills/nextjs-pro/rules/js-index-maps.md +1 -1
  308. package/.agent/skills/nextjs-pro/rules/js-length-check-first.md +1 -1
  309. package/.agent/skills/nextjs-pro/rules/js-min-max-loop.md +1 -1
  310. package/.agent/skills/nextjs-pro/rules/js-set-map-lookups.md +1 -1
  311. package/.agent/skills/nextjs-pro/rules/js-tosorted-immutable.md +1 -1
  312. package/.agent/skills/nextjs-pro/rules/rendering-activity.md +1 -1
  313. package/.agent/skills/nextjs-pro/rules/rendering-animate-svg-wrapper.md +1 -1
  314. package/.agent/skills/nextjs-pro/rules/rendering-conditional-render.md +1 -1
  315. package/.agent/skills/nextjs-pro/rules/rendering-content-visibility.md +1 -1
  316. package/.agent/skills/nextjs-pro/rules/rendering-hoist-jsx.md +1 -1
  317. package/.agent/skills/nextjs-pro/rules/rendering-hydration-no-flicker.md +1 -1
  318. package/.agent/skills/nextjs-pro/rules/rendering-hydration-suppress-warning.md +1 -1
  319. package/.agent/skills/nextjs-pro/rules/rendering-svg-precision.md +1 -1
  320. package/.agent/skills/nextjs-pro/rules/rendering-usetransition-loading.md +1 -1
  321. package/.agent/skills/nextjs-pro/rules/rerender-defer-reads.md +1 -1
  322. package/.agent/skills/nextjs-pro/rules/rerender-dependencies.md +1 -1
  323. package/.agent/skills/nextjs-pro/rules/rerender-derived-state-no-effect.md +1 -1
  324. package/.agent/skills/nextjs-pro/rules/rerender-derived-state.md +1 -1
  325. package/.agent/skills/nextjs-pro/rules/rerender-functional-setstate.md +1 -1
  326. package/.agent/skills/nextjs-pro/rules/rerender-lazy-state-init.md +1 -1
  327. package/.agent/skills/nextjs-pro/rules/rerender-memo-with-default-value.md +1 -1
  328. package/.agent/skills/nextjs-pro/rules/rerender-memo.md +1 -1
  329. package/.agent/skills/nextjs-pro/rules/rerender-move-effect-to-event.md +1 -1
  330. package/.agent/skills/nextjs-pro/rules/rerender-simple-expression-in-memo.md +1 -1
  331. package/.agent/skills/nextjs-pro/rules/rerender-transitions.md +1 -1
  332. package/.agent/skills/nextjs-pro/rules/rerender-use-ref-transient-values.md +1 -1
  333. package/.agent/skills/nextjs-pro/rules/server-after-nonblocking.md +1 -1
  334. package/.agent/skills/nextjs-pro/rules/server-auth-actions.md +1 -1
  335. package/.agent/skills/nextjs-pro/rules/server-cache-lru.md +1 -1
  336. package/.agent/skills/nextjs-pro/rules/server-cache-react.md +1 -1
  337. package/.agent/skills/nextjs-pro/rules/server-dedup-props.md +1 -1
  338. package/.agent/skills/nextjs-pro/rules/server-parallel-fetching.md +1 -1
  339. package/.agent/skills/nextjs-pro/rules/server-serialization.md +1 -1
  340. package/.agent/skills/nodejs-pro/AGENTS.md +2 -2
  341. package/.agent/skills/nodejs-pro/SKILL.md +2 -2
  342. package/.agent/skills/nodejs-pro/rules/_sections.md +1 -1
  343. package/.agent/skills/nodejs-pro/rules/_template.md +1 -1
  344. package/.agent/skills/nodejs-pro/rules/architecture-patterns.md +1 -1
  345. package/.agent/skills/nodejs-pro/rules/async-patterns.md +1 -1
  346. package/.agent/skills/nodejs-pro/rules/engineering-spec.md +1 -1
  347. package/.agent/skills/nodejs-pro/rules/error-handling.md +1 -1
  348. package/.agent/skills/nodejs-pro/rules/framework-selection.md +1 -1
  349. package/.agent/skills/nodejs-pro/rules/runtime-modules.md +1 -1
  350. package/.agent/skills/nodejs-pro/rules/testing-strategy.md +1 -1
  351. package/.agent/skills/nodejs-pro/rules/validation-security.md +1 -1
  352. package/.agent/skills/observability/AGENTS.md +1 -1
  353. package/.agent/skills/observability/SKILL.md +2 -2
  354. package/.agent/skills/observability/rules/_sections.md +1 -1
  355. package/.agent/skills/observability/rules/_template.md +1 -1
  356. package/.agent/skills/observability/rules/engineering-spec.md +1 -1
  357. package/.agent/skills/offensive-sec/AGENTS.md +2 -2
  358. package/.agent/skills/offensive-sec/SKILL.md +2 -2
  359. package/.agent/skills/offensive-sec/rules/_sections.md +1 -1
  360. package/.agent/skills/offensive-sec/rules/_template.md +1 -1
  361. package/.agent/skills/offensive-sec/rules/engineering-spec.md +1 -1
  362. package/.agent/skills/perf-optimizer/AGENTS.md +2 -2
  363. package/.agent/skills/perf-optimizer/SKILL.md +2 -2
  364. package/.agent/skills/perf-optimizer/rules/_sections.md +1 -1
  365. package/.agent/skills/perf-optimizer/rules/_template.md +1 -1
  366. package/.agent/skills/perf-optimizer/rules/backend-patterns.md +1 -1
  367. package/.agent/skills/perf-optimizer/rules/engineering-spec.md +1 -1
  368. package/.agent/skills/problem-checker/AGENTS.md +2 -2
  369. package/.agent/skills/problem-checker/SKILL.md +2 -2
  370. package/.agent/skills/problem-checker/rules/_sections.md +1 -1
  371. package/.agent/skills/problem-checker/rules/_template.md +1 -1
  372. package/.agent/skills/problem-checker/rules/engineering-spec.md +1 -1
  373. package/.agent/skills/project-planner/AGENTS.md +2 -2
  374. package/.agent/skills/project-planner/SKILL.md +2 -2
  375. package/.agent/skills/project-planner/rules/_sections.md +1 -1
  376. package/.agent/skills/project-planner/rules/_template.md +1 -1
  377. package/.agent/skills/project-planner/rules/engineering-spec.md +1 -1
  378. package/.agent/skills/python-pro/AGENTS.md +1 -1
  379. package/.agent/skills/python-pro/SKILL.md +2 -2
  380. package/.agent/skills/python-pro/rules/_sections.md +1 -1
  381. package/.agent/skills/python-pro/rules/_template.md +1 -1
  382. package/.agent/skills/python-pro/rules/async-patterns.md +1 -1
  383. package/.agent/skills/python-pro/rules/django-patterns.md +1 -1
  384. package/.agent/skills/python-pro/rules/engineering-spec.md +1 -1
  385. package/.agent/skills/python-pro/rules/fastapi-patterns.md +1 -1
  386. package/.agent/skills/python-pro/rules/framework-selection.md +1 -1
  387. package/.agent/skills/python-pro/rules/project-structure.md +1 -1
  388. package/.agent/skills/python-pro/rules/testing-patterns.md +1 -1
  389. package/.agent/skills/python-pro/rules/type-hints.md +1 -1
  390. package/.agent/skills/react-pro/AGENTS.md +2 -2
  391. package/.agent/skills/react-pro/SKILL.md +2 -2
  392. package/.agent/skills/react-pro/rules/_sections.md +1 -1
  393. package/.agent/skills/react-pro/rules/_template.md +1 -1
  394. package/.agent/skills/react-pro/rules/component-patterns.md +1 -1
  395. package/.agent/skills/react-pro/rules/composition-compound.md +1 -1
  396. package/.agent/skills/react-pro/rules/data-fetching.md +1 -1
  397. package/.agent/skills/react-pro/rules/engineering-spec.md +1 -1
  398. package/.agent/skills/react-pro/rules/error-boundary.md +1 -1
  399. package/.agent/skills/react-pro/rules/file-organization.md +1 -1
  400. package/.agent/skills/react-pro/rules/hooks-custom.md +1 -1
  401. package/.agent/skills/react-pro/rules/mui-styling.md +1 -1
  402. package/.agent/skills/react-pro/rules/patterns.md +1 -1
  403. package/.agent/skills/react-pro/rules/performance-optimization.md +1 -1
  404. package/.agent/skills/react-pro/rules/performance.md +1 -1
  405. package/.agent/skills/react-pro/rules/react19-hooks.md +1 -1
  406. package/.agent/skills/react-pro/rules/state-management.md +1 -1
  407. package/.agent/skills/react-pro/rules/testing-patterns.md +1 -1
  408. package/.agent/skills/registry.json +1 -1
  409. package/.agent/skills/security-scanner/AGENTS.md +2 -2
  410. package/.agent/skills/security-scanner/SKILL.md +2 -2
  411. package/.agent/skills/security-scanner/rules/_sections.md +1 -1
  412. package/.agent/skills/security-scanner/rules/_template.md +1 -1
  413. package/.agent/skills/security-scanner/rules/auth-patterns.md +1 -1
  414. package/.agent/skills/security-scanner/rules/checklists.md +1 -1
  415. package/.agent/skills/security-scanner/rules/engineering-spec.md +1 -1
  416. package/.agent/skills/seo-optimizer/AGENTS.md +2 -2
  417. package/.agent/skills/seo-optimizer/SKILL.md +2 -2
  418. package/.agent/skills/seo-optimizer/rules/_sections.md +1 -1
  419. package/.agent/skills/seo-optimizer/rules/_template.md +1 -1
  420. package/.agent/skills/seo-optimizer/rules/engineering-spec.md +1 -1
  421. package/.agent/skills/server-ops/AGENTS.md +1 -1
  422. package/.agent/skills/server-ops/SKILL.md +2 -2
  423. package/.agent/skills/server-ops/rules/_sections.md +1 -1
  424. package/.agent/skills/server-ops/rules/_template.md +1 -1
  425. package/.agent/skills/server-ops/rules/engineering-spec.md +2 -2
  426. package/.agent/skills/shell-script/AGENTS.md +2 -2
  427. package/.agent/skills/shell-script/SKILL.md +2 -2
  428. package/.agent/skills/shell-script/rules/_sections.md +1 -1
  429. package/.agent/skills/shell-script/rules/_template.md +1 -1
  430. package/.agent/skills/shell-script/rules/engineering-spec.md +1 -1
  431. package/.agent/skills/skill-generator/SKILL.md +2 -2
  432. package/.agent/skills/smart-router/SKILL.md +2 -2
  433. package/.agent/skills/studio/AGENTS.md +1 -1
  434. package/.agent/skills/studio/SKILL.md +2 -2
  435. package/.agent/skills/studio/rules/_sections.md +1 -1
  436. package/.agent/skills/studio/rules/_template.md +1 -1
  437. package/.agent/skills/studio/rules/engineering-spec.md +1 -1
  438. package/.agent/skills/system-design/AGENTS.md +1 -1
  439. package/.agent/skills/system-design/SKILL.md +2 -2
  440. package/.agent/skills/system-design/rules/_sections.md +1 -1
  441. package/.agent/skills/system-design/rules/_template.md +1 -1
  442. package/.agent/skills/system-design/rules/context-discovery.md +1 -1
  443. package/.agent/skills/system-design/rules/engineering-spec.md +1 -1
  444. package/.agent/skills/system-design/rules/examples.md +1 -1
  445. package/.agent/skills/system-design/rules/pattern-selection.md +1 -1
  446. package/.agent/skills/system-design/rules/patterns-reference.md +1 -1
  447. package/.agent/skills/system-design/rules/trade-off-analysis.md +1 -1
  448. package/.agent/skills/tailwind-kit/AGENTS.md +1 -1
  449. package/.agent/skills/tailwind-kit/SKILL.md +2 -2
  450. package/.agent/skills/tailwind-kit/rules/_sections.md +1 -1
  451. package/.agent/skills/tailwind-kit/rules/_template.md +1 -1
  452. package/.agent/skills/tailwind-kit/rules/components.md +1 -1
  453. package/.agent/skills/tailwind-kit/rules/engineering-spec.md +1 -1
  454. package/.agent/skills/tailwind-kit/rules/responsive.md +1 -1
  455. package/.agent/skills/tailwind-kit/rules/v4-config.md +1 -1
  456. package/.agent/skills/test-architect/AGENTS.md +2 -2
  457. package/.agent/skills/test-architect/SKILL.md +2 -2
  458. package/.agent/skills/test-architect/rules/_sections.md +1 -1
  459. package/.agent/skills/test-architect/rules/_template.md +1 -1
  460. package/.agent/skills/test-architect/rules/engineering-spec.md +1 -1
  461. package/.agent/skills/typescript-expert/AGENTS.md +1 -1
  462. package/.agent/skills/typescript-expert/SKILL.md +2 -2
  463. package/.agent/skills/typescript-expert/rules/_sections.md +1 -1
  464. package/.agent/skills/typescript-expert/rules/_template.md +1 -1
  465. package/.agent/skills/typescript-expert/rules/engineering-spec.md +1 -1
  466. package/.agent/skills/typescript-expert/rules/typescript-cheatsheet.md +1 -1
  467. package/.agent/skills/vercel-deploy/AGENTS.md +2 -2
  468. package/.agent/skills/vercel-deploy/SKILL.md +2 -2
  469. package/.agent/skills/vercel-deploy/rules/_sections.md +1 -1
  470. package/.agent/skills/vercel-deploy/rules/_template.md +1 -1
  471. package/.agent/skills/vercel-deploy/rules/engineering-spec.md +1 -1
  472. package/.agent/workflows/build.md +338 -338
  473. package/.agent/workflows/knowledge.md +2 -2
  474. package/README.md +2 -2
  475. package/docs/SKILL_DESIGN_GUIDE.md +1 -1
  476. package/docs/WORKFLOW_DESIGN_GUIDE.md +2 -2
  477. package/package.json +2 -2
@@ -1,338 +1,338 @@
1
- ---
2
- description: Full-stack application factory — transform natural language descriptions into production-ready apps with multi-agent coordination, smart stack defaults, and automated verification.
3
- chain: build-web-app
4
- skills: [app-scaffold, react-pro, nextjs-pro, project-planner, studio, design-system, code-craft, data-modeler, api-architect, test-architect, idea-storm, nodejs-pro, problem-checker, context-engineering, knowledge-compiler]
5
- agents: [orchestrator, assessor, recovery, critic, learner, project-planner, database-architect, backend-specialist, frontend-specialist, test-engineer, mobile-developer, devops-engineer, security-auditor]
6
- ---
7
-
8
- # /build - Application Factory
9
-
10
- $ARGUMENTS
11
-
12
- ---
13
-
14
- ## Purpose
15
-
16
- Ship production-ready applications from natural language descriptions by coordinating 4+ specialist agents with automated verification. **Differs from `/autopilot` (fully autonomous multi-domain orchestration) and `/cook` (targeted single-scope tasks) by focusing on new application creation from scratch with guided requirements discovery.** Uses `project-planner` for architecture, `data-modeler` + `nodejs-pro` + `react-pro` for parallel implementation, and `test-architect` for verification.
17
-
18
- ---
19
-
20
- ## ?? Meta-Agents Integration
21
-
22
- | Phase | Agent | Action |
23
- | ----- | ----- | ------ |
24
- | **Pre-Flight** | `assessor` | Evaluate build risk level and knowledge-compiler context |
25
- | **Execution** | `orchestrator` / `critic` | Coordinate parallel execution and resolve schema/API conflicts |
26
- | **Safety** | `recovery` | Save state and recover from build failures |
27
- | **Post-Build** | `learner` | Log build architecture and implementation patterns |
28
-
29
- ```
30
- Flow:
31
- assessor.evaluate(risk) ? recovery.save(state)
32
- ?
33
- orchestrator.init() ? assign agents to parallel groups
34
- ?
35
- conflict? ? critic.arbitrate(safety > correctness)
36
- ?
37
- failure? ? recovery.restore() ? learner.log(failure)
38
- ?
39
- success ? learner.log(patterns)
40
- ```
41
-
42
- ---
43
-
44
- ## ?? MANDATORY: Build Pipeline
45
-
46
- ### Phase 1: Pre-flight & knowledge-compiler Context
47
-
48
- > **Rule 0.5-K:** knowledge-compiler pattern check.
49
-
50
- 1. Read `.agent/skills/knowledge-compiler/patterns/` for past failures before proceeding.
51
- 2. Trigger `recovery` agent to run Checkpoint (`git commit -m "chore(checkpoint): pre-build"`).
52
-
53
- ### Phase 2: Requirements Discovery
54
-
55
- | Field | Value |
56
- |-------|-------|
57
- | **INPUT** | $ARGUMENTS (app description — what to build) |
58
- | **OUTPUT** | Requirements document: app type, users, core features, stack |
59
- | **AGENTS** | `project-planner`, `assessor` |
60
- | **SKILLS** | `idea-storm`, `project-planner`, `context-engineering` |
61
-
62
- // turbo — telemetry: phase-2-requirements
63
-
64
- 1. If requirements are incomplete, ask clarifying questions:
65
-
66
- ```
67
- 1. What TYPE of app? (web/mobile/api/cli)
68
- 2. Who are the USERS? (consumers/business/developers)
69
- 3. What are the CORE FEATURES? (list 3-5 must-haves)
70
- 4. What STACK preferences? (or let me choose)
71
- 5. What is the TIMELINE? (MVP/full product)
72
- ```
73
-
74
- 2. Select tech stack based on app type:
75
-
76
- | App Type | Recommended Stack | Agents Invoked |
77
- |----------|------------------|----------------|
78
- | Web SaaS | Next.js + Prisma + PostgreSQL | frontend, backend, database |
79
- | E-commerce | Next.js + Stripe + Supabase | frontend, backend, security |
80
- | Mobile | React Native + Expo + Firebase | mobile, backend, test |
81
- | API | Hono + Prisma + Railway | backend, database, devops |
82
- | Dashboard | Next.js + Chart.js | frontend, backend |
83
-
84
- 3. Smart defaults (when user doesn't specify):
85
-
86
- | Aspect | Default |
87
- |--------|---------|
88
- | Framework | Next.js 15 |
89
- | Styling | Tailwind + shadcn/ui |
90
- | Database | PostgreSQL (Supabase) |
91
- | Auth | Clerk |
92
- | Deployment | Vercel |
93
- | Testing | Vitest + Playwright |
94
-
95
- ### Phase 3: Planning & Design
96
-
97
- | Field | Value |
98
- |-------|-------|
99
- | **INPUT** | Requirements from Phase 2 |
100
- | **OUTPUT** | PLAN.md with task breakdown, agent assignments, file structure |
101
- | **AGENTS** | `project-planner` |
102
- | **SKILLS** | `project-planner`, `code-craft` |
103
-
104
- // turbo — telemetry: phase-3-planning
105
-
106
- 1. Create PLAN.md with:
107
- - Task breakdown and agent assignments
108
- - File structure blueprint
109
- - Dependency graph between agents
110
- - Parallel execution groups
111
- 2. `assessor` evaluates risk level of the build plan
112
- 3. `recovery` saves current project state (if existing directory)
113
-
114
- **? CHECKPOINT: User approval required before Phase 4**
115
-
116
- ### Phase 4: Design System (UI Apps Only)
117
-
118
- | Field | Value |
119
- |-------|-------|
120
- | **INPUT** | Approved PLAN.md (for apps with UI) |
121
- | **OUTPUT** | Design tokens: colors, typography, effects |
122
- | **AGENTS** | `react-pro`, `orchestrator` |
123
- | **SKILLS** | `studio`, `design-system` |
124
-
125
- > **Skip this phase** if the app has no UI (API-only, CLI).
126
-
127
- // turbo — telemetry: phase-4-studio-search
128
- ```bash
129
- npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" node .agent/skills/studio/scripts/search.ts "<app_type> <style> <keywords>" --design-system -p "<Project Name>"
130
- ```
131
-
132
- ### Phase 5: Parallel Build
133
-
134
- | Field | Value |
135
- |-------|-------|
136
- | **INPUT** | Approved plan + design system tokens |
137
- | **OUTPUT** | Complete application: schema, API routes, UI components, tests |
138
- | **AGENTS** | `orchestrator`, `critic`, `data-modeler`, `nodejs-pro`, `react-pro`, `test-architect` |
139
- | **SKILLS** | `data-modeler`, `nodejs-pro`, `api-architect`, `code-craft`, `test-architect` |
140
-
141
- // turbo — telemetry: phase-5-build
142
-
143
- ```mermaid
144
- graph TD
145
- A[Approved Plan] --> B[Foundation]
146
- B --> B1[database-architect]
147
- B --> B2[security-auditor]
148
- B1 --> C[Core]
149
- B2 --> C
150
- C --> C1[backend-specialist]
151
- C --> C2[frontend-specialist]
152
- C1 --> D[Polish]
153
- C2 --> D
154
- D --> D1[test-engineer]
155
- D1 --> E[Preview]
156
- ```
157
-
158
- | Parallel Group | Agents | Task |
159
- |----------------|--------|------|
160
- | **Foundation** | `data-modeler`, `security-scanner` | Schema + auth setup |
161
- | **Core** | `nodejs-pro`, `react-pro` | API routes + UI components |
162
- | **Polish** | `test-architect` | Tests + integration |
163
-
164
- ### Phase 6: Verification & Preview
165
-
166
- | Field | Value |
167
- |-------|-------|
168
- | **INPUT** | All artifacts from Phase 5 |
169
- | **OUTPUT** | Running preview + verification report |
170
- | **AGENTS** | `test-architect`, `learner` |
171
- | **SKILLS** | `test-architect`, `problem-checker`, `knowledge-compiler` |
172
-
173
- // turbo — telemetry: phase-6-test
174
- ```bash
175
- npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npm test
176
- ```
177
-
178
- // turbo — telemetry: phase-6-lint-typecheck
179
- ```bash
180
- npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npm run lint; npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npx tsc --noEmit
181
- ```
182
-
183
- // turbo — telemetry: phase-6-preview
184
- ```bash
185
- npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npm run dev
186
- ```
187
-
188
- **Exit Gate — ALL must pass:**
189
-
190
- | Check | Target | How to Verify |
191
- |-------|--------|---------------|
192
- | IDE Problems | 0 | `@[current_problems]` |
193
- | Compilation | Pass | TypeScript check |
194
- | Tests | All passing | npm test |
195
- | Preview | Running | localhost:3000 responding |
196
- | Schema | Valid | Prisma validate (if applicable) |
197
-
198
- ---
199
-
200
- ## ? MANDATORY: Problem Verification Before Completion
201
-
202
- > **CRITICAL:** This check MUST be performed before any `notify_user` or task completion.
203
-
204
- ### Check @[current_problems]
205
-
206
- ```
207
- 1. Read @[current_problems] from IDE
208
- 2. If errors/warnings > 0:
209
- a. Auto-fix: imports, types, lint errors
210
- b. Re-check @[current_problems]
211
- c. If still > 0 ? STOP ? Notify user
212
- 3. If count = 0 ? Proceed to completion
213
- ```
214
-
215
- ### Auto-Fixable
216
-
217
- | Type | Fix |
218
- |------|-----|
219
- | Missing import | Add import statement |
220
- | JSX namespace | Import from 'react' |
221
- | Unused variable | Remove or prefix `_` |
222
- | Lint errors | Run eslint --fix |
223
-
224
- > **Rule:** Never mark complete with errors in `@[current_problems]`. **NEVER mark complete without a working preview.**
225
-
226
- ---
227
-
228
- ## ?? Rollback & Recovery
229
-
230
- If the Exit Gates fail and cannot be resolved automatically:
231
- 1. Restore to pre-build checkpoint (`git checkout -- .` or `git stash pop`).
232
- 2. Log failure via `learner` meta-agent.
233
- 3. Notify user with failure context and recovery options.
234
-
235
- ---
236
-
237
- ## Output Format
238
-
239
- ```markdown
240
- ## ??? Building: [App Name]
241
-
242
- ### Stack Decision
243
-
244
- | Layer | Choice | Reason |
245
- |-------|--------|--------|
246
- | Frontend | Next.js 15 | SSR, App Router, Vercel deploy |
247
- | Backend | Hono + Prisma | Type-safe, edge-ready |
248
- | Database | PostgreSQL | Relational, Supabase hosting |
249
- | Auth | Clerk | Fast integration, social login |
250
- | Styling | Tailwind + shadcn/ui | Rapid UI development |
251
-
252
- ### Agent Coordination
253
-
254
- | Agent | Task | Status |
255
- |-------|------|--------|
256
- | `project-planner` | Architecture plan | ? Complete |
257
- | `data-modeler` | Schema design | ? Complete |
258
- | `nodejs-pro` | API routes | ? Complete |
259
- | `react-pro` | UI components | ? Complete |
260
- | `test-architect` | E2E tests | ? Complete |
261
-
262
- ### Preview
263
-
264
- ?? http://localhost:3000
265
-
266
- ### Next Steps
267
-
268
- - [ ] Review the generated code
269
- - [ ] Test core user flows
270
- - [ ] Run `/validate` for comprehensive tests
271
- - [ ] Deploy when ready: `/launch`
272
- ```
273
-
274
- ---
275
-
276
- ## Examples
277
-
278
- ```
279
- /build SaaS dashboard with user analytics and auth
280
- /build e-commerce store with Stripe payments and product catalog
281
- /build blog engine with MDX content and CMS
282
- /build real-time chat app with WebSocket and message history
283
- /build REST API for mobile app with auth and rate limiting
284
- ```
285
-
286
- ---
287
-
288
- ## Key Principles
289
-
290
- - **Requirements first** — discover what to build before building, ask clarifying questions
291
- - **Smart stack defaults** — sensible tech choices unless user specifies otherwise
292
- - **Parallel execution** — independent agents run simultaneously for faster delivery
293
- - **Working preview required** — never mark complete without a running dev server
294
- - **Exit gate enforced** — IDE problems = 0, tests passing, types valid before completion
295
-
296
- ---
297
-
298
- ## ?? Workflow Chain
299
-
300
- **Skills Loaded (15):**
301
-
302
- - `code-craft` - Full-stack scaffolding from natural language
303
- - `react-pro` - React application development
304
- - `nextjs-pro` - Next.js framework expertise
305
- - `project-planner` - Task breakdown and architecture planning
306
- - `studio` - Design system generation for UI apps
307
- - `design-system` - UI/UX design tokens and components
308
- - `code-craft` - Coding standards and best practices
309
- - `data-modeler` - Database schema design
310
- - `api-architect` - API design and endpoint patterns
311
- - `test-architect` - Testing strategies and coverage
312
- - `idea-storm` - Brainstorming and alternative analysis
313
- - `nodejs-pro` - Node.js backend development
314
- - `context-engineering` - Codebase parsing and framework detection
315
- - `problem-checker` - IDE error detection and auto-fix
316
- - `knowledge-compiler` - Learning and logging execution patterns
317
-
318
- ```mermaid
319
- graph LR
320
- A["/plan"] --> B["/build"]
321
- B --> C["/validate"]
322
- C --> D["/launch"]
323
- style B fill:#10b981
324
- ```
325
-
326
- | After /build | Run | Purpose |
327
- |-------------|-----|---------|
328
- | Build complete | `/validate` | Run comprehensive test suite |
329
- | Needs preview | `/stage` | Start development environment |
330
- | Ready to deploy | `/launch` | Deploy to production |
331
- | Found bugs | `/diagnose` | Root cause investigation |
332
-
333
- **Handoff to /validate:**
334
-
335
- ```markdown
336
- ? Build complete! Preview running at localhost:3000.
337
- [X] agents coordinated, [Y] files created. Run `/validate` for full test suite.
338
- ```
1
+ ---
2
+ description: Full-stack application factory — transform natural language descriptions into production-ready apps with multi-agent coordination, smart stack defaults, and automated verification.
3
+ chain: build-web-app
4
+ skills: [app-scaffold, react-pro, nextjs-pro, project-planner, studio, design-system, code-craft, data-modeler, api-architect, test-architect, idea-storm, nodejs-pro, problem-checker, context-engineering, knowledge-compiler]
5
+ agents: [orchestrator, assessor, recovery, critic, learner, project-planner, database-architect, backend-specialist, frontend-specialist, test-engineer, mobile-developer, devops-engineer, security-auditor]
6
+ ---
7
+
8
+ # /build - Application Factory
9
+
10
+ $ARGUMENTS
11
+
12
+ ---
13
+
14
+ ## Purpose
15
+
16
+ Ship production-ready applications from natural language descriptions by coordinating 4+ specialist agents with automated verification. **Differs from `/autopilot` (fully autonomous multi-domain orchestration) and `/cook` (targeted single-scope tasks) by focusing on new application creation from scratch with guided requirements discovery.** Uses `project-planner` for architecture, `data-modeler` + `nodejs-pro` + `react-pro` for parallel implementation, and `test-architect` for verification.
17
+
18
+ ---
19
+
20
+ ## 🤖 Meta-Agents Integration
21
+
22
+ | Phase | Agent | Action |
23
+ | ----- | ----- | ------ |
24
+ | **Pre-Flight** | `assessor` | Evaluate build risk level and knowledge-compiler context |
25
+ | **Execution** | `orchestrator` / `critic` | Coordinate parallel execution and resolve schema/API conflicts |
26
+ | **Safety** | `recovery` | Save state and recover from build failures |
27
+ | **Post-Build** | `learner` | Log build architecture and implementation patterns |
28
+
29
+ ```
30
+ Flow:
31
+ assessor.evaluate(risk) recovery.save(state)
32
+
33
+ orchestrator.init() assign agents to parallel groups
34
+
35
+ conflict? critic.arbitrate(safety > correctness)
36
+
37
+ failure? recovery.restore() learner.log(failure)
38
+
39
+ success learner.log(patterns)
40
+ ```
41
+
42
+ ---
43
+
44
+ ## MANDATORY: Build Pipeline
45
+
46
+ ### Phase 1: Pre-flight & knowledge-compiler Context
47
+
48
+ > **Rule 0.5-K:** knowledge-compiler pattern check.
49
+
50
+ 1. Read `.agent/skills/knowledge-compiler/patterns/` for past failures before proceeding.
51
+ 2. Trigger `recovery` agent to run Checkpoint (`git commit -m "chore(checkpoint): pre-build"`).
52
+
53
+ ### Phase 2: Requirements Discovery
54
+
55
+ | Field | Value |
56
+ |-------|-------|
57
+ | **INPUT** | $ARGUMENTS (app description — what to build) |
58
+ | **OUTPUT** | Requirements document: app type, users, core features, stack |
59
+ | **AGENTS** | `project-planner`, `assessor` |
60
+ | **SKILLS** | `idea-storm`, `project-planner`, `context-engineering` |
61
+
62
+ // turbo — telemetry: phase-2-requirements
63
+
64
+ 1. If requirements are incomplete, ask clarifying questions:
65
+
66
+ ```
67
+ 1. What TYPE of app? (web/mobile/api/cli)
68
+ 2. Who are the USERS? (consumers/business/developers)
69
+ 3. What are the CORE FEATURES? (list 3-5 must-haves)
70
+ 4. What STACK preferences? (or let me choose)
71
+ 5. What is the TIMELINE? (MVP/full product)
72
+ ```
73
+
74
+ 2. Select tech stack based on app type:
75
+
76
+ | App Type | Recommended Stack | Agents Invoked |
77
+ |----------|------------------|----------------|
78
+ | Web SaaS | Next.js + Prisma + PostgreSQL | frontend, backend, database |
79
+ | E-commerce | Next.js + Stripe + Supabase | frontend, backend, security |
80
+ | Mobile | React Native + Expo + Firebase | mobile, backend, test |
81
+ | API | Hono + Prisma + Railway | backend, database, devops |
82
+ | Dashboard | Next.js + Chart.js | frontend, backend |
83
+
84
+ 3. Smart defaults (when user doesn't specify):
85
+
86
+ | Aspect | Default |
87
+ |--------|---------|
88
+ | Framework | Next.js 15 |
89
+ | Styling | Tailwind + shadcn/ui |
90
+ | Database | PostgreSQL (Supabase) |
91
+ | Auth | Clerk |
92
+ | Deployment | Vercel |
93
+ | Testing | Vitest + Playwright |
94
+
95
+ ### Phase 3: Planning & Design
96
+
97
+ | Field | Value |
98
+ |-------|-------|
99
+ | **INPUT** | Requirements from Phase 2 |
100
+ | **OUTPUT** | PLAN.md with task breakdown, agent assignments, file structure |
101
+ | **AGENTS** | `project-planner` |
102
+ | **SKILLS** | `project-planner`, `code-craft` |
103
+
104
+ // turbo — telemetry: phase-3-planning
105
+
106
+ 1. Create PLAN.md with:
107
+ - Task breakdown and agent assignments
108
+ - File structure blueprint
109
+ - Dependency graph between agents
110
+ - Parallel execution groups
111
+ 2. `assessor` evaluates risk level of the build plan
112
+ 3. `recovery` saves current project state (if existing directory)
113
+
114
+ **🛑 CHECKPOINT: User approval required before Phase 4**
115
+
116
+ ### Phase 4: Design System (UI Apps Only)
117
+
118
+ | Field | Value |
119
+ |-------|-------|
120
+ | **INPUT** | Approved PLAN.md (for apps with UI) |
121
+ | **OUTPUT** | Design tokens: colors, typography, effects |
122
+ | **AGENTS** | `react-pro`, `orchestrator` |
123
+ | **SKILLS** | `studio`, `design-system` |
124
+
125
+ > **Skip this phase** if the app has no UI (API-only, CLI).
126
+
127
+ // turbo — telemetry: phase-4-studio-search
128
+ ```bash
129
+ npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" node .agent/skills/studio/scripts/search.ts "<app_type> <style> <keywords>" --design-system -p "<Project Name>"
130
+ ```
131
+
132
+ ### Phase 5: Parallel Build
133
+
134
+ | Field | Value |
135
+ |-------|-------|
136
+ | **INPUT** | Approved plan + design system tokens |
137
+ | **OUTPUT** | Complete application: schema, API routes, UI components, tests |
138
+ | **AGENTS** | `orchestrator`, `critic`, `data-modeler`, `nodejs-pro`, `react-pro`, `test-architect` |
139
+ | **SKILLS** | `data-modeler`, `nodejs-pro`, `api-architect`, `code-craft`, `test-architect` |
140
+
141
+ // turbo — telemetry: phase-5-build
142
+
143
+ ```mermaid
144
+ graph TD
145
+ A[Approved Plan] --> B[Foundation]
146
+ B --> B1[database-architect]
147
+ B --> B2[security-auditor]
148
+ B1 --> C[Core]
149
+ B2 --> C
150
+ C --> C1[backend-specialist]
151
+ C --> C2[frontend-specialist]
152
+ C1 --> D[Polish]
153
+ C2 --> D
154
+ D --> D1[test-engineer]
155
+ D1 --> E[Preview]
156
+ ```
157
+
158
+ | Parallel Group | Agents | Task |
159
+ |----------------|--------|------|
160
+ | **Foundation** | `data-modeler`, `security-scanner` | Schema + auth setup |
161
+ | **Core** | `nodejs-pro`, `react-pro` | API routes + UI components |
162
+ | **Polish** | `test-architect` | Tests + integration |
163
+
164
+ ### Phase 6: Verification & Preview
165
+
166
+ | Field | Value |
167
+ |-------|-------|
168
+ | **INPUT** | All artifacts from Phase 5 |
169
+ | **OUTPUT** | Running preview + verification report |
170
+ | **AGENTS** | `test-architect`, `learner` |
171
+ | **SKILLS** | `test-architect`, `problem-checker`, `knowledge-compiler` |
172
+
173
+ // turbo — telemetry: phase-6-test
174
+ ```bash
175
+ npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npm test
176
+ ```
177
+
178
+ // turbo — telemetry: phase-6-lint-typecheck
179
+ ```bash
180
+ npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npm run lint; npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npx tsc --noEmit
181
+ ```
182
+
183
+ // turbo — telemetry: phase-6-preview
184
+ ```bash
185
+ npx cross-env OTEL_SERVICE_NAME="workflow:build" TRACE_ID="$TRACE_ID" npm run dev
186
+ ```
187
+
188
+ **Exit Gate — ALL must pass:**
189
+
190
+ | Check | Target | How to Verify |
191
+ |-------|--------|---------------|
192
+ | IDE Problems | 0 | `@[current_problems]` |
193
+ | Compilation | Pass | TypeScript check |
194
+ | Tests | All passing | npm test |
195
+ | Preview | Running | localhost:3000 responding |
196
+ | Schema | Valid | Prisma validate (if applicable) |
197
+
198
+ ---
199
+
200
+ ## 🔍 MANDATORY: Problem Verification Before Completion
201
+
202
+ > **CRITICAL:** This check MUST be performed before any `notify_user` or task completion.
203
+
204
+ ### Check @[current_problems]
205
+
206
+ ```
207
+ 1. Read @[current_problems] from IDE
208
+ 2. If errors/warnings > 0:
209
+ a. Auto-fix: imports, types, lint errors
210
+ b. Re-check @[current_problems]
211
+ c. If still > 0 STOP Notify user
212
+ 3. If count = 0 Proceed to completion
213
+ ```
214
+
215
+ ### Auto-Fixable
216
+
217
+ | Type | Fix |
218
+ |------|-----|
219
+ | Missing import | Add import statement |
220
+ | JSX namespace | Import from 'react' |
221
+ | Unused variable | Remove or prefix `_` |
222
+ | Lint errors | Run eslint --fix |
223
+
224
+ > **Rule:** Never mark complete with errors in `@[current_problems]`. **NEVER mark complete without a working preview.**
225
+
226
+ ---
227
+
228
+ ## 🔄 Rollback & Recovery
229
+
230
+ If the Exit Gates fail and cannot be resolved automatically:
231
+ 1. Restore to pre-build checkpoint (`git checkout -- .` or `git stash pop`).
232
+ 2. Log failure via `learner` meta-agent.
233
+ 3. Notify user with failure context and recovery options.
234
+
235
+ ---
236
+
237
+ ## Output Format
238
+
239
+ ```markdown
240
+ ## 🚀 Building: [App Name]
241
+
242
+ ### Stack Decision
243
+
244
+ | Layer | Choice | Reason |
245
+ |-------|--------|--------|
246
+ | Frontend | Next.js 15 | SSR, App Router, Vercel deploy |
247
+ | Backend | Hono + Prisma | Type-safe, edge-ready |
248
+ | Database | PostgreSQL | Relational, Supabase hosting |
249
+ | Auth | Clerk | Fast integration, social login |
250
+ | Styling | Tailwind + shadcn/ui | Rapid UI development |
251
+
252
+ ### Agent Coordination
253
+
254
+ | Agent | Task | Status |
255
+ |-------|------|--------|
256
+ | `project-planner` | Architecture plan | Complete |
257
+ | `data-modeler` | Schema design | Complete |
258
+ | `nodejs-pro` | API routes | Complete |
259
+ | `react-pro` | UI components | Complete |
260
+ | `test-architect` | E2E tests | Complete |
261
+
262
+ ### Preview
263
+
264
+ 🌐 http://localhost:3000
265
+
266
+ ### Next Steps
267
+
268
+ - [ ] Review the generated code
269
+ - [ ] Test core user flows
270
+ - [ ] Run `/validate` for comprehensive tests
271
+ - [ ] Deploy when ready: `/launch`
272
+ ```
273
+
274
+ ---
275
+
276
+ ## Examples
277
+
278
+ ```
279
+ /build SaaS dashboard with user analytics and auth
280
+ /build e-commerce store with Stripe payments and product catalog
281
+ /build blog engine with MDX content and CMS
282
+ /build real-time chat app with WebSocket and message history
283
+ /build REST API for mobile app with auth and rate limiting
284
+ ```
285
+
286
+ ---
287
+
288
+ ## Key Principles
289
+
290
+ - **Requirements first** — discover what to build before building, ask clarifying questions
291
+ - **Smart stack defaults** — sensible tech choices unless user specifies otherwise
292
+ - **Parallel execution** — independent agents run simultaneously for faster delivery
293
+ - **Working preview required** — never mark complete without a running dev server
294
+ - **Exit gate enforced** — IDE problems = 0, tests passing, types valid before completion
295
+
296
+ ---
297
+
298
+ ## 🔗 Workflow Chain
299
+
300
+ **Skills Loaded (15):**
301
+
302
+ - `app-scaffold` - Full-stack scaffolding from natural language
303
+ - `react-pro` - React application development
304
+ - `nextjs-pro` - Next.js framework expertise
305
+ - `project-planner` - Task breakdown and architecture planning
306
+ - `studio` - Design system generation for UI apps
307
+ - `design-system` - UI/UX design tokens and components
308
+ - `code-craft` - Coding standards and best practices
309
+ - `data-modeler` - Database schema design
310
+ - `api-architect` - API design and endpoint patterns
311
+ - `test-architect` - Testing strategies and coverage
312
+ - `idea-storm` - Brainstorming and alternative analysis
313
+ - `nodejs-pro` - Node.js backend development
314
+ - `context-engineering` - Codebase parsing and framework detection
315
+ - `problem-checker` - IDE error detection and auto-fix
316
+ - `knowledge-compiler` - Learning and logging execution patterns
317
+
318
+ ```mermaid
319
+ graph LR
320
+ A["/plan"] --> B["/build"]
321
+ B --> C["/validate"]
322
+ C --> D["/launch"]
323
+ style B fill:#10b981
324
+ ```
325
+
326
+ | After /build | Run | Purpose |
327
+ |-------------|-----|---------|
328
+ | Build complete | `/validate` | Run comprehensive test suite |
329
+ | Needs preview | `/stage` | Start development environment |
330
+ | Ready to deploy | `/launch` | Deploy to production |
331
+ | Found bugs | `/diagnose` | Root cause investigation |
332
+
333
+ **Handoff to /validate:**
334
+
335
+ ```markdown
336
+ Build complete! Preview running at localhost:3000.
337
+ [X] agents coordinated, [Y] files created. Run `/validate` for full test suite.
338
+ ```