[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRX8N56F5G6VRR5EG0KX3R":3,"skill-same:01M7CRX8N56F5G6VRR5EG0KX3R":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CRX8N56F5G6VRR5EG0KX3R","cloud-deploy-gcp-aws",null,"Use when a web\u002Ffrontend app needs a cloud deploy - GitHub Actions to Cloud Run\u002FECS for SSR or GCS+CDN\u002FFirebase and S3+CloudFront for static, with build-time env and cache invalidation","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Ffrontend-developer\u002Fskills\u002Fcloud-deploy-gcp-aws\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloud-deploy-gcp-aws\ncategory: deployment\ndescription: Use when a web\u002Ffrontend app needs a cloud deploy - GitHub Actions to Cloud Run\u002FECS for SSR or GCS+CDN\u002FFirebase and S3+CloudFront for static, with build-time env and cache invalidation\n---\n# Cloud Deploy — GCP & AWS (web)\n\n## Overview\n\nA web deploy's shape follows the **render mode**, not the framework. Server-rendered (Next.js SSR, SvelteKit node) ships a container exactly like a backend service; a static export (Next.js `output: 'export'`, Vite build) ships files to object storage behind a CDN. Pick the mode first. Read [[ci-cd-pipeline-authoring]] for the workflow naming\u002Fdispatch contract this fills in.\n\n**Core principle:** Match the deploy target to the render mode, bake public config at build time, and invalidate the CDN on every deploy — a stale edge cache is the most common \"I deployed but nothing changed.\"\n\n## Pick the target, then copy the boilerplate\n\n`search_boilerplate_catalog` → `deploy gcp web` \u002F `deploy aws web`. Copy its `deploy-stage\u002Fpreprod\u002Fprod.yml` into `.github\u002Fworkflows\u002F` as `\u003Cid>-deploy-\u003Cenv>.yml`, then set the README's repo\u002Fenvironment **vars**. OIDC auth, no keys.\n\n## SSR (containerized)\n\nBuild the image, push it, then deploy it:\n\n- **GCP:** `google-github-actions\u002Fauth` with Workload Identity Federation (no key JSON), then `gcloud run deploy $SERVICE --image $IMAGE --region $REGION` to **Cloud Run**. The revision URL is what you smoke-test.\n- **AWS:** `aws-actions\u002Fconfigure-aws-credentials` with `role-to-assume` (OIDC), push to ECR, then deploy via **ECS Express Mode** (AWS's current recommended default) or ECS Fargate with `aws-actions\u002Famazon-ecs-deploy-task-definition` (`wait-for-service-stability: true`) for more control.\n\nUse this path when the app has server components, API routes, or ISR.\n\n## Static (object storage + CDN)\n\n- **GCP:** either **Firebase Hosting** (`firebase deploy --only hosting`, simplest, CDN + rollback built in) or a **GCS bucket + Cloud CDN \u002F load balancer**; after upload, invalidate the CDN.\n- **AWS:** sync the build output to an **S3** bucket and serve via **CloudFront**; after `aws s3 sync`, run `aws cloudfront create-invalidation --paths '\u002F*'`.\n- Set long cache TTLs on hashed assets and `no-cache` on `index.html` so a deploy is picked up immediately.\n- Next.js static export is `output: 'export'` in `next.config` (the `next export` CLI command was removed) — keep the build step producing the `out\u002F` directory the sync step uploads.\n\n## Build-time env\n\n- Public config is **inlined at build time** (`NEXT_PUBLIC_*`, `VITE_*`) — it is baked into the bundle, so the build job for each environment sets that environment's values from vars. You cannot change a `NEXT_PUBLIC_` value after build without rebuilding.\n- Never put a secret in a `NEXT_PUBLIC_`\u002F`VITE_` var — it ships to the browser. Secrets belong to the server (SSR) or a backend, never the static bundle.\n\n## Health-check gate\n\nEnd the job by fetching the deployed URL (SSR health route, or the static site's `index.html`) and fail on non-200 \u002F missing marker. A failing smoke step fails the deploy — the release goes `failed` and the release engineer rolls it back; only `finish_release` moves a task to `released`.\n\n## Common Mistakes\n\n- Static deploy with no CDN invalidation → users keep the old bundle.\n- Aggressive caching on `index.html` → new asset hashes never get requested.\n- A secret in a `NEXT_PUBLIC_` var, shipped to every visitor's browser.\n- Rebuilding per env is skipped and one bundle is promoted across envs with the wrong baked config.\n- Calling the removed `next export` CLI command instead of setting `output: 'export'`.\n\n## Red Flags\n\n- No `create-invalidation` \u002F hosting cache bust after a static upload.\n- Public build vars holding tokens or keys.\n- Deploy triggers on `push` for preprod\u002Fprod instead of `workflow_dispatch` (unless the component's delivery profile is genuinely `on_merge`).\n","# Cloud Deploy — GCP & AWS (web)\n\n## Overview\n\nA web deploy's shape follows the **render mode**, not the framework. Server-rendered (Next.js SSR, SvelteKit node) ships a container exactly like a backend service; a static export (Next.js `output: 'export'`, Vite build) ships files to object storage behind a CDN. Pick the mode first. Read [[ci-cd-pipeline-authoring]] for the workflow naming\u002Fdispatch contract this fills in.\n\n**Core principle:** Match the deploy target to the render mode, bake public config at build time, and invalidate the CDN on every deploy — a stale edge cache is the most common \"I deployed but nothing changed.\"\n\n## Pick the target, then copy the boilerplate\n\n`search_boilerplate_catalog` → `deploy gcp web` \u002F `deploy aws web`. Copy its `deploy-stage\u002Fpreprod\u002Fprod.yml` into `.github\u002Fworkflows\u002F` as `\u003Cid>-deploy-\u003Cenv>.yml`, then set the README's repo\u002Fenvironment **vars**. OIDC auth, no keys.\n\n## SSR (containerized)\n\nBuild the image, push it, then deploy it:\n\n- **GCP:** `google-github-actions\u002Fauth` with Workload Identity Federation (no key JSON), then `gcloud run deploy $SERVICE --image $IMAGE --region $REGION` to **Cloud Run**. The revision URL is what you smoke-test.\n- **AWS:** `aws-actions\u002Fconfigure-aws-credentials` with `role-to-assume` (OIDC), push to ECR, then deploy via **ECS Express Mode** (AWS's current recommended default) or ECS Fargate with `aws-actions\u002Famazon-ecs-deploy-task-definition` (`wait-for-service-stability: true`) for more control.\n\nUse this path when the app has server components, API routes, or ISR.\n\n## Static (object storage + CDN)\n\n- **GCP:** either **Firebase Hosting** (`firebase deploy --only hosting`, simplest, CDN + rollback built in) or a **GCS bucket + Cloud CDN \u002F load balancer**; after upload, invalidate the CDN.\n- **AWS:** sync the build output to an **S3** bucket and serve via **CloudFront**; after `aws s3 sync`, run `aws cloudfront create-invalidation --paths '\u002F*'`.\n- Set long cache TTLs on hashed assets and `no-cache` on `index.html` so a deploy is picked up immediately.\n- Next.js static export is `output: 'export'` in `next.config` (the `next export` CLI command was removed) — keep the build step producing the `out\u002F` directory the sync step uploads.\n\n## Build-time env\n\n- Public config is **inlined at build time** (`NEXT_PUBLIC_*`, `VITE_*`) — it is baked into the bundle, so the build job for each environment sets that environment's values from vars. You cannot change a `NEXT_PUBLIC_` value after build without rebuilding.\n- Never put a secret in a `NEXT_PUBLIC_`\u002F`VITE_` var — it ships to the browser. Secrets belong to the server (SSR) or a backend, never the static bundle.\n\n## Health-check gate\n\nEnd the job by fetching the deployed URL (SSR health route, or the static site's `index.html`) and fail on non-200 \u002F missing marker. A failing smoke step fails the deploy — the release goes `failed` and the release engineer rolls it back; only `finish_release` moves a task to `released`.\n\n## Common Mistakes\n\n- Static deploy with no CDN invalidation → users keep the old bundle.\n- Aggressive caching on `index.html` → new asset hashes never get requested.\n- A secret in a `NEXT_PUBLIC_` var, shipped to every visitor's browser.\n- Rebuilding per env is skipped and one bundle is promoted across envs with the wrong baked config.\n- Calling the removed `next export` CLI command instead of setting `output: 'export'`.\n\n## Red Flags\n\n- No `create-invalidation` \u002F hosting cache bust after a static upload.\n- Public build vars holding tokens or keys.\n- Deploy triggers on `push` for preprod\u002Fprod instead of `workflow_dispatch` (unless the component's delivery profile is genuinely `on_merge`).\n",{"name":5,"category":24,"description":7},"deployment","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Ffrontend-developer\u002Fskills\u002Fcloud-deploy-gcp-aws",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill cloud-deploy-gcp-aws",{"tool":40,"command":41},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill cloud-deploy-gcp-aws",{"tool":43,"command":44},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill cloud-deploy-gcp-aws","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Ffrontend-developer\u002Fskills\u002Fcloud-deploy-gcp-aws\u002FSKILL.md",true,[],[49,55,62,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]