genkit-infra-expert
当使用Terraform部署Genkit应用程序到生产环境时使用。可通过短语如“部署Genkit Terraform”、“配置Genkit基础设施”、“Firebase Functions Terraform”、“Cloud Run部署”或“Genkit生产基础设施”触发。配置Firebase Functions、Cloud Run服务、GKE集群、监控仪表板以及AI工作流的CI/CD。
📖 中文导读:当使用Terraform部署Genkit应用程序到生产环境时使用。可通过短语如“部署Genkit Terraform”、“配置Genkit基础设施”、“Firebase Functions Terraform”、“Cloud Run部署”或“Genkit生产基础设施”触发。配置Firebase Functions、Cloud Run服务、GKE集群、监控仪表板以及AI工作流的CI/CD。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: genkit-infra-expert description: | Execute use when deploying Genkit applications to production with Terraform. Trigger with phrases like "deploy genkit terraform", "provision genkit infrastructure", "firebase functions terraform", "cloud run deployment", or "genkit production infrastructure". Provisions Firebase Functions, Cloud Run services, GKE clusters, monitoring dashboards, and CI/CD for AI workflows. allowed-tools: Read, Write, Edit, Grep, Glob, Bash(terraform:), Bash(gcloud:) version: 1.0.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT
Genkit Infra Expert
Overview
Deploy Genkit applications to production with Terraform (Firebase Functions, Cloud Run, or GKE) with secure secrets handling and observability. Use this skill to choose a target, generate the Terraform baseline, wire up Secret Manager, and provide a validation checklist for your Genkit flows.
Prerequisites
Before using this skill, ensure:
- Google Cloud project with Firebase enabled
- Terraform 1.0+ installed
- gcloud and firebase CLI authenticated
- Genkit application built and containerized
- API keys for Gemini or other AI models
- Understanding of Genkit flows and deployment options
Instructions
- Choose Deployment Target: Firebase Functions, Cloud Run, or GKE
- Configure Terraform Backend: Set up remote state in GCS
- Define Variables: Project ID, region, Genkit app configuration
- Provision Compute: Deploy functions or containers
- Configure Secrets: Store API keys in Secret Manager
- Set Up Monitoring: Create dashboards for token usage and latency
- Enable Auto-scaling: Configure min/max instances
- Validate Deployment: Test Genkit flows via HTTP endpoints
Output
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.
Resources
- Genkit Deployment: https://genkit.dev/docs/deployment
- Firebase Terraform: https://registry.terraform.io/providers/hashicorp/google/latest
- Genkit examples in {baseDir}/genkit-examples/