@cubis/foundry 0.3.32 → 0.3.33

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 (460) hide show
  1. package/README.md +23 -0
  2. package/bin/cubis.js +461 -37
  3. package/mcp/README.md +17 -0
  4. package/mcp/catalogs/default.json +14 -0
  5. package/mcp/powers/atlassian-mcp/POWER.md +91 -0
  6. package/mcp/powers/atlassian-mcp/SKILL.md +88 -0
  7. package/mcp/powers/building-mcp-server-on-cloudflare/POWER.md +261 -0
  8. package/mcp/powers/building-mcp-server-on-cloudflare/SKILL.md +258 -0
  9. package/mcp/powers/datadog-automation/POWER.md +238 -0
  10. package/mcp/powers/datadog-automation/SKILL.md +235 -0
  11. package/mcp/powers/github-automation/POWER.md +230 -0
  12. package/mcp/powers/github-automation/SKILL.md +227 -0
  13. package/mcp/powers/mcp-builder/POWER.md +179 -0
  14. package/mcp/powers/mcp-builder/SKILL.md +176 -0
  15. package/mcp/powers/mcp-developer/POWER.md +88 -0
  16. package/mcp/powers/mcp-developer/SKILL.md +85 -0
  17. package/mcp/powers/postman/POWER.md +243 -0
  18. package/mcp/powers/postman/SKILL.md +240 -0
  19. package/mcp/powers/sentry-automation/POWER.md +235 -0
  20. package/mcp/powers/sentry-automation/SKILL.md +232 -0
  21. package/mcp/skills/atlassian-mcp/SKILL.md +88 -0
  22. package/mcp/skills/building-mcp-server-on-cloudflare/SKILL.md +258 -0
  23. package/mcp/skills/datadog-automation/SKILL.md +235 -0
  24. package/mcp/skills/github-automation/SKILL.md +227 -0
  25. package/mcp/skills/mcp-builder/SKILL.md +176 -0
  26. package/mcp/skills/mcp-developer/SKILL.md +85 -0
  27. package/mcp/skills/postman/SKILL.md +240 -0
  28. package/mcp/skills/sentry-automation/SKILL.md +232 -0
  29. package/package.json +2 -1
  30. package/workflows/powers/architecture/POWER.md +12 -46
  31. package/workflows/powers/architecture/SKILL.md +12 -46
  32. package/workflows/powers/atlassian-mcp/POWER.md +11 -81
  33. package/workflows/powers/atlassian-mcp/SKILL.md +11 -81
  34. package/workflows/powers/building-mcp-server-on-cloudflare/POWER.md +12 -252
  35. package/workflows/powers/building-mcp-server-on-cloudflare/SKILL.md +12 -252
  36. package/workflows/powers/code-review-checklist/POWER.md +11 -99
  37. package/workflows/powers/code-review-checklist/SKILL.md +11 -99
  38. package/workflows/powers/csharp-pro/POWER.md +43 -0
  39. package/workflows/powers/csharp-pro/SKILL.md +40 -0
  40. package/workflows/powers/database-design/POWER.md +47 -5
  41. package/workflows/powers/database-design/SKILL.md +45 -4
  42. package/workflows/powers/database-optimizer/POWER.md +11 -23
  43. package/workflows/powers/database-optimizer/SKILL.md +5 -5
  44. package/workflows/powers/datadog-automation/POWER.md +12 -229
  45. package/workflows/powers/datadog-automation/SKILL.md +12 -229
  46. package/workflows/powers/debugging-wizard/POWER.md +12 -78
  47. package/workflows/powers/debugging-wizard/SKILL.md +12 -78
  48. package/workflows/powers/deployment-procedures/POWER.md +11 -231
  49. package/workflows/powers/deployment-procedures/SKILL.md +11 -231
  50. package/workflows/powers/drift-flutter/POWER.md +51 -0
  51. package/workflows/powers/drift-flutter/SKILL.md +2 -2
  52. package/workflows/powers/github-automation/POWER.md +12 -221
  53. package/workflows/powers/github-automation/SKILL.md +12 -221
  54. package/workflows/powers/golang-pro/POWER.md +38 -66
  55. package/workflows/powers/golang-pro/SKILL.md +38 -66
  56. package/workflows/powers/java-pro/POWER.md +43 -0
  57. package/workflows/powers/java-pro/SKILL.md +40 -0
  58. package/workflows/powers/javascript-pro/POWER.md +37 -67
  59. package/workflows/powers/javascript-pro/SKILL.md +37 -67
  60. package/workflows/powers/kotlin-pro/POWER.md +43 -0
  61. package/workflows/powers/kotlin-pro/SKILL.md +40 -0
  62. package/workflows/powers/mcp-builder/POWER.md +12 -170
  63. package/workflows/powers/mcp-builder/SKILL.md +12 -170
  64. package/workflows/powers/mcp-developer/POWER.md +11 -78
  65. package/workflows/powers/mcp-developer/SKILL.md +11 -78
  66. package/workflows/powers/nextjs-developer/POWER.md +41 -148
  67. package/workflows/powers/nextjs-developer/SKILL.md +41 -148
  68. package/workflows/powers/nextjs-react-expert/POWER.md +10 -281
  69. package/workflows/powers/nextjs-react-expert/SKILL.md +10 -281
  70. package/workflows/powers/nodejs-best-practices/POWER.md +33 -317
  71. package/workflows/powers/nodejs-best-practices/SKILL.md +33 -317
  72. package/workflows/powers/postman/POWER.md +11 -233
  73. package/workflows/powers/postman/SKILL.md +11 -233
  74. package/workflows/powers/python-patterns/POWER.md +11 -431
  75. package/workflows/powers/python-patterns/SKILL.md +11 -431
  76. package/workflows/powers/python-pro/POWER.md +38 -66
  77. package/workflows/powers/python-pro/SKILL.md +38 -66
  78. package/workflows/powers/react-best-practices/POWER.md +35 -118
  79. package/workflows/powers/react-best-practices/SKILL.md +35 -118
  80. package/workflows/powers/react-expert/POWER.md +38 -66
  81. package/workflows/powers/react-expert/SKILL.md +38 -66
  82. package/workflows/powers/rust-engineer/POWER.md +10 -75
  83. package/workflows/powers/rust-engineer/SKILL.md +10 -75
  84. package/workflows/powers/rust-pro/POWER.md +36 -163
  85. package/workflows/powers/rust-pro/SKILL.md +36 -163
  86. package/workflows/powers/sentry-automation/POWER.md +12 -226
  87. package/workflows/powers/sentry-automation/SKILL.md +12 -226
  88. package/workflows/powers/server-management/POWER.md +11 -151
  89. package/workflows/powers/server-management/SKILL.md +11 -151
  90. package/workflows/powers/tdd-workflow/POWER.md +12 -140
  91. package/workflows/powers/tdd-workflow/SKILL.md +12 -140
  92. package/workflows/powers/testing-patterns/POWER.md +11 -168
  93. package/workflows/powers/testing-patterns/SKILL.md +11 -168
  94. package/workflows/powers/typescript-pro/POWER.md +43 -70
  95. package/workflows/powers/typescript-pro/SKILL.md +43 -70
  96. package/workflows/powers/vercel-ai/POWER.md +43 -0
  97. package/workflows/powers/vercel-ai/SKILL.md +40 -0
  98. package/workflows/powers/vercel-ai-gateway/POWER.md +11 -69
  99. package/workflows/powers/vercel-ai-gateway/SKILL.md +11 -69
  100. package/workflows/powers/vercel-ai-sdk/POWER.md +11 -49
  101. package/workflows/powers/vercel-ai-sdk/SKILL.md +11 -49
  102. package/workflows/powers/vercel-caching/POWER.md +10 -72
  103. package/workflows/powers/vercel-caching/SKILL.md +10 -72
  104. package/workflows/powers/vercel-cli/POWER.md +11 -75
  105. package/workflows/powers/vercel-cli/SKILL.md +11 -75
  106. package/workflows/powers/vercel-delivery/POWER.md +45 -0
  107. package/workflows/powers/vercel-delivery/SKILL.md +42 -0
  108. package/workflows/powers/vercel-deployments/POWER.md +10 -90
  109. package/workflows/powers/vercel-deployments/SKILL.md +10 -90
  110. package/workflows/powers/vercel-domains/POWER.md +10 -69
  111. package/workflows/powers/vercel-domains/SKILL.md +10 -69
  112. package/workflows/powers/vercel-firewall/POWER.md +10 -61
  113. package/workflows/powers/vercel-firewall/SKILL.md +10 -61
  114. package/workflows/powers/vercel-flags/POWER.md +10 -62
  115. package/workflows/powers/vercel-flags/SKILL.md +10 -62
  116. package/workflows/powers/vercel-functions/POWER.md +10 -70
  117. package/workflows/powers/vercel-functions/SKILL.md +10 -70
  118. package/workflows/powers/vercel-routing/POWER.md +10 -68
  119. package/workflows/powers/vercel-routing/SKILL.md +10 -68
  120. package/workflows/powers/vercel-runtime/POWER.md +43 -0
  121. package/workflows/powers/vercel-runtime/SKILL.md +40 -0
  122. package/workflows/powers/vercel-security/POWER.md +43 -0
  123. package/workflows/powers/vercel-security/SKILL.md +40 -0
  124. package/workflows/powers/vulnerability-scanner/POWER.md +11 -266
  125. package/workflows/powers/vulnerability-scanner/SKILL.md +11 -266
  126. package/workflows/scripts/generate-powers.mjs +95 -202
  127. package/workflows/skills/atlassian-mcp/SKILL.md +11 -81
  128. package/workflows/skills/building-mcp-server-on-cloudflare/SKILL.md +12 -252
  129. package/workflows/skills/catalogs/core.json +30 -0
  130. package/workflows/skills/catalogs/web-backend.json +70 -0
  131. package/workflows/skills/csharp-pro/SKILL.md +40 -0
  132. package/workflows/skills/datadog-automation/SKILL.md +12 -229
  133. package/workflows/skills/github-automation/SKILL.md +12 -221
  134. package/workflows/skills/golang-pro/SKILL.md +38 -66
  135. package/workflows/skills/java-pro/SKILL.md +40 -0
  136. package/workflows/skills/javascript-pro/SKILL.md +37 -67
  137. package/workflows/skills/kotlin-pro/SKILL.md +40 -0
  138. package/workflows/skills/mcp-builder/SKILL.md +12 -170
  139. package/workflows/skills/mcp-developer/SKILL.md +11 -78
  140. package/workflows/skills/nextjs-developer/SKILL.md +41 -148
  141. package/workflows/skills/nextjs-react-expert/SKILL.md +5 -11
  142. package/workflows/skills/nodejs-best-practices/SKILL.md +33 -317
  143. package/workflows/skills/postman/SKILL.md +11 -233
  144. package/workflows/skills/python-pro/SKILL.md +38 -66
  145. package/workflows/skills/react-best-practices/SKILL.md +35 -118
  146. package/workflows/skills/react-expert/SKILL.md +38 -66
  147. package/workflows/skills/rust-pro/SKILL.md +36 -163
  148. package/workflows/skills/sentry-automation/SKILL.md +12 -226
  149. package/workflows/skills/skills_index.json +43 -57
  150. package/workflows/skills/typescript-pro/SKILL.md +43 -70
  151. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/backend-specialist.md +1 -1
  152. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/code-archaeologist.md +1 -1
  153. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/database-architect.md +1 -1
  154. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/debugger.md +1 -1
  155. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/devops-engineer.md +1 -1
  156. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/documentation-writer.md +1 -1
  157. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/explorer-agent.md +1 -1
  158. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/frontend-specialist.md +1 -1
  159. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/game-developer.md +1 -1
  160. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/mobile-developer.md +1 -1
  161. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/orchestrator.md +28 -400
  162. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/penetration-tester.md +1 -1
  163. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/performance-optimizer.md +1 -1
  164. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-manager.md +1 -1
  165. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-owner.md +1 -1
  166. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/project-planner.md +1 -1
  167. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/qa-automation-engineer.md +1 -1
  168. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/security-auditor.md +1 -1
  169. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/seo-specialist.md +1 -1
  170. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/test-engineer.md +1 -1
  171. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/vercel-expert.md +1 -1
  172. package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +7 -6
  173. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +1 -1
  174. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +1 -1
  175. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +1 -1
  176. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +1 -1
  177. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +1 -1
  178. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +1 -1
  179. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/explorer-agent.md +1 -1
  180. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +1 -1
  181. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -1
  182. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +1 -1
  183. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +28 -400
  184. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +1 -1
  185. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +1 -1
  186. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -1
  187. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-owner.md +1 -1
  188. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +1 -1
  189. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -1
  190. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +1 -1
  191. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -1
  192. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +1 -1
  193. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -1
  194. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +7 -6
  195. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/backend-specialist.md +1 -1
  196. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/code-archaeologist.md +1 -1
  197. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/database-architect.md +1 -1
  198. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/debugger.md +1 -1
  199. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/devops-engineer.md +1 -1
  200. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/documentation-writer.md +1 -1
  201. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/explorer-agent.md +1 -1
  202. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/frontend-specialist.md +1 -1
  203. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/game-developer.md +1 -1
  204. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/mobile-developer.md +1 -1
  205. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/orchestrator.md +28 -400
  206. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/penetration-tester.md +1 -1
  207. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/performance-optimizer.md +1 -1
  208. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/product-manager.md +1 -1
  209. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/product-owner.md +1 -1
  210. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/project-planner.md +1 -1
  211. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/qa-automation-engineer.md +1 -1
  212. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/security-auditor.md +1 -1
  213. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/seo-specialist.md +1 -1
  214. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/test-engineer.md +1 -1
  215. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/vercel-expert.md +1 -1
  216. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/AGENTS.md +7 -6
  217. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/csharp-pro/SKILL.md +40 -0
  218. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/golang-pro/SKILL.md +38 -66
  219. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/java-pro/SKILL.md +40 -0
  220. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/javascript-pro/SKILL.md +37 -67
  221. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/kotlin-pro/SKILL.md +40 -0
  222. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nextjs-developer/SKILL.md +41 -148
  223. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nextjs-react-expert/SKILL.md +6 -12
  224. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nodejs-best-practices/SKILL.md +33 -317
  225. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/python-pro/SKILL.md +38 -66
  226. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-best-practices/SKILL.md +35 -118
  227. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-expert/SKILL.md +38 -66
  228. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/rust-pro/SKILL.md +36 -163
  229. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +43 -57
  230. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/typescript-pro/SKILL.md +43 -70
  231. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/csharp-pro/SKILL.md +40 -0
  232. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/golang-pro/SKILL.md +38 -66
  233. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/java-pro/SKILL.md +40 -0
  234. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/javascript-pro/SKILL.md +37 -67
  235. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/kotlin-pro/SKILL.md +40 -0
  236. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nextjs-developer/SKILL.md +41 -148
  237. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nextjs-react-expert/SKILL.md +6 -12
  238. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nodejs-best-practices/SKILL.md +33 -317
  239. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/python-pro/SKILL.md +38 -66
  240. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/react-best-practices/SKILL.md +35 -118
  241. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/react-expert/SKILL.md +38 -66
  242. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/rust-pro/SKILL.md +36 -163
  243. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/skills_index.json +43 -57
  244. package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/typescript-pro/SKILL.md +43 -70
  245. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/csharp-pro/SKILL.md +40 -0
  246. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/golang-pro/SKILL.md +38 -66
  247. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/java-pro/SKILL.md +40 -0
  248. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/javascript-pro/SKILL.md +37 -67
  249. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/kotlin-pro/SKILL.md +40 -0
  250. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nextjs-developer/SKILL.md +41 -148
  251. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nextjs-react-expert/SKILL.md +6 -12
  252. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nodejs-best-practices/SKILL.md +33 -317
  253. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/python-pro/SKILL.md +38 -66
  254. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/react-best-practices/SKILL.md +35 -118
  255. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/react-expert/SKILL.md +38 -66
  256. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/rust-pro/SKILL.md +36 -163
  257. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/skills_index.json +43 -57
  258. package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/typescript-pro/SKILL.md +43 -70
  259. package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +1 -1
  260. package/workflows/workflows/agent-environment-setup/shared/agents/code-archaeologist.md +1 -1
  261. package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +1 -1
  262. package/workflows/workflows/agent-environment-setup/shared/agents/debugger.md +1 -1
  263. package/workflows/workflows/agent-environment-setup/shared/agents/devops-engineer.md +1 -1
  264. package/workflows/workflows/agent-environment-setup/shared/agents/documentation-writer.md +1 -1
  265. package/workflows/workflows/agent-environment-setup/shared/agents/explorer-agent.md +1 -1
  266. package/workflows/workflows/agent-environment-setup/shared/agents/frontend-specialist.md +1 -1
  267. package/workflows/workflows/agent-environment-setup/shared/agents/game-developer.md +1 -1
  268. package/workflows/workflows/agent-environment-setup/shared/agents/mobile-developer.md +1 -1
  269. package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +28 -400
  270. package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +1 -1
  271. package/workflows/workflows/agent-environment-setup/shared/agents/performance-optimizer.md +1 -1
  272. package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +1 -1
  273. package/workflows/workflows/agent-environment-setup/shared/agents/product-owner.md +1 -1
  274. package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +1 -1
  275. package/workflows/workflows/agent-environment-setup/shared/agents/qa-automation-engineer.md +1 -1
  276. package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +1 -1
  277. package/workflows/workflows/agent-environment-setup/shared/agents/seo-specialist.md +1 -1
  278. package/workflows/workflows/agent-environment-setup/shared/agents/test-engineer.md +1 -1
  279. package/workflows/workflows/agent-environment-setup/shared/agents/vercel-expert.md +1 -1
  280. package/workflows/powers/sub-agents/scripts/run_subagent.py.bak +0 -512
  281. /package/{workflows → mcp}/powers/atlassian-mcp/steering/authentication-patterns.md +0 -0
  282. /package/{workflows → mcp}/powers/atlassian-mcp/steering/common-workflows.md +0 -0
  283. /package/{workflows → mcp}/powers/atlassian-mcp/steering/confluence-operations.md +0 -0
  284. /package/{workflows → mcp}/powers/atlassian-mcp/steering/jira-queries.md +0 -0
  285. /package/{workflows → mcp}/powers/atlassian-mcp/steering/mcp-server-setup.md +0 -0
  286. /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/examples.md +0 -0
  287. /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/oauth-setup.md +0 -0
  288. /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/troubleshooting.md +0 -0
  289. /package/{workflows → mcp}/powers/mcp-builder/LICENSE.txt +0 -0
  290. /package/{workflows → mcp}/powers/mcp-builder/reference/evaluation.md +0 -0
  291. /package/{workflows → mcp}/powers/mcp-builder/reference/mcp_best_practices.md +0 -0
  292. /package/{workflows → mcp}/powers/mcp-builder/reference/node_mcp_server.md +0 -0
  293. /package/{workflows → mcp}/powers/mcp-builder/reference/python_mcp_server.md +0 -0
  294. /package/{workflows → mcp}/powers/mcp-builder/scripts/connections.py +0 -0
  295. /package/{workflows → mcp}/powers/mcp-builder/scripts/evaluation.py +0 -0
  296. /package/{workflows → mcp}/powers/mcp-builder/scripts/example_evaluation.xml +0 -0
  297. /package/{workflows → mcp}/powers/mcp-builder/scripts/requirements.txt +0 -0
  298. /package/{workflows → mcp}/powers/mcp-developer/steering/protocol.md +0 -0
  299. /package/{workflows → mcp}/powers/mcp-developer/steering/python-sdk.md +0 -0
  300. /package/{workflows → mcp}/powers/mcp-developer/steering/resources.md +0 -0
  301. /package/{workflows → mcp}/powers/mcp-developer/steering/tools.md +0 -0
  302. /package/{workflows → mcp}/powers/mcp-developer/steering/typescript-sdk.md +0 -0
  303. /package/{workflows → mcp}/powers/postman/flutter-expert/POWER.md +0 -0
  304. /package/{workflows → mcp}/powers/postman/flutter-expert/SKILL.md +0 -0
  305. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/bloc-state.md +0 -0
  306. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/engineering-principles.md +0 -0
  307. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/gorouter-navigation.md +0 -0
  308. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/performance.md +0 -0
  309. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/project-structure.md +0 -0
  310. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/riverpod-state.md +0 -0
  311. /package/{workflows → mcp}/powers/postman/flutter-expert/steering/widget-patterns.md +0 -0
  312. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/POWER.md +0 -0
  313. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/SKILL.md +0 -0
  314. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/log_redaction.md +0 -0
  315. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/network_hardening.md +0 -0
  316. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/secret-scanning.md +0 -0
  317. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/secure_storage_policy.md +0 -0
  318. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/vulnerability-patterns.md +0 -0
  319. /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/templates/security_review_response.md +0 -0
  320. /package/{workflows → mcp}/powers/postman/flutter-test-master/POWER.md +0 -0
  321. /package/{workflows → mcp}/powers/postman/flutter-test-master/SKILL.md +0 -0
  322. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/golden-testing.md +0 -0
  323. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/integration-testing.md +0 -0
  324. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/property-testing.md +0 -0
  325. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/riverpod-testing.md +0 -0
  326. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/test-utilities.md +0 -0
  327. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/unit-testing.md +0 -0
  328. /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/widget-testing.md +0 -0
  329. /package/{workflows → mcp}/powers/postman/git-commit/POWER.md +0 -0
  330. /package/{workflows → mcp}/powers/postman/git-commit/SKILL.md +0 -0
  331. /package/{workflows → mcp}/powers/postman/gorouter-restoration/POWER.md +0 -0
  332. /package/{workflows → mcp}/powers/postman/gorouter-restoration/SKILL.md +0 -0
  333. /package/{workflows → mcp}/powers/postman/gorouter-restoration/steering/guard_patterns.md +0 -0
  334. /package/{workflows → mcp}/powers/postman/gorouter-restoration/steering/tab_preservation.md +0 -0
  335. /package/{workflows → mcp}/powers/postman/gorouter-restoration/templates/guard_redirect.md +0 -0
  336. /package/{workflows → mcp}/powers/postman/gorouter-restoration/templates/stateful_shell_skeleton.md +0 -0
  337. /package/{workflows → mcp}/powers/postman/mcp.json +0 -0
  338. /package/{workflows → mcp}/powers/postman/microservices-architect/POWER.md +0 -0
  339. /package/{workflows → mcp}/powers/postman/microservices-architect/SKILL.md +0 -0
  340. /package/{workflows → mcp}/powers/postman/microservices-architect/steering/communication.md +0 -0
  341. /package/{workflows → mcp}/powers/postman/microservices-architect/steering/data.md +0 -0
  342. /package/{workflows → mcp}/powers/postman/microservices-architect/steering/decomposition.md +0 -0
  343. /package/{workflows → mcp}/powers/postman/microservices-architect/steering/observability.md +0 -0
  344. /package/{workflows → mcp}/powers/postman/microservices-architect/steering/patterns.md +0 -0
  345. /package/{workflows → mcp}/powers/postman/nestjs-expert/POWER.md +0 -0
  346. /package/{workflows → mcp}/powers/postman/nestjs-expert/SKILL.md +0 -0
  347. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/authentication.md +0 -0
  348. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/controllers-routing.md +0 -0
  349. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/dtos-validation.md +0 -0
  350. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/migration-from-express.md +0 -0
  351. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/secure-sessions.md +0 -0
  352. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/services-di.md +0 -0
  353. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/strangler-fig-pattern.md +0 -0
  354. /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/testing-patterns.md +0 -0
  355. /package/{workflows → mcp}/powers/postman/oneup-design/POWER.md +0 -0
  356. /package/{workflows → mcp}/powers/postman/oneup-design/SKILL.md +0 -0
  357. /package/{workflows → mcp}/powers/postman/oneup-design/steering/colors.md +0 -0
  358. /package/{workflows → mcp}/powers/postman/oneup-design/steering/components.md +0 -0
  359. /package/{workflows → mcp}/powers/postman/oneup-design/steering/spacing.md +0 -0
  360. /package/{workflows → mcp}/powers/postman/openapi-docs/POWER.md +0 -0
  361. /package/{workflows → mcp}/powers/postman/openapi-docs/SKILL.md +0 -0
  362. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/crud-templates.md +0 -0
  363. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-express.md +0 -0
  364. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-fastapi.md +0 -0
  365. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-nestjs.md +0 -0
  366. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-raw-openapi.md +0 -0
  367. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/openapi-checklist.md +0 -0
  368. /package/{workflows → mcp}/powers/postman/openapi-docs/steering/stoplight-ui.md +0 -0
  369. /package/{workflows → mcp}/powers/postman/steering/steering.md +0 -0
  370. /package/{workflows → mcp}/skills/atlassian-mcp/references/authentication-patterns.md +0 -0
  371. /package/{workflows → mcp}/skills/atlassian-mcp/references/common-workflows.md +0 -0
  372. /package/{workflows → mcp}/skills/atlassian-mcp/references/confluence-operations.md +0 -0
  373. /package/{workflows → mcp}/skills/atlassian-mcp/references/jira-queries.md +0 -0
  374. /package/{workflows → mcp}/skills/atlassian-mcp/references/mcp-server-setup.md +0 -0
  375. /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/examples.md +0 -0
  376. /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/oauth-setup.md +0 -0
  377. /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/tool-patterns.md +0 -0
  378. /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/troubleshooting.md +0 -0
  379. /package/{workflows → mcp}/skills/mcp-builder/LICENSE.txt +0 -0
  380. /package/{workflows → mcp}/skills/mcp-builder/reference/evaluation.md +0 -0
  381. /package/{workflows → mcp}/skills/mcp-builder/reference/mcp_best_practices.md +0 -0
  382. /package/{workflows → mcp}/skills/mcp-builder/reference/node_mcp_server.md +0 -0
  383. /package/{workflows → mcp}/skills/mcp-builder/reference/python_mcp_server.md +0 -0
  384. /package/{workflows → mcp}/skills/mcp-builder/scripts/connections.py +0 -0
  385. /package/{workflows → mcp}/skills/mcp-builder/scripts/evaluation.py +0 -0
  386. /package/{workflows → mcp}/skills/mcp-builder/scripts/example_evaluation.xml +0 -0
  387. /package/{workflows → mcp}/skills/mcp-builder/scripts/requirements.txt +0 -0
  388. /package/{workflows → mcp}/skills/mcp-developer/references/protocol.md +0 -0
  389. /package/{workflows → mcp}/skills/mcp-developer/references/python-sdk.md +0 -0
  390. /package/{workflows → mcp}/skills/mcp-developer/references/resources.md +0 -0
  391. /package/{workflows → mcp}/skills/mcp-developer/references/tools.md +0 -0
  392. /package/{workflows → mcp}/skills/mcp-developer/references/typescript-sdk.md +0 -0
  393. /package/{workflows → mcp}/skills/postman/POWER.md +0 -0
  394. /package/{workflows → mcp}/skills/postman/flutter-expert/POWER.md +0 -0
  395. /package/{workflows → mcp}/skills/postman/flutter-expert/SKILL.md +0 -0
  396. /package/{workflows → mcp}/skills/postman/flutter-expert/references/bloc-state.md +0 -0
  397. /package/{workflows → mcp}/skills/postman/flutter-expert/references/engineering-principles.md +0 -0
  398. /package/{workflows → mcp}/skills/postman/flutter-expert/references/gorouter-navigation.md +0 -0
  399. /package/{workflows → mcp}/skills/postman/flutter-expert/references/performance.md +0 -0
  400. /package/{workflows → mcp}/skills/postman/flutter-expert/references/project-structure.md +0 -0
  401. /package/{workflows → mcp}/skills/postman/flutter-expert/references/riverpod-state.md +0 -0
  402. /package/{workflows → mcp}/skills/postman/flutter-expert/references/widget-patterns.md +0 -0
  403. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/POWER.md +0 -0
  404. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/SKILL.md +0 -0
  405. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/log_redaction.md +0 -0
  406. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/network_hardening.md +0 -0
  407. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/secret-scanning.md +0 -0
  408. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/secure_storage_policy.md +0 -0
  409. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/vulnerability-patterns.md +0 -0
  410. /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/templates/security_review_response.md +0 -0
  411. /package/{workflows → mcp}/skills/postman/flutter-test-master/POWER.md +0 -0
  412. /package/{workflows → mcp}/skills/postman/flutter-test-master/SKILL.md +0 -0
  413. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/golden-testing.md +0 -0
  414. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/integration-testing.md +0 -0
  415. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/property-testing.md +0 -0
  416. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/riverpod-testing.md +0 -0
  417. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/test-utilities.md +0 -0
  418. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/unit-testing.md +0 -0
  419. /package/{workflows → mcp}/skills/postman/flutter-test-master/references/widget-testing.md +0 -0
  420. /package/{workflows → mcp}/skills/postman/git-commit/POWER.md +0 -0
  421. /package/{workflows → mcp}/skills/postman/git-commit/SKILL.md +0 -0
  422. /package/{workflows → mcp}/skills/postman/gorouter-restoration/POWER.md +0 -0
  423. /package/{workflows → mcp}/skills/postman/gorouter-restoration/SKILL.md +0 -0
  424. /package/{workflows → mcp}/skills/postman/gorouter-restoration/references/guard_patterns.md +0 -0
  425. /package/{workflows → mcp}/skills/postman/gorouter-restoration/references/tab_preservation.md +0 -0
  426. /package/{workflows → mcp}/skills/postman/gorouter-restoration/templates/guard_redirect.md +0 -0
  427. /package/{workflows → mcp}/skills/postman/gorouter-restoration/templates/stateful_shell_skeleton.md +0 -0
  428. /package/{workflows → mcp}/skills/postman/mcp.json +0 -0
  429. /package/{workflows → mcp}/skills/postman/microservices-architect/POWER.md +0 -0
  430. /package/{workflows → mcp}/skills/postman/microservices-architect/SKILL.md +0 -0
  431. /package/{workflows → mcp}/skills/postman/microservices-architect/references/communication.md +0 -0
  432. /package/{workflows → mcp}/skills/postman/microservices-architect/references/data.md +0 -0
  433. /package/{workflows → mcp}/skills/postman/microservices-architect/references/decomposition.md +0 -0
  434. /package/{workflows → mcp}/skills/postman/microservices-architect/references/observability.md +0 -0
  435. /package/{workflows → mcp}/skills/postman/microservices-architect/references/patterns.md +0 -0
  436. /package/{workflows → mcp}/skills/postman/nestjs-expert/POWER.md +0 -0
  437. /package/{workflows → mcp}/skills/postman/nestjs-expert/SKILL.md +0 -0
  438. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/authentication.md +0 -0
  439. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/controllers-routing.md +0 -0
  440. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/dtos-validation.md +0 -0
  441. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/migration-from-express.md +0 -0
  442. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/secure-sessions.md +0 -0
  443. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/services-di.md +0 -0
  444. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/strangler-fig-pattern.md +0 -0
  445. /package/{workflows → mcp}/skills/postman/nestjs-expert/references/testing-patterns.md +0 -0
  446. /package/{workflows → mcp}/skills/postman/oneup-design/POWER.md +0 -0
  447. /package/{workflows → mcp}/skills/postman/oneup-design/SKILL.md +0 -0
  448. /package/{workflows → mcp}/skills/postman/oneup-design/references/colors.md +0 -0
  449. /package/{workflows → mcp}/skills/postman/oneup-design/references/components.md +0 -0
  450. /package/{workflows → mcp}/skills/postman/oneup-design/references/spacing.md +0 -0
  451. /package/{workflows → mcp}/skills/postman/openapi-docs/POWER.md +0 -0
  452. /package/{workflows → mcp}/skills/postman/openapi-docs/SKILL.md +0 -0
  453. /package/{workflows → mcp}/skills/postman/openapi-docs/references/crud-templates.md +0 -0
  454. /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-express.md +0 -0
  455. /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-fastapi.md +0 -0
  456. /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-nestjs.md +0 -0
  457. /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-raw-openapi.md +0 -0
  458. /package/{workflows → mcp}/skills/postman/openapi-docs/references/openapi-checklist.md +0 -0
  459. /package/{workflows → mcp}/skills/postman/openapi-docs/references/stoplight-ui.md +0 -0
  460. /package/{workflows → mcp}/skills/postman/references/steering.md +0 -0
@@ -1,333 +1,49 @@
1
1
  ---
2
- name: nodejs-best-practices
3
- description: Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.
4
- allowed-tools: Read, Write, Edit, Glob, Grep
2
+ name: "nodejs-best-practices"
3
+ description: "Decision framework for modern Node.js backend architecture, operations, and security using current LTS-era practices."
4
+ license: MIT
5
+ metadata:
6
+ version: "2.0.0"
7
+ domain: "backend"
8
+ role: "decision-guide"
9
+ stack: "nodejs"
10
+ baseline: "Node 22/24 LTS era"
5
11
  ---
6
12
 
7
13
  # Node.js Best Practices
8
14
 
9
- > Principles and decision-making for Node.js development in 2025.
10
- > **Learn to THINK, not memorize code patterns.**
15
+ ## Purpose
11
16
 
12
- ---
13
-
14
- ## ⚠️ How to Use This Skill
15
-
16
- This skill teaches **decision-making principles**, not fixed code to copy.
17
-
18
- - ASK user for preferences when unclear
19
- - Choose framework/pattern based on CONTEXT
20
- - Don't default to same solution every time
21
-
22
- ---
23
-
24
- ## 1. Framework Selection (2025)
25
-
26
- ### Decision Tree
27
-
28
- ```
29
- What are you building?
30
-
31
- ├── Edge/Serverless (Cloudflare, Vercel)
32
- │ └── Hono (zero-dependency, ultra-fast cold starts)
33
-
34
- ├── High Performance API
35
- │ └── Fastify (2-3x faster than Express)
36
-
37
- ├── Enterprise/Team familiarity
38
- │ └── NestJS (structured, DI, decorators)
39
-
40
- ├── Legacy/Stable/Maximum ecosystem
41
- │ └── Express (mature, most middleware)
42
-
43
- └── Full-stack with frontend
44
- └── Next.js API Routes or tRPC
45
- ```
46
-
47
- ### Comparison Principles
48
-
49
- | Factor | Hono | Fastify | Express |
50
- |--------|------|---------|---------|
51
- | **Best for** | Edge, serverless | Performance | Legacy, learning |
52
- | **Cold start** | Fastest | Fast | Moderate |
53
- | **Ecosystem** | Growing | Good | Largest |
54
- | **TypeScript** | Native | Excellent | Good |
55
- | **Learning curve** | Low | Medium | Low |
56
-
57
- ### Selection Questions to Ask:
58
- 1. What's the deployment target?
59
- 2. Is cold start time critical?
60
- 3. Does team have existing experience?
61
- 4. Is there legacy code to maintain?
62
-
63
- ---
64
-
65
- ## 2. Runtime Considerations (2025)
66
-
67
- ### Native TypeScript
68
-
69
- ```
70
- Node.js 22+: --experimental-strip-types
71
- ├── Run .ts files directly
72
- ├── No build step needed for simple projects
73
- └── Consider for: scripts, simple APIs
74
- ```
75
-
76
- ### Module System Decision
77
-
78
- ```
79
- ESM (import/export)
80
- ├── Modern standard
81
- ├── Better tree-shaking
82
- ├── Async module loading
83
- └── Use for: new projects
84
-
85
- CommonJS (require)
86
- ├── Legacy compatibility
87
- ├── More npm packages support
88
- └── Use for: existing codebases, some edge cases
89
- ```
17
+ Use this skill to choose the right Node backend patterns for the actual constraints of the task, not by habit.
90
18
 
