sickn33/antigravity-awesome-skills/temporal-golang-pro
Claude Code and agent skill by sickn33/antigravity-awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when building durable distributed systems with Temporal Go SDK. Covers deterministic workflow rules, mTLS worker configs, and advanced patterns.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/temporal-golang-proSKILL.md
Temporal Go SDK (temporal-golang-pro)
Overview
Expert-level guide for building resilient, scalable, and deterministic distributed systems using the Temporal Go SDK. This skill transforms vague orchestration requirements into Go implementation sketches requiring project-specific validation, focusing on durable execution, strict determinism, and enterprise-scale worker configuration.
When to Use This Skill
- Designing Distributed Systems: When building microservices that require durable state and reliable orchestration.
- Implementing Complex Workflows: Using the Go SDK to handle long-running processes (days/months) or complex Saga patterns.
- Optimizing Performance: When workers need fine-tuned concurrency, mTLS security, or custom interceptors.
- Ensuring Reliability: Implementing idempotent activities, graceful error handling, and sophisticated retry policies.
- Maintenance & Evolution: Versioning running workflows or performing zero-downtime worker updates.
Do not use this skill when
- Using Temporal with other SDKs (Python, Java, TypeScript) - refer to their specific
-proskills. - The task is a simple request/response without durability or coordination needs.
- High-level design without implementation (use
workflow-orchestration-patterns).
Step-by-Step Guide
- Gather Context: Proactively ask for:
- Target Temporal Cluster (Cloud vs. Self-hosted) and Namespace.
- Task Queue names and expected throughput.
- Security requirements (mTLS paths, authentication).
- Failure modes and desired retry/timeout policies.
- Verify Determinism: Before suggesting workflow code, verify against these 5 Rules:
- No native Go concurrency (goroutines).
- No native time (
time.Now,time.Sleep). - No non-deterministic map iteration (must sort keys).
- No direct external I/O or network calls.
- No non-deterministic random numbers.
- Implement Incrementally: Start with shared Protobuf/Data classes, then Activities, then Workflows, and finally Workers.
- Leverage Resources: If the implementation requires advanced patterns (Sagas, Interceptors, Replay Testing), explicitly refer to the implementation playbook and testing strategies.
Capabilities
Go SDK Implementation
- Worker Management: Deep knowledge of
worker.Options, includingMaxConcurrentActivityTaskPollers,WorkerStopTimeout, andStickyScheduleToStartTimeout. - Interceptors: Implementing Client, Worker, and Workflow interceptors for cross-cutting concerns (logging, tracing, auth).
- Custom Data Converters: Integrating Protobuf, encrypted payloads, or custom JSON marshaling.
Advanced Workflow Patterns
- Durable Concurrency: Using
workflow.Go,workflow.Channel, andworkflow.Selectorinstead of native primitives. - Versioning: Implementing safe code evolution using
workflow.GetVersionandworkflow.GetLogger. - Large-scale Processing: Pattern for
ContinueAsNewto manage history size limits (defaults: 50MB or 50K events). - Child Workflows: Managing lifecycle, cancellation, and parent-child signal propagation.
Testing & Observability
- Testsuite Mastery: Using
WorkflowTestSuitefor unit and functional testing with deterministic time control. - Mocking: Sophisticated activity and child workflow mocking strategies.
- Replay Testing: Validating code changes against production event histories.
- Metrics: Configuring Prometheus/OpenTelemetry exporters for worker performance tracking.
Examples
Example 1: Versioned Workflow (Deterministic)
Example 2: Full mTLS Worker Setup
Example 3: Selector & Signal Integration
Best Practices
- ✅ Do: Always handle errors from
ExecuteActivityandclient.Dial. - ✅ Do: Use
workflow.Goandworkflow.Channelfor concurrency. - ✅ Do: Sort map keys before iteration to maintain determinism.
- ✅ Do: Use
activity.RecordHeartbeatfor activities lasting > 1 minute. - ✅ Do: Test logic compatibility using
replayer.ReplayWorkflowHistoryFromJSON. - ❌ Don't: Swallow errors with
_orlog.Fatalin production workers. - ❌ Don't: Perform direct Network/Disk I/O inside a Workflow function.
- ❌ Don't: Rely on native
time.Now()orrand.Int(). - ❌ Don't: Apply this to simple cron jobs that don't require durability.
Troubleshooting
- Panic: Determinism Mismatch: Usually caused by logic changes without
workflow.GetVersionor non-deterministic code (e.g., native maps). - Error: History Size Exceeded: History limit reached (default 50K events). Ensure
ContinueAsNewis implemented. - Worker Hang: Check
WorkerStopTimeoutand ensure all activities handle context cancellation.
Limitations
- Does not cover Temporal Cloud UI navigation or TLS certificate provisioning workflows.
- Does not cover Temporal Java, Python, or TypeScript SDKs; refer to their dedicated
-proskills. - Assumes Temporal Server v1.20+ and Go SDK v1.25+; older SDK versions may have different APIs.
- Does not cover Nexus or multi-cluster replication; check current support status in the pinned SDK/server documentation.
- Does not address global namespace configuration or multi-region failover setup.
- Does not cover current Worker Deployment/Versioning APIs; choose an upgrade strategy from the pinned version’s documentation.
Resources
- Implementation Playbook - Deep dive into Go SDK patterns.
- Testing Strategies - Unit, Replay, and Integration testing for Go.
- Temporal Go SDK Reference
- Temporal Go Samples
Related Skills
grpc-golang- Internal transport protocol and Protobuf design.golang-pro- General Go performance tuning and advanced syntax.workflow-orchestration-patterns- Language-agnostic orchestration strategy.
Production boundaries
Examples omit imports, activity types and durable storage and are not a compiled application. Register every referenced Activity. The billing loop uses 28/30-day durations, not calendar months; carry an explicit logical charge ID into an atomic provider/database idempotency contract so retries do not double-charge and different periods do not collapse. Sagas require compensation design and cannot promise rollback of arbitrary external effects. Configure HeartbeatTimeout for heartbeat-based detection/cancellation, and distinguish worker-local rates from task-queue-wide rate limits. Cancel unused timers and handle workflow cancellation distinctly from rejection. Pin SDK/server versions and verify APIs, deployment/version retention, reset/replay needs and actual history limits before migration; no-current-running-instance alone is insufficient to discard all replay compatibility. Encrypt/minimize sensitive history payloads and protect exported histories/certificates; never disable TLS verification.
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/temporal-golang-pro/SKILL.md
Popularity
- Repository stars
- 30,113
- Repository forks
- 5,025
- Repository npm downloads, 7 days
- 13,402
- 7-day trend score
- 73
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. 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/sickn33/antigravity-awesome-skills/temporal-golang-pro)