golem-add-transactions-ts

Orchestrate TypeScript saga transactions with execute and compensate functions.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-transactions-ts-rust-soham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-add-transactions-ts
Source: https://github.com/Rust-soham/golem-claw/tree/main/packages/golem/.agents/skills/golem-add-transactions-ts
Command: npx skills add https://github.com/Rust-soham/golem-claw --skill golem-add-transactions-ts-rust-soham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need reliable multi-step transaction logic that can undo earlier work when a later step fails, without leaving the system in an inconsistent state.

Core Features & Use Cases

  • Saga-pattern orchestration (execute + compensate): Model each step with an async execute action and a matching async compensation (undo) action, compensating in reverse order on failure.
  • Fallible transactions: Capture failures as acceptable outcomes and return the error after running compensations for already-completed steps.
  • Infallible transactions: Ensure eventual success by compensating and retrying the entire transaction when failures occur.

Quick Start

Use the golem-add-transactions-ts skill to implement saga-pattern multi-step operations in TypeScript by defining execute/compensate functions and then wiring them into fallibleTransaction or infallibleTransaction as appropriate.

Frequently Asked Questions about golem-add-transactions-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement saga pattern transactions with rollback in TypeScript?

Saga pattern transactions in TypeScript are implemented by defining async execute and compensate functions per operation, then using fallibleTransaction to capture failures as results or infallibleTransaction to retry after compensation.

What is the difference between fallible and infallible transaction orchestration?

Fallible transaction orchestration runs compensations for completed steps and returns the error as an acceptable outcome, while infallible transaction orchestration compensates and retries the entire transaction to ensure eventual success.

How do I undo earlier steps when a later operation fails in a TypeScript agent workflow?

To undo earlier steps when a later operation fails, define a matching async compensation function for each execute action so the orchestrator can run undo logic in reverse order upon failure.

When do I need saga-style compensation for multi-step workflows?

Saga-style compensation is needed for multi-step workflows like reservations plus payments or rollback-safe provisioning, where a failure in one step requires reversing previously completed operations to maintain consistency.

Can I add retry behavior to multi-step TypeScript transactions?

Yes, you can add retry behavior to multi-step TypeScript transactions by using the infallibleTransaction pattern, which compensates completed steps and retries the entire transaction when failures occur.

Do I need external dependencies to manage coordinated transactions in TypeScript?

No external dependencies are required to manage coordinated transactions in TypeScript, as the skill provides self-contained saga-pattern orchestration logic with execute, compensate, and rollback capabilities.