91
- ### Runtime Selection
19
+ ## Decision flow
92
20
 
93
- | Runtime | Best For |
94
- |---------|----------|
95
- | **Node.js** | General purpose, largest ecosystem |
96
- | **Bun** | Performance, built-in bundler |
97
- | **Deno** | Security-first, built-in TypeScript |
98
-
99
- ---
100
-
101
- ## 3. Architecture Principles
102
-
103
- ### Layered Structure Concept
104
-
105
- ```
106
- Request Flow:
107
-
108
- ├── Controller/Route Layer
109
- │ ├── Handles HTTP specifics
110
- │ ├── Input validation at boundary
111
- │ └── Calls service layer
112
-
113
- ├── Service Layer
114
- │ ├── Business logic
115
- │ ├── Framework-agnostic
116
- │ └── Calls repository layer
117
-
118
- └── Repository Layer
119
- ├── Data access only
120
- ├── Database queries
121
- └── ORM interactions
122
- ```
123
-
124
- ### Why This Matters:
125
- - **Testability**: Mock layers independently
126
- - **Flexibility**: Swap database without touching business logic
127
- - **Clarity**: Each layer has single responsibility
128
-
129
- ### When to Simplify:
130
- - Small scripts → Single file OK
131
- - Prototypes → Less structure acceptable
132
- - Always ask: "Will this grow?"
133
-
134
- ---
135
-
136
- ## 4. Error Handling Principles
137
-
138
- ### Centralized Error Handling
139
-
140
- ```
141
- Pattern:
142
- ├── Create custom error classes
143
- ├── Throw from any layer
144
- ├── Catch at top level (middleware)
145
- └── Format consistent response
146
- ```
147
-
148
- ### Error Response Philosophy
149
-
150
- ```
151
- Client gets:
152
- ├── Appropriate HTTP status
153
- ├── Error code for programmatic handling
154
- ├── User-friendly message
155
- └── NO internal details (security!)
156
-
157
- Logs get:
158
- ├── Full stack trace
159
- ├── Request context
160
- ├── User ID (if applicable)
161
- └── Timestamp
162
- ```
163
-
164
- ### Status Code Selection
165
-
166
- | Situation | Status | When |
167
- |-----------|--------|------|
168
- | Bad input | 400 | Client sent invalid data |
169
- | No auth | 401 | Missing or invalid credentials |
170
- | No permission | 403 | Valid auth, but not allowed |
171
- | Not found | 404 | Resource doesn't exist |
172
- | Conflict | 409 | Duplicate or state conflict |
173
- | Validation | 422 | Schema valid but business rules fail |
174
- | Server error | 500 | Our fault, log everything |
175
-
176
- ---
21
+ 1. Clarify deployment target (container, serverless, edge).
22
+ 2. Select framework/runtime shape based on latency and team constraints.
23
+ 3. Define API, validation, auth, and observability boundaries.
24
+ 4. Implement smallest safe slice, then harden.
177
25
 
