Agent skill

Dolos Pipeline

by txpipe in txpipe/dolos

Architecture of the Dolos processing pipeline — WorkUnit lifecycle, executor modes, CardanoWorkUnit variants, WorkBuffer state machine, and sequencing.

Apache-2.0Auto-check passedDevelopment

Install Dolos Pipeline

skills CLI
$ npx skills add txpipe/dolos --skill dolos-pipeline -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install txpipe/dolos dolos-pipeline --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/txpipe/dolos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dolos-pipeline .claude/skills/dolos-pipeline && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dolos-pipeline
GitHub stars
138
Token cost
~2.2k tokens
SKILL.md length
772 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Architecture of the Dolos processing pipeline — WorkUnit lifecycle, executor modes, CardanoWorkUnit variants, WorkBuffer state machine, and sequencing.

  • Works in 4 steps: Roll — Blocks are accumulated into… → Rupd — Fires once at epoch_start +… → Ewrap — Fires at the epoch boundary.… → …
  • Development work in your project
  • SKILL.md covers WorkUnit Trait Lifecycle, Executor Modes, CardanoWorkUnit Enum and WorkBuffer State Machine, plus 4 more sections
  • Calls go

What it does

Dolos Pipeline is an agent skill from txpipe/dolos. Architecture of the Dolos processing pipeline — WorkUnit lifecycle, executor modes, CardanoWorkUnit variants, WorkBuffer state machine, and sequencing. Reference when debugging execution ordering, understanding phase boundaries, or adding new work unit types.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The licence is Apache-2.0.

When your agent uses it

  • Development work in your project

Example prompts

  • “/dolos-pipeline”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Roll — Blocks are accumulated into batches and processed as RollWorkUnits
  2. Rupd — Fires once at epoch_start + randomness_stability_window (4k/f slots). Computes reward distribution using the mark snapshot
  3. Ewrap — Fires at the epoch boundary. Applies spendable rewards, filters unspendable, refunds deposits, enacts proposals
  4. Estart — Fires immediately after Ewrap. Rotates EpochValue snapshots (go ← set ← mark ← live ← next), computes initial pots for the new…

What it can do on your machine

Read from SKILL.md and the folder at commit 728e245. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dolos Pipeline loads about 2.2k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 772 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from txpipe/dolos at commit 728e245, republished under its Apache-2.0 licence (© txpipe). 772 words, ~2,187 tokens.

