Agent skill

Stream Creation

by streamflow-finance in streamflow-finance/js-sdk

A skill your agent uses when creating token locks or vesting schedules with @streamflow/stream.

GPL-3.0Auto-check passed

Install Stream Creation

skills CLI
$ npx skills add streamflow-finance/js-sdk --skill stream-creation -a claude-code

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

GitHub CLI
$ gh skill install streamflow-finance/js-sdk stream-creation --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/streamflow-finance/js-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/stream-creation .claude/skills/stream-creation && 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
stream-creation
GitHub stars
166
Token cost
~1.2k tokens
SKILL.md length
207 words
Files
2 (incl. assets)
Skills in repo
1
Repo updated
First seen
Licence
GPL-3.0

At a glance

A skill your agent uses when creating token locks or vesting schedules with @streamflow/stream.

  • Creating token locks
  • SKILL.md covers Choose the right function, createLock, createVesting and createLockBatch /…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Vesting schedules with @streamflow/stream

What it does

Stream Creation is an agent skill from streamflow-finance/js-sdk. Use when creating token locks or vesting schedules with @streamflow/stream. Apply when user calls createLock, createVesting, createLockBatch, createVestingBatch, or their builder variants, or when building ICreateLinearStreamData / ICreateMultipleLinearStreamData params for stream creation.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including assets (for example `assets/advanced.md`).

It works with Solana. The repository describes itself as: Web3 Distribution Layer. For Token vesting and Airdrops. The licence is GPL-3.0.

When your agent uses it

  • Creating token locks
  • Vesting schedules with @streamflow/stream
  • Calls createLock
  • CreateLockBatch

Example prompts

  • “/stream-creation”

What it can do on your machine

Read from SKILL.md and the folder at commit fb236ff. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    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

Stream Creation loads about 1.2k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 207 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~1.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 streamflow-finance/js-sdk at commit fb236ff, republished under its GPL-3.0 licence (© streamflow-finance). 207 words, ~1,207 tokens.

Download SKILL.mdSave it as .claude/skills/stream-creation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
stream-creation
description
Use when creating token locks or vesting schedules with @streamflow/stream. Apply when user calls createLock, createVesting, createLockBatch, createVestingBatch, or their builder variants, or when building ICreateLinearStreamData / ICreateMultipleLinearStreamData params for stream creation.

Stream Creation

Composable API wrappers over SolanaStreamClient in packages/stream/solana/api/. Pass intent-specific params — lock/vesting defaults are pre-filled and enforced.

Choose the right function

GoalFunctionReturns
Lock tokens until one datecreateLockCreateInstructionResult
Lock — multiple recipientscreateLockBatchBatchInstructionResult
Linear vestingcreateVesting (no initialAllocation)CreateInstructionResult
Vesting + upfront releasecreateVesting (with initialAllocation)BatchInstructionResult
Vesting — multiple recipientscreateVestingBatchBatchInstructionResult
ts
import { createLock, createLockBatch, createVesting, createVestingBatch } from "@streamflow/stream/solana/api";
import type { ICreateLockParams, ICreateLockBatchParams, ICreateVestingParams, ICreateVestingBatchParams } from "@streamflow/stream/solana/api";

createLock

ts
await createLock(
  {
    recipient: "Wallet...", tokenId: "Mint...",
    amount: new BN(1_000_000_000),  // raw units — MUST be > 1
    unlockDate: 1735689600,          // unix timestamp — used as both start and cliff
    name: "Team Lock",
    transferableByRecipient: false,  // only configurable flag, defaults false
    // partner?, tokenProgramId?
  },
  invoker, env,
);

Hardcoded internals — never set these on input: period=1, cliffAmount=amount-1, amountPerPeriod=BN(1), all cancel/topup/withdrawal flags false. Required for isTokenLock() classification.

createVesting

Return type is overloaded: omit initialAllocation → CreateInstructionResult; include it → BatchInstructionResult (2 streams created atomically).

ts
await createVesting(
  {
    recipient, tokenId, name,
    amount: new BN(1_000_000_000_000),
    start: 1700000000,
    period: 86400,                   // release interval in seconds
    duration: 365 * 86400,           // OR endDate — mutually exclusive, never both
    cliffAmount: new BN(0),          // optional, defaults BN(0)
    // amountPerPeriod auto-computed via divCeil if omitted
    cancelableBySender: false,
    automaticWithdrawal: false,      // withdrawalFrequency defaults to period when true
    transferableBySender: false, transferableByRecipient: false,
    // initialAllocation: { amount: BN(...) }  ← changes return type to BatchInstructionResult
  },
  invoker, env,
);

Duration rules: exactly one of duration / endDate; must be positive; must be >= period.

amountPerPeriod auto-compute (divCeil):

remaining  = amount - cliffAmount
periods    = floor(duration / period)
result     = ceil(remaining / periods)

Classification gotcha: cliffAmount close to amount (within 1) causes the stream to classify as Lock, not Vesting.

createLockBatch / createVestingBatch

Per-recipient amount and name; shared config at top level.

ts
await createLockBatch(
  { tokenId, unlockDate, recipients: [{ recipient, amount, name }] },
  invoker, env,
);

await createVestingBatch(
  { tokenId, start, period, duration,  // OR endDate
    recipients: [{ recipient, amount, name, cliffAmount?, amountPerPeriod? }] },
  invoker, env,
);
  • Lock batch: each recipient auto-gets cliffAmount = r.amount - 1, amountPerPeriod = BN(1)
  • Vesting batch: amountPerPeriod computed independently per recipient; explicit r.amountPerPeriod skips auto-compute
  • Batch vesting does not support initialAllocation

Builder variants (params only, no execution)

