gcp-serverless-tf
Installation
SKILL.md
GCP Serverless Terraform/OpenTofu Skill
Generate and maintain the Terraform/OpenTofu configuration for a GCP serverless architecture. Produce the .tf files that correspond to the architecture defined by the gcp-serverless-appdev skill (Cloud Run, Firestore, Cloud Tasks, Pub/Sub, and so on), and keep the .tf files in step with changes to the application code.
Two Modes
Mode 1: Init (initial generation)
The project has no .tf files yet. Read the user's application code (Dockerfile, main.py, docker-compose.yaml, …), identify the GCP services in use, and generate the corresponding set of .tf files.
Mode 2: Diff (incremental update)
.tf files already exist. Read the application code changes (git diff or new files), identify the ones that affect infrastructure, and propose and apply the .tf diff.
Workflow
Step 1: Confirm the user's intent
Confirm the following (ask if unclear):