Download SKILL.mdSave it as .claude/skills/dolos-pipeline/SKILL.md (or your agent's skills folder).
name
dolos-pipeline
description
Architecture of the Dolos processing pipeline — WorkUnit lifecycle, executor modes, CardanoWorkUnit variants, WorkBuffer state machine, and sequencing. Reference when debugging execution ordering, understanding phase boundaries, or adding new work unit types.
user-invocable
false

Dolos Processing Pipeline

WorkUnit Trait Lifecycle

Every piece of work in Dolos implements the WorkUnit<D: Domain> trait (crates/core/src/work_unit.rs) with 5 execution phases:

PhasePurposeI/O
load()Query state/archive stores for required dataRead from stores
compute()CPU-intensive work on loaded dataNo storage access
commit_wal()Write to write-ahead log for crash recoveryWrite to WAL
commit_state()Apply computed changes to state storeWrite to state
commit_archive()Write historical data/logs, and the index entries they project, to archiveWrite to archive

Additionally, tip_events() returns events for live subscribers.

Default no-op implementations exist for commit_wal and tip_events.

Executor Modes

Sync Mode (crates/core/src/sync.rs)

Full lifecycle for live block processing:

  • Runs all 5 phases + tip event emission
  • Includes WAL commits for crash recovery and rollback support
  • Entry point: SyncExt::roll_forward() → drains pending work via drain_pending_work() → execute_work_unit() per unit
Import Mode (crates/core/src/import.rs)

Optimized for bulk data import (Mithril snapshots):

  • Skips commit_wal() (immutable source data, no crash recovery needed)
  • Skips tip event emission (no live subscribers)
  • Entry point: ImportExt::import_blocks() → same drain/execute pattern minus WAL/tips

CardanoWorkUnit Enum

Defined in crates/cardano/src/lib.rs, dispatches to 5 concrete work units + a stop sentinel:

CardanoWorkUnit
├── Genesis(GenesisWorkUnit)     — Bootstrap initial state
├── Roll(RollWorkUnit)           — Process block batches
├── Rupd(RupdWorkUnit)           — Compute rewards at stability window
├── Ewrap(EwrapWorkUnit)         — Apply rewards, refund deposits at epoch end
├── Estart(EstartWorkUnit)       — Transition snapshots, compute new pots
└── ForcedStop                   — Signal test harness termination

ForcedStop returns Err(DomainError::StopEpochReached) in commit_state() to signal termination.

WorkBuffer State Machine

The WorkBuffer enum (crates/cardano/src/lib.rs) sequences work unit creation through state transitions:

Empty → (genesis block) → Genesis
Empty → (regular block) → OpenBatch
OpenBatch → (more blocks) → OpenBatch
OpenBatch → (RUPD boundary) → PreRupdBoundary
OpenBatch → (epoch boundary) → PreEwrapBoundary
OpenBatch → (stop epoch) → PreForcedStop

PreRupdBoundary → pop_work() → [Roll for batch] → RupdBoundary
RupdBoundary → pop_work() → [Rupd] → Restart

PreEwrapBoundary → pop_work() → [Roll for batch] → EwrapBoundary
EwrapBoundary → pop_work() → [Ewrap] → EstartBoundary
EstartBoundary → pop_work() → [Estart] → Restart

PreForcedStop → pop_work() → [Roll for batch] → ForcedStop
ForcedStop → pop_work() → [ForcedStop sentinel]

Restart → (next block) → OpenBatch / boundary detection

Key methods:

  • receive_block() — Accepts a new block, detects epoch/RUPD boundaries, transitions state
  • pop_work() — Extracts next work unit, mutates buffer to next state
  • can_receive_block() — True for Empty, Restart, OpenBatch; false for boundary states

Boundary detection (crates/cardano/src/pallas_extras.rs):

  • epoch_boundary(eras, prev_slot, next_slot) — Returns (prev_epoch, boundary_slot, next_epoch) if slots span different epochs
  • rupd_boundary(stability_window, eras, prev_slot, next_slot) — Returns boundary slot if the randomness stability window threshold is crossed within the same epoch

Processing Sequence

Genesis → Roll batches → [4k/f slots] Rupd → Roll batches → [epoch end] Ewrap → Estart → Roll batches → ...

Within a single epoch:

  1. Roll — Blocks are accumulated into batches and processed as RollWorkUnits
  2. Rupd — Fires once at epoch_start + randomness_stability_window (4k/f slots). Computes reward distribution using the mark snapshot
  3. Ewrap — Fires at the epoch boundary. Applies spendable rewards, filters unspendable, refunds deposits, enacts proposals
  4. Estart — Fires immediately after Ewrap. Rotates EpochValue snapshots (go ← set ← mark ← live ← next), computes initial pots for the new epoch

Work Unit Details

Genesis (crates/cardano/src/genesis/work_unit.rs)

Trigger: First block received on empty buffer.

PhaseAction
loadNo-op
computeNo-op
commit_walReset WAL to Origin
commit_stateBootstrap pots, pparams, epoch state from genesis config
commit_archiveNo-op
Roll (crates/cardano/src/roll/work_unit.rs)

Trigger: Batch of blocks accumulated in OpenBatch, flushed at boundary or batch size limit.

Key types:

  • WorkBatch — Contains Vec<WorkBlock>, fetched UTxOs, loaded entities
  • WorkBlock — Single block + computed deltas + UTxO delta

Visitor pattern: DeltaBuilder (crates/cardano/src/roll/mod.rs) traverses each block visiting root metadata, then each TX's inputs/outputs/mints/certificates/withdrawals/updates/proposals. Entity visitors (AccountVisitor, PoolStateVisitor, etc.) produce deltas.

PhaseAction
loadNo-op (UTxO loading happens in pop_work())
computeNo-op (delta computation happens in pop_work() via DeltaBuilder)
commit_walSort batch by slot, append to WAL
commit_stateLoad entities, apply deltas, commit state + live-UTxO tags + cursor
commit_archiveWrite blocks, with the archive tags and exact lookups they project
tip_eventsEmit Apply event per block (live mode only)
Show full SKILL.md (289 more words)Show less
Rupd (crates/cardano/src/rupd/)

Trigger: Block crosses the epoch_start + randomness_stability_window threshold.

PhaseAction
loadLoad accounts, pools, protocol params from state
computeCalculate rewards via pool/account visitors
commit_stateStore pending rewards in state
commit_archiveWrite reward logs to archive

Uses mark snapshot (E-1) for stake distribution and pool params. Pre-Babbage (protocol < 7): filters out unregistered accounts before calculation. Babbage+: calculates for all accounts.

Ewrap (crates/cardano/src/ewrap/)

Trigger: Block crosses an epoch boundary (different epoch than previous block).

PhaseAction
loadLoad epoch state, pools, accounts, DReps, proposals
computeFilter rewards, compute refunds, route unspendable to treasury
commit_stateApply filtered rewards, refunds, treasury adjustments
commit_archiveWrite boundary logs

Key visitors:

  • rewards::RewardApplyVisitor — Filter spendable rewards, track applied_rewards
  • refunds::DepositRefundVisitor — Refund pool/proposal deposits
  • enactment::ProposalEnactmentVisitor — Enact ratified proposals
Estart (crates/cardano/src/estart/)

Trigger: Immediately after Ewrap completes.

PhaseAction
loadLoad epoch state, pools, accounts, proposals
computeTransition snapshots, compute pot delta
commit_stateApply snapshot transitions, update pots, increment epoch
commit_archiveWrite new epoch state

Snapshot transition: All EpochValue<T> fields advance: go ← set ← mark ← live ← next.

Stability Windows

Computed from genesis parameters (crates/cardano/src/utils.rs):

WindowFormulaMainnet (k=2160, f≈0.05)
stability_window (3k/f)ceil(3 × k / f)~129,600 slots
randomness_stability_window (4k/f)ceil(4 × k / f)~172,800 slots

RUPD fires at 4k/f, not 3k/f. This is critical for correct reward pre-filtering boundaries.

Design Notes

  • Load/compute separation: Heavy I/O in load(), pure computation in compute(), clean commit phases. This enables potential parallelization.
  • needs_cache_refresh: Set after Genesis and Estart to reload era summary from state before the next work unit.
  • Roll pre-processing in pop_work(): UTxO fetching (batch.load_utxos()) and delta computation (roll::compute_delta()) happen before the work unit is returned, not during load()/compute(). This keeps the WorkUnit trait implementation thin.
  • Boundary detection is slot-based: Boundaries are detected by comparing consecutive block slots, not by counting blocks or epochs directly.

© txpipe, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/dolos-pipeline of txpipe/dolos.

Open the folder on GitHubat commit 728e245

Compare with similar skills

Dolos Pipeline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dolos Pipeline compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dolos Pipeline this skilltxpipe/dolos138—~2.2kAutomated safety check: PassApache-2.0
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from txpipe/dolos

  • Systematic workflow for debugging Cardano ledger epoch pots mismatches in Dolos.

    138 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Update Docs

    txpipe/dolos

    Reconcile the user-facing documentation under docs/content/ with the current source-of-truth in the codebase.

    138 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Add Epoch Test

    txpipe/dolos

    Set up a new epochpots integration test with ground truth fixtures from DBSync

    138 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Add a missing pointer address mapping to hacks.rs by looking up the stake credential in DBSync

    138 GitHub stars~840 tokensUpdated today
    Auto-check passed
  • Ledger Gotchas

    txpipe/dolos

    Reference of non-obvious Cardano ledger behaviors that have caused bugs in Dolos.

    138 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Update Proposals

    txpipe/dolos

    Update hardcoded Conway governance proposal mappings in hacks.rs by querying DBSync

    138 GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Categories

Questions about Dolos Pipeline

What does Dolos Pipeline do?

Architecture of the Dolos processing pipeline — WorkUnit lifecycle, executor modes, CardanoWorkUnit variants, WorkBuffer state machine, and sequencing. Dolos Pipeline is an agent skill from txpipe/dolos. Architecture of the Dolos processing pipeline — WorkUnit lifecycle, executor modes, CardanoWorkUnit variants, WorkBuffer state machine, and sequencing.

When should I use Dolos Pipeline?

Dolos Pipeline fits situations like: development work in your project.

How do I install Dolos Pipeline in Claude Code?

Run `npx skills add txpipe/dolos --skill dolos-pipeline -a claude-code`. Or copy the skill folder (skills/dolos-pipeline in txpipe/dolos) into .claude/skills/dolos-pipeline in your project. Claude Code loads it when a task matches its description.

How do I install Dolos Pipeline in Codex?

Run `npx skills add txpipe/dolos --skill dolos-pipeline -a codex`. Or copy the skill folder (skills/dolos-pipeline in txpipe/dolos) into .agents/skills/dolos-pipeline in your project. Codex loads it when a task matches its description.

Can I use Dolos Pipeline in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add txpipe/dolos --skill dolos-pipeline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dolos-pipeline, .gemini/skills/dolos-pipeline, .github/skills/dolos-pipeline and .opencode/skills/dolos-pipeline in your project.

What does Dolos Pipeline need to run?

Going by SKILL.md and its folder, Dolos Pipeline needs the command-line tools its instructions call (go).

Does Dolos Pipeline access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dolos Pipeline safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dolos Pipeline use?

Dolos Pipeline is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dolos Pipeline use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dolos Pipeline?

Skills that share tags, products or a category with Dolos Pipeline: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dolos Pipeline?

txpipe (a GitHub organization) maintains it in txpipe/dolos, which has 138 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 9, 2026.

Source: txpipe/dolos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.