🛠️ Dbos Typescript
既存のTypeScriptアプリケーションにDBOSを組み
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Guide for building reliable, fault-tolerant TypeScript applications with DBOS durable workflows. Use when adding DBOS to existing TypeScript code, creating workflows and steps, or using queues for concurrency control.
🇯🇵 日本人クリエイター向け解説
既存のTypeScriptアプリケーションにDBOSを組み
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o dbos-typescript.zip https://jpskill.com/download/2742.zip && unzip -o dbos-typescript.zip && rm dbos-typescript.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/2742.zip -OutFile "$d\dbos-typescript.zip"; Expand-Archive "$d\dbos-typescript.zip" -DestinationPath $d -Force; ri "$d\dbos-typescript.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
dbos-typescript.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
dbos-typescriptフォルダができる - 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
- 同梱ファイル
- 33
💬 こう話しかけるだけ — サンプルプロンプト
- › Dbos Typescript を使って、最小構成のサンプルコードを示して
- › Dbos Typescript の主な使い方と注意点を教えて
- › Dbos Typescript を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
DBOS TypeScript Best Practices
Guide for building reliable, fault-tolerant TypeScript applications with DBOS durable workflows.
When to Use
Reference these guidelines when:
- Adding DBOS to existing TypeScript 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
Installation
Always install the latest version of DBOS:
npm install @dbos-inc/dbos-sdk@latest
DBOS Configuration and Launch
A DBOS application MUST configure and launch DBOS before running any workflows:
import { DBOS } from "@dbos-inc/dbos-sdk";
async function main() {
DBOS.setConfig({
name: "my-app",
systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL,
});
await DBOS.launch();
await myWorkflow();
}
main().catch(console.log);
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.runStep:
import { DBOS } from "@dbos-inc/dbos-sdk";
async function fetchData() {
return await fetch("https://api.example.com").then(r => r.json());
}
async function myWorkflowFn() {
const result = await DBOS.runStep(fetchData, { name: "fetchData" });
return result;
}
const myWorkflow = DBOS.registerWorkflow(myWorkflowFn);
Key Constraints
- Do NOT call, start, or enqueue workflows from within steps
- Do NOT use threads or uncontrolled concurrency to start workflows - use
DBOS.startWorkflowor queues - Workflows MUST be deterministic - non-deterministic operations go in steps
- Do NOT modify 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 (3,230 bytes)
- 📎 references/_sections.md (1,444 bytes)
- 📎 references/advanced-patching.md (2,054 bytes)
- 📎 references/advanced-versioning.md (1,779 bytes)
- 📎 references/client-enqueue.md (2,125 bytes)
- 📎 references/client-setup.md (1,867 bytes)
- 📎 references/comm-events.md (2,113 bytes)
- 📎 references/comm-messages.md (1,956 bytes)
- 📎 references/comm-streaming.md (1,942 bytes)
- 📎 references/lifecycle-config.md (1,189 bytes)
- 📎 references/lifecycle-express.md (1,490 bytes)
- 📎 references/pattern-classes.md (2,041 bytes)
- 📎 references/pattern-debouncing.md (1,929 bytes)
- 📎 references/pattern-idempotency.md (1,915 bytes)
- 📎 references/pattern-scheduled.md (2,283 bytes)
- 📎 references/pattern-sleep.md (1,655 bytes)
- 📎 references/queue-basics.md (1,620 bytes)
- 📎 references/queue-concurrency.md (1,728 bytes)
- 📎 references/queue-deduplication.md (1,621 bytes)
- 📎 references/queue-listening.md (1,786 bytes)
- 📎 references/queue-partitioning.md (1,916 bytes)
- 📎 references/queue-priority.md (1,376 bytes)
- 📎 references/queue-rate-limiting.md (1,186 bytes)
- 📎 references/step-basics.md (1,938 bytes)
- 📎 references/step-retries.md (1,958 bytes)
- 📎 references/step-transactions.md (2,207 bytes)
- 📎 references/test-setup.md (3,023 bytes)
- 📎 references/workflow-background.md (1,460 bytes)
- 📎 references/workflow-constraints.md (1,955 bytes)
- 📎 references/workflow-control.md (2,039 bytes)
- 📎 references/workflow-determinism.md (1,664 bytes)
- 📎 references/workflow-introspection.md (1,827 bytes)
- 📎 references/workflow-timeout.md (1,358 bytes)