dbos-typescript by dbos-inc/agent-skills
npx skills add https://github.com/dbos-inc/agent-skills --skill dbos-typescript使用 DBOS 持久化工作流构建可靠、容错的 TypeScript 应用程序指南。
在以下情况时参考本指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 生命周期 | 关键 | lifecycle- |
| 2 | 工作流 | 关键 | workflow- |
| 3 | 步骤 | 高 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
step- |
| 4 | 队列 | 高 | queue- |
| 5 | 通信 | 中 | comm- |
| 6 | 模式 | 中 | pattern- |
| 7 | 测试 | 中低 | test- |
| 8 | 客户端 | 中 | client- |
| 9 | 高级 | 低 | advanced- |
始终安装最新版本的 DBOS:
npm install @dbos-inc/dbos-sdk@latest
DBOS 应用程序必须在运行任何工作流之前配置并启动 DBOS:
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);
工作流由步骤组成。任何执行复杂操作或访问外部服务的函数都必须使用 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);
DBOS.startWorkflow 或队列阅读各个规则文件以获取详细说明和示例:
references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md
每周安装量
82
代码仓库
GitHub 星标数
3
首次出现
2026年1月28日
安全审计
安装于
github-copilot65
opencode65
codex63
claude-code61
gemini-cli60
cursor60
Guide for building reliable, fault-tolerant TypeScript applications with DBOS durable workflows.
Reference these guidelines when:
| 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- |
Always install the latest version of DBOS:
npm install @dbos-inc/dbos-sdk@latest
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);
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);
DBOS.startWorkflow or queuesRead individual rule files for detailed explanations and examples:
references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md
Weekly Installs
82
Repository
GitHub Stars
3
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
github-copilot65
opencode65
codex63
claude-code61
gemini-cli60
cursor60
Supabase 使用指南:安全最佳实践、CLI 命令与 MCP 服务器配置
3,600 周安装