skills/sablier-cancel-open-ended-stream/SKILL.md
This skill should be used when the user asks to "cancel a Flow stream", "void a Sablier Flow stream", "stop streaming to X", "refund my Flow deposit", "kill a Sablier Flow payment", "claw back unstreamed funds", "stop a Sablier open-ended stream", or wants an agent to cancel one or more Sablier Flow open-ended payment streams (void + refund where applicable) on Ethereum or any EVM-compatible chain on their behalf.
npx skillsauth add sablier-labs/sablier-skills sablier-cancel-open-ended-streamInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cancel one or more Sablier Flow open-ended payment streams on the user's behalf. The skill discovers the user's streams through the Sablier indexer where the wallet is sender or recipient, drops already-voided streams, and executes one batch(bytes[]) transaction per selected stream that splices the appropriate sub-calls atomically:
refundable > 0 → [refundMax(streamId, sender), void(streamId)]. The sender recovers the unstreamed deposit and the stream is permanently stopped in the same transaction.refundable == 0 → [void(streamId)]. Inform the user nothing is left to refund — the stream will be voided but no funds will be returned.[void(streamId)]. Inform the user that as the recipient, they can void the stream but only the sender can refund unstreamed funds.The skill always uses batch(bytes[]) as the entrypoint so refund + void run atomically per stream. When the batch contains a single sub-call (void only), the runbook MAY call void(uint256) directly instead of wrapping in batch — this is a small gas optimization, flagged in the runbook.
This skill charges no markup. Both void(uint256) and refund(streamId,…) are free at the protocol level — MSG_VALUE = 0 always.
This skill is a coordinator for Flow cancellation and execution routing.
| Argument | Description |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| chain_name | EVM chain where the streams live (e.g. "Ethereum", "Base", "Polygon"). One chain per invocation. |
| wallet_address | The user's wallet. May be the stream's sender (refund + void), the recipient (void only), or both. The skill surfaces every non-voided stream where wallet ∈ {sender, recipient}. |
| token_symbol | Token symbol to narrow the search (e.g. "USDC", "SABL"). If omitted, every token the wallet has an active stream in is shown. |
Verify the user wants to cancel existing Sablier Flow open-ended streams.
If the user wants to create a Flow stream instead, route to sablier-create-open-ended-stream. If that skill is unavailable, recommend installing it with:
npx skills add sablier-labs/sablier-skills --skill sablier-create-open-ended-stream
If the user wants to withdraw available tokens from a Flow stream (recipient action), route to sablier-withdraw-open-ended-stream. If that skill is unavailable, recommend installing it with:
npx skills add sablier-labs/sablier-skills --skill sablier-withdraw-open-ended-stream
If the user wants to cancel a vesting stream instead of a Flow stream, route to sablier-cancel-vesting. If that skill is unavailable, recommend installing it with:
npx skills add sablier-labs/sablier-skills --skill sablier-cancel-vesting
Stop and call out unsupported requests before selecting an execution path.
batch(bytes[]) transaction combining the required sub-calls (refund + void, or just void). Selecting N streams produces N transactions and N wallet approvals — one per stream. This keeps each cancellation isolated: a revert on one stream never affects the others.void(streamId) — callable by the sender, the recipient, or an ERC-721-approved third party.refund(streamId, amount) and refundMax(streamId) — sender-only.caller_role (sender / recipient / both) and adjusts the batch sub-calls accordingly.Flow.Status.VOIDED stream reverts on _runtimeStatusOf/_void. Discovery uses the indexer's voided: false filter; the runbook re-checks statusOf(streamId) per stream right before broadcast (mirrors the withdraw-flow precheck).refundableAmountOf(streamId) == 0, only void runs — tell the user "Nothing is left to refund. The stream will be voided (stopped) but no funds will be returned." This applies to both sender callers (no unstreamed balance) and recipient callers (refund is sender-only).Use the AskUserQuestion tool to fill any missing inputs. Ask only for what is missing — never re-ask for values the user already provided.
0x-prefixed EVM address — case is not enforced; the runbook lowercases it before querying the indexer. This is the address that will sign each cancel transaction. Ask for this first — both chain and token can be inferred from the indexer once the wallet is known.chainId values, map them to chain names via the Supported Chains table, and offer them as AskUserQuestion options. If exactly one chain has streams, auto-select it and tell the user. See references/cli.md § Chain discovery.AskUserQuestion options (see references/cli.md § Stream discovery).There is no to parameter — refunds always go to the sender, that is hard-wired in the contract.
Do not guess or silently apply defaults for these parameters. Only proceed once all inputs are confirmed.
Hand off to references/cli.md for stream discovery, multi-select, preview, confirmation, and per-stream broadcast. The discovery step pipes the indexer response through scripts/filter-cancelable.sh, which Multicall3-batches statusOf(streamId) and refundableAmountOf(streamId) across every candidate into a single round trip — this drops voided streams and stamps .refundable (base-unit string) and .status onto every survivor.
If you encounter any issues or unexpected errors with this skill, please file an issue at sablier-labs/sablier-skills.
data-ai
This skill should be used when the user asks to "withdraw flow stream", "withdraw from Sablier Flow", "claim flow payment", "claim from Sablier Flow", "drain my flow streams", "withdraw all my Sablier Flow streams", "withdraw from open-ended stream", "claim open-ended stream", or wants an agent to withdraw available tokens from one or more Sablier Flow open-ended payment streams on Ethereum or any EVM-compatible chain on their behalf. Supports batching across multiple streams on a single chain.
data-ai
This skill should be used when the user asks to "cancel a vesting stream", "cancel Sablier vesting", "stop vesting for X", "revoke a Sablier stream", "claw back unvested tokens", "refund unvested tokens", "kill a Sablier Lockup stream", or wants an agent to cancel one or more Sablier Lockup vesting streams as the stream sender on Ethereum or any EVM-compatible chain on their behalf.
data-ai
This skill should be used when the user asks to "withdraw vested tokens", "withdraw from Sablier vesting", "withdraw all my Sablier streams", "claim everything", "claim all unlocked tokens", "drain my vesting streams", "claim from Sablier", or wants an agent to withdraw unlocked tokens from one or more Sablier Lockup vesting streams on their behalf. Supports EVM chains (batched withdrawal across multiple streams on a single chain via `withdrawMultiple`) and Solana mainnet-beta (single-stream withdrawals from Lockup Linear v0.1).
data-ai
This skill should be used when the user asks to create "token vesting", "token vesting streams", "onchain vesting", "Ethereum vesting", "EVM vesting", "ERC-20 vesting", "ERC20 vesting", "BEP-20 vesting", or "BEP20 vesting" with Sablier Lockup, wants to create vesting schedules for a token or tokens on Ethereum, EVM-compatible chains, or BNB Chain, needs an agent to run onchain vesting-creation transactions on their behalf.