memory-journal-mcp 7.7.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/README.md +126 -56
  2. package/dist/chunk-6OHRCNYW.js +3231 -0
  3. package/dist/chunk-JFMITANR.js +5168 -0
  4. package/dist/{chunk-QCQPAF4I.js → chunk-MWNLAEHR.js} +301 -4321
  5. package/dist/{chunk-ARLYSFSI.js → chunk-UHSO65A4.js} +4242 -6092
  6. package/dist/cli.js +21 -3
  7. package/dist/index.d.ts +16 -13
  8. package/dist/index.js +4 -2
  9. package/dist/resources-IJVKDFGS.js +2 -0
  10. package/dist/tools-44DGXE3V.js +2 -0
  11. package/dist/worker-script.js +201 -20
  12. package/package.json +7 -4
  13. package/skills/README.md +62 -25
  14. package/skills/adversarial-performance/SKILL.md +139 -0
  15. package/skills/adversarial-performance/references/audit-categories.md +462 -0
  16. package/skills/adversarial-performance/references/copilot-performance-prompts.md +44 -0
  17. package/skills/adversarial-performance/references/copilot-usage.md +16 -0
  18. package/skills/adversarial-performance/references/feedback-loop.md +177 -0
  19. package/skills/adversarial-performance/references/multi-pass-performance-protocol.md +398 -0
  20. package/skills/adversarial-planner/SKILL.md +23 -54
  21. package/skills/adversarial-planner/references/copilot-integration.md +25 -40
  22. package/skills/adversarial-planner/references/copilot-usage.md +16 -0
  23. package/skills/adversarial-planner/references/multi-pass-protocol.md +4 -0
  24. package/skills/adversarial-security/SKILL.md +149 -0
  25. package/skills/adversarial-security/references/adversarial-base-protocol.md +44 -0
  26. package/skills/adversarial-security/references/audit-categories.md +723 -0
  27. package/skills/adversarial-security/references/copilot-security-prompts.md +142 -0
  28. package/skills/adversarial-security/references/copilot-usage.md +16 -0
  29. package/skills/adversarial-security/references/feedback-loop.md +206 -0
  30. package/skills/adversarial-security/references/journal-opt-out.md +7 -0
  31. package/skills/adversarial-security/references/multi-pass-security-protocol.md +403 -0
  32. package/skills/adversarial-skill-audit/SKILL.md +118 -0
  33. package/skills/adversarial-skill-audit/references/audit-categories.md +308 -0
  34. package/skills/adversarial-skill-audit/references/copilot-skill-prompts.md +68 -0
  35. package/skills/adversarial-skill-audit/references/copilot-usage.md +16 -0
  36. package/skills/adversarial-skill-audit/references/feedback-loop.md +155 -0
  37. package/skills/adversarial-skill-audit/references/multi-pass-skill-protocol.md +367 -0
  38. package/skills/adversarial-skill-audit/scripts/check-skills.ps1 +48 -0
  39. package/skills/adversarial-skill-audit/scripts/run-copilot.ps1 +52 -0
  40. package/skills/adversarial-workflow-audit/SKILL.md +82 -0
  41. package/skills/adversarial-workflow-audit/references/audit-categories.md +28 -0
  42. package/skills/adversarial-workflow-audit/references/copilot-usage.md +16 -0
  43. package/skills/adversarial-workflow-audit/scripts/check-workflows.ps1 +24 -0
  44. package/skills/agents-sdk/SKILL.md +220 -0
  45. package/skills/agents-sdk/references/callable.md +92 -0
  46. package/skills/agents-sdk/references/codemode.md +209 -0
  47. package/skills/agents-sdk/references/email.md +144 -0
  48. package/skills/agents-sdk/references/mcp/SKILL.md +65 -0
  49. package/skills/agents-sdk/references/mcp/code-mode-reference.md +245 -0
  50. package/skills/agents-sdk/references/mcp/oauth-reference.md +359 -0
  51. package/skills/agents-sdk/references/mcp/references/architecture-reference.md +208 -0
  52. package/skills/agents-sdk/references/mcp/references/cloudflare-quickstart.md +156 -0
  53. package/skills/agents-sdk/references/mcp/references/error-handling.md +343 -0
  54. package/skills/agents-sdk/references/mcp/references/http-security.md +164 -0
  55. package/skills/agents-sdk/references/mcp/references/implementation-guide.md +507 -0
  56. package/skills/agents-sdk/references/mcp/references/testing-reference.md +171 -0
  57. package/skills/agents-sdk/references/mcp.md +157 -0
  58. package/skills/agents-sdk/references/state-scheduling.md +164 -0
  59. package/skills/agents-sdk/references/streaming-chat.md +168 -0
  60. package/skills/agents-sdk/references/workflows.md +136 -0
  61. package/skills/auth-identity/SKILL.md +48 -0
  62. package/skills/autonomous-dev/SKILL.md +46 -23
  63. package/skills/autonomous-dev/references/workflow_orchestration.md +22 -0
  64. package/skills/aws/SKILL.md +39 -0
  65. package/skills/azure/SKILL.md +38 -0
  66. package/skills/bin/sync.js +7 -1
  67. package/skills/biome/SKILL.md +59 -0
  68. package/skills/bun/SKILL.md +8 -2
  69. package/skills/cloudflare/SKILL.md +37 -0
  70. package/skills/cloudflare/references/agents-sdk/README.md +95 -0
  71. package/skills/cloudflare/references/agents-sdk/api.md +195 -0
  72. package/skills/cloudflare/references/agents-sdk/configuration.md +178 -0
  73. package/skills/cloudflare/references/agents-sdk/gotchas.md +173 -0
  74. package/skills/cloudflare/references/agents-sdk/patterns.md +215 -0
  75. package/skills/cloudflare/references/ai-gateway/README.md +176 -0
  76. package/skills/cloudflare/references/ai-gateway/configuration.md +117 -0
  77. package/skills/cloudflare/references/ai-gateway/dynamic-routing.md +88 -0
  78. package/skills/cloudflare/references/ai-gateway/features.md +96 -0
  79. package/skills/cloudflare/references/ai-gateway/sdk-integration.md +110 -0
  80. package/skills/cloudflare/references/ai-gateway/troubleshooting.md +90 -0
  81. package/skills/cloudflare/references/ai-search/README.md +145 -0
  82. package/skills/cloudflare/references/ai-search/api.md +87 -0
  83. package/skills/cloudflare/references/ai-search/configuration.md +91 -0
  84. package/skills/cloudflare/references/ai-search/gotchas.md +92 -0
  85. package/skills/cloudflare/references/ai-search/patterns.md +87 -0
  86. package/skills/cloudflare/references/analytics-engine/README.md +96 -0
  87. package/skills/cloudflare/references/analytics-engine/api.md +112 -0
  88. package/skills/cloudflare/references/analytics-engine/configuration.md +107 -0
  89. package/skills/cloudflare/references/analytics-engine/gotchas.md +87 -0
  90. package/skills/cloudflare/references/analytics-engine/patterns.md +83 -0
  91. package/skills/cloudflare/references/api/README.md +66 -0
  92. package/skills/cloudflare/references/api/api.md +205 -0
  93. package/skills/cloudflare/references/api/configuration.md +158 -0
  94. package/skills/cloudflare/references/api/gotchas.md +231 -0
  95. package/skills/cloudflare/references/api/patterns.md +208 -0
  96. package/skills/cloudflare/references/api-shield/README.md +44 -0
  97. package/skills/cloudflare/references/api-shield/api.md +153 -0
  98. package/skills/cloudflare/references/api-shield/configuration.md +210 -0
  99. package/skills/cloudflare/references/api-shield/gotchas.md +132 -0
  100. package/skills/cloudflare/references/api-shield/patterns.md +185 -0
  101. package/skills/cloudflare/references/argo-smart-routing/README.md +96 -0
  102. package/skills/cloudflare/references/argo-smart-routing/api.md +253 -0
  103. package/skills/cloudflare/references/argo-smart-routing/configuration.md +205 -0
  104. package/skills/cloudflare/references/argo-smart-routing/gotchas.md +115 -0
  105. package/skills/cloudflare/references/argo-smart-routing/patterns.md +107 -0
  106. package/skills/cloudflare/references/bindings/README.md +127 -0
  107. package/skills/cloudflare/references/bindings/api.md +214 -0
  108. package/skills/cloudflare/references/bindings/configuration.md +200 -0
  109. package/skills/cloudflare/references/bindings/gotchas.md +210 -0
  110. package/skills/cloudflare/references/bindings/patterns.md +205 -0
  111. package/skills/cloudflare/references/bot-management/README.md +95 -0
  112. package/skills/cloudflare/references/bot-management/api.md +175 -0
  113. package/skills/cloudflare/references/bot-management/configuration.md +175 -0
  114. package/skills/cloudflare/references/bot-management/gotchas.md +116 -0
  115. package/skills/cloudflare/references/bot-management/patterns.md +181 -0
  116. package/skills/cloudflare/references/browser-rendering/README.md +84 -0
  117. package/skills/cloudflare/references/browser-rendering/api.md +108 -0
  118. package/skills/cloudflare/references/browser-rendering/configuration.md +78 -0
  119. package/skills/cloudflare/references/browser-rendering/gotchas.md +91 -0
  120. package/skills/cloudflare/references/browser-rendering/patterns.md +93 -0
  121. package/skills/cloudflare/references/c3/README.md +111 -0
  122. package/skills/cloudflare/references/c3/api.md +71 -0
  123. package/skills/cloudflare/references/c3/configuration.md +85 -0
  124. package/skills/cloudflare/references/c3/gotchas.md +97 -0
  125. package/skills/cloudflare/references/c3/patterns.md +84 -0
  126. package/skills/cloudflare/references/cache-reserve/README.md +150 -0
  127. package/skills/cloudflare/references/cache-reserve/api.md +184 -0
  128. package/skills/cloudflare/references/cache-reserve/configuration.md +170 -0
  129. package/skills/cloudflare/references/cache-reserve/gotchas.md +136 -0
  130. package/skills/cloudflare/references/cache-reserve/patterns.md +197 -0
  131. package/skills/cloudflare/references/containers/README.md +87 -0
  132. package/skills/cloudflare/references/containers/api.md +197 -0
  133. package/skills/cloudflare/references/containers/configuration.md +191 -0
  134. package/skills/cloudflare/references/containers/gotchas.md +182 -0
  135. package/skills/cloudflare/references/containers/patterns.md +204 -0
  136. package/skills/cloudflare/references/cron-triggers/README.md +101 -0
  137. package/skills/cloudflare/references/cron-triggers/api.md +224 -0
  138. package/skills/cloudflare/references/cron-triggers/configuration.md +190 -0
  139. package/skills/cloudflare/references/cron-triggers/gotchas.md +207 -0
  140. package/skills/cloudflare/references/cron-triggers/patterns.md +274 -0
  141. package/skills/cloudflare/references/d1/README.md +137 -0
  142. package/skills/cloudflare/references/d1/api.md +213 -0
  143. package/skills/cloudflare/references/d1/configuration.md +198 -0
  144. package/skills/cloudflare/references/d1/gotchas.md +98 -0
  145. package/skills/cloudflare/references/d1/patterns.md +240 -0
  146. package/skills/cloudflare/references/ddos/README.md +42 -0
  147. package/skills/cloudflare/references/ddos/api.md +158 -0
  148. package/skills/cloudflare/references/ddos/configuration.md +94 -0
  149. package/skills/cloudflare/references/ddos/gotchas.md +114 -0
  150. package/skills/cloudflare/references/ddos/patterns.md +220 -0
  151. package/skills/cloudflare/references/decision-trees.md +95 -0
  152. package/skills/cloudflare/references/do-storage/README.md +79 -0
  153. package/skills/cloudflare/references/do-storage/api.md +107 -0
  154. package/skills/cloudflare/references/do-storage/configuration.md +114 -0
  155. package/skills/cloudflare/references/do-storage/gotchas.md +153 -0
  156. package/skills/cloudflare/references/do-storage/patterns.md +210 -0
  157. package/skills/cloudflare/references/do-storage/testing.md +186 -0
  158. package/skills/cloudflare/references/durable-objects/README.md +194 -0
  159. package/skills/cloudflare/references/durable-objects/api.md +205 -0
  160. package/skills/cloudflare/references/durable-objects/configuration.md +160 -0
  161. package/skills/cloudflare/references/durable-objects/gotchas.md +200 -0
  162. package/skills/cloudflare/references/durable-objects/patterns.md +205 -0
  163. package/skills/cloudflare/references/email-routing/README.md +89 -0
  164. package/skills/cloudflare/references/email-routing/api.md +192 -0
  165. package/skills/cloudflare/references/email-routing/configuration.md +187 -0
  166. package/skills/cloudflare/references/email-routing/gotchas.md +203 -0
  167. package/skills/cloudflare/references/email-routing/patterns.md +241 -0
  168. package/skills/cloudflare/references/email-workers/README.md +153 -0
  169. package/skills/cloudflare/references/email-workers/api.md +227 -0
  170. package/skills/cloudflare/references/email-workers/configuration.md +115 -0
  171. package/skills/cloudflare/references/email-workers/gotchas.md +133 -0
  172. package/skills/cloudflare/references/email-workers/patterns.md +108 -0
  173. package/skills/cloudflare/references/graphql-api/README.md +147 -0
  174. package/skills/cloudflare/references/graphql-api/api.md +175 -0
  175. package/skills/cloudflare/references/graphql-api/configuration.md +151 -0
  176. package/skills/cloudflare/references/graphql-api/gotchas.md +111 -0
  177. package/skills/cloudflare/references/graphql-api/patterns.md +276 -0
  178. package/skills/cloudflare/references/hyperdrive/README.md +84 -0
  179. package/skills/cloudflare/references/hyperdrive/api.md +149 -0
  180. package/skills/cloudflare/references/hyperdrive/configuration.md +166 -0
  181. package/skills/cloudflare/references/hyperdrive/gotchas.md +77 -0
  182. package/skills/cloudflare/references/hyperdrive/patterns.md +203 -0
  183. package/skills/cloudflare/references/images/README.md +65 -0
  184. package/skills/cloudflare/references/images/api.md +101 -0
  185. package/skills/cloudflare/references/images/configuration.md +206 -0
  186. package/skills/cloudflare/references/images/gotchas.md +106 -0
  187. package/skills/cloudflare/references/images/patterns.md +126 -0
  188. package/skills/cloudflare/references/kv/README.md +90 -0
  189. package/skills/cloudflare/references/kv/api.md +163 -0
  190. package/skills/cloudflare/references/kv/configuration.md +148 -0
  191. package/skills/cloudflare/references/kv/gotchas.md +133 -0
  192. package/skills/cloudflare/references/kv/patterns.md +195 -0
  193. package/skills/cloudflare/references/miniflare/README.md +113 -0
  194. package/skills/cloudflare/references/miniflare/api.md +204 -0
  195. package/skills/cloudflare/references/miniflare/configuration.md +174 -0
  196. package/skills/cloudflare/references/miniflare/gotchas.md +179 -0
  197. package/skills/cloudflare/references/miniflare/patterns.md +187 -0
  198. package/skills/cloudflare/references/network-interconnect/README.md +104 -0
  199. package/skills/cloudflare/references/network-interconnect/api.md +220 -0
  200. package/skills/cloudflare/references/network-interconnect/configuration.md +123 -0
  201. package/skills/cloudflare/references/network-interconnect/gotchas.md +175 -0
  202. package/skills/cloudflare/references/network-interconnect/patterns.md +174 -0
  203. package/skills/cloudflare/references/observability/README.md +93 -0
  204. package/skills/cloudflare/references/observability/api.md +168 -0
  205. package/skills/cloudflare/references/observability/configuration.md +178 -0
  206. package/skills/cloudflare/references/observability/gotchas.md +125 -0
  207. package/skills/cloudflare/references/observability/patterns.md +105 -0
  208. package/skills/cloudflare/references/pages/README.md +92 -0
  209. package/skills/cloudflare/references/pages/api.md +205 -0
  210. package/skills/cloudflare/references/pages/configuration.md +216 -0
  211. package/skills/cloudflare/references/pages/gotchas.md +218 -0
  212. package/skills/cloudflare/references/pages/patterns.md +215 -0
  213. package/skills/cloudflare/references/pages-functions/README.md +104 -0
  214. package/skills/cloudflare/references/pages-functions/api.md +159 -0
  215. package/skills/cloudflare/references/pages-functions/configuration.md +130 -0
  216. package/skills/cloudflare/references/pages-functions/gotchas.md +102 -0
  217. package/skills/cloudflare/references/pages-functions/patterns.md +148 -0
  218. package/skills/cloudflare/references/pipelines/README.md +109 -0
  219. package/skills/cloudflare/references/pipelines/api.md +214 -0
  220. package/skills/cloudflare/references/pipelines/configuration.md +98 -0
  221. package/skills/cloudflare/references/pipelines/gotchas.md +84 -0
  222. package/skills/cloudflare/references/pipelines/patterns.md +87 -0
  223. package/skills/cloudflare/references/product-index.md +112 -0
  224. package/skills/cloudflare/references/pulumi/README.md +113 -0
  225. package/skills/cloudflare/references/pulumi/api.md +230 -0
  226. package/skills/cloudflare/references/pulumi/configuration.md +213 -0
  227. package/skills/cloudflare/references/pulumi/gotchas.md +205 -0
  228. package/skills/cloudflare/references/pulumi/patterns.md +260 -0
  229. package/skills/cloudflare/references/queues/README.md +99 -0
  230. package/skills/cloudflare/references/queues/api.md +211 -0
  231. package/skills/cloudflare/references/queues/configuration.md +151 -0
  232. package/skills/cloudflare/references/queues/gotchas.md +210 -0
  233. package/skills/cloudflare/references/queues/patterns.md +220 -0
  234. package/skills/cloudflare/references/r2/README.md +97 -0
  235. package/skills/cloudflare/references/r2/api.md +235 -0
  236. package/skills/cloudflare/references/r2/configuration.md +176 -0
  237. package/skills/cloudflare/references/r2/gotchas.md +190 -0
  238. package/skills/cloudflare/references/r2/patterns.md +203 -0
  239. package/skills/cloudflare/references/r2-data-catalog/README.md +157 -0
  240. package/skills/cloudflare/references/r2-data-catalog/api.md +199 -0
  241. package/skills/cloudflare/references/r2-data-catalog/configuration.md +205 -0
  242. package/skills/cloudflare/references/r2-data-catalog/gotchas.md +170 -0
  243. package/skills/cloudflare/references/r2-data-catalog/patterns.md +191 -0
  244. package/skills/cloudflare/references/r2-sql/README.md +138 -0
  245. package/skills/cloudflare/references/r2-sql/SKILL.md.backup +512 -0
  246. package/skills/cloudflare/references/r2-sql/api.md +159 -0
  247. package/skills/cloudflare/references/r2-sql/configuration.md +152 -0
  248. package/skills/cloudflare/references/r2-sql/gotchas.md +228 -0
  249. package/skills/cloudflare/references/r2-sql/patterns.md +230 -0
  250. package/skills/cloudflare/references/realtime-sfu/README.md +66 -0
  251. package/skills/cloudflare/references/realtime-sfu/api.md +164 -0
  252. package/skills/cloudflare/references/realtime-sfu/configuration.md +141 -0
  253. package/skills/cloudflare/references/realtime-sfu/gotchas.md +138 -0
  254. package/skills/cloudflare/references/realtime-sfu/patterns.md +187 -0
  255. package/skills/cloudflare/references/realtimekit/README.md +118 -0
  256. package/skills/cloudflare/references/realtimekit/api.md +234 -0
  257. package/skills/cloudflare/references/realtimekit/configuration.md +226 -0
  258. package/skills/cloudflare/references/realtimekit/gotchas.md +206 -0
  259. package/skills/cloudflare/references/realtimekit/patterns.md +240 -0
  260. package/skills/cloudflare/references/sandbox/README.md +104 -0
  261. package/skills/cloudflare/references/sandbox/api.md +200 -0
  262. package/skills/cloudflare/references/sandbox/configuration.md +154 -0
  263. package/skills/cloudflare/references/sandbox/gotchas.md +201 -0
  264. package/skills/cloudflare/references/sandbox/patterns.md +195 -0
  265. package/skills/cloudflare/references/secrets-store/README.md +77 -0
  266. package/skills/cloudflare/references/secrets-store/api.md +199 -0
  267. package/skills/cloudflare/references/secrets-store/configuration.md +187 -0
  268. package/skills/cloudflare/references/secrets-store/gotchas.md +97 -0
  269. package/skills/cloudflare/references/secrets-store/patterns.md +218 -0
  270. package/skills/cloudflare/references/smart-placement/README.md +143 -0
  271. package/skills/cloudflare/references/smart-placement/api.md +192 -0
  272. package/skills/cloudflare/references/smart-placement/configuration.md +202 -0
  273. package/skills/cloudflare/references/smart-placement/gotchas.md +180 -0
  274. package/skills/cloudflare/references/smart-placement/patterns.md +190 -0
  275. package/skills/cloudflare/references/snippets/README.md +74 -0
  276. package/skills/cloudflare/references/snippets/api.md +214 -0
  277. package/skills/cloudflare/references/snippets/configuration.md +239 -0
  278. package/skills/cloudflare/references/snippets/gotchas.md +104 -0
  279. package/skills/cloudflare/references/snippets/patterns.md +135 -0
  280. package/skills/cloudflare/references/spectrum/README.md +52 -0
  281. package/skills/cloudflare/references/spectrum/api.md +184 -0
  282. package/skills/cloudflare/references/spectrum/configuration.md +203 -0
  283. package/skills/cloudflare/references/spectrum/gotchas.md +155 -0
  284. package/skills/cloudflare/references/spectrum/patterns.md +206 -0
  285. package/skills/cloudflare/references/static-assets/README.md +65 -0
  286. package/skills/cloudflare/references/static-assets/api.md +201 -0
  287. package/skills/cloudflare/references/static-assets/configuration.md +186 -0
  288. package/skills/cloudflare/references/static-assets/gotchas.md +164 -0
  289. package/skills/cloudflare/references/static-assets/patterns.md +189 -0
  290. package/skills/cloudflare/references/stream/README.md +123 -0
  291. package/skills/cloudflare/references/stream/api-live.md +202 -0
  292. package/skills/cloudflare/references/stream/api.md +206 -0
  293. package/skills/cloudflare/references/stream/configuration.md +151 -0
  294. package/skills/cloudflare/references/stream/gotchas.md +139 -0
  295. package/skills/cloudflare/references/stream/patterns.md +217 -0
  296. package/skills/cloudflare/references/tail-workers/README.md +92 -0
  297. package/skills/cloudflare/references/tail-workers/api.md +203 -0
  298. package/skills/cloudflare/references/tail-workers/configuration.md +178 -0
  299. package/skills/cloudflare/references/tail-workers/gotchas.md +206 -0
  300. package/skills/cloudflare/references/tail-workers/patterns.md +190 -0
  301. package/skills/cloudflare/references/terraform/README.md +100 -0
  302. package/skills/cloudflare/references/terraform/api.md +178 -0
  303. package/skills/cloudflare/references/terraform/configuration.md +197 -0
  304. package/skills/cloudflare/references/terraform/gotchas.md +150 -0
  305. package/skills/cloudflare/references/terraform/patterns.md +174 -0
  306. package/skills/cloudflare/references/tunnel/README.md +137 -0
  307. package/skills/cloudflare/references/tunnel/api.md +205 -0
  308. package/skills/cloudflare/references/tunnel/configuration.md +163 -0
  309. package/skills/cloudflare/references/tunnel/gotchas.md +159 -0
  310. package/skills/cloudflare/references/tunnel/networking.md +174 -0
  311. package/skills/cloudflare/references/tunnel/patterns.md +199 -0
  312. package/skills/cloudflare/references/turn/README.md +86 -0
  313. package/skills/cloudflare/references/turn/api.md +236 -0
  314. package/skills/cloudflare/references/turn/configuration.md +181 -0
  315. package/skills/cloudflare/references/turn/gotchas.md +236 -0
  316. package/skills/cloudflare/references/turn/patterns.md +228 -0
  317. package/skills/cloudflare/references/turnstile/README.md +102 -0
  318. package/skills/cloudflare/references/turnstile/api.md +253 -0
  319. package/skills/cloudflare/references/turnstile/configuration.md +242 -0
  320. package/skills/cloudflare/references/turnstile/gotchas.md +253 -0
  321. package/skills/cloudflare/references/turnstile/patterns.md +195 -0
  322. package/skills/cloudflare/references/vectorize/README.md +133 -0
  323. package/skills/cloudflare/references/vectorize/api.md +89 -0
  324. package/skills/cloudflare/references/vectorize/configuration.md +91 -0
  325. package/skills/cloudflare/references/vectorize/gotchas.md +83 -0
  326. package/skills/cloudflare/references/vectorize/patterns.md +92 -0
  327. package/skills/cloudflare/references/waf/README.md +125 -0
  328. package/skills/cloudflare/references/waf/api.md +203 -0
  329. package/skills/cloudflare/references/waf/configuration.md +215 -0
  330. package/skills/cloudflare/references/waf/gotchas.md +208 -0
  331. package/skills/cloudflare/references/waf/patterns.md +236 -0
  332. package/skills/cloudflare/references/web-analytics/README.md +149 -0
  333. package/skills/cloudflare/references/web-analytics/configuration.md +81 -0
  334. package/skills/cloudflare/references/web-analytics/gotchas.md +86 -0
  335. package/skills/cloudflare/references/web-analytics/integration.md +63 -0
  336. package/skills/cloudflare/references/web-analytics/patterns.md +98 -0
  337. package/skills/cloudflare/references/workerd/README.md +85 -0
  338. package/skills/cloudflare/references/workerd/api.md +219 -0
  339. package/skills/cloudflare/references/workerd/configuration.md +200 -0
  340. package/skills/cloudflare/references/workerd/gotchas.md +151 -0
  341. package/skills/cloudflare/references/workerd/patterns.md +205 -0
  342. package/skills/cloudflare/references/workers/README.md +110 -0
  343. package/skills/cloudflare/references/workers/api.md +197 -0
  344. package/skills/cloudflare/references/workers/configuration.md +184 -0
  345. package/skills/cloudflare/references/workers/frameworks.md +200 -0
  346. package/skills/cloudflare/references/workers/gotchas.md +145 -0
  347. package/skills/cloudflare/references/workers/patterns.md +220 -0
  348. package/skills/cloudflare/references/workers-ai/README.md +206 -0
  349. package/skills/cloudflare/references/workers-ai/api.md +115 -0
  350. package/skills/cloudflare/references/workers-ai/configuration.md +98 -0
  351. package/skills/cloudflare/references/workers-ai/gotchas.md +130 -0
  352. package/skills/cloudflare/references/workers-ai/patterns.md +122 -0
  353. package/skills/cloudflare/references/workers-for-platforms/README.md +95 -0
  354. package/skills/cloudflare/references/workers-for-platforms/api.md +212 -0
  355. package/skills/cloudflare/references/workers-for-platforms/configuration.md +178 -0
  356. package/skills/cloudflare/references/workers-for-platforms/gotchas.md +134 -0
  357. package/skills/cloudflare/references/workers-for-platforms/patterns.md +210 -0
  358. package/skills/cloudflare/references/workers-playground/README.md +131 -0
  359. package/skills/cloudflare/references/workers-playground/api.md +101 -0
  360. package/skills/cloudflare/references/workers-playground/configuration.md +169 -0
  361. package/skills/cloudflare/references/workers-playground/gotchas.md +88 -0
  362. package/skills/cloudflare/references/workers-playground/patterns.md +134 -0
  363. package/skills/cloudflare/references/workers-vpc/README.md +130 -0
  364. package/skills/cloudflare/references/workers-vpc/api.md +196 -0
  365. package/skills/cloudflare/references/workers-vpc/configuration.md +151 -0
  366. package/skills/cloudflare/references/workers-vpc/gotchas.md +171 -0
  367. package/skills/cloudflare/references/workers-vpc/patterns.md +235 -0
  368. package/skills/cloudflare/references/workflows/README.md +72 -0
  369. package/skills/cloudflare/references/workflows/api.md +237 -0
  370. package/skills/cloudflare/references/workflows/configuration.md +158 -0
  371. package/skills/cloudflare/references/workflows/gotchas.md +97 -0
  372. package/skills/cloudflare/references/workflows/patterns.md +245 -0
  373. package/skills/cloudflare/references/wrangler/README.md +143 -0
  374. package/skills/cloudflare/references/wrangler/api.md +188 -0
  375. package/skills/cloudflare/references/wrangler/configuration.md +198 -0
  376. package/skills/cloudflare/references/wrangler/gotchas.md +212 -0
  377. package/skills/cloudflare/references/wrangler/patterns.md +211 -0
  378. package/skills/cloudflare/references/zaraz/IMPLEMENTATION_SUMMARY.md +131 -0
  379. package/skills/cloudflare/references/zaraz/README.md +114 -0
  380. package/skills/cloudflare/references/zaraz/api.md +118 -0
  381. package/skills/cloudflare/references/zaraz/configuration.md +94 -0
  382. package/skills/cloudflare/references/zaraz/gotchas.md +88 -0
  383. package/skills/cloudflare/references/zaraz/patterns.md +77 -0
  384. package/skills/docker/SKILL.md +7 -101
  385. package/skills/docker/references/advanced-examples.md +71 -0
  386. package/skills/docker/references/templates.md +34 -0
  387. package/skills/docs-marketer/SKILL.md +178 -0
  388. package/skills/docs-marketer/references/audit-categories.md +328 -0
  389. package/skills/docs-marketer/references/copilot-docs-prompts.md +88 -0
  390. package/skills/docs-marketer/references/copilot-usage.md +16 -0
  391. package/skills/docs-marketer/references/feedback-loop.md +155 -0
  392. package/skills/docs-marketer/references/multi-pass-docs-protocol.md +410 -0
  393. package/skills/drizzle-orm/SKILL.md +82 -0
  394. package/skills/durable-objects/SKILL.md +167 -0
  395. package/skills/durable-objects/references/advanced_features.md +29 -0
  396. package/skills/durable-objects/references/rules.md +300 -0
  397. package/skills/durable-objects/references/testing.md +261 -0
  398. package/skills/durable-objects/references/workers.md +336 -0
  399. package/skills/gcp/SKILL.md +37 -0
  400. package/skills/github-actions/SKILL.md +5 -58
  401. package/skills/github-actions/references/templates.md +65 -0
  402. package/skills/github-commander/SKILL.md +13 -21
  403. package/skills/github-commander/workflows/copilot-audit.md +12 -12
  404. package/skills/github-copilot-cli/SKILL.md +21 -26
  405. package/skills/github-repo-setup/SKILL.md +136 -0
  406. package/skills/github-repo-setup/references/community-standards.md +136 -0
  407. package/skills/github-repo-setup/references/github-automation.md +490 -0
  408. package/skills/github-repo-setup/references/inline-templates.md +205 -0
  409. package/skills/github-repo-setup/references/project-config.md +320 -0
  410. package/skills/gitlab/SKILL.md +7 -2
  411. package/skills/gitlab/package-lock.json +389 -389
  412. package/skills/golang/SKILL.md +8 -1
  413. package/skills/graphql/SKILL.md +30 -0
  414. package/skills/hono/SKILL.md +82 -0
  415. package/skills/journal-optimizer/SKILL.md +206 -0
  416. package/skills/journal-optimizer/references/optimizer-scripts.md +169 -0
  417. package/skills/llm-app-engineering/SKILL.md +18 -0
  418. package/skills/monorepo/SKILL.md +56 -0
  419. package/skills/multi-agent-orchestration/SKILL.md +14 -0
  420. package/skills/mysql/SKILL.md +6 -2
  421. package/skills/next-best-practices/SKILL.md +86 -0
  422. package/skills/next-best-practices/references/cache-components-examples.md +234 -0
  423. package/skills/next-best-practices/references/cache-components.md +210 -0
  424. package/skills/next-best-practices/references/upgrade-decision-tree.md +33 -0
  425. package/skills/next-best-practices/references/upgrade.md +43 -0
  426. package/skills/next-cache-components/SKILL.md +441 -0
  427. package/skills/next-upgrade/SKILL.md +43 -0
  428. package/skills/next-upgrade/references/decision-tree.md +33 -0
  429. package/skills/nodejs/SKILL.md +46 -0
  430. package/skills/opentelemetry/SKILL.md +62 -0
  431. package/skills/package.json +39 -4
  432. package/skills/playwright-standard/SKILL.md +6 -11
  433. package/skills/playwright-standard/references/locators.md +7 -0
  434. package/skills/postgres/SKILL.md +6 -1
  435. package/skills/python/SKILL.md +8 -70
  436. package/skills/python/references/advanced-patterns.md +37 -0
  437. package/skills/python/references/config-templates.md +48 -0
  438. package/skills/rag-pipelines/SKILL.md +14 -0
  439. package/skills/redis/SKILL.md +31 -0
  440. package/skills/render/SKILL.md +35 -0
  441. package/skills/rust/SKILL.md +15 -25
  442. package/skills/rust/references/borrow-checker.md +13 -0
  443. package/skills/rust/references/ecosystem.md +11 -0
  444. package/skills/sandbox-sdk/SKILL.md +186 -0
  445. package/skills/sandbox-sdk/references/api-quick-ref.md +113 -0
  446. package/skills/sandbox-sdk/references/examples.md +52 -0
  447. package/skills/shadcn-ui/SKILL.md +22 -57
  448. package/skills/skill-builder/SKILL.md +23 -424
  449. package/skills/skill-builder/references/tutorial.md +457 -0
  450. package/skills/sqlite/SKILL.md +16 -5
  451. package/skills/table.md +59 -0
  452. package/skills/tailwind-css/SKILL.md +11 -60
  453. package/skills/tailwind-css/references/component-patterns.md +52 -0
  454. package/skills/trpc/SKILL.md +56 -0
  455. package/skills/typescript/SKILL.md +30 -433
  456. package/skills/typescript/references/tutorial.md +453 -0
  457. package/skills/vercel-ai-sdk/SKILL.md +48 -0
  458. package/skills/vitest-standard/SKILL.md +5 -11
  459. package/skills/vitest-standard/references/assertions.md +11 -0
  460. package/skills/web-perf/SKILL.md +207 -0
  461. package/skills/workers-best-practices/SKILL.md +120 -0
  462. package/skills/workers-best-practices/references/anti-patterns.md +18 -0
  463. package/skills/workers-best-practices/references/review.md +174 -0
  464. package/skills/workers-best-practices/references/rules.md +485 -0
  465. package/skills/wrangler/SKILL.md +43 -0
  466. package/skills/wrangler/references/cli-commands.md +861 -0
  467. package/skills/zod/SKILL.md +48 -0
  468. package/dist/tools-P4VGG4FH.js +0 -1
  469. package/skills/react-best-practices/AGENTS.md +0 -2883
  470. package/skills/react-best-practices/SKILL.md +0 -138
  471. /package/skills/{react-best-practices → next-best-practices}/README.md +0 -0
  472. /package/skills/{react-best-practices → next-best-practices}/metadata.json +0 -0
  473. /package/skills/{react-best-practices → next-best-practices}/rules/_sections.md +0 -0
  474. /package/skills/{react-best-practices → next-best-practices}/rules/_template.md +0 -0
  475. /package/skills/{react-best-practices → next-best-practices}/rules/advanced-event-handler-refs.md +0 -0
  476. /package/skills/{react-best-practices → next-best-practices}/rules/advanced-init-once.md +0 -0
  477. /package/skills/{react-best-practices → next-best-practices}/rules/advanced-use-latest.md +0 -0
  478. /package/skills/{react-best-practices → next-best-practices}/rules/async-api-routes.md +0 -0
  479. /package/skills/{react-best-practices → next-best-practices}/rules/async-defer-await.md +0 -0
  480. /package/skills/{react-best-practices → next-best-practices}/rules/async-dependencies.md +0 -0
  481. /package/skills/{react-best-practices → next-best-practices}/rules/async-parallel.md +0 -0
  482. /package/skills/{react-best-practices → next-best-practices}/rules/async-suspense-boundaries.md +0 -0
  483. /package/skills/{react-best-practices → next-best-practices}/rules/bundle-barrel-imports.md +0 -0
  484. /package/skills/{react-best-practices → next-best-practices}/rules/bundle-conditional.md +0 -0
  485. /package/skills/{react-best-practices → next-best-practices}/rules/bundle-defer-third-party.md +0 -0
  486. /package/skills/{react-best-practices → next-best-practices}/rules/bundle-dynamic-imports.md +0 -0
  487. /package/skills/{react-best-practices → next-best-practices}/rules/bundle-preload.md +0 -0
  488. /package/skills/{react-best-practices → next-best-practices}/rules/client-event-listeners.md +0 -0
  489. /package/skills/{react-best-practices → next-best-practices}/rules/client-localstorage-schema.md +0 -0
  490. /package/skills/{react-best-practices → next-best-practices}/rules/client-passive-event-listeners.md +0 -0
  491. /package/skills/{react-best-practices → next-best-practices}/rules/client-swr-dedup.md +0 -0
  492. /package/skills/{react-best-practices → next-best-practices}/rules/js-batch-dom-css.md +0 -0
  493. /package/skills/{react-best-practices → next-best-practices}/rules/js-cache-function-results.md +0 -0
  494. /package/skills/{react-best-practices → next-best-practices}/rules/js-cache-property-access.md +0 -0
  495. /package/skills/{react-best-practices → next-best-practices}/rules/js-cache-storage.md +0 -0
  496. /package/skills/{react-best-practices → next-best-practices}/rules/js-combine-iterations.md +0 -0
  497. /package/skills/{react-best-practices → next-best-practices}/rules/js-early-exit.md +0 -0
  498. /package/skills/{react-best-practices → next-best-practices}/rules/js-hoist-regexp.md +0 -0
  499. /package/skills/{react-best-practices → next-best-practices}/rules/js-index-maps.md +0 -0
  500. /package/skills/{react-best-practices → next-best-practices}/rules/js-length-check-first.md +0 -0
  501. /package/skills/{react-best-practices → next-best-practices}/rules/js-min-max-loop.md +0 -0
  502. /package/skills/{react-best-practices → next-best-practices}/rules/js-set-map-lookups.md +0 -0
  503. /package/skills/{react-best-practices → next-best-practices}/rules/js-tosorted-immutable.md +0 -0
  504. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-activity.md +0 -0
  505. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-animate-svg-wrapper.md +0 -0
  506. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-conditional-render.md +0 -0
  507. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-content-visibility.md +0 -0
  508. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-hoist-jsx.md +0 -0
  509. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-hydration-no-flicker.md +0 -0
  510. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-hydration-suppress-warning.md +0 -0
  511. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-svg-precision.md +0 -0
  512. /package/skills/{react-best-practices → next-best-practices}/rules/rendering-usetransition-loading.md +0 -0
  513. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-defer-reads.md +0 -0
  514. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-dependencies.md +0 -0
  515. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-derived-state-no-effect.md +0 -0
  516. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-derived-state.md +0 -0
  517. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-functional-setstate.md +0 -0
  518. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-lazy-state-init.md +0 -0
  519. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-memo-with-default-value.md +0 -0
  520. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-memo.md +0 -0
  521. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-move-effect-to-event.md +0 -0
  522. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-simple-expression-in-memo.md +0 -0
  523. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-transitions.md +0 -0
  524. /package/skills/{react-best-practices → next-best-practices}/rules/rerender-use-ref-transient-values.md +0 -0
  525. /package/skills/{react-best-practices → next-best-practices}/rules/server-after-nonblocking.md +0 -0
  526. /package/skills/{react-best-practices → next-best-practices}/rules/server-auth-actions.md +0 -0
  527. /package/skills/{react-best-practices → next-best-practices}/rules/server-cache-lru.md +0 -0
  528. /package/skills/{react-best-practices → next-best-practices}/rules/server-cache-react.md +0 -0
  529. /package/skills/{react-best-practices → next-best-practices}/rules/server-dedup-props.md +0 -0
  530. /package/skills/{react-best-practices → next-best-practices}/rules/server-parallel-fetching.md +0 -0
  531. /package/skills/{react-best-practices → next-best-practices}/rules/server-serialization.md +0 -0
