# GCP Cloud Functions

> gcp cloud functions — production-ready gcp configuration and management for cloud infrastructure.

- Skill: `usmanskillsmd/gcp-cloud-functions` (Agent Skill)
- Install (CLI): `npx skillmds@latest add usmanskillsmd/gcp-cloud-functions`
- Raw SKILL.md: https://api.skillmd.com/api/skills/usmanskillsmd/gcp-cloud-functions/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: usmanskillsmd (https://skillmd.com/u/usmanskillsmd)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/usmanskillsmd/gcp-cloud-functions

---


# gcp-cloud-functions

gcp cloud functions — production-ready gcp configuration and management for cloud infrastructure.

Gcp Cloud Functions

Deploy and manage gcp infrastructure with battle-tested patterns and automation.

Overview

This skill provides comprehensive guidance for gcp cloud functions in production environments. It covers initial setup, configuration management, scaling strategies, and operational best practices that teams use to run reliable infrastructure.

The skill handles the full lifecycle — from bootstrapping a new gcp configuration to debugging production issues, managing upgrades, and implementing security hardening. It produces infrastructure-as-code that is reviewable, testable, and version-controlled.

Built on real-world patterns from organizations running gcp at scale, this skill emphasizes repeatability, observability, and cost-efficiency while avoiding common footguns that lead to outages or security incidents.

When to Use

Activate this skill when the user needs to:

Set up gcp for a new project or environment

Migrate existing infrastructure to gcp-managed configuration

Debug and troubleshoot gcp deployment issues

Implement security hardening for gcp resources

Optimize cloud costs through gcp configuration

Create CI/CD pipelines that include gcp operations

Core Capabilities

Initial Setup & Configuration

Generates complete gcp configuration files with sensible defaults, proper directory structure, and environment-specific overrides. Includes documentation comments explaining each configuration choice.

Security Hardening

Applies least-privilege principles, encrypts sensitive data, implements network policies, and follows CIS benchmarks for gcp deployments. Generates audit-ready configurations.

Scaling & Performance

Configures auto-scaling policies, resource limits, health checks, and load balancing. Monitors resource utilization and recommends right-sizing based on actual usage patterns.

Disaster Recovery

Implements backup strategies, failover configurations, and recovery procedures. Tests disaster scenarios and documents runbooks for operational teams.

Example Prompts

Users might ask:

"Set up gcp for our cloud production environment"

"Create a gcp module for the database cluster"

"Debug why the gcp deployment is failing on the staging environment"

"Add monitoring and alerting to our gcp infrastructure"

"Optimize the gcp configuration to reduce our monthly cloud bill"

Configuration

ParameterDefaultDescription

environmentproductionTarget deployment environment

regionus-east-1Primary cloud region

dryRunfalsePreview changes without applying

backupEnabledtrueEnable automated backups

Best Practices

Use version control for all infrastructure code — Every configuration change should go through code review, just like application code

Implement state locking — Prevent concurrent modifications that can corrupt infrastructure state

Use modules for reusability — Extract common patterns into reusable modules with well-defined interfaces

Tag all resources — Apply consistent tags for cost allocation, ownership, and environment identification

Test infrastructure changes — Use plan/preview commands before applying, and run automated validation tests

Document operational procedures — Maintain runbooks for common operations like scaling, failover, and rollback

Common Pitfalls

⚠️ Hardcoding secrets in configuration files — use secret managers or environment variables

⚠️ Not using state locking — concurrent applies can corrupt infrastructure state

⚠️ Skipping the plan/preview step — always review what will change before applying

⚠️ Over-provisioning resources — start small and scale based on actual metrics

⚠️ Not testing disaster recovery — untested backups are not backups

Output Format

Generates complete gcp configuration files, module structures, variable definitions, and CI/CD pipeline configurations. Includes inline documentation and operational runbooks.
