dbos-rust

dbos-rust is a skill for Claude Code, Codex from dbos-inc/agent-skills. It costs 68 tokens per session (1,769 once invoked), scanned A, original, MIT.

A guide to using the DBOS Rust software library for applications that need workflows to survive failures. Rust is a programming language; DBOS provides durable workflows, steps, queues, and communication tools.

In plain words
What is it for?
Use it when writing Rust applications with DBOS, including workflows, queued work, communication between workflow parts, external clients, configuration, and tests.
Why use it?
It helps developers apply the library's lifecycle and workflow rules consistently instead of building unreliable recovery behavior by trial and error.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing Rust applications with DBOS, including workflows, queued work, communication between workflow parts, external clients, configuration, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dbos-inc/agent-skills/dbos-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dbos-inc/agent-skills --skill dbos-rust
Clone the repo
git clone --depth 1 https://github.com/dbos-inc/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dbos-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/dbos-inc/agent-skills/dbos-rust/github.svg)](https://agentmods.dev/skills/dbos-inc/agent-skills/dbos-rust)
Your own site
<a href="https://agentmods.dev/skills/dbos-inc/agent-skills/dbos-rust"><img src="https://agentmods.dev/badge/skills/dbos-inc/agent-skills/dbos-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dbos-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/dbos-inc/agent-skills/dbos-rust"><img src="https://agentmods.dev/badge/skills/dbos-inc/agent-skills/dbos-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,769 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01769
Opus 5.5 $0.00027 $0.00708
Sonnet 5.5 $0.00014 $0.00354
Haiku 4.5 $0.00007 $0.00177

Measured 4d ago against content hash 9c3bbd937a33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dbos-rust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dbos-rust/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DBOS Rust Best Practices

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

When to Apply

Reference these guidelines when:

  • Adding DBOS to existing Rust code
  • Creating workflows and steps
  • Running DBOS calls concurrently inside a workflow
  • 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

Add the dbos crate (0.6) and Tokio:

cargo add dbos
cargo add tokio --features full
cargo add serde --features derive
cargo add thiserror tracing-subscriber futures
cargo add --dev uuid --features v4

serde is for workflow inputs and outputs, thiserror for workflow error types, tracing-subscriber to see DBOS's logs, futures for joining DBOS calls (try_join_all), and uuid for fresh workflow IDs in tests.

DBOS runs on Tokio by default; smol and async-global-executor are Cargo features (see references/lifecycle-runtimes.md). DBOS for Rust does not support DBOS Conductor or DBOS Cloud.

DBOS Configuration and Launch

A DBOS application MUST create a DBOS instance, register every workflow, and launch before running any workflows:

use dbos::{Config, DBOS};

async fn my_workflow(_: ()) -> dbos::Result<String> {
    Ok("done".to_owned())
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    tracing_subscriber::fmt::init();

    // Reads the system database URL from DBOS_SYSTEM_DATABASE_URL.
    let mut config = Config::from_env("my-app");
    config.app_version = Some("0.1.0".to_owned());
    let dbos = DBOS::new(config);

    // Register every workflow before launch.
    let workflow = dbos.register_workflow("my_workflow", my_workflow)?;
    dbos.launch().await?;

    let result = workflow.run(()).await?;
    println!("{result}");

    dbos.shutdown().await;
    Ok(())
}

Read the full file on GitHub · 149 lines

Files

What ships with it

42 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 149 lines · 68 tokens per session scan A 9c3bbd937a33

Subscribe to this mod's changes

dbos-rust is a skill published in the GitHub repository dbos-inc/agent-skills (20 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 1,769 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-10.

Related

dbos-rust compared with skills from other repositories

dbos-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dbos-rustdbos-inc/agent-skillsSkill202d agoMITA68Claude Code, Codex
rust-engineerJeffallan/claude-skillsSkill12k3d agoMITA120Claude Code
azure-eventhub-rustmicrosoft/skillsSkill3.2kyesterdayMITA58Claude Code
azure-eventhub-rustbenjaminasterA/antigravity-awesome-skillsSkill481yesterdayMITA0Claude Code, Codex
rust-gatewayBerriAI/litellmSkill63ktodaynoneA70Claude Code, Codex
axumTerminalSkills/skillsSkill2026d agoApache-2.0A94Claude Code, Codex
rust-systemsWrongStack/WrongStackSkill409yesterdayMITA93Claude Code