Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

go-workflows

FreeNo executable scriptsNot checked

Build durable Go workflows with psyb0t/go-workflows: connect clients and workers to shared storage, register activities, route queues, use retries, signals…

psyb0tby psyb0t183 installs in other catalogs

About 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

  1. Read the target project's build and dependency conventions. Add a published version of github.com/psyb0t/go-workflows through that project's dependency target. This repository's make pkg-add changes its own dependencies, not a consumer application.
  2. 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.
  3. Define workflow functions with workflow.Context and activities with ordinary Go code. Register every definition before starting workers. Producers and consumers must agree on registered names and serialization.
  4. 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 enable SingleWorkerMode for replicas.
  5. 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).
  6. Submit with client.CreateWorkflowInstance and wait with client.GetWorkflowResult[T] when needed. A client timeout does not cancel the workflow. Use the client cancellation operation explicitly.
  7. 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.

Full SKILL.md on ClawHub

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
Sign up freeI already have an account

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

Compare go-workflows with