@@ -0,0 +1,136 @@
1
+ # Workflows Integration
2
+
3
+ Fetch `docs/workflows.md` from `https://github.com/cloudflare/agents/tree/main/docs` for complete documentation.
4
+
5
+ ## Overview
6
+
7
+ Agents handle real-time communication; Workflows handle durable execution. Together they enable:
8
+
9
+ - Long-running background tasks with automatic retries
10
+ - Human-in-the-loop approval flows
11
+ - Multi-step pipelines that survive failures
12
+
13
+ | Use Case | Recommendation |
14
+ | ---------------------------- | ---------------- |
15
+ | Chat/messaging | Agent only |
16
+ | Quick API calls (<30s) | Agent only |
17
+ | Background processing (<30s) | Agent `queue()` |
18
+ | Long-running tasks (>30s) | Agent + Workflow |
19
+ | Human approval flows | Agent + Workflow |
20
+
21
+ ## AgentWorkflow Base Class
22
+
23
+ ```typescript
24
+ import { AgentWorkflow } from 'agents/workflows'
25
+ import type { AgentWorkflowEvent, AgentWorkflowStep } from 'agents/workflows'
26
+
27
+ type TaskParams = { taskId: string; data: string }
28
+
29
+ export class ProcessingWorkflow extends AgentWorkflow<MyAgent, TaskParams> {
30
+ async run(event: AgentWorkflowEvent<TaskParams>, step: AgentWorkflowStep) {
31
+ const params = event.payload
32
+
33
+ // Durable step - retries on failure
34
+ const result = await step.do('process', async () => {
35
+ return processData(params.data)
36
+ })
37
+
38
+ // Non-durable: progress reporting
39
+ await this.reportProgress({ step: 'process', percent: 0.5 })
40
+
41
+ // Non-durable: broadcast to connected clients
42
+ this.broadcastToClients({ type: 'update', taskId: params.taskId })
43
+
44
+ // Durable: merge state via step
45
+ await step.mergeAgentState({ lastProcessed: params.taskId })
46
+
47
+ // Durable: report completion
48
+ await step.reportComplete(result)
49
+
50
+ return result
51
+ }
52
+ }
53
+ ```
54
+
55
+ ## Wrangler Configuration
56
+
57
+ ```jsonc
58
+ {
59
+ "workflows": [
60
+ {
61
+ "name": "processing-workflow",
62
+ "binding": "PROCESSING_WORKFLOW",
63
+ "class_name": "ProcessingWorkflow",
64
+ },
65
+ ],
66
+ "durable_objects": {
67
+ "bindings": [{ "name": "MyAgent", "class_name": "MyAgent" }],
68
+ },
69
+ "migrations": [{ "tag": "v1", "new_sqlite_classes": ["MyAgent"] }],
70
+ }
71
+ ```
72
+
73
+ ## Agent Methods for Workflows
74
+
75
+ ```typescript
76
+ // Start a workflow
77
+ const instance = await this.runWorkflow("ProcessingWorkflow", { taskId: "123", data: "..." });
78
+
79
+ // Send event to waiting workflow
80
+ await this.sendWorkflowEvent("ProcessingWorkflow", workflowId, { type: "approve" });
81
+
82
+ // Query workflows
83
+ const workflow = await this.getWorkflow(workflowId);
84
+ const workflows = await this.getWorkflows({ status: "running" });
85
+
86
+ // Control workflows
87
+ await this.approveWorkflow(workflowId);
88
+ await this.rejectWorkflow(workflowId);
89
+ await this.terminateWorkflow(workflowId);
90
+ await this.pauseWorkflow(workflowId);
91
+ await this.resumeWorkflow(workflowId);
92
+
93
+ // Delete workflows
94
+ await this.deleteWorkflow(workflowId);
95
+ await this.deleteWorkflows({ status: "complete", before: new Date(...) });
96
+ ```
97
+
98
+ ## Lifecycle Callbacks
99
+
100
+ ```typescript
101
+ export class MyAgent extends Agent<Env, State> {
102
+ async onWorkflowProgress(workflowName: string, workflowId: string, progress: unknown) {
103
+ // Workflow reported progress via this.reportProgress()
104
+ this.broadcast({ type: 'progress', workflowId, progress })
105
+ }
106
+
107
+ async onWorkflowComplete(workflowName: string, workflowId: string, result?: unknown) {
108
+ // Workflow finished successfully
109
+ }
110
+
111
+ async onWorkflowError(workflowName: string, workflowId: string, error: Error) {
112
+ // Workflow failed
113
+ }
114
+
115
+ async onWorkflowEvent(workflowName: string, workflowId: string, event: unknown) {
116
+ // Workflow received an event via sendWorkflowEvent()
117
+ }
118
+ }
119
+ ```
120
+
121
+ ## Human-in-the-Loop
122
+
123
+ ```typescript
124
+ // In workflow: wait for approval
125
+ const approved = await step.waitForEvent<{ approved: boolean }>('approval', {
126
+ timeout: '7d',
127
+ })
128
+
129
+ if (!approved.approved) {
130
+ throw new Error('Rejected')
131
+ }
132
+
133
+ // From agent: approve or reject
134
+ await this.approveWorkflow(workflowId) // Sends { approved: true }
135
+ await this.rejectWorkflow(workflowId) // Sends { approved: false }
136
+ ```
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: auth-identity
3
+ description: |
4
+ Standards for Authentication and Identity management. Use when configuring OAuth, JWTs, sessions, RBAC (Role-Based Access Control), or integrating auth providers (Auth0, Clerk, NextAuth). SECURITY: Implementing auth requires strict fallback logic. Never fail-open. Handle token expiration and revocation gracefully.
5
+ ---
6
+
7
+ # Authentication & Identity
8
+
9
+ This skill outlines the strict security requirements and architectural patterns for implementing Authentication and Identity (AuthN/AuthZ) in modern applications.
10
+
11
+ ## Security Gates (CRITICAL)
12
+
13
+ > **CRITICAL HITL GATE**: You MUST stop and ask the user for explicit confirmation before modifying authentication flows, updating token expiration times, changing cookie settings (`httpOnly`, `Secure`), or adding new OAuth providers.
14
+ > Auth changes carry high risk of introducing vulnerabilities. Never silently commit auth logic.
15
+
16
+ ## 1. OAuth & OIDC (OpenID Connect)
17
+
18
+ - **Standard Flow**: Always use the **Authorization Code flow with PKCE** (Proof Key for Code Exchange) for SPAs and mobile apps. Never use the Implicit Flow (it is deprecated and insecure).
19
+ - **State Parameter**: Always implement and validate the `state` parameter to prevent CSRF (Cross-Site Request Forgery) attacks during the OAuth callback.
20
+ - **Provider Scopes**: Request the minimum necessary scopes. Never request `offline_access` (refresh tokens) unless explicitly required and approved by the user.
21
+
22
+ ## 2. JWT (JSON Web Tokens)
23
+
24
+ - **Signing Algorithms**: Always use asymmetric algorithms (e.g., `RS256`, `EdDSA`) if the token needs to be verified by multiple services. Use `HS256` only if the issuer and verifier are the exact same service. NEVER allow the `none` algorithm.
25
+ - **Payload Data**: Never put sensitive data (PII, passwords, internal IDs) inside a JWT payload. JWTs are Base64 encoded, not encrypted.
26
+ - **Expiration**: Keep short-lived access tokens (e.g., 15-60 minutes). Use Refresh Tokens for extending sessions.
27
+ - **Validation**: Always strictly validate the `exp` (expiration), `iss` (issuer), and `aud` (audience) claims on every request.
28
+
29
+ ## 3. Session & Storage Management
30
+
31
+ - **Web Storage**: Never store JWTs or session IDs in `localStorage` or `sessionStorage` where they are vulnerable to XSS (Cross-Site Scripting) attacks.
32
+ - **Cookies**: Always store session tokens in cookies with strict attributes:
33
+ - `HttpOnly`: True (prevents JavaScript access)
34
+ - `Secure`: True (requires HTTPS)
35
+ - `SameSite`: `Lax` or `Strict` (prevents CSRF)
36
+ - **Invalidation**: Ensure sessions can be revoked on the server side (e.g., via a Redis blocklist or database `sessions` table).
37
+
38
+ ## 4. RBAC (Role-Based Access Control)
39
+
40
+ - **Defense in Depth**: UI-level checks (e.g., hiding a button) are not security. You MUST enforce authorization at the API/Controller layer.
41
+ - **Middleware**: Implement route-level middleware to protect endpoints.
42
+ - **Ownership Validation**: Beyond checking if a user is an "admin" or "user", always verify that the user _owns_ the specific resource they are trying to access (e.g., `WHERE user_id = ?`).
43
+
44
+ ## 5. Common Providers (NextAuth, Clerk, Auth0)
45
+
46
+ - **NextAuth / Auth.js**: Keep the secret strictly in `.env.local`. Do not expose the secret to the client.
47
+ - **Clerk**: Use the Clerk middleware to protect routes. Ensure the publishable key is public, but the secret key remains on the server.
48
+ - **Auth0**: Validate the Auth0 domain and audience strictly in your SDK configuration.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: autonomous-dev
3
- description: Harness for autonomous software development. Enforces lifecycle through alignment gates (PROJECT.md), adversarial generator/evaluator agents, CI/CD pipeline automation, and strict Git workflows (Conventional Commits, Branching).
3
+ description: Harness for autonomous software development. Use when fixing or remediating known issues (including security vulnerabilities). Enforces lifecycle through alignment gates (PROJECT.md), adversarial generator/evaluator agents, and autonomous orchestration of project issues. NOT for setting up standalone CI/CD pipelines.
4
4
  ---
