🛠️ Dbos Python
DBOSの耐久性のあるワークフローを活用し、
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows. Use when adding DBOS to existing Python code, creating workflows and steps, or using queues for concurrency control.
🇯🇵 日本人クリエイター向け解説
DBOSの耐久性のあるワークフローを活用し、
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o dbos-python.zip https://jpskill.com/download/2741.zip && unzip -o dbos-python.zip && rm dbos-python.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/2741.zip -OutFile "$d\dbos-python.zip"; Expand-Archive "$d\dbos-python.zip" -DestinationPath $d -Force; ri "$d\dbos-python.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
dbos-python.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
dbos-pythonフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 34
💬 こう話しかけるだけ — サンプルプロンプト
- › Dbos Python を使って、最小構成のサンプルコードを示して
- › Dbos Python の主な使い方と注意点を教えて
- › Dbos Python を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
DBOS Python Best Practices
Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows.
When to Use
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
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:
import os
from dbos import DBOS, DBOSConfig
@DBOS.workflow()
def my_workflow():
pass
if __name__ == "__main__":
config: DBOSConfig = {
"name": "my-app",
"system_database_url": os.environ.get("DBOS_SYSTEM_DATABASE_URL"),
}
DBOS(config=config)
DBOS.launch()
Workflow and Step Structure
Workflows are comprised of steps. Any function performing complex operations or accessing external services must be a step:
@DBOS.step()
def call_external_api():
return requests.get("https://api.example.com").json()
@DBOS.workflow()
def my_workflow():
result = call_external_api()
return result
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
How to Use
Read individual rule files for detailed explanations and examples:
references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md
References
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,941 bytes)
- 📎 references/_sections.md (1,415 bytes)
- 📎 references/advanced-async.md (2,604 bytes)
- 📎 references/advanced-patching.md (1,551 bytes)
- 📎 references/advanced-versioning.md (1,628 bytes)
- 📎 references/client-enqueue.md (1,384 bytes)
- 📎 references/client-setup.md (1,668 bytes)
- 📎 references/comm-events.md (1,551 bytes)
- 📎 references/comm-messages.md (1,563 bytes)
- 📎 references/comm-streaming.md (1,570 bytes)
- 📎 references/lifecycle-config.md (1,572 bytes)
- 📎 references/lifecycle-fastapi.md (1,487 bytes)
- 📎 references/pattern-classes.md (1,651 bytes)
- 📎 references/pattern-debouncing.md (1,659 bytes)
- 📎 references/pattern-idempotency.md (1,512 bytes)
- 📎 references/pattern-scheduled.md (1,492 bytes)
- 📎 references/pattern-sleep.md (1,378 bytes)
- 📎 references/queue-basics.md (1,370 bytes)
- 📎 references/queue-concurrency.md (1,378 bytes)
- 📎 references/queue-deduplication.md (1,591 bytes)
- 📎 references/queue-listening.md (1,607 bytes)
- 📎 references/queue-partitioning.md (1,800 bytes)
- 📎 references/queue-priority.md (1,509 bytes)
- 📎 references/queue-rate-limiting.md (1,358 bytes)
- 📎 references/step-basics.md (1,328 bytes)
- 📎 references/step-retries.md (1,412 bytes)
- 📎 references/step-transactions.md (1,741 bytes)
- 📎 references/test-fixtures.md (1,387 bytes)
- 📎 references/workflow-background.md (1,310 bytes)
- 📎 references/workflow-constraints.md (1,676 bytes)
- 📎 references/workflow-control.md (2,066 bytes)
- 📎 references/workflow-determinism.md (1,309 bytes)
- 📎 references/workflow-introspection.md (1,832 bytes)
- 📎 references/workflow-timeout.md (1,435 bytes)