Help us improve
Share bugs, ideas, or general feedback.
From golang-boost
Constructs portable pub/sub topics and subscriptions via gocloud.dev/pubsub, enabling provider swapping (GCP, Kafka, AWS SNS, in-memory) through URL config without code changes.
npx claudepluginhub xgodev/boost --plugin golang-boostHow this skill is triggered — by the user, by Claude, or both
Slash command
/golang-boost:boost-factory-gocloud-pubsubThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**REQUIRED BACKGROUND:** `boost-start`, `boost-wrapper-config`.
Constructs a Google Cloud Pub/Sub client using the boost factory wrapper, covering NewClient, lifecycle (defer Close), and sharing the client between publisher and subscriber adapters.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Share bugs, ideas, or general feedback.
REQUIRED BACKGROUND: boost-start, boost-wrapper-config.
factory/contrib/gocloud.dev/pubsub/v0/examples/pubsub/main.goimport gcppubsub "github.com/xgodev/boost/factory/contrib/gocloud.dev/pubsub/v0"
topic, err := gcppubsub.NewTopic(ctx)
if err != nil { log.Fatalf("topic: %v", err) }
defer topic.Shutdown(ctx)
sub, err := gcppubsub.NewSubscription(ctx)
defer sub.Shutdown(ctx)
Configure topic/subscription URLs (gcppubsub://..., kafka://..., awssns:///..., mempubsub://...) under boost.factory.gocloud.pubsub.* (override BOOST_FACTORY_GOCLOUD_PUBSUB_*).
| Reach for gocloud.dev | Reach for native (boost-factory-pubsub, boost-factory-kafka, ...) |
|---|---|
| Want to swap providers via URL config without code change | Committed to one provider; want full feature surface |
Tests use mempubsub:// for in-process fakes | Production-only path; tests run against real broker |
The native factories expose more provider-specific knobs. gocloud.dev exposes the lowest-common-denominator API.
| Red flag | Fix |
|---|---|
pubsub.OpenTopic(ctx, url) directly | gcppubsub.NewTopic(ctx) |
URL via os.Getenv | BOOST_FACTORY_GOCLOUD_PUBSUB_* |
Forgetting defer topic.Shutdown(ctx) | Add it |