178
- ## 5. Async Patterns Principles
26
+ ## Core guidance
179
27
 
180
- ### When to Use Each
28
+ - Prefer typed boundaries (TypeScript + schema validation).
29
+ - Keep transport concerns out of business logic.
30
+ - Standardize error envelopes and correlation IDs.
31
+ - Enforce timeout, retry, and circuit-breaker strategy for downstream calls.
32
+ - Use graceful shutdown and health/readiness probes.
181
33
 
182
- | Pattern | Use When |
183
- |---------|----------|
184
- | `async/await` | Sequential async operations |
185
- | `Promise.all` | Parallel independent operations |
186
- | `Promise.allSettled` | Parallel where some can fail |
187
- | `Promise.race` | Timeout or first response wins |
34
+ ## Security and reliability
188
35
 
189
- ### Event Loop Awareness
36
+ - Validate all request input before business logic.
37
+ - Use least-privilege credentials and secret rotation.
38
+ - Avoid blocking the event loop in request paths.
39
+ - Add rate limits and abuse controls on external endpoints.
190
40
 
191
- ```
192
- I/O-bound (async helps):
193
- ├── Database queries
194
- ├── HTTP requests
195
- ├── File system
196
- └── Network operations
41
+ ## Performance
197
42
 
198
- CPU-bound (async doesn't help):
199
- ├── Crypto operations
200
- ├── Image processing
201
- ├── Complex calculations
202
- └── → Use worker threads or offload
203
- ```
43
+ - Measure before optimizing.
44
+ - Profile CPU and heap in realistic workloads.
45
+ - Use streaming/backpressure for large I/O paths.
204
46
 
