@deftai/directive-content 0.55.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 (250) hide show
  1. package/.agents/skills/deft/SKILL.md +6 -0
  2. package/.agents/skills/deft-directive-article-review/SKILL.md +11 -0
  3. package/.agents/skills/deft-directive-build/SKILL.md +10 -0
  4. package/.agents/skills/deft-directive-cost/SKILL.md +12 -0
  5. package/.agents/skills/deft-directive-debug/SKILL.md +13 -0
  6. package/.agents/skills/deft-directive-gh-arch/SKILL.md +11 -0
  7. package/.agents/skills/deft-directive-gh-slice/SKILL.md +10 -0
  8. package/.agents/skills/deft-directive-glossary/SKILL.md +10 -0
  9. package/.agents/skills/deft-directive-interview/SKILL.md +9 -0
  10. package/.agents/skills/deft-directive-pre-pr/SKILL.md +9 -0
  11. package/.agents/skills/deft-directive-refinement/SKILL.md +10 -0
  12. package/.agents/skills/deft-directive-release/SKILL.md +12 -0
  13. package/.agents/skills/deft-directive-review-cycle/SKILL.md +10 -0
  14. package/.agents/skills/deft-directive-setup/SKILL.md +10 -0
  15. package/.agents/skills/deft-directive-swarm/SKILL.md +10 -0
  16. package/.agents/skills/deft-directive-sync/SKILL.md +9 -0
  17. package/.agents/skills/deft-directive-triage/SKILL.md +9 -0
  18. package/.agents/skills/deft-directive-write-skill/SKILL.md +9 -0
  19. package/LICENSE.md +22 -0
  20. package/QUICK-START.md +167 -0
  21. package/UPGRADING.md +517 -0
  22. package/coding/build-output.md +28 -0
  23. package/coding/coding.md +235 -0
  24. package/coding/debugging.md +110 -0
  25. package/coding/holzmann.md +96 -0
  26. package/coding/hygiene.md +127 -0
  27. package/coding/security.md +158 -0
  28. package/coding/testing.md +162 -0
  29. package/coding/toolchain.md +44 -0
  30. package/commands.md +300 -0
  31. package/context/context.md +57 -0
  32. package/context/deterministic-split.md +67 -0
  33. package/context/examples.md +26 -0
  34. package/context/fractal-summaries.md +69 -0
  35. package/context/long-horizon.md +46 -0
  36. package/context/spec-deltas.md +177 -0
  37. package/context/tool-design.md +34 -0
  38. package/context/working-memory.md +62 -0
  39. package/contracts/boundary-maps.md +65 -0
  40. package/contracts/deterministic-questions.md +59 -0
  41. package/contracts/hierarchy.md +77 -0
  42. package/conventions/content-manifest.json +399 -0
  43. package/conventions/machine-generated-banner.md +130 -0
  44. package/conventions/references.md +120 -0
  45. package/conventions/rule-ownership.json +382 -0
  46. package/conventions/task-caching.md +43 -0
  47. package/conventions/vbrief-filenames.md +70 -0
  48. package/deployments/README.md +37 -0
  49. package/deployments/agentuity/README.md +138 -0
  50. package/deployments/agentuity/via-cli.md +380 -0
  51. package/deployments/agentuity/via-cloud.md +425 -0
  52. package/deployments/agentuity/via-github-actions.md +664 -0
  53. package/deployments/agentuity/via-gravity-network.md +606 -0
  54. package/deployments/agentuity/via-vpc.md +607 -0
  55. package/deployments/aws/README.md +38 -0
  56. package/deployments/aws/via-app-runner.md +612 -0
  57. package/deployments/aws/via-ecs-fargate.md +561 -0
  58. package/deployments/aws/via-elastic-beanstalk.md +628 -0
  59. package/deployments/aws/via-lambda.md +649 -0
  60. package/deployments/azure/README.md +37 -0
  61. package/deployments/azure/via-aks.md +390 -0
  62. package/deployments/azure/via-app-service.md +564 -0
  63. package/deployments/azure/via-container-apps.md +599 -0
  64. package/deployments/azure/via-functions.md +552 -0
  65. package/deployments/cloud-gov/README.md +63 -0
  66. package/deployments/cloud-gov/agents/compliance-docs.md +154 -0
  67. package/deployments/cloud-gov/agents.md +39 -0
  68. package/deployments/cloud-gov/cicd.md +64 -0
  69. package/deployments/cloud-gov/deployment.md +150 -0
  70. package/deployments/cloud-gov/logging.md +43 -0
  71. package/deployments/cloud-gov/manifest.md +121 -0
  72. package/deployments/cloud-gov/overview.md +58 -0
  73. package/deployments/cloud-gov/security.md +46 -0
  74. package/deployments/cloud-gov/services.md +72 -0
  75. package/deployments/cloud-gov/upstream/README.md +18 -0
  76. package/deployments/cloudflare/README.md +33 -0
  77. package/deployments/cloudflare/via-dashboard.md +83 -0
  78. package/deployments/cloudflare/via-git.md +90 -0
  79. package/deployments/cloudflare/via-github-actions.md +185 -0
  80. package/deployments/cloudflare/via-terraform.md +157 -0
  81. package/deployments/cloudflare/via-wrangler.md +165 -0
  82. package/deployments/fly-io/README.md +37 -0
  83. package/deployments/fly-io/via-dockerfile.md +648 -0
  84. package/deployments/fly-io/via-flyctl.md +653 -0
  85. package/deployments/fly-io/via-github-actions.md +695 -0
  86. package/deployments/fly-io/via-multi-region.md +598 -0
  87. package/deployments/google/README.md +34 -0
  88. package/deployments/google/via-app-engine.md +42 -0
  89. package/deployments/google/via-cloud-functions.md +23 -0
  90. package/deployments/google/via-cloud-run.md +330 -0
  91. package/deployments/google/via-gke.md +23 -0
  92. package/deployments/netlify/README.md +99 -0
  93. package/deployments/netlify/via-cli.md +17 -0
  94. package/deployments/netlify/via-functions.md +19 -0
  95. package/deployments/netlify/via-git.md +25 -0
  96. package/deployments/vercel/README.md +90 -0
  97. package/deployments/vercel/via-api.md +16 -0
  98. package/deployments/vercel/via-cli.md +17 -0
  99. package/deployments/vercel/via-git.md +24 -0
  100. package/docs/BROWNFIELD.md +179 -0
  101. package/docs/getting-started.md +137 -0
  102. package/docs/good-agents-md.md +137 -0
  103. package/events/README.md +89 -0
  104. package/events/event-record.schema.json +26 -0
  105. package/events/registry.json +166 -0
  106. package/events/registry.schema.json +71 -0
  107. package/glossary.md +145 -0
  108. package/incidents/README.md +81 -0
  109. package/incidents/_template.md +38 -0
  110. package/interfaces/cli.md +104 -0
  111. package/interfaces/rest.md +212 -0
  112. package/interfaces/tui.md +242 -0
  113. package/interfaces/web.md +123 -0
  114. package/languages/6502-DASM.md +132 -0
  115. package/languages/c.md +235 -0
  116. package/languages/commands.md +23 -0
  117. package/languages/cpp.md +132 -0
  118. package/languages/csharp.md +259 -0
  119. package/languages/dart.md +183 -0
  120. package/languages/delphi.md +218 -0
  121. package/languages/elixir.md +208 -0
  122. package/languages/go.md +78 -0
  123. package/languages/java.md +278 -0
  124. package/languages/javascript.md +163 -0
  125. package/languages/julia.md +175 -0
  126. package/languages/kotlin.md +193 -0
  127. package/languages/markdown.md +168 -0
  128. package/languages/mermaid.md +146 -0
  129. package/languages/officejs.md +392 -0
  130. package/languages/python.md +209 -0
  131. package/languages/r.md +163 -0
  132. package/languages/rust.md +216 -0
  133. package/languages/sql.md +216 -0
  134. package/languages/swift.md +153 -0
  135. package/languages/typescript.md +132 -0
  136. package/languages/vba.md +279 -0
  137. package/languages/vhdl.md +180 -0
  138. package/languages/visual-basic.md +151 -0
  139. package/languages/zig.md +196 -0
  140. package/meta/SOUL.md +27 -0
  141. package/meta/code-field.md +44 -0
  142. package/meta/morals.md +40 -0
  143. package/meta/philosophy.md +39 -0
  144. package/meta/project.md +49 -0
  145. package/meta/ralph.md +223 -0
  146. package/meta/security.md +80 -0
  147. package/meta/versioning.md +326 -0
  148. package/package.json +22 -0
  149. package/packs/lessons/lessons-pack-0.1.json +553 -0
  150. package/packs/patterns/patterns-pack-0.1.json +57 -0
  151. package/packs/rules/rules-pack-0.1.json +4767 -0
  152. package/packs/skills/skills-pack-0.1.json +262 -0
  153. package/packs/strategies/strategies-pack-0.1.json +167 -0
  154. package/packs/swarm-spec/swarm-spec-pack-0.1.json +17 -0
  155. package/patterns/executor-layer-credentials.md +227 -0
  156. package/patterns/llm-app.md +156 -0
  157. package/patterns/multi-agent.md +278 -0
  158. package/patterns/prompt-assembly-layer-ordering.md +154 -0
  159. package/patterns/role-as-overlay.md +179 -0
  160. package/platforms/2600.md +137 -0
  161. package/platforms/unity.md +329 -0
  162. package/references/composer-skill-porting.md +152 -0
  163. package/references/cost-models.md +163 -0
  164. package/references/ip-risk.md +246 -0
  165. package/references/plain-english-ux.md +275 -0
  166. package/resilience/context-pruning.md +67 -0
  167. package/resilience/continue-here.md +62 -0
  168. package/scm/changelog.md +276 -0
  169. package/scm/git.md +139 -0
  170. package/scm/github.md +265 -0
  171. package/secrets/.gitkeep +0 -0
  172. package/skills/deft-build/SKILL.md +20 -0
  173. package/skills/deft-directive-article-review/SKILL.md +156 -0
  174. package/skills/deft-directive-build/SKILL.md +302 -0
  175. package/skills/deft-directive-cost/SKILL.md +201 -0
  176. package/skills/deft-directive-debug/SKILL.md +140 -0
  177. package/skills/deft-directive-decompose/SKILL.md +96 -0
  178. package/skills/deft-directive-gh-arch/SKILL.md +160 -0
  179. package/skills/deft-directive-gh-slice/SKILL.md +199 -0
  180. package/skills/deft-directive-glossary/SKILL.md +118 -0
  181. package/skills/deft-directive-interview/SKILL.md +528 -0
  182. package/skills/deft-directive-pre-pr/SKILL.md +131 -0
  183. package/skills/deft-directive-probe/SKILL.md +127 -0
  184. package/skills/deft-directive-refinement/SKILL.md +403 -0
  185. package/skills/deft-directive-release/SKILL.md +266 -0
  186. package/skills/deft-directive-review-cycle/SKILL.md +401 -0
  187. package/skills/deft-directive-setup/SKILL.md +717 -0
  188. package/skills/deft-directive-swarm/SKILL.md +989 -0
  189. package/skills/deft-directive-sync/SKILL.md +288 -0
  190. package/skills/deft-directive-triage/SKILL.md +137 -0
  191. package/skills/deft-directive-write-skill/SKILL.md +169 -0
  192. package/skills/deft-interview/SKILL.md +16 -0
  193. package/skills/deft-pre-pr/SKILL.md +16 -0
  194. package/skills/deft-review-cycle/SKILL.md +16 -0
  195. package/skills/deft-roadmap-refresh/SKILL.md +16 -0
  196. package/skills/deft-setup/SKILL.md +20 -0
  197. package/skills/deft-swarm/SKILL.md +16 -0
  198. package/skills/deft-sync/SKILL.md +16 -0
  199. package/strategies/README.md +83 -0
  200. package/strategies/artifact-guards.md +85 -0
  201. package/strategies/bdd.md +115 -0
  202. package/strategies/brownfield.md +7 -0
  203. package/strategies/discuss.md +129 -0
  204. package/strategies/emit-hints.md +69 -0
  205. package/strategies/enterprise.md +193 -0
  206. package/strategies/interview.md +551 -0
  207. package/strategies/map.md +179 -0
  208. package/strategies/probe.md +151 -0
  209. package/strategies/rapid.md +155 -0
  210. package/strategies/research.md +155 -0
  211. package/strategies/roadmap.md +9 -0
  212. package/strategies/speckit.md +437 -0
  213. package/strategies/v0-20-contract.md +134 -0
  214. package/strategies/yolo.md +169 -0
  215. package/swarm/swarm.md +300 -0
  216. package/templates/COST-ESTIMATE.md +114 -0
  217. package/templates/PULL_REQUEST_TEMPLATE.md +35 -0
  218. package/templates/agent-prompt-preamble.md +409 -0
  219. package/templates/agents-entry.md +211 -0
  220. package/templates/agents-entry.placeholders.md +75 -0
  221. package/templates/embed.go +20 -0
  222. package/templates/embed_test.go +36 -0
  223. package/templates/make-spec-example.md +9 -0
  224. package/templates/make-spec.md +246 -0
  225. package/templates/project.md.template +52 -0
  226. package/templates/specification.md +1 -0
  227. package/templates/swarm-greptile-poller-prompt.md +556 -0
  228. package/templates/user.md.template +31 -0
  229. package/tools/RWLDL.md +80 -0
  230. package/tools/greptile.md +141 -0
  231. package/tools/installer.md +23 -0
  232. package/tools/taskfile-migration.md +32 -0
  233. package/tools/taskfile.md +185 -0
  234. package/tools/telemetry.md +285 -0
  235. package/vbrief/schemas/cache-meta.schema.json +137 -0
  236. package/vbrief/schemas/candidates.schema.json +130 -0
  237. package/vbrief/schemas/codebase-map.schema.json +213 -0
  238. package/vbrief/schemas/lessons-pack.schema.json +134 -0
  239. package/vbrief/schemas/patterns-pack.schema.json +84 -0
  240. package/vbrief/schemas/rules-pack.schema.json +105 -0
  241. package/vbrief/schemas/skills-pack.schema.json +94 -0
  242. package/vbrief/schemas/slices.schema.json +87 -0
  243. package/vbrief/schemas/strategies-pack.schema.json +89 -0
  244. package/vbrief/schemas/swarm-spec-pack.schema.json +84 -0
  245. package/vbrief/schemas/vbrief-core.schema.json +1022 -0
  246. package/vbrief/vbrief.md +684 -0
  247. package/verification/integration.md +76 -0
  248. package/verification/plan-checking.md +85 -0
  249. package/verification/uat.md +60 -0
  250. package/verification/verification.md +117 -0
