Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Gcp Pubsub

ASecurity

Expert coverage of Google Cloud Pub/Sub managed messaging service: topics, subscriptions (pull, push, BigQuery, Cloud Storage), ordering keys, exactly-once delivery, dead-letter topics, schemas, snapshots, seek, and monitoring. Use for \"GCP Pub/Sub\", \"Google Pub/Sub\", \"Cloud Pub/Sub\", \"Pub/Sub topic\", \"Pub/Sub subscription\", \"pull subscription\", \"push subscription\", \"BigQuery subscription\", \"Cloud Storage subscription\", \"ordering key\", \"exactly-once Pub/Sub\", \"dead lett...

4 stars
0 votes
0 copies
1 views
Added 9/24/2026
devopsgogcpterraformapi

Works with

cliapi

Security Analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned 9/24/2026

$npx -y skills add chrishuffman5/domain-expert --skill gcp-pubsub --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gcp Pubsub?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Gcp Pubsub
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chrishuffman5-gcp-pubsub/badge)](https://www.skillsdirectory.com/skills/chrishuffman5-gcp-pubsub)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: gcp-pubsub
description: "Expert coverage of Google Cloud Pub/Sub managed messaging service: topics, subscriptions (pull, push, BigQuery, Cloud Storage), ordering keys, exactly-once delivery, dead-letter topics, schemas, snapshots, seek, and monitoring. Use for \"GCP Pub/Sub\", \"Google Pub/Sub\", \"Cloud Pub/Sub\", \"Pub/Sub topic\", \"Pub/Sub subscription\", \"pull subscription\", \"push subscription\", \"BigQuery subscription\", \"Cloud Storage subscription\", \"ordering key\", \"exactly-once Pub/Sub\", \"dead letter topic\", \"DLT\", \"Pub/Sub schema\", \"Pub/Sub snapshot\", \"seek\", \"gcloud pubsub\", \"message filter Pub/Sub\", \"ack deadline\", \"Pub/Sub flow control\", \"streaming pull\". Do NOT use for general GCP architecture or non-messaging resource provisioning -- that's the `cloud-platforms` plugin."
license: MIT
---

# GCP Pub/Sub

This skill covers Google Cloud Pub/Sub, a fully managed serverless messaging service, including:

- Topics (message ordering, schema validation, retention, CMEK encryption)
- Subscription types: Pull (streaming pull), Push (HTTPS webhooks), BigQuery export, Cloud Storage export
- Message ordering (ordering keys, per-key throughput, hot key mitigation)
- Exactly-once delivery (pull subscriptions only, regional requirements)
- Dead-letter topics (DLT with max delivery attempts, IAM requirements)
- Message filtering (attribute-based immutable filters)
- Schema validation (Avro, Protocol Buffers, evolution, revisions)
- Snapshots and seek (point-in-time replay, backlog purge)
- Flow control (subscriber and publisher side)
- Monitoring (Cloud Monitoring metrics, delivery latency health score)
- IAM, VPC Service Controls, CMEK

## How to Approach Tasks

1. **Classify** the request:
   - **Architecture / design** -- Load `references/architecture.md` for topics, subscription types, ordering, exactly-once, DLT, schemas
   - **Best practices** -- Load `references/best-practices.md` for subscription selection, ordering key design, ack deadline tuning, flow control, cost optimization
   - **Troubleshooting** -- Load `references/diagnostics.md` for unacked buildup, delivery latency, DLT analysis, push endpoint errors

2. **Recommend** -- Provide actionable guidance with `gcloud pubsub` commands, Terraform examples, and SDK patterns.

## Core Architecture

### Per-Message Leasing (Not Partitioned)
Each message is individually leased to a subscriber. No partition management. Any subscriber can receive any message. Serverless auto-scaling.

### Topics
Named resource for publishing. Optional: message retention (10 min to 31 days), ordering (immutable at creation), schema validation, CMEK.

### Subscription Types
- **Pull:** Client requests messages. Best for high throughput, exactly-once. Streaming pull for lowest latency.
- **Push:** Pub/Sub sends HTTP POST to HTTPS endpoint. Best for Cloud Run, Cloud Functions.
- **BigQuery:** Direct export via Storage Write API. Schema mapping.
- **Cloud Storage:** Batch messages into files (text or Avro).

### Dead-Letter Topics
Messages forwarded after 5-100 delivery attempts. Requires IAM permissions for Pub/Sub service account.

## Anti-Patterns

| Anti-Pattern | Why It Fails | Instead |
|---|---|---|
| Ordering with low-cardinality keys | Hot keys block progress; 1 MBps per key limit | Use high-cardinality keys (per entity) |
| Acking before processing complete | Recovery requires seek; messages lost | Ack only after successful processing |
| Push to unreliable endpoint | 5xx triggers exponential backoff; delivery stalls | Use pull for unreliable consumers; fix endpoint |
| Large message retention without monitoring | Storage costs accumulate silently | Set appropriate retention; monitor orphaned subs |
| Ignoring ack deadline expiration | Messages redelivered; duplicate processing | Match ack deadline to P99 processing time |

## Reference Files

- `references/architecture.md` -- Topics, subscription types (pull/push/BigQuery/Cloud Storage), ordering keys, exactly-once, DLT, schemas, snapshots/seek, flow control
- `references/best-practices.md` -- Subscription selection, ordering key design, ack deadline tuning, flow control, retry policies, schema evolution, cost optimization
- `references/diagnostics.md` -- Unacked message buildup, delivery latency health score, DLT analysis, push endpoint errors, Cloud Monitoring metrics, alerting setup

## Cross-References

- The `overview` skill -- cross-broker comparisons and event-driven architecture design

Attribution

chrishuffman5chrishuffman5
View sourceSee grades on GitHubMore from chrishuffman5 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Terraform Module Library

Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

401991 votes

sematext-otel

Wire a service's OpenTelemetry output to Sematext Cloud. Walks through region, App-type, instrumentation flow (managed OTLP endpoint vs Sematext Agent), and signal selection (traces/metrics/logs), then produces the exact env-var block and points at a runnable reference example in this repo. Invoke when instrumenting a new app for Sematext.

01 votes

Deployment Patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

2699140 votes

Babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

971540 votes

V7 Roster

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953190 votes
View all in devops →