dawiddutoit/custom-claude/gcp-pubsub
Claude Code and agent skill by dawiddutoit/custom-claude
- community
Checking that the SKILL.md file is still in the repository.
Implements Google Cloud Pub/Sub integration in Python by configuring topics, subscriptions, publishing/subscribing, dead letter queues, and local emulator setup. Use when building event-driven architectures, implementing message queuing, or managing high-throughput systems. Triggers on "setup Pub/Sub", "publish messages", "create subscription", "configure DLQ", or "test with emulator". Works with google-cloud-pubsub library and includes reliability, idempotency, and testing patterns.
Install
npx vskill@latest install dawiddutoit/custom-claude/gcp-pubsubSKILL.md
Google Cloud Pub/Sub
Table of Contents
Purpose
Build robust, production-ready event-driven systems using Google Cloud Pub/Sub with Python. Covers setup, publishing, subscribing, error handling, dead letter queues, and local development with the emulator.
When to Use
Use this skill when you need to:
- Build event-driven architectures with message-based communication
- Implement reliable message queuing between services
- Handle at-least-once message delivery guarantees
- Manage high-throughput message systems (1000+ msgs/sec)
- Configure local development with Pub/Sub emulator
- Implement dead letter queues for failed message handling
Quick Start
Install and authenticate:
Publish a message:
Subscribe to messages:
Instructions
Step 1: Set Up Development Environment
Install dependencies and configure authentication:
For production, use service account:
Step 2: Create Topics and Subscriptions
See references/detailed-guide.md for advanced configuration options.
Step 3: Publish Messages
Simple publishing:
Publish with attributes:
See references/detailed-guide.md for production-ready publisher with batching and error handling.
Step 4: Subscribe to Messages
Basic subscriber:
With flow control:
See references/detailed-guide.md for production subscriber with monitoring.
Step 5: Configure Dead Letter Queue
See references/detailed-guide.md for complete DLQ setup with monitoring.
Step 6: Implement Idempotency
Track processed messages to avoid duplicate processing:
See references/detailed-guide.md for production-ready idempotency patterns.
Step 7: Local Development with Emulator
See references/detailed-guide.md for emulator configuration patterns.
Step 8: Monitor Operations
Enable logging and track metrics:
See references/detailed-guide.md for comprehensive monitoring patterns.
Requirements
- Python: 3.7+
- Dependencies:
``bash pip install google-cloud-pubsub>=2.18.0 ``
- GCP Project: Active project with Pub/Sub API enabled
- Authentication: Application Default Credentials or service account key
- IAM Permissions:
roles/pubsub.publisher- Publish messagesroles/pubsub.subscriber- Subscribe to messagesroles/pubsub.admin- Create/delete topics and subscriptions- For Local Development:
``bash gcloud components install pubsub-emulator ``
See Also
- references/detailed-guide.md - Comprehensive implementation guide with production patterns
- examples/examples.md - Working code examples including async patterns and testing
- scripts/setup_emulator.sh - Emulator setup utility
- scripts/pubsub_utils.py - Helper utilities for common operations
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gcp-pubsub/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawiddutoit/custom-claude/gcp-pubsub)