Use when you need the raw params object to inspect or compose with other instructions:

ts
import { buildLockParams, buildVestingParams, buildLockBatchParams, buildVestingBatchParams, resolveDuration, computeAmountPerPeriod } from "@streamflow/stream/solana/api";

const data: ICreateLinearStreamData = buildLockParams({ ... });
const data: ICreateLinearStreamData = buildVestingParams({ ... });
const data: ICreateMultipleLinearStreamData = buildLockBatchParams({ ... });
const data: ICreateMultipleLinearStreamData = buildVestingBatchParams({ ... });

Source: packages/stream/solana/api/create-lock.ts, create-vesting.ts, create-lock-batch.ts, create-vesting-batch.ts

Advanced: protocol-level patterns

Why the defaults are what they are, isTokenLock() classification criteria, initial allocation internals, and dynamic/price-triggered stream differences: assets/advanced.md

© streamflow-finance, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (assets) in skills/stream-creation of streamflow-finance/js-sdk.

  • SKILL.md
  • assets/advanced.md

Open the folder on GitHubat commit fb236ff

Compare with similar skills

Stream Creation 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.

Stream Creation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stream Creation this skillstreamflow-finance/js-sdk166—~1.2kAutomated safety check: PassGPL-3.0
Minara Crypto Trading and WalletMinara-AI/minara-skills3581 repos~5.7kAutomated safety check: PassNone
NEAR Intents Swap Integrationinternet-court/internet-court-skill6.4k2 repos~939Automated safety check: PassCustom licence
Solana Devsolana-foundation/solana-dev-skill574—~3.8kAutomated safety check: PassMIT
Meme Coin Security Auditawarexone/Agentic-Bug-Hunter5.3k1 repos~2.4kAutomated safety check: PassMIT
Swapper Depositswapperfinance/swapper-toolkit852—~1.8kAutomated safety check: PassMIT

Similar skills

  • Minara Crypto Trading and Wallet

    Minara-AI/minara-skills

    Drives the Minara CLI for crypto swaps, perps, limit orders, wallet transfers, deposits and withdrawals, plus AI market analysis.

    358 GitHub starsUsed in 1 repo~5.7k tokens
    Business, Finance & HRAuto-check passed
  • NEAR Intents Swap Integration

    internet-court/internet-court-skill

    Builds cross-chain token swaps and bridge flows with the NEAR Intents 1Click API: quotes, deposit addresses, per-chain deposits and status polling.

    6.4k GitHub starsUsed in 2 repos~939 tokens
    Backend & APIsAuto-check passed
  • Solana Dev

    solana-foundation/solana-dev-skill

    A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my…

    574 GitHub stars~3.8k tokensUpdated today
    Backend & APIsAuto-check passed
  • Meme Coin Security Audit

    awarexone/Agentic-Bug-Hunter

    Screens EVM and Solana meme coins for rug pull signs such as hidden mint, honeypot logic and fee tricks, starting with fast kill signals before any code review.

    5.3k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check passed
  • Swapper Deposit

    swapperfinance/swapper-toolkit

    Deposit and bridge funds into a wallet or protocol using Swapper Finance.

    852 GitHub stars~1.8k tokensUpdated 6 mo ago
    Business, Finance & HRAuto-check passed
  • PNP Prediction Markets on Solana

    internet-court/internet-court-skill

    Creates, trades and settles permissionless prediction markets on Solana with any SPL token as collateral, including social-media and custom-oracle markets.

    6.4k GitHub stars~7.5k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check: notes

Works with

Questions about Stream Creation

What does Stream Creation do?

A skill your agent uses when creating token locks or vesting schedules with @streamflow/stream. Stream Creation is an agent skill from streamflow-finance/js-sdk. Use when creating token locks or vesting schedules with @streamflow/stream.

When should I use Stream Creation?

Stream Creation fits situations like: creating token locks; vesting schedules with @streamflow/stream; calls createLock; createLockBatch.

How do I install Stream Creation in Claude Code?

Run `npx skills add streamflow-finance/js-sdk --skill stream-creation -a claude-code`. Or copy the skill folder (skills/stream-creation in streamflow-finance/js-sdk) into .claude/skills/stream-creation in your project. Claude Code loads it when a task matches its description.

How do I install Stream Creation in Codex?

Run `npx skills add streamflow-finance/js-sdk --skill stream-creation -a codex`. Or copy the skill folder (skills/stream-creation in streamflow-finance/js-sdk) into .agents/skills/stream-creation in your project. Codex loads it when a task matches its description.

Can I use Stream Creation 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 streamflow-finance/js-sdk --skill stream-creation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stream-creation, .gemini/skills/stream-creation, .github/skills/stream-creation and .opencode/skills/stream-creation in your project.

What does Stream Creation need to run?

SKILL.md names no scripts, command-line tools or credentials: Stream Creation is instructions for the agent only.

Does Stream Creation 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 Stream Creation 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 Stream Creation use?

Stream Creation is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Stream Creation use?

About 1.2k tokens (SKILL.md is roughly 4.8k 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 Stream Creation?

Skills that share tags, products or a category with Stream Creation: Minara Crypto Trading and Wallet (Minara-AI/minara-skills, 358 stars), NEAR Intents Swap Integration (internet-court/internet-court-skill, 6.4k stars), Solana Dev (solana-foundation/solana-dev-skill, 574 stars) and Meme Coin Security Audit (awarexone/Agentic-Bug-Hunter, 5.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stream Creation?

streamflow-finance (a GitHub organization) maintains it in streamflow-finance/js-sdk, which has 166 GitHub stars. The repository was last updated on August 31, 2026.

Source: streamflow-finance/js-sdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.