@@ -0,0 +1,330 @@
1
+ # Deploy via Cloud Run
2
+
3
+ Deploy containerized applications using Google Cloud Run. Fully managed serverless platform that automatically scales containers.
4
+
5
+ ## Overview
6
+
7
+ Cloud Run provides:
8
+ - **Serverless Containers**: Run any containerized application
9
+ - **Auto-scaling**: Scale to zero, pay only for usage
10
+ - **Request-based Billing**: Pay per request and compute time
11
+ - **HTTPS Endpoints**: Automatic SSL certificates
12
+ - **Simple Deployment**: From source code or container images
13
+
14
+ ## Prerequisites
15
+
16
+ - Google Cloud account with project
17
+ - gcloud CLI installed
18
+ - Docker (optional, can build remotely)
19
+ - Application code or container image
20
+
21
+ ## Quick Start
22
+
23
+ ### 1. Install gcloud CLI
24
+
25
+ ```bash
26
+ # macOS
27
+ brew install google-cloud-sdk
28
+
29
+ # Initialize
30
+ gcloud init
31
+
32
+ # Authenticate
33
+ gcloud auth login
34
+ ```
35
+
36
+ ### 2. Deploy from Source
37
+
38
+ ```bash
39
+ # Deploy directly from source (buildpacks)
40
+ gcloud run deploy myapp \
41
+ --source . \
42
+ --region us-central1 \
43
+ --allow-unauthenticated
44
+
45
+ # Follow prompts, Cloud Run builds and deploys automatically
46
+ ```
47
+
48
+ ### 3. Deploy from Container Image
49
+
50
+ ```bash
51
+ # Build with Cloud Build
52
+ gcloud builds submit --tag gcr.io/PROJECT_ID/myapp
53
+
54
+ # Deploy
55
+ gcloud run deploy myapp \
56
+ --image gcr.io/PROJECT_ID/myapp \
57
+ --region us-central1 \
58
+ --allow-unauthenticated
59
+ ```
60
+
61
+ ## Deploy from Dockerfile
62
+
63
+ ```bash
64
+ # Submit build
65
+ gcloud builds submit --tag gcr.io/PROJECT_ID/myapp
66
+
67
+ # Deploy with options
68
+ gcloud run deploy myapp \
69
+ --image gcr.io/PROJECT_ID/myapp \
70
+ --region us-central1 \
71
+ --platform managed \
72
+ --allow-unauthenticated \
73
+ --port 8080 \
74
+ --memory 512Mi \
75
+ --cpu 1 \
76
+ --max-instances 10 \
77
+ --set-env-vars "APP_ENV=production"
78
+ ```
79
+
80
+ ## Configuration
81
+
82
+ ### Environment Variables
83
+
84
+ ```bash
85
+ # Set environment variables
86
+ gcloud run services update myapp \
87
+ --region us-central1 \
88
+ --set-env-vars "APP_ENV=production,LOG_LEVEL=info"
89
+
90
+ # From file
91
+ gcloud run services update myapp \
92
+ --region us-central1 \
93
+ --env-vars-file .env.yaml
94
+ ```
95
+
96
+ ### Secrets
97
+
98
+ ```bash
99
+ # Create secret in Secret Manager
100
+ echo -n "my-secret-value" | gcloud secrets create db-password --data-file=-
101
+
102
+ # Grant access to Cloud Run service account
103
+ gcloud secrets add-iam-policy-binding db-password \
104
+ --member="serviceAccount:PROJECT_NUMBER-compute@developer.gserviceaccount.com" \
105
+ --role="roles/secretmanager.secretAccessor"
106
+
107
+ # Use secret in Cloud Run
108
+ gcloud run services update myapp \
109
+ --region us-central1 \
110
+ --set-secrets "DB_PASSWORD=db-password:latest"
111
+ ```
112
+
113
+ ### Resource Limits
114
+
115
+ ```bash
116
+ gcloud run services update myapp \
117
+ --region us-central1 \
118
+ --memory 1Gi \
119
+ --cpu 2 \
120
+ --timeout 300 \
121
+ --max-instances 100 \
122
+ --min-instances 0
123
+ ```
124
+
125
+ ## Custom Domains
126
+
127
+ ```bash
128
+ # Map custom domain
129
+ gcloud run services update myapp \
130
+ --region us-central1 \
131
+ --allow-unauthenticated
132
+
133
+ # Add domain mapping
134
+ gcloud run domain-mappings create \
135
+ --service myapp \
136
+ --domain www.example.com \
137
+ --region us-central1
138
+
139
+ # Update DNS records as instructed
140
+ ```
141
+
142
+ ## Traffic Splitting
143
+
144
+ ```bash
145
+ # Deploy new revision
146
+ gcloud run deploy myapp \
147
+ --image gcr.io/PROJECT_ID/myapp:v2 \
148
+ --region us-central1 \
149
+ --no-traffic
150
+
151
+ # Split traffic
152
+ gcloud run services update-traffic myapp \
153
+ --region us-central1 \
154
+ --to-revisions REVISION1=80,REVISION2=20
155
+ ```
156
+
157
+ ## CI/CD Integration
158
+
159
+ ### GitHub Actions
160
+
161
+ ```yaml
162
+ # .github/workflows/cloud-run.yml
163
+ name: Deploy to Cloud Run
164
+
165
+ on:
166
+ push:
167
+ branches: [main]
168
+
169
+ env:
170
+ PROJECT_ID: my-project
171
+ SERVICE: myapp
172
+ REGION: us-central1
173
+
174
+ jobs:
175
+ deploy:
176
+ runs-on: ubuntu-latest
177
+
178
+ steps:
179
+ - uses: actions/checkout@v3
180
+
181
+ - uses: google-github-actions/auth@v1
182
+ with:
183
+ credentials_json: ${{ secrets.GCP_CREDENTIALS }}
184
+
185
+ - uses: google-github-actions/setup-gcloud@v1
186
+
187
+ - name: Build and push
188
+ run: |
189
+ gcloud builds submit --tag gcr.io/$PROJECT_ID/$SERVICE
190
+
191
+ - name: Deploy to Cloud Run
192
+ run: |
193
+ gcloud run deploy $SERVICE \
194
+ --image gcr.io/$PROJECT_ID/$SERVICE \
195
+ --region $REGION \
196
+ --platform managed \
197
+ --allow-unauthenticated
198
+ ```
199
+
200
+ ### Cloud Build
201
+
202
+ ```yaml
203
+ # cloudbuild.yaml
204
+ steps:
205
+ # Build container image
206
+ - name: 'gcr.io/cloud-builders/docker'
207
+ args: ['build', '-t', 'gcr.io/$PROJECT_ID/myapp', '.']
208
+
209
+ # Push to Container Registry
210
+ - name: 'gcr.io/cloud-builders/docker'
211
+ args: ['push', 'gcr.io/$PROJECT_ID/myapp']
212
+
213
+ # Deploy to Cloud Run
214
+ - name: 'gcr.io/cloud-builders/gcloud'
215
+ args:
216
+ - 'run'
217
+ - 'deploy'
218
+ - 'myapp'
219
+ - '--image=gcr.io/$PROJECT_ID/myapp'
220
+ - '--region=us-central1'
221
+ - '--platform=managed'
222
+ - '--allow-unauthenticated'
223
+
224
+ images:
225
+ - 'gcr.io/$PROJECT_ID/myapp'
226
+ ```
227
+
228
+ ## VPC Access
229
+
230
+ ```bash
231
+ # Create VPC connector
232
+ gcloud compute networks vpc-access connectors create myconnector \
233
+ --network default \
234
+ --region us-central1 \
235
+ --range 10.8.0.0/28
236
+
237
+ # Use connector
238
+ gcloud run services update myapp \
239
+ --region us-central1 \
240
+ --vpc-connector myconnector \
241
+ --vpc-egress all-traffic
242
+ ```
243
+
244
+ ## Database Integration
245
+
246
+ ### Cloud SQL
247
+
248
+ ```bash
249
+ # Connect to Cloud SQL
250
+ gcloud run services update myapp \
251
+ --region us-central1 \
252
+ --add-cloudsql-instances PROJECT_ID:REGION:INSTANCE_NAME \
253
+ --set-env-vars "DB_HOST=/cloudsql/PROJECT_ID:REGION:INSTANCE_NAME"
254
+ ```
255
+
256
+ ### Firestore
257
+
258
+ ```bash
259
+ # Set environment variable
260
+ gcloud run services update myapp \
261
+ --region us-central1 \
262
+ --set-env-vars "FIRESTORE_PROJECT_ID=PROJECT_ID"
263
+ ```
264
+
265
+ ## Monitoring
266
+
267
+ ### View Logs
268
+
269
+ ```bash
270
+ # Stream logs
271
+ gcloud run services logs tail myapp --region us-central1
272
+
273
+ # View recent logs
274
+ gcloud run services logs read myapp --region us-central1 --limit 100
275
+ ```
276
+
277
+ ### Metrics
278
+
279
+ Access Cloud Monitoring for:
280
+ - Request count
281
+ - Request latency
282
+ - Container CPU/memory usage
283
+ - Billable instance time
284
+
285
+ ## Best Practices
286
+
287
+ 1. **Use Cloud Build**: Build images remotely
288
+ 2. **Scale to Zero**: Save costs for low-traffic services
289
+ 3. **Set Max Instances**: Prevent runaway costs
290
+ 4. **Use Secrets Manager**: Never hardcode secrets
291
+ 5. **Health Checks**: Ensure container responds on /
292
+ 6. **Minimum Instances**: Use for latency-sensitive apps
293
+ 7. **VPC Connector**: For private resource access
294
+ 8. **Traffic Splitting**: Test changes gradually
295
+ 9. **Optimize Container**: Reduce cold start times
296
+ 10. **Monitor Costs**: Set budget alerts
297
+
298
+ ## Troubleshooting
299
+
300
+ ```bash
301
+ # Check service status
302
+ gcloud run services describe myapp --region us-central1
303
+
304
+ # View revisions
305
+ gcloud run revisions list --service myapp --region us-central1
306
+
307
+ # Check IAM permissions
308
+ gcloud run services get-iam-policy myapp --region us-central1
309
+ ```
310
+
311
+ ## Cost Optimization
312
+
313
+ ```bash
314
+ # Scale to zero when idle
315
+ --min-instances 0
316
+
317
+ # Right-size resources
318
+ --memory 512Mi --cpu 1
319
+
320
+ # Use request timeout
321
+ --timeout 60
322
+
323
+ # Monitor and optimize per-request costs
324
+ ```
325
+
326
+ ## References
327
+
328
+ - [Cloud Run Documentation](https://cloud.google.com/run/docs)
329
+ - [Cloud Run Pricing](https://cloud.google.com/run/pricing)
330
+ - [Best Practices](https://cloud.google.com/run/docs/tips)
@@ -0,0 +1,23 @@
1
+ # Deploy via Google Kubernetes Engine (GKE)
2
+
3
+ Deploy containerized applications using GKE. Managed Kubernetes with Google Cloud integration.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Create cluster
9
+ gcloud container clusters create mycluster \
10
+ --zone us-central1-a \
11
+ --num-nodes 3
12
+
13
+ # Get credentials
14
+ gcloud container clusters get-credentials mycluster \
15
+ --zone us-central1-a
16
+
17
+ # Deploy application
18
+ kubectl apply -f deployment.yaml
19
+ ```
20
+
21
+ ## References
22
+
23
+ - [GKE Documentation](https://cloud.google.com/kubernetes-engine/docs)
@@ -0,0 +1,99 @@
1
+ # Netlify Deployment Module
2
+
3
+ Deft guidance for deploying applications to Netlify.
4
+
5
+ ## Status
6
+
7
+ - ! Optional module
8
+ - ~ Good for Deft usage
9
+
10
+ ## Overview
11
+
12
+ Netlify specializes in JAMstack deployments with built-in CI/CD and serverless functions.
13
+
14
+ ## Deployment Methods
15
+
16
+ | File | Method | Best For |
17
+ |------|--------|----------|
18
+ | `via-git.md` | Git Integration | Automatic deploy-on-push workflows (default) |
19
+ | `via-cli.md` | Netlify CLI | Local testing, custom CI/CD pipelines |
20
+ | `via-functions.md` | Netlify Functions | Serverless APIs alongside static sites |
21
+
22
+ ## Supported Frameworks
23
+
24
+ Netlify supports all major static site generators and frameworks:
25
+
26
+ - **Next.js** — Static and SSR support
27
+ - **Gatsby** — Optimized builds and plugins
28
+ - **Hugo** — Fast static site generation
29
+ - **Jekyll** — Ruby-based static sites
30
+ - **Eleventy** — Flexible static site generator
31
+ - **SvelteKit** — Full-stack Svelte framework
32
+ - **Astro** — Modern static site builder
33
+ - **Any static HTML/CSS/JS**
34
+
35
+ ## Deployment Approaches
36
+
37
+ ### Git-Based Deployments
38
+
39
+ - Connect repository for continuous deployment
40
+ - Deploy previews for every pull request
41
+ - Branch deploys for staging environments
42
+ - Automatic build detection and configuration
43
+
44
+ ### CLI Deployments
45
+
46
+ ```bash
47
+ # Install Netlify CLI
48
+ npm i -g netlify-cli
49
+
50
+ # Link to existing site or create new
51
+ netlify init
52
+
53
+ # Deploy draft for testing
54
+ netlify deploy
55
+
56
+ # Deploy to production
57
+ netlify deploy --prod
58
+ ```
59
+
60
+ ### Netlify Functions
61
+
62
+ - Deploy serverless functions alongside your site
63
+ - Background functions for async processing
64
+ - Edge functions for request manipulation at CDN edge
65
+
66
+ ### Build Plugins
67
+
68
+ - Extend build process with Netlify plugins
69
+ - Image optimization, analytics, A/B testing
70
+ - Custom build workflows
71
+
72
+ ## Quick Decision Guide
73
+
74
+ - **JAMstack sites**: Git integration — automatic builds on push
75
+ - **Static site generators**: Git integration — framework detection
76
+ - **Quick prototypes**: Drag & drop — instant deployment
77
+ - **Serverless APIs**: Netlify Functions — backend alongside frontend
78
+ - **Edge logic**: Edge Functions — request handling at CDN
79
+ - **CI/CD pipelines**: Netlify CLI — custom build workflows
80
+ - **A/B testing**: Split Testing — built-in feature
81
+
82
+ ## Key Features
83
+
84
+ - **Instant Rollbacks**: One-click rollback to any deploy
85
+ - **Deploy Previews**: Unique URL for every PR
86
+ - **Form Handling**: Built-in form processing
87
+ - **Identity**: Built-in authentication
88
+ - **Large Media**: Git LFS alternative
89
+ - **Analytics**: Privacy-first analytics
90
+ - **Automatic HTTPS**: Free SSL certificates
91
+
92
+ ## References
93
+
94
+ - [Netlify Documentation](https://docs.netlify.com/)
95
+ - [Netlify CLI](https://docs.netlify.com/cli/get-started/)
96
+ - [Deploy with Git](https://docs.netlify.com/site-deploys/create-deploys/)
97
+ - [Netlify Functions](https://docs.netlify.com/functions/overview/)
98
+ - [Edge Functions](https://docs.netlify.com/edge-functions/overview/)
99
+ - [Build Plugins](https://docs.netlify.com/configure-builds/build-plugins/)
@@ -0,0 +1,17 @@
1
+ # Deploy via Netlify CLI
2
+
3
+ Deploy to Netlify using the command-line interface for local testing and CI/CD.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Install CLI
9
+ npm install -g netlify-cli
10
+
11
+ # Deploy
12
+ netlify deploy --prod
13
+ ```
14
+
15
+ ## References
16
+
17
+ - [CLI Documentation](https://docs.netlify.com/cli/get-started/)
@@ -0,0 +1,19 @@
1
+ # Deploy Netlify Functions
2
+
3
+ Deploy serverless functions alongside your static site.
4
+
5
+ ## Quick Start
6
+
7
+ ```javascript
8
+ // netlify/functions/hello.js
9
+ exports.handler = async (event) => {
10
+ return {
11
+ statusCode: 200,
12
+ body: JSON.stringify({ message: "Hello World" })
13
+ };
14
+ };
15
+ ```
16
+
17
+ ## References
18
+
19
+ - [Functions Documentation](https://docs.netlify.com/functions/overview/)
@@ -0,0 +1,25 @@
1
+ # Deploy via Git Integration
2
+
3
+ Deploy to Netlify using Git integration with GitHub, GitLab, or Bitbucket. Automatic deploys on every push.
4
+
5
+ ## Quick Start
6
+
7
+ 1. Connect repository in Netlify dashboard
8
+ 2. Configure build settings
9
+ 3. Push to trigger automatic deployment
10
+
11
+ ## Build Configuration
12
+
13
+ ```toml
14
+ # netlify.toml
15
+ [build]
16
+ command = "npm run build"
17
+ publish = "dist"
18
+
19
+ [build.environment]
20
+ NODE_VERSION = "18"
21
+ ```
22
+
23
+ ## References
24
+
25
+ - [Git Integration Documentation](https://docs.netlify.com/site-deploys/create-deploys/)
@@ -0,0 +1,90 @@
1
+ # Vercel Deployment Module
2
+
3
+ Deft guidance for deploying applications to Vercel.
4
+
5
+ ## Status
6
+
7
+ - ! Optional module
8
+ - ~ Good for Deft usage
9
+
10
+ ## Overview
11
+
12
+ Vercel optimizes for frontend frameworks and full-stack JavaScript/TypeScript with exceptional Next.js support.
13
+
14
+ ## Deployment Methods
15
+
16
+ | File | Method | Best For |
17
+ |------|--------|----------|
18
+ | `via-git.md` | Git Integration | Automatic deployments with preview URLs (default) |
19
+ | `via-cli.md` | Vercel CLI | Local testing, custom CI/CD pipelines |
20
+ | `via-api.md` | Vercel API | Programmatic deployments, custom automation |
21
+
22
+ ## Supported Frameworks
23
+
24
+ Vercel has zero-config support for:
25
+
26
+ - **Next.js** — First-class support, optimal performance
27
+ - **React** — Create React App, Vite, custom setups
28
+ - **Vue.js** — Nuxt, Vite, Vue CLI
29
+ - **Svelte** — SvelteKit, Vite
30
+ - **Angular** — Full support
31
+ - **Static Sites** — Any static site generator
32
+
33
+ ## Deployment Approaches
34
+
35
+ ### Git-Based Deployments
36
+
37
+ - Connect repository for automatic deployments on every push
38
+ - Preview deployments for every pull request
39
+ - Production deployments from main/master branch
40
+ - Environment variables per branch/environment
41
+
42
+ ### CLI Deployments
43
+
44
+ ```bash
45
+ # Install Vercel CLI
46
+ npm i -g vercel
47
+
48
+ # Deploy to preview
49
+ vercel
50
+
51
+ # Deploy to production
52
+ vercel --prod
53
+ ```
54
+
55
+ ### Edge Functions & Middleware
56
+
57
+ - Deploy serverless Edge Functions alongside your frontend
58
+ - Middleware for request modification at the edge
59
+ - Global distribution with low latency
60
+
61
+ ### CI/CD Integration
62
+
63
+ - **GitHub Actions**: Use `vercel-action` for custom workflows
64
+ - **GitLab CI/CD**: Deploy via Vercel CLI
65
+ - **Other CI**: Integrate using Vercel CLI or API
66
+
67
+ ## Quick Decision Guide
68
+
69
+ - **Next.js apps**: Git integration — deploy on push, automatic optimization
70
+ - **Preview workflows**: Git integration — preview URLs for every PR
71
+ - **Local testing**: Vercel CLI — deploy from local machine
72
+ - **Custom pipelines**: GitHub Actions + Vercel CLI — advanced automation
73
+ - **API-driven**: Vercel API — programmatic deployments
74
+
75
+ ## Key Features
76
+
77
+ - **Automatic HTTPS**: Free SSL certificates
78
+ - **Global CDN**: Edge network for optimal performance
79
+ - **Serverless Functions**: Backend APIs alongside frontend
80
+ - **Edge Functions**: Code running at the edge
81
+ - **Image Optimization**: Automatic image handling
82
+ - **Analytics**: Built-in web analytics
83
+
84
+ ## References
85
+
86
+ - [Vercel Documentation](https://vercel.com/docs)
87
+ - [Vercel CLI Documentation](https://vercel.com/docs/cli)
88
+ - [Deploy with Git](https://vercel.com/docs/deployments/git)
89
+ - [Edge Functions](https://vercel.com/docs/functions/edge-functions)
90
+ - [Next.js on Vercel](https://vercel.com/docs/frameworks/nextjs)
@@ -0,0 +1,16 @@
1
+ # Deploy via Vercel API
2
+
3
+ Deploy to Vercel using the REST API for custom automation and programmatic deployments.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ curl -X POST https://api.vercel.com/v13/deployments \
9
+ -H "Authorization: Bearer $VERCEL_TOKEN" \
10
+ -H "Content-Type: application/json" \
11
+ -d '{"name": "myapp", "gitSource": {"type": "github", "repo": "user/repo"}}'
12
+ ```
13
+
14
+ ## References
15
+
16
+ - [API Documentation](https://vercel.com/docs/rest-api)
@@ -0,0 +1,17 @@
1
+ # Deploy via Vercel CLI
2
+
3
+ Deploy to Vercel using the command-line interface for local testing and CI/CD workflows.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Install CLI
9
+ npm install -g vercel
10
+
11
+ # Deploy to production
12
+ vercel --prod
13
+ ```
14
+
15
+ ## References
16
+
17
+ - [CLI Documentation](https://vercel.com/docs/cli)
@@ -0,0 +1,24 @@
1
+ # Deploy via Git Integration
2
+
3
+ Deploy to Vercel using Git integration with GitHub, GitLab, or Bitbucket. Automatic deployments and preview URLs.
4
+
5
+ ## Quick Start
6
+
7
+ 1. Import project in Vercel dashboard
8
+ 2. Configure framework preset
9
+ 3. Push to deploy automatically
10
+
11
+ ## Configuration
12
+
13
+ ```json
14
+ // vercel.json
15
+ {
16
+ "buildCommand": "npm run build",
17
+ "outputDirectory": "dist",
18
+ "framework": "vite"
19
+ }
20
+ ```
21
+
22
+ ## References
23
+
24
+ - [Git Integration Documentation](https://vercel.com/docs/deployments/git)