dbos-inc/agent-skills/dbos-python
Claude Code and agent skill by dbos-inc/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
DBOS Python SDK (3.x) for building reliable, fault-tolerant applications with durable workflows. Use this skill when writing Python code with DBOS, creating workflows and steps, using queues, datasource transactions, or schedules, using DBOSClient from external applications, upgrading DBOS Python 2.x code to 3.x, or building applications that need to be resilient to failures.
Install
npx vskill@latest install dbos-inc/agent-skills/dbos-pythonSKILL.md
DBOS Python Best Practices
Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows. Targets DBOS Python 3.x.
When to Apply
Reference these guidelines when:
- Adding DBOS to existing Python code
- Creating workflows and steps
- Using queues for concurrency control
- Implementing workflow communication (events, messages, streams)
- Configuring and launching DBOS applications
- Using DBOSClient from external applications
- Testing DBOS applications
- Upgrading DBOS Python 2.x code to 3.x
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
DBOS Configuration and Launch
A DBOS application MUST configure and launch DBOS inside its main function:
When creating a new application, set application_version to "0.1.0". If omitted, DBOS derives an opaque hash from workflow source code. When editing an existing application, leave its configured version alone — changing it is a deployment decision (see references/advanced-versioning.md).
Workflow and Step Structure
Workflows are comprised of steps. Any function performing complex operations or accessing external services must be a step:
Key Constraints
- Do NOT call
DBOS.start_workfloworDBOS.recvfrom a step - Do NOT use threads to start workflows - use
DBOS.start_workflowor queues - Workflows MUST be deterministic - non-deterministic operations go in steps
- Do NOT create/update global variables from workflows or steps
- In
async defcode, use the_asyncvariants of DBOS methods (await DBOS.start_workflow_async(...),send_async,recv_async,sleep_async,register_queue_async, ...): many synchronous DBOS methods (such asDBOS.sleep,DBOS.recv,DBOS.send,DBOS.set_event,DBOS.get_event, andDBOS.register_queue) raiseRuntimeErrorwhen called while an event loop is running - Register queues and create schedules AFTER
DBOS.launch(); create datasources BEFORE it - Connecting to DBOS Conductor (
conductor_key, or deploying to DBOS Cloud), and auto-upgrade (auto_upgrade) requirepip install "dbos[enterprise]"; auto-upgrade also needs an entitled key (conductor_key, ortransact_enterprise_keyin development). Seereferences/lifecycle-config.md - Do NOT set
enable_patching(deprecated in 3.4):DBOS.patchandDBOS.deprecate_patchwork without it. To let patched code recover older workflows, pinapplication_versionor use auto-upgrade (seereferences/advanced-patching.md)
Removed in DBOS 3.0 (never generate these)
@DBOS.transaction / DBOS.sql_session / application_database_url (use datasources), Queue(...) (use DBOS.register_queue), partition_queue / priority_enabled, @DBOS.scheduled (use DBOS.apply_schedules), and DBOS(fastapi=...) / DBOS(flask=...). To migrate existing 2.x code, see references/advanced-upgrading-v3.md.
How to Use
Read individual rule files for detailed explanations and examples:
If multiple applications share one system database, see references/advanced-shared-database.md.
References
- https://docs.dbos.dev/
- https://github.com/dbos-inc/dbos-transact-py
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dbos-python/SKILL.md
Popularity
- Repository stars
- 19
- Repository forks
- 7
- Repository npm downloads, 7 days
- 9,246
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 21 Mar 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/dbos-inc/agent-skills/dbos-python)