205
- ### Avoiding Event Loop Blocking
206
-
207
- - Never use sync methods in production (fs.readFileSync, etc.)
208
- - Offload CPU-intensive work
209
- - Use streaming for large data
210
-
211
- ---
212
-
213
- ## 6. Validation Principles
214
-
215
- ### Validate at Boundaries
216
-
217
- ```
218
- Where to validate:
219
- ├── API entry point (request body/params)
220
- ├── Before database operations
221
- ├── External data (API responses, file uploads)
222
- └── Environment variables (startup)
223
- ```
224
-
225
- ### Validation Library Selection
226
-
227
- | Library | Best For |
228
- |---------|----------|
229
- | **Zod** | TypeScript first, inference |
230
- | **Valibot** | Smaller bundle (tree-shakeable) |
231
- | **ArkType** | Performance critical |
232
- | **Yup** | Existing React Form usage |
233
-
234
- ### Validation Philosophy
235
-
236
- - Fail fast: Validate early
237
- - Be specific: Clear error messages
238
- - Don't trust: Even "internal" data
239
-
240
- ---
241
-
242
- ## 7. Security Principles
243
-
244
- ### Security Checklist (Not Code)
245
-
246
- - [ ] **Input validation**: All inputs validated
247
- - [ ] **Parameterized queries**: No string concatenation for SQL
248
- - [ ] **Password hashing**: bcrypt or argon2
249
- - [ ] **JWT verification**: Always verify signature and expiry
250
- - [ ] **Rate limiting**: Protect from abuse
251
- - [ ] **Security headers**: Helmet.js or equivalent
252
- - [ ] **HTTPS**: Everywhere in production
253
- - [ ] **CORS**: Properly configured
254
- - [ ] **Secrets**: Environment variables only
255
- - [ ] **Dependencies**: Regularly audited
256
-
257
- ### Security Mindset
258
-
259
- ```
260
- Trust nothing:
261
- ├── Query params → validate
262
- ├── Request body → validate
263
- ├── Headers → verify
264
- ├── Cookies → validate
265
- ├── File uploads → scan
266
- └── External APIs → validate response
267
- ```
268
-
269
- ---
270
-
271
- ## 8. Testing Principles
272
-
273
- ### Test Strategy Selection
274
-
275
- | Type | Purpose | Tools |
276
- |------|---------|-------|
277
- | **Unit** | Business logic | node:test, Vitest |
278
- | **Integration** | API endpoints | Supertest |
279
- | **E2E** | Full flows | Playwright |
280
-
281
- ### What to Test (Priorities)
282
-
283
- 1. **Critical paths**: Auth, payments, core business
284
- 2. **Edge cases**: Empty inputs, boundaries
285
- 3. **Error handling**: What happens when things fail?
286
- 4. **Not worth testing**: Framework code, trivial getters
287
-
288
- ### Built-in Test Runner (Node.js 22+)
289
-
290
- ```
291
- node --test src/**/*.test.ts
292
- ├── No external dependency
293
- ├── Good coverage reporting
294
- └── Watch mode available
295
- ```
296
-
297
- ---
298
-
299
- ## 10. Anti-Patterns to Avoid
300
-
301
- ### ❌ DON'T:
302
- - Use Express for new edge projects (use Hono)
303
- - Use sync methods in production code
304
- - Put business logic in controllers
305
- - Skip input validation
306
- - Hardcode secrets
307
- - Trust external data without validation
308
- - Block event loop with CPU work
309
-
310
- ### ✅ DO:
311
- - Choose framework based on context
312
- - Ask user for preferences when unclear
313
- - Use layered architecture for growing projects
314
- - Validate all inputs
315
- - Use environment variables for secrets
316
- - Profile before optimizing
317
-
318
- ---
319
-
320
- ## 11. Decision Checklist
321
-
322
- Before implementing:
323
-
324
- - [ ] **Asked user about stack preference?**
325
- - [ ] **Chosen framework for THIS context?** (not just default)
326
- - [ ] **Considered deployment target?**
327
- - [ ] **Planned error handling strategy?**
328
- - [ ] **Identified validation points?**
329
- - [ ] **Considered security requirements?**
330
-
331
- ---
47
+ ## Output expectation
332
48
 
333
- > **Remember**: Node.js best practices are about decision-making, not memorizing patterns. Every project deserves fresh consideration based on its requirements.
49
+ Return concrete architecture choices with tradeoffs, then implementation steps and verification criteria.
@@ -1,84 +1,56 @@
1
1
  ---
2
- name: python-pro
3
- description: Use when building Python 3.11+ applications requiring type safety, async programming, or production-grade patterns. Invoke for type hints, pytest, async/await, dataclasses, mypy configuration.
2
+ name: "python-pro"
3
+ description: "Use for production Python with 3.14-era typing, async, packaging, and testing standards."
4
4
  license: MIT
5
5
  metadata:
6
- author: https://github.com/Jeffallan
7
- version: "1.0.0"
8
- domain: language
9
- triggers: Python development, type hints, async Python, pytest, mypy, dataclasses, Python best practices, Pythonic code
10
- role: specialist
11
- scope: implementation
12
- output-format: code
13
- related-skills: fastapi-expert, devops-engineer
6
+ version: "2.0.0"
7
+ domain: "language"
8
+ role: "specialist"
9
+ stack: "python"
10
+ baseline: "Python 3.14"
14
11
  ---
15
12
 
16
13
  # Python Pro
17
14
 
18
- Senior Python developer with 10+ years experience specializing in type-safe, async-first, production-ready Python 3.11+ code.
15
+ ## When to use
19
16
 