5
5
 
6
6
  # Autonomous Development Workflow
@@ -9,13 +9,19 @@ This skill provides a deterministic software engineering harness, designed to wr
9
9
 
10
10
  ## 1. Project Alignment Gate (PROJECT.md)
11
11
 
12
- Before beginning implementation, you MUST cross-reference the proposed feature against `PROJECT.md` at the repository root.
12
+ Before beginning implementation, you MUST cross-reference the proposed feature against `PROJECT.md` at the repository root. If `PROJECT.md` is missing, ask the user to clarify the project goals or constraints before proceeding.
13
13
 
14
- - **In-Scope**: Proceed with confidence.
14
+ - **In-Scope**: Confirm the feature directly serves a goal in `PROJECT.md`. Proceed.
15
15
  - **Out-of-Scope**: Hard block. Halt work immediately and inform the user.
16
16
  - **Constraints**: Abide strictly by the constraints (language, architecture, dependencies) defined in the project file.
17
17
 
18
- ## 2. Generator / Evaluator Pipeline
18
+ ## 2. Security Safety Nets
19
+
20
+ - **Execution Sandboxing**: Never run unknown or unverified shell scripts directly. Execute isolated tasks within the `tmp/` scratch directory.
21
+ - **Secret Protection**: Check for exposed credentials or PII in diffs before committing. Never commit `.env`.
22
+ - **Command Gates**: Do not execute destructive commands (`rm -rf`, `git reset --hard`) without explicit Human-in-the-Loop approval.
23
+
24
+ ## 3. Generator / Evaluator Pipeline
19
25
 
