home / skills / jeremylongshore / claude-code-plugins-plus-skills / pubsub-topic-setup

This skill helps automate pubsub topic setup in GCP by generating configurations, code, and best practices for production readiness.

npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill pubsub-topic-setup

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.1 KB
---
name: "pubsub-topic-setup"
description: |
  Configure pubsub topic setup operations. Auto-activating skill for GCP Skills.
  Triggers on: pubsub topic setup, pubsub topic setup
  Part of the GCP Skills skill category. Use when working with pubsub topic setup functionality. Trigger with phrases like "pubsub topic setup", "pubsub setup", "pubsub".
allowed-tools: "Read, Write, Edit, Bash(gcloud:*)"
version: 1.0.0
license: MIT
author: "Jeremy Longshore <[email protected]>"
---

# Pubsub Topic Setup

## Overview

This skill provides automated assistance for pubsub topic setup tasks within the GCP Skills domain.

## When to Use

This skill activates automatically when you:
- Mention "pubsub topic setup" in your request
- Ask about pubsub topic setup patterns or best practices
- Need help with google cloud platform skills covering compute, storage, bigquery, vertex ai, and gcp-specific services.

## Instructions

1. Provides step-by-step guidance for pubsub topic setup
2. Follows industry best practices and patterns
3. Generates production-ready code and configurations
4. Validates outputs against common standards

## Examples

**Example: Basic Usage**
Request: "Help me with pubsub topic setup"
Result: Provides step-by-step guidance and generates appropriate configurations


## Prerequisites

- Relevant development environment configured
- Access to necessary tools and services
- Basic understanding of gcp skills concepts


## Output

- Generated configurations and code
- Best practice recommendations
- Validation results


## Error Handling

| Error | Cause | Solution |
|-------|-------|----------|
| Configuration invalid | Missing required fields | Check documentation for required parameters |
| Tool not found | Dependency not installed | Install required tools per prerequisites |
| Permission denied | Insufficient access | Verify credentials and permissions |


## Resources

- Official documentation for related tools
- Best practices guides
- Community examples and tutorials

## Related Skills

Part of the **GCP Skills** skill category.
Tags: gcp, bigquery, vertex-ai, cloud-run, firebase

Overview

This skill automates pubsub topic setup tasks for Google Cloud Platform workflows. It provides step-by-step guidance, generates production-ready configurations, and validates outputs against common standards. Use it to speed installations, reduce configuration errors, and follow GCP best practices.

How this skill works

The skill inspects user intent and environment context to produce topic creation commands, IAM bindings, and subscription examples. It generates code snippets (gcloud, Terraform, or Python client), checks for required fields and common misconfigurations, and returns validation hints. Outputs are tailored to the requested deployment method and can include permission checks and retry policies.

When to use it

  • You need to create or configure Pub/Sub topics and subscriptions in GCP
  • You want production-ready configs in gcloud, Terraform, or client libraries
  • You need IAM role recommendations and least-privilege bindings for topics
  • You want to validate existing topic setup against common standards
  • You are building event-driven pipelines or integrating with BigQuery/Cloud Run

Best practices

  • Define clear naming conventions and include environment labels (dev/stage/prod)
  • Enable message retention and dead-letter topics for reliable processing
  • Apply least-privilege IAM roles to service accounts and avoid broad roles
  • Use managed subscriptions with ack deadlines and exponential backoff
  • Store infrastructure as code (Terraform) and validate changes in CI

Example use cases

  • Create a new topic and push subscription for a Cloud Run service with minimal IAM scope
  • Generate Terraform module code for multiple topics with consistent labels and retention
  • Validate an existing topic for missing dead-letter policy or excessive message retention
  • Produce Python and gcloud snippets to bootstrap a development environment
  • Recommend permissions and apply IAM bindings for a service account that publishes events

FAQ

Which outputs formats can you generate?

I can generate gcloud commands, Terraform snippets, and client library examples for Python. I also provide concise validation notes.

What do you check during validation?

I check required fields, IAM bindings, message retention, dead-letter configuration, subscription ack deadlines, and common misconfiguration patterns.