Agent skill
gcp-cloud-functions
Deploy serverless functions on Google Cloud Functions. Configure triggers and manage deployments. Use when implementing serverless workloads on GCP.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gcp-cloud-functions-bagelhole-devops-security-agen
Metadata
Additional technical details for this skill
- author
- devops-skills
- version
- 1.0
SKILL.md
GCP Cloud Functions
Build serverless applications with Cloud Functions.
Deploy Function
# Deploy HTTP function
gcloud functions deploy hello \
--runtime=python311 \
--trigger-http \
--allow-unauthenticated \
--entry-point=hello_http
# Deploy Pub/Sub triggered function
gcloud functions deploy process-message \
--runtime=python311 \
--trigger-topic=my-topic \
--entry-point=process
Function Code
# main.py
def hello_http(request):
return 'Hello, World!'
def process(event, context):
import base64
data = base64.b64decode(event['data']).decode('utf-8')
print(f"Received: {data}")
Best Practices
- Use 2nd gen functions for better performance
- Implement proper error handling
- Use environment variables for configuration
- Monitor with Cloud Logging
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?