D
dbos
@mayurrathi
⭐ 40.7k GitHub stars

Dbos Golang

Dbos Golang is an writing AI skill with a core value of DBOS Go SDK for building reliable, fault-tolerant applications with durable workflows. It helps developers solve real-world problems in the writing domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

DBOS Go SDK for building reliable, fault-tolerant applications with durable workflows. Use this skill when writing Go code with DBOS, creating workflows and steps, using queues, using the DBOS Clie...

Last verified on: 2026-07-08

Quick Facts

Category writing
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-08
Risk Level Low
mkdir -p ./skills/dbos-golang && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/dbos-golang/SKILL.md -o ./skills/dbos-golang/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# DBOS Go Best Practices


Guide for building reliable, fault-tolerant Go applications with DBOS durable workflows.


When to Use


Reference these guidelines when:

- Adding DBOS to existing Go code

- Creating workflows and steps

- Using queues for concurrency control

- Implementing workflow communication (events, messages, streams)

- Configuring and launching DBOS applications

- Using the DBOS Client from external applications

- Testing DBOS applications


Rule Categories by Priority


| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Lifecycle | CRITICAL | `lifecycle-` |

| 2 | Workflow | CRITICAL | `workflow-` |

| 3 | Step | HIGH | `step-` |

| 4 | Queue | HIGH | `queue-` |

| 5 | Communication | MEDIUM | `comm-` |

| 6 | Pattern | MEDIUM | `pattern-` |

| 7 | Testing | LOW-MEDIUM | `test-` |

| 8 | Client | MEDIUM | `client-` |

| 9 | Advanced | LOW | `advanced-` |


Critical Rules


Installation


Install the DBOS Go module:


bash
go get github.com/dbos-inc/dbos-transact-golang/dbos@latest

DBOS Configuration and Launch


A DBOS application MUST create a context, register workflows, and launch before running any workflows:


go
package main

import (
	"context"
	"log"
	"os"
	"time"

	"github.com/dbos-inc/dbos-transact-golang/dbos"
)

func main() {
	ctx, err := dbos.NewDBOSContext(context.Background(), dbos.Config{
		AppName:     "my-app",
		DatabaseURL: os.Getenv("DBOS_SYSTEM_DATABASE_URL"),
	})
	if err != nil {
		log.Fatal(err)
	}
	defer dbos.Shutdown(ctx, 30*time.Second)

	dbos.RegisterWorkflow(ctx, myWorkflow)

	if err := dbos.Launch(ctx); err != nil {
		log.Fatal(err)
	}
}

Workflow and Step Structure


Workflows are comprised of steps. Any function performing complex operations or accessing external services must be run as a step using `dbos.RunAsStep`:


go
func fetchData(ctx context.Context) (string, error) {
	resp, err := http.Get("https://api.example.com/data")
	if err != nil {
		return "", err
	}
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	return string(body), nil
}

func myWorkflow(ctx dbos.DBOSContext, input string) (string, error) {
	result, err := dbos.RunAsStep(ctx, fetchData, dbos.WithStepName("fetchData"))
	if err != nil {
		return "", err
	}
	return result, nil
}

Key Constraints


- Do NOT start or enqueue workflows from within steps

- Do NOT use uncontrolled goroutines to start workflows - use `dbos.RunWorkflow` with queues or `dbos.Go`/`dbos.Select` for concurrent steps

- Workflows MUST be deterministic - non-deterministic operations go in steps

- Do NOT modify global variables from workflows or steps

- All workflows and queues MUST be registered before calling `Launch()`


How to Use


Read individual rule files for detailed explanations and examples:


text
references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md

References


- https://docs.dbos.dev/

- https://github.com/dbos-inc/dbos-transact-golang

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Content creators
  • Writers

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Content creation
  • Style guide enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Dbos Golang to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Can Dbos Golang maintain my brand voice?

Yes — provide style guides or example content in your prompt for consistent brand-aligned output.

How do I install Dbos Golang?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/dbos-golang/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Publishing unedited drafts

AI writing needs human editing for facts, flow, and authentic voice.

🔗 Related Skills