20
- ## Role Definition
17
+ - Building backend services, automation, or data pipelines in Python.
18
+ - Migrating legacy Python to typed and testable architecture.
19
+ - Implementing async I/O with predictable behavior.
21
20
 
22
- You are a senior Python engineer mastering modern Python 3.11+ and its ecosystem. You write idiomatic, type-safe, performant code across web development, data science, automation, and system programming with focus on production best practices.
21
+ ## Core workflow
23
22
 
24
- ## When to Use This Skill
23
+ 1. Establish interpreter/runtime constraints.
24
+ 2. Define typed interfaces and domain models.
25
+ 3. Implement sync/async boundaries explicitly.
26
+ 4. Validate with tests, type checks, and linting.
25
27
 
26
- - Writing type-safe Python with complete type coverage
27
- - Implementing async/await patterns for I/O operations
28
- - Setting up pytest test suites with fixtures and mocking
29
- - Creating Pythonic code with comprehensions, generators, context managers
30
- - Building packages with Poetry and proper project structure
31
- - Performance optimization and profiling
28
+ ## Baseline standards
32
29
 
33
- ## Core Workflow
30
+ - Type annotate public functions and critical internal APIs.
31
+ - Use `pyproject.toml`-first packaging and tooling.
32
+ - Use `pytest` for tests and parametrize edge cases.
33
+ - Keep business logic separate from framework glue.
34
+ - Prefer stdlib clarity before adding dependencies.
34
35
 
35
- 1. **Analyze codebase** - Review structure, dependencies, type coverage, test suite
36
- 2. **Design interfaces** - Define protocols, dataclasses, type aliases
37
- 3. **Implement** - Write Pythonic code with full type hints and error handling
38
- 4. **Test** - Create comprehensive pytest suite with >90% coverage
39
- 5. **Validate** - Run mypy, black, ruff; ensure quality standards met
36
+ ## Implementation guidance
40
37
 
41
- ## Reference Guide
38
+ - Use `dataclass`/Pydantic models for domain boundaries.
39
+ - Use `TaskGroup`-style structured concurrency where possible.
40
+ - Preserve exception context; do not swallow root causes.
41
+ - Keep I/O async and CPU work isolated where needed.
42
+ - Treat free-threaded mode as opt-in until dependencies are validated.
42
43
 
43
- Load detailed guidance based on context:
44
+ ## Avoid
44
45
 
45
- | Topic | Reference | Load When |
46
- |-------|-----------|-----------|
47
- | Type System | `references/type-system.md` | Type hints, mypy, generics, Protocol |
48
- | Async Patterns | `references/async-patterns.md` | async/await, asyncio, task groups |
49
- | Standard Library | `references/standard-library.md` | pathlib, dataclasses, functools, itertools |
50
- | Testing | `references/testing.md` | pytest, fixtures, mocking, parametrize |
51
- | Packaging | `references/packaging.md` | poetry, pip, pyproject.toml, distribution |
46
+ - Untyped public APIs in shared modules.
47
+ - Hidden global state in request paths.
48
+ - Mixed sync/async call graphs without clear adapters.
52
49
 
53
- ## Constraints
50
+ ## Reference files
54
51
 
55
- ### MUST DO
56
- - Type hints for all function signatures and class attributes
57
- - PEP 8 compliance with black formatting
58
- - Comprehensive docstrings (Google style)
59
- - Test coverage exceeding 90% with pytest
60
- - Use `X | None` instead of `Optional[X]` (Python 3.10+)
61
- - Async/await for I/O-bound operations
62
- - Dataclasses over manual __init__ methods
63
- - Context managers for resource handling
64
-
65
- ### MUST NOT DO
66
- - Skip type annotations on public APIs
67
- - Use mutable default arguments
68
- - Mix sync and async code improperly
69
- - Ignore mypy errors in strict mode
70
- - Use bare except clauses
71
- - Hardcode secrets or configuration
72
- - Use deprecated stdlib modules (use pathlib not os.path)
73
-
74
- ## Output Templates
75
-
76
- When implementing Python features, provide:
77
- 1. Module file with complete type hints
78
- 2. Test file with pytest fixtures
79
- 3. Type checking confirmation (mypy --strict passes)
80
- 4. Brief explanation of Pythonic patterns used
81
-
82
- ## Knowledge Reference
83
-
84
- Python 3.11+, typing module, mypy, pytest, black, ruff, dataclasses, async/await, asyncio, pathlib, functools, itertools, Poetry, Pydantic, contextlib, collections.abc, Protocol
52
+ - `references/type-system.md`
53
+ - `references/async-patterns.md`
54
+ - `references/testing.md`
55
+ - `references/packaging.md`
56
+ - `references/standard-library.md`
@@ -1,136 +1,53 @@
1
1
  ---
2
- name: react-best-practices
3
- description: "Performance-focused React/Next.js review checklist from Vercel. Use for optimization/refactor passes, not as the primary implementation skill."
2
+ name: "react-best-practices"
3
+ description: "Performance-focused React/Next.js review checklist. Use for audits and optimization passes, not as primary implementation skill."
4
4
  license: MIT
5
5
  metadata:
6
6
  author: vercel
7
- version: "1.0.0"
7
+ version: "2.0.0"
8
+ domain: "frontend"
9
+ role: "review-checklist"
8
10
  ---
9
11
 
10
- # Vercel React Best Practices
12
+ # React Best Practices
11
13
 
12
- Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 57 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
14
+ ## Purpose
13
15
 
14
- ## When to Apply
16
+ Use this skill to run structured optimization reviews on React/Next.js code. Pair it with implementation skills (`react-expert`, `nextjs-developer`) when code changes are required.
15
17
 
