D
dbos
@mayurrathi
⭐ 40.7k GitHub stars

Dbos Typescript

Dbos Typescript is an code AI skill with a core value of DBOS TypeScript SDK for building reliable, fault-tolerant applications with durable workflows. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

DBOS TypeScript SDK for building reliable, fault-tolerant applications with durable workflows. Use this skill when writing TypeScript code with DBOS, creating workflows and steps, using queues, usi...

Last verified on: 2026-07-08

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-08
Risk Level Low
mkdir -p ./skills/dbos-typescript && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/dbos-typescript/SKILL.md -o ./skills/dbos-typescript/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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:


bash
npm install @dbos-inc/dbos-sdk@latest

DBOS Configuration and Launch


A DBOS application MUST configure and launch DBOS before running any workflows:


typescript
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`:


typescript
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.startWorkflow` or 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:


text
references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md

References


- https://docs.dbos.dev/

- https://github.com/dbos-inc/dbos-transact-ts

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • TypeScript type safety checking
  • Module refactoring

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Dbos Typescript to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is Dbos Typescript compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Dbos Typescript?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Dbos Typescript?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/dbos-typescript/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills