go-workflows
FreeNo executable scriptsNot checkedBuild durable Go workflows with psyb0t/go-workflows: connect clients and workers to shared storage, register activities, route queues, use retries, signals…
by psyb0t183 installs in other catalogsAbout this skill
go-workflows
This is an importable Go library, not a separate workflow server. Clients persist requests in a backend; workers connected to that storage claim tasks and record history. A queue is a routing label. The optional diagnostics UI does not coordinate workers.
Security & safety
- Workflow inputs, activity results, signals and errors become stored history. Keep credentials out of them. Activities use application-owned credentials and approved destinations.
- Activities can run more than once after failure or lease expiry. Make external side effects idempotent with a durable operation key.
- Queues and worker names are not authentication or tenant boundaries. Protect database credentials and isolate unrelated applications. Diagnostics has no built-in authentication; protect the whole mount before exposing it.
- Remove histories or change production schema only when requested. Do not use destructive SQL DOWN migrations to roll back an application binary.
When to use
Use for durable background jobs, multi-step orchestration, delayed work, external signals, activity retries or workers sharing SQLite, PostgreSQL, MySQL or Redis storage.
When NOT to use
Do not use it as a hosted API, a drop-in Temporal server, an authorization system or an exactly-once side-effect guarantee. A short request that needs no persisted progress may need only ordinary Go code.
Integrate
- Read the target project's build and dependency conventions. Add a published version of
github.com/psyb0t/go-workflowsthrough that project's dependency target. This repository'smake pkg-addchanges its own dependencies, not a consumer application. - Select persistent storage. Use file-backed SQLite on one host; use a network backend for replicas. In-memory SQLite is for disposable examples. Read references/usage.md for constructors, ownership and examples.
- Define workflow functions with
workflow.Contextand activities with ordinary Go code. Register every definition before starting workers. Producers and consumers must agree on registered names and serialization. - Connect client and worker to the same backend namespace and queues.
worker.Start(ctx)already starts background polling. Give simultaneous replicas distinct worker names; do not enableSingleWorkerModefor replicas. - Keep workflow execution deterministic. Use workflow timers, channels and concurrency instead of native time, goroutines or I/O. External work belongs in activities. Use replay-aware
workflow.Logger(ctx). - Submit with
client.CreateWorkflowInstanceand wait withclient.GetWorkflowResult[T]when needed. A client timeout does not cancel the workflow. Use the client cancellation operation explicitly. - On shutdown, cancel the worker context, call
WaitForCompletion, then close storage owned by the application. Caller-owned pools stay open until their owner closes them.
Choose features
Read references/usage.md for queue routing, activity retries, subworkflows, signals, durable timers, cancellation, continued executions, diagnostics and testing. It links the maintained feature examples and public documentation.
Verify
Run the consumer's tests through its existing build system. Check one completed result and its persisted history, intended queue routing, error handling and shutdown. For durable work, also test restart recovery and duplicate activity delivery.
When changing this repository, use make format lint build, make test-coverage, make sec and make generate. Tests use -race; the coverage floor is 90%. See the repository's local AGENTS.md for development rules. Report observed results and any checks that could not run.
Install go-workflows in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the go-workflows skill do?
Build durable Go workflows with psyb0t/go-workflows: connect clients and workers to shared storage, register activities, route queues, use retries, signals and timers, and test recovery. Use when integrating or maintaining this library.
How do I install the go-workflows skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the go-workflows skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic