
GCP Examples Expert
FreeGenerate production-ready Google Cloud code examples.
Free · Opens the source repo
What GCP Examples Expert does
The GCP Examples Expert skill is designed to assist developers and designers in generating production-ready code examples for Google Cloud Platform (GCP) from official repositories. This skill sources code from a variety of frameworks, including ADK samples, Firebase Genkit, Vertex AI notebooks, and Gemini patterns. By mapping user requirements to the appropriate GCP framework, it ensures that the generated code adheres to best practices in security, monitoring, and deployment. This makes it particularly useful for those looking to implement GCP solutions quickly and effectively.
To use the skill, users must have a Google Cloud project set up with billing enabled and the Vertex AI API activated. The skill requires the gcloud CLI to be authenticated with the necessary IAM roles, and it supports multiple programming languages, including TypeScript, Python, and Go. The skill guides users through a structured process to identify the target framework, select the appropriate code patterns, and configure essential security and monitoring settings. It also provides deployment configurations tailored to various GCP services, such as Cloud Run and Firebase Functions.
In addition to generating code, the skill offers comprehensive output that includes runnable code examples, deployment configurations, environment variable templates, and monitoring setups. This ensures that users not only receive functional code but also the context and resources needed for successful deployment and operation. The GCP Examples Expert skill is ideal for developers who want to streamline their GCP projects and ensure they are following industry best practices without having to start from scratch.
With this skill, users can quickly create complex GCP solutions like ADK agents, Genkit flows, and multimodal analyses, making it a valuable tool for anyone working within the Google Cloud ecosystem.
When to use it
Use this skill when you need to generate code examples for Google Cloud services, especially when starting new projects or implementing specific GCP features.
When not to use it
This skill may not be suitable for projects that require highly customized code or for users unfamiliar with GCP concepts and tools.
What you can build with it
ADK Agent with Code Execution
Create a production ADK agent using `google/adk-samples` patterns, enabling features like Code Execution Sandbox.
Genkit RAG Flow
Implement a retrieval-augmented generation system using Firebase Genkit, defining a retriever and deploying to Cloud Run.
Gemini Multimodal Analysis
Analyze video content with Gemini 2.5 Pro, combining video URIs with text questions and including safety filters.
How to install GCP Examples Expert
View source1. Install with the skills CLI
npx skills add jeremylongshore/claude-code-plugins-plus-skills/gcp-examples-expert --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by jeremylongshoreGCP Examples Expert
Overview
Generate production-ready Google Cloud Platform code examples sourced from official repositories including ADK samples, Agent Starter Pack, Firebase Genkit, Vertex AI samples, Generative AI examples, and AgentSmithy. This skill maps user requirements to the appropriate GCP framework and delivers working code with security, monitoring, and deployment best practices baked in.
Prerequisites
- Google Cloud project with billing enabled and Vertex AI API activated
gcloudCLI authenticated with appropriate IAM roles (Vertex AI User, Cloud Run Developer)- Node.js 18+ for Genkit/TypeScript examples or Python 3.10+ for ADK/Vertex AI examples
- Firebase CLI for Genkit deployments (
npm install -g firebase-tools) - API keys or service account credentials configured via Secret Manager (never hardcoded)
Instructions
- Identify the target framework by matching the request to one of six categories: ADK agents, Agent Starter Pack, Genkit flows, Vertex AI training, Generative AI multimodal, or AgentSmithy orchestration
- Select the appropriate source repository and code pattern from
${CLAUDE_SKILL_DIR}/references/code-example-categories.md - Adapt the template to the specified programming language (TypeScript, Python, or Go)
- Configure security settings: IAM least-privilege service accounts, VPC Service Controls, Model Armor for prompt injection protection
- Add monitoring instrumentation: Cloud Monitoring dashboards, alerting policies, structured logging, OpenTelemetry tracing
- Set auto-scaling parameters with appropriate min/max instance counts for the deployment target
- Include cost optimization: select Gemini 2.5 Flash for simple tasks, Gemini 2.5 Pro for complex reasoning, batch predictions for bulk workloads
- Generate deployment configuration for the target platform (Cloud Run, Firebase Functions, or Vertex AI Endpoints)
- Provide Terraform or IaC templates for reproducible infrastructure provisioning
- Cite the source repository and link to official documentation for each pattern used
See ${CLAUDE_SKILL_DIR}/references/workflow.md for the phased workflow and ${CLAUDE_SKILL_DIR}/references/best-practices-applied.md for the full best-practices checklist.
Output
- Complete, runnable code example with imports, configuration, and error handling
- Deployment configuration (Cloud Run service YAML, Firebase function config, or Terraform module)
- Environment variable template listing required secrets and API keys
- Monitoring setup: dashboard JSON, alerting policy definitions, log-based metrics
- Cost estimate guidance based on model selection and expected throughput
- Source repository citation and documentation links
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Invalid GCP project or API not enabled | Vertex AI API disabled or project ID misconfigured | Run gcloud services enable aiplatform.googleapis.com; verify project ID in gcloud config list |
| Permission denied on Vertex AI resources | Service account missing required IAM roles | Grant roles/aiplatform.user and roles/run.developer; check VPC-SC perimeter allows access |
| Model not available in region | Requested Gemini model not deployed in specified location | Use us-central1 or europe-west4 where Gemini models are available; check regional availability docs |
| Quota exceeded for API calls | Rate limit hit on Vertex AI prediction endpoint | Request quota increase via Cloud Console; implement exponential backoff with jitter |
| Dependency version conflict | Incompatible versions of AI SDK, Genkit, or provider packages | Pin versions in package.json or requirements.txt; use lockfile to ensure reproducibility |
See ${CLAUDE_SKILL_DIR}/references/errors.md for additional error scenarios.
Examples
Scenario 1: ADK Agent with Code Execution -- Create a production ADK agent using google/adk-samples patterns. Enable Code Execution Sandbox with 14-day state TTL, configure Memory Bank for persistent context, apply VPC Service Controls and IAM least-privilege. Deploy to Vertex AI Agent Engine.
Scenario 2: Genkit RAG Flow -- Implement a retrieval-augmented generation system using Firebase Genkit. Define a retriever with text-embedding-gecko embeddings, connect to a vector database, build a RAG flow with Zod-validated input/output schemas. Deploy to Cloud Run with auto-scaling (2-10 instances).
Scenario 3: Gemini Multimodal Analysis -- Analyze video content using the generative-ai repository patterns. Create a multimodal prompt combining video URIs with text questions using Gemini 2.5 Pro. Include safety filter configuration, token counting for cost estimation, and structured output parsing.
See ${CLAUDE_SKILL_DIR}/references/example-interactions.md for detailed interaction examples.
Resources
- google/adk-samples -- ADK agent creation patterns
- GoogleCloudPlatform/agent-starter-pack -- production agent templates
- genkit-ai/genkit -- RAG flows, tool calling, evaluation
- GoogleCloudPlatform/vertex-ai-samples -- model training, tuning, deployment
- GoogleCloudPlatform/generative-ai -- Gemini multimodal, function calling, grounding
- GoogleCloudPlatform/agentsmithy -- multi-agent orchestration
Frequently asked questions about GCP Examples Expert
Similar skills
Rhino 3D Scripting
Streamline your Rhinoceros 3D scripting tasks.
MVVM Toolkit
Streamline ViewModel development with source generators.
FreeCAD Scripts
Generate Python scripts for FreeCAD automation and modeling.
Azure Architecture Builder
Design and deploy Azure infrastructure using natural language.
Command Development
Streamline your command creation for Claude Code.
Create Cowork Plugin
Easily build and package plugins through guided sessions.