16
- Reference these guidelines when:
17
- - Writing new React components or Next.js pages
18
- - Implementing data fetching (client or server-side)
19
- - Reviewing code for performance issues
20
- - Refactoring existing React/Next.js code
21
- - Optimizing bundle size or load times
18
+ ## Review order
22
19
 
23
- ## Rule Categories by Priority
20
+ 1. Async waterfalls and request parallelization.
21
+ 2. Bundle and hydration footprint.
22
+ 3. Server rendering and serialization overhead.
23
+ 4. Client data-fetching and rerender churn.
24
+ 5. JS/runtime hot paths.
24
25
 
25
- | Priority | Category | Impact | Prefix |
26
- |----------|----------|--------|--------|
27
- | 1 | Eliminating Waterfalls | CRITICAL | `async-` |
28
- | 2 | Bundle Size Optimization | CRITICAL | `bundle-` |
29
- | 3 | Server-Side Performance | HIGH | `server-` |
30
- | 4 | Client-Side Data Fetching | MEDIUM-HIGH | `client-` |
31
- | 5 | Re-render Optimization | MEDIUM | `rerender-` |
32
- | 6 | Rendering Performance | MEDIUM | `rendering-` |
33
- | 7 | JavaScript Performance | LOW-MEDIUM | `js-` |
34
- | 8 | Advanced Patterns | LOW | `advanced-` |
26
+ ## High-impact checks
35
27
 
36
- ## Quick Reference
28
+ - Parallelize independent async work.
29
+ - Eliminate unnecessary client components.
30
+ - Remove heavy modules from critical path.
31
+ - Avoid unstable props that trigger deep rerenders.
32
+ - Keep server-to-client payloads minimal.
37
33
 
38
- ### 1. Eliminating Waterfalls (CRITICAL)
34
+ ## Output format
39
35
 
40
- - `async-defer-await` - Move await into branches where actually used
41
- - `async-parallel` - Use Promise.all() for independent operations
42
- - `async-dependencies` - Use better-all for partial dependencies
43
- - `async-api-routes` - Start promises early, await late in API routes
44
- - `async-suspense-boundaries` - Use Suspense to stream content
36
+ Return prioritized findings with:
45
37
 
46
- ### 2. Bundle Size Optimization (CRITICAL)
38
+ 1. Issue and impact.
39
+ 2. Minimal safe change.
40
+ 3. Verification method (profile metric or test).
47
41
 
48
- - `bundle-barrel-imports` - Import directly, avoid barrel files
49
- - `bundle-dynamic-imports` - Use next/dynamic for heavy components
50
- - `bundle-defer-third-party` - Load analytics/logging after hydration
51
- - `bundle-conditional` - Load modules only when feature is activated
52
- - `bundle-preload` - Preload on hover/focus for perceived speed
42
+ ## Rule catalog
53
43
 
54
- ### 3. Server-Side Performance (HIGH)
44
+ Detailed rules are under `rules/` and grouped by prefix:
55
45
 
56
- - `server-auth-actions` - Authenticate server actions like API routes
57
- - `server-cache-react` - Use React.cache() for per-request deduplication
58
- - `server-cache-lru` - Use LRU cache for cross-request caching
59
- - `server-dedup-props` - Avoid duplicate serialization in RSC props
60
- - `server-serialization` - Minimize data passed to client components
61
- - `server-parallel-fetching` - Restructure components to parallelize fetches
62
- - `server-after-nonblocking` - Use after() for non-blocking operations
63
-
64
- ### 4. Client-Side Data Fetching (MEDIUM-HIGH)
65
-
66
- - `client-swr-dedup` - Use SWR for automatic request deduplication
67
- - `client-event-listeners` - Deduplicate global event listeners
68
- - `client-passive-event-listeners` - Use passive listeners for scroll
69
- - `client-localstorage-schema` - Version and minimize localStorage data
70
-
71
- ### 5. Re-render Optimization (MEDIUM)
72
-
73
- - `rerender-defer-reads` - Don't subscribe to state only used in callbacks
74
- - `rerender-memo` - Extract expensive work into memoized components
75
- - `rerender-memo-with-default-value` - Hoist default non-primitive props
76
- - `rerender-dependencies` - Use primitive dependencies in effects
77
- - `rerender-derived-state` - Subscribe to derived booleans, not raw values
78
- - `rerender-derived-state-no-effect` - Derive state during render, not effects
79
- - `rerender-functional-setstate` - Use functional setState for stable callbacks
80
- - `rerender-lazy-state-init` - Pass function to useState for expensive values
81
- - `rerender-simple-expression-in-memo` - Avoid memo for simple primitives
82
- - `rerender-move-effect-to-event` - Put interaction logic in event handlers
83
- - `rerender-transitions` - Use startTransition for non-urgent updates
84
- - `rerender-use-ref-transient-values` - Use refs for transient frequent values
85
-
86
- ### 6. Rendering Performance (MEDIUM)
87
-
88
- - `rendering-animate-svg-wrapper` - Animate div wrapper, not SVG element
89
- - `rendering-content-visibility` - Use content-visibility for long lists
90
- - `rendering-hoist-jsx` - Extract static JSX outside components
91
- - `rendering-svg-precision` - Reduce SVG coordinate precision
92
- - `rendering-hydration-no-flicker` - Use inline script for client-only data
93
- - `rendering-hydration-suppress-warning` - Suppress expected mismatches
94
- - `rendering-activity` - Use Activity component for show/hide
95
- - `rendering-conditional-render` - Use ternary, not && for conditionals
96
- - `rendering-usetransition-loading` - Prefer useTransition for loading state
97
-
98
- ### 7. JavaScript Performance (LOW-MEDIUM)
99
-
100
- - `js-batch-dom-css` - Group CSS changes via classes or cssText
101
- - `js-index-maps` - Build Map for repeated lookups
102
- - `js-cache-property-access` - Cache object properties in loops
103
- - `js-cache-function-results` - Cache function results in module-level Map
104
- - `js-cache-storage` - Cache localStorage/sessionStorage reads
105
- - `js-combine-iterations` - Combine multiple filter/map into one loop
106
- - `js-length-check-first` - Check array length before expensive comparison
107
- - `js-early-exit` - Return early from functions
108
- - `js-hoist-regexp` - Hoist RegExp creation outside loops
109
- - `js-min-max-loop` - Use loop for min/max instead of sort
110
- - `js-set-map-lookups` - Use Set/Map for O(1) lookups
111
- - `js-tosorted-immutable` - Use toSorted() for immutability
112
-
113
- ### 8. Advanced Patterns (LOW)
114
-
115
- - `advanced-event-handler-refs` - Store event handlers in refs
116
- - `advanced-init-once` - Initialize app once per app load
117
- - `advanced-use-latest` - useLatest for stable callback refs
118
-
119
- ## How to Use
120
-
121
- Read individual rule files for detailed explanations and code examples:
122
-
123
- ```
124
- rules/async-parallel.md
125
- rules/bundle-barrel-imports.md
126
- ```
127
-
128
- Each rule file contains:
129
- - Brief explanation of why it matters
130
- - Incorrect code example with explanation
131
- - Correct code example with explanation
132
- - Additional context and references
133
-
134
- ## Full Compiled Document
135
-
136
- For the complete guide with all rules expanded: `AGENTS.md`
46
+ - `async-*`
47
+ - `bundle-*`
48
+ - `server-*`
49
+ - `client-*`
50
+ - `rerender-*`
51
+ - `rendering-*`
52
+ - `js-*`
53
+ - `advanced-*`