20
26
  Features cannot simply be written and committed. They must navigate a rigid pipeline based on the adversarial evaluation pattern:
21
27
 
@@ -27,26 +33,9 @@ Features cannot simply be written and committed. They must navigate a rigid pipe
27
33
  5. **Adversarial Review**: Self-evaluate the code as a skeptical reviewer (evaluator). Actively search for edge cases, security vulnerabilities, efficiency loss, and anti-patterns.
28
34
  6. **Documentation**: Ensure docs stay tightly in sync with the codebase after the feature clears CI.
29
35
 
30
- ## 3. Git Workflow & Versioning
31
-
32
- Enforce strict version control standards on all changes:
33
-
34
- - **Branching**: Use feature branches (`feature/my-feature`), bugfix branches (`fix/bug-name`), or standard trunk-based branching flows depending on the repository context.
35
- - **Atomic Commits**: Group distinct changes into smaller, logical, single-purpose commits. Do not lump refactoring with new logic.
36
- - **Conventional Commits**: You MUST format all commits according to the Conventional Commits specification:
37
- - `feat: <description>` for new features (MINOR bump)
38
- - `fix: <description>` for bug fixes (PATCH bump)
39
- - `docs:`, `style:`, `refactor:`, `perf:`, `test:`, `build:`, `ci:`, `chore:` for specific maintenance scopes.
40
- - Suffix `!` for breaking changes (e.g., `feat!: remove API v1`) (MAJOR bump).
36
+ ## 4. Workflow Orchestration
41
37
 
42
- ## 4. Continuous Integration/Deployment (CI/CD)
43
-
44
- When designing automation and pipelines:
45
-
46
- - **GitHub Actions First**: Prioritize GitHub Actions for CI/CD pipeline orchestration, favoring Reusable Workflows and matrix builds.
47
- - **Validation Blocks**: Every PR or merge MUST require passing lint, test, and type-check gates.
48
- - **Automation Constraints**: Automate Semantic Versioning (using conventional commits) to power automated release notes and changelog generation.
49
- - **Security Scans**: Mandate security scanning (e.g. CodeQL, Trivy) on standard PR flows.
38
+ Follow strict version control (Conventional Commits, atomic commits) and CI/CD automation rules. Test code locally before creating PRs.
50
39
 
51
40
  ## 5. Context Management & Drift Prevention
52
41
 
@@ -54,3 +43,37 @@ As the context window fills up, context anxiety can degrade performance.
54
43
 
55
44
  - Recognize when the session has spanned too many features or files (e.g., beyond 4-5 features).
56
45
  - Use session summaries or persistent memories to bookmark state, clear the context, and resume with a fresh perspective.
46
+
47
+ ## 6. Output Templates
48
+
49
+ **Generator Plan Output:**
50
+
51
+ ```markdown
52
+ ### Feature Plan: [Feature Name]
53
+
54
+ **Scope:** [In-Scope/Out-of-Scope based on PROJECT.md]
55
+ **Constraints:** [Key constraints to respect]
56
+ **Acceptance Criteria:**
57
+
58
+ - [ ] Criterion 1
59
+ - [ ] Criterion 2
60
+ ```
61
+
62
+ **Evaluator Review Output:**
63
+
64
+ ```markdown
65
+ ### Adversarial Review: [Feature Name]
66
+
67
+ **Pass/Fail:** [Result]
68
+ **Security Risks:** [Identified risks or "None"]
69
+ **Edge Cases Missed:** [Edge cases]
70
+ **Required Fixes:** [List of fixes before proceeding]
71
+ ```
72
+
73
+ ## Synergies
74
+
75
+ | Skill/Workflow | Relationship |
76
+ | ---------------------- | -------------------------------------------------------------------------------- |
77
+ | `github-commander` | Complementary — handles issue orchestration while this handles the dev lifecycle |
78
+ | `adversarial-planner` | Can be used during the Planning phase of the Generator pipeline |
79
+ | `adversarial-security` | Can be used during the Evaluator phase |
@@ -0,0 +1,22 @@
1
+ # Workflow Orchestration
2
+
3
+ ## Git Workflow & Versioning
4
+
5
+ Enforce strict version control standards on all changes:
6
+
7
+ - **Branching**: Use feature branches (`feature/my-feature`), bugfix branches (`fix/bug-name`), or standard trunk-based branching flows depending on the repository context.
8
+ - **Atomic Commits**: Group distinct changes into smaller, logical, single-purpose commits. Do not lump refactoring with new logic.
9
+ - **Conventional Commits**: You MUST format all commits according to the Conventional Commits specification:
10
+ - `feat: <description>` for new features (MINOR bump)
11
+ - `fix: <description>` for bug fixes (PATCH bump)
12
+ - `docs:`, `style:`, `refactor:`, `perf:`, `test:`, `build:`, `ci:`, `chore:` for specific maintenance scopes.
13
+ - Suffix `!` for breaking changes (e.g., `feat!: remove API v1`) (MAJOR bump).
14
+
15
+ ## Continuous Integration/Deployment (CI/CD)
16
+
17
+ When designing automation and pipelines:
18
+
19
+ - **GitHub Actions First**: Prioritize GitHub Actions for CI/CD pipeline orchestration, favoring Reusable Workflows and matrix builds.
20
+ - **Validation Blocks**: Every PR or merge MUST require passing lint, test, and type-check gates.
21
+ - **Automation Constraints**: Automate Semantic Versioning (using conventional commits) to power automated release notes and changelog generation.
22
+ - **Security Scans**: Mandate security scanning (e.g. CodeQL, Trivy) on standard PR flows.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: aws
3
+ description: |
4
+ Comprehensive AWS (Amazon Web Services) best practices and infrastructure guidelines. Use when deploying to AWS, writing CloudFormation/CDK/Terraform for AWS, configuring IAM permissions, S3 buckets, EC2 instances, Lambda functions, or ECS/EKS clusters. Do NOT trigger for generic "deploy my app" requests without clarifying the target platform.
5
+ ---
6
+
7
+ # Amazon Web Services (AWS) Best Practices
8
+
9
+ **STOP.** Your knowledge of AWS may be outdated. Prefer retrieval over pre-training for any version-sensitive AWS configuration. Fetch current documentation when in doubt.
10
+
11
+ Production-grade standards for designing, deploying, and managing infrastructure on AWS.
12
+
13
+ ## 1. Security & IAM (Identity and Access Management)
14
+
15
+ - **Principle of Least Privilege (PoLP)**: Never use `*` (wildcard) actions or resources in IAM policies unless absolutely required (e.g., specific S3 list actions). Scope policies to specific ARNs and exact actions.
16
+ - **Root Account**: Never use the root account for day-to-day operations. Use AWS SSO (IAM Identity Center) or assume roles.
17
+ - **Secrets Management**: Never hardcode secrets in code or environment variables attached to instances. Always use **AWS Secrets Manager** or **AWS Systems Manager Parameter Store (SSM)**.
18
+
19
+ ## 2. Serverless (Lambda & API Gateway)
20
+
21
+ - **Cold Starts**: Minimize cold starts in Lambda by keeping deployment packages small. For Node.js/TypeScript, use tools like `esbuild` to bundle and tree-shake code.
22
+ - **Concurrency**: Set reserved concurrency for critical functions to ensure they always have execution capacity.
23
+ - **Idempotency**: Lambda functions should be idempotent, especially when triggered by SQS, SNS, or EventBridge, as AWS guarantees at-least-once delivery (not exactly-once).
24
+
25
+ ## 3. Storage & Databases (S3, DynamoDB, RDS)
26
+
27
+ - **S3 Security**: ALWAYS enable "Block Public Access" at the bucket level unless serving a static website. Enforce server-side encryption (`AES256` or `aws:kms`).
28
+ - **DynamoDB**: Prefer single-table design when access patterns are strictly known. Use On-Demand capacity for unpredictable workloads and Provisioned capacity (with Auto Scaling) for predictable workloads to save costs.
29
+ - **RDS**: Never place RDS instances in public subnets. They must reside in private subnets, accessed via Bastion Hosts, VPN, or Session Manager.
30
+
31
+ ## 4. Networking (VPC)
32
+
33
+ - **Multi-AZ**: Always deploy critical resources (NAT Gateways, RDS, ALB, ECS) across at least two Availability Zones for high availability.
34
+ - **Security Groups**: Security Groups are stateful. Only allow necessary inbound ports (e.g., 443 for HTTPS). Do not open `0.0.0.0/0` on port 22 or 3306.
35
+
36
+ ## 5. Infrastructure as Code (IaC)
37
+
38
+ - **Tooling**: Prefer AWS CDK or Terraform over raw CloudFormation templates.
39
+ - **Immutability**: Never make manual changes in the AWS Console (ClickOps). All infrastructure changes must be codified, reviewed, and deployed via CI/CD.
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: azure
3
+ description: |
4
+ Microsoft Azure best practices. Use when deploying to Azure App Service, Azure Functions, AKS (Azure Kubernetes Service), Cosmos DB, configuring Azure Entra ID (Active Directory), or managing Azure Resource Manager (ARM/Bicep) templates. Do NOT trigger for generic "deploy my app" requests without clarifying the target platform.
5
+ ---
6
+
7
+ # Microsoft Azure Best Practices
8
+
9
+ **STOP.** Your knowledge of Azure may be outdated. Prefer retrieval over pre-training for any version-sensitive Azure configuration. Fetch current documentation when in doubt.
10
+
11
+ Standards for deploying and managing workloads securely on Microsoft Azure.
12
+
13
+ ## 1. Identity & Access (Azure Entra ID / Active Directory)
14
+
15
+ - **Managed Identities**: Use System-Assigned or User-Assigned Managed Identities for Azure resources (VMs, App Services, Functions) to authenticate to other Azure services (Key Vault, SQL, Storage) without managing credentials.
16
+ - **RBAC**: Use Azure Role-Based Access Control. Assign roles to Entra ID Groups rather than individual users to simplify lifecycle management.
17
+ - **Key Vault**: Never store secrets in application configuration files. Store them in Azure Key Vault and reference them using Key Vault References in App Services/Functions.
18
+
19
+ ## 2. Compute (App Service, Functions, AKS)
20
+
21
+ - **Azure Functions**: For production serverless, use the Premium plan to avoid cold starts and gain VNet integration capabilities, unless strict cost minimization on the Consumption plan is required.
22
+ - **AKS (Azure Kubernetes Service)**: Use Azure CNI for advanced networking. Enable Microsoft Entra ID integration for Kubernetes RBAC. Use Azure Policy to enforce pod security standards.
23
+ - **App Service**: Enable VNet Integration to access private resources. Turn on "Always On" (Basic tier and above) to prevent the worker process from idling out.
24
+
25
+ ## 3. Data (Cosmos DB, Azure SQL, Storage)
26
+
27
+ - **Cosmos DB**: Carefully choose the Partition Key, as it determines scalability and performance. Changes to the partition key require data migration.
28
+ - **Azure SQL Database**: Enable Transparent Data Encryption (TDE). Use Private Endpoints (Azure Private Link) to ensure database traffic never traverses the public internet.
29
+ - **Storage Accounts**: Disable public network access on Storage Accounts. Use Shared Access Signatures (SAS) with short expiration times for temporary client access to blobs.
30
+
31
+ ## 4. Networking & Security
32
+
33
+ - **Virtual Networks (VNet)**: Implement a Hub-and-Spoke topology for enterprise deployments. Use Azure Firewall in the hub and Network Security Groups (NSGs) on the spokes.
34
+ - **Front Door / App Gateway**: Use Azure Front Door for global load balancing and WAF. Use Application Gateway for regional layer-7 load balancing.
35
+
36
+ ## 5. Infrastructure as Code (IaC)
37
+
38
+ - **Bicep & Terraform**: Prefer Bicep (Azure's native declarative DSL) or Terraform over verbose JSON ARM templates.
@@ -38,7 +38,13 @@ for (const item of items) {
38
38
  const targetPath = path.join(targetDir, item)
39
39
 
40
40
  if (fs.statSync(sourcePath).isDirectory()) {
41
- fs.cpSync(sourcePath, targetPath, { recursive: true })
41
+ fs.cpSync(sourcePath, targetPath, {
42
+ recursive: true,
43
+ filter: (src) => {
44
+ const base = path.basename(src)
45
+ return base !== 'node_modules' && base !== 'package-lock.json'
46
+ },
47
+ })
42
48
  console.log(` \x1b[32m\u2714\x1b[0m ${item}`)
43
49
  count++
44
50
  }
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: biome
3
+ description: |
4
+ Biome formatting and linting standards. Use when configuring Biome (biome.json) for fast formatting, linting, and sorting imports. NOT for Prettier or ESLint configuration. Do NOT trigger for generic formatting/linting tasks unless Biome is explicitly requested.
5
+ ---
6
+
7
+ # Biome Guidelines
8
+
9
+ Biome is a high-performance toolchain for web projects, intended to replace Prettier and ESLint in modern codebases.
10
+
11
+ ## 1. Configuration (`biome.json`)
12
+
13
+ - **Single Config**: Define all rules in a unified `biome.json` at the root of the project.
14
+ - **Formatting Match**: Configure Biome's formatter to match standard Prettier settings (e.g., `lineWidth: 80`, `indentStyle: "space"`).
15
+ - **Import Sorting**: Enable `organizeImports` to automatically sort and group imports on save.
16
+
17
+ ```json
18
+ {
19
+ "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
20
+ "formatter": {
21
+ "enabled": true,
22
+ "formatWithErrors": false,
23
+ "indentStyle": "space",
24
+ "indentWidth": 2,
25
+ "lineWidth": 100
26
+ },
27
+ "organizeImports": {
28
+ "enabled": true
29
+ },
30
+ "linter": {
31
+ "enabled": true,
32
+ "rules": {
33
+ "recommended": true,
34
+ "style": {
35
+ "useImportType": "error"
36
+ }
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ ## 2. CI/CD Integration
43
+
44
+ - **Check Command**: Run `npx @biomejs/biome ci .` in CI pipelines. This command checks formatting, runs the linter, and verifies import sorting all in one pass. It fails if any violations are found.
45
+ - **Pre-commit Hooks**: Integrate `biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}` into Husky/lint-staged to format code before committing.
46
+
47
+ ## 3. Editor Integration
48
+
49
+ - **VS Code**: Ensure the `.vscode/settings.json` sets Biome as the default formatter and enables "format on save" and "organize imports on save".
50
+
51
+ ```json
52
+ {
53
+ "editor.defaultFormatter": "biomejs.biome",
54
+ "editor.formatOnSave": true,
55
+ "editor.codeActionsOnSave": {
56
+ "source.organizeImports.biome": "explicit"
57
+ }
58
+ }
59
+ ```
@@ -1,6 +1,9 @@
1
1
  ---
2
- title: Bun Development
3
- description: Master the Bun all-in-one toolkit — runtime, package manager, test runner, and bundler.
2
+ name: bun
3
+ description: |
4
+ Master the Bun all-in-one toolkit — runtime, package manager, test runner, and bundler.
5
+ Use when writing, running, testing, or bundling TypeScript/JavaScript with Bun.
6
+ Triggers on "bun", "bunx", "bun install", "bun test", "bun run". If the user asks to 'write tests' without specifying the type, you MUST ask 'Unit, E2E, or both?' before proceeding.
4
7
  ---
5
8
 
6
9
  Bun is a fast, all-in-one JavaScript runtime, bundler, test runner, and package manager designed as a drop-in replacement for Node.js. When working on projects that use Bun, AI agents should leverage its integrated tooling and native APIs to maximize performance and simplify development.
@@ -79,6 +82,9 @@ await Bun.write('data.json', JSON.stringify({ a: 1 }))
79
82
 
80
83
  Replace `child_process` and `zx` with the native Bun shell (`$`).
81
84
 
85
+ > [!CAUTION]
86
+ > **Command Injection Risk**: Never interpolate untrusted user input directly into a `Bun.$` template literal (`Bun.$`echo ${userInput}``) as it operates like `exec()`. Always use array arguments `Bun.$`echo ${["arg1", "arg2"]}` for untrusted data.
87
+
82
88
  ```typescript
83
89
  import { $ } from 'bun'
84
90
 
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: cloudflare
3
+ description: (GENERIC ROUTING ONLY) General Cloudflare platform skill for infrastructure, storage, and networking. Use when choosing between Cloudflare products (KV vs D1 vs R2) or doing general Cloudflare tasks. NOT for building AI agents (use agents-sdk). NOT for building MCP servers (use mcp-builder). NOT for deploying applications unless Cloudflare is the explicit target platform. Do NOT use for code-reviewing Workers (use workers-best-practices instead) or for CLI deployment/management (use wrangler instead). NOT for orchestrating CI/CD pipelines (use github-actions instead). NOT for AWS, GCP, Azure, Render, or generic container deployment. Use specific skills like `wrangler` or `workers-best-practices` when the task is narrowly scoped.
4
+ references:
5
+ - workers
6
+ - pages
7
+ - d1
8
+ - durable-objects
9
+ - workers-ai
10
+ ---
11
+
12
+ # Cloudflare Platform Skill
13
+
14
+ Consolidated skill for building on the Cloudflare platform. Use decision trees below to find the right product, then load detailed references.
15
+
16
+ Your knowledge of Cloudflare APIs, types, limits, and pricing may be outdated. **Prefer retrieval over pre-training** — the references in this skill are starting points, not source of truth.
17
+
18
+ ## Retrieval Sources
19
+
20
+ Fetch the **latest** information before citing specific numbers, API signatures, or configuration options. Do not rely on baked-in knowledge or these reference files alone.
21
+
22
+ | Source | How to retrieve | Use for |
23
+ | ---------------------- | --------------------------------------------------------------------- | --------------------------------------------------------- |
24
+ | Cloudflare docs | `cloudflare-docs` search tool or `https://developers.cloudflare.com/` | Limits, pricing, API reference, compatibility dates/flags |
25
+ | Workers types | `npm pack @cloudflare/workers-types` or check `node_modules` | Type signatures, binding shapes, handler types |
26
+ | Wrangler config schema | `node_modules/wrangler/config-schema.json` | Config fields, binding shapes, allowed values |
27
+ | Product changelogs | `https://developers.cloudflare.com/changelog/` | Recent changes to limits, features, deprecations |
28
+
29
+ When a reference file and the docs disagree, **trust the docs**. This is especially important for: numeric limits, pricing tiers, type signatures, and configuration options.
30
+
31
+ ## Quick Decision Trees
32
+
33
+ See **[decision-trees.md](references/decision-trees.md)** for routing logic across Cloudflare's product suite (compute, storage, AI, networking, security, etc.).
34
+
35
+ ## Product Index
36
+
37
+ See [references/product-index.md](references/product-index.md) for the full mapping of Cloudflare products to their reference paths.
@@ -0,0 +1,95 @@
1
+ # Cloudflare Agents SDK
2
+
3
+ Cloudflare Agents SDK enables building AI-powered agents on Durable Objects with state, WebSockets, SQL, scheduling, and AI integration.
4
+
5
+ ## Core Value
6
+
7
+ Build stateful, globally distributed AI agents with persistent memory, real-time connections, scheduled tasks, and async workflows.
8
+
9
+ ## When to Use
10
+
11
+ - Persistent state + memory required
12
+ - Real-time WebSocket connections
13
+ - Long-running workflows (minutes/hours)
14
+ - Chat interfaces with AI models
15
+ - Scheduled/recurring tasks with state
16
+ - DB queries with agent state
17
+
18
+ ## What Type of Agent?
19
+
20
+ | Use Case | Class | Key Features |
21
+ | ----------------------- | ------------- | ------------------------------------------------- |
22
+ | AI chat interface | `AIChatAgent` | Auto-streaming, tools, message history, resumable |
23
+ | MCP tool provider | `Agent` + MCP | Expose tools to AI systems |
24
+ | Custom logic/routing | `Agent` | Full control, WebSockets, email, SQL |
25
+ | Real-time collaboration | `Agent` | WebSocket state, broadcasts |
26
+ | Email processing | `Agent` | `onEmail()` handler |
27
+
28
+ ## Quick Start
29
+
30
+ **AI Chat Agent:**
31
+
32
+ ```typescript
33
+ import { AIChatAgent } from 'agents'
34
+ import { openai } from '@ai-sdk/openai'
35
+
36
+ export class ChatAgent extends AIChatAgent<Env> {
37
+ async onChatMessage(onFinish) {
38
+ return this.streamText({
39
+ model: openai('gpt-4'),
40
+ messages: this.messages,
41
+ onFinish,
42
+ })
43
+ }
44
+ }
45
+ ```
46
+
47
+ **Base Agent:**
48
+
49
+ ```typescript
50
+ import { Agent } from 'agents'
51
+
52
+ export class MyAgent extends Agent<Env> {
53
+ onStart() {
54
+ this.sql`CREATE TABLE IF NOT EXISTS users (id TEXT PRIMARY KEY)`
55
+ }
56
+
57
+ async onRequest(request: Request) {
58
+ return Response.json({ state: this.state })
59
+ }
60
+ }
61
+ ```
62
+
63
+ ## Reading Order
64
+
65
+ | Task | Files to Read |
66
+ | ------------------ | --------------------------------------------- |
67
+ | Quick start | README only |
68
+ | Build chat agent | README → api.md (AIChatAgent) → patterns.md |
69
+ | Setup project | README → configuration.md |
70
+ | Add React frontend | README → api.md (Client Hooks) → patterns.md |
71
+ | Build MCP server | api.md (MCP) → patterns.md |
72
+ | Background tasks | api.md (Scheduling, Task Queue) → patterns.md |
73
+ | Debug issues | gotchas.md |
74
+
75
+ ## Package Entry Points
76
+
77
+ | Import | Purpose |
78
+ | ----------------- | ------------------------------------------- |
79
+ | `agents` | Server-side Agent classes, lifecycle |
80
+ | `agents/react` | `useAgent()` hook for WebSocket connections |
81
+ | `agents/ai-react` | `useAgentChat()` hook for AI chat UIs |
82
+
83
+ ## In This Reference
84
+
85
+ - [configuration.md](./configuration.md) - SDK setup, wrangler config, routing
86
+ - [api.md](./api.md) - Agent classes, lifecycle, client hooks
87
+ - [patterns.md](./patterns.md) - Common workflows, best practices
88
+ - [gotchas.md](./gotchas.md) - Common issues, limits
89
+
90
+ ## See Also
91
+
92
+ - durable-objects - Agent infrastructure
93
+ - d1 - External database integration
94
+ - workers-ai - AI model integration
95
+ - vectorize - Vector search for RAG patterns