Agent skill

Output Dev LLM Streaming

by growthxai in growthxai/output

Implement LLM text streaming in Output workflow steps with generateTextWithStreaming, Agent.generateWithStreaming, streamText, or Agent.stream.

Apache-2.0Auto-check passed

Install Output Dev LLM Streaming

skills CLI
$ npx skills add growthxai/output --skill output-dev-llm-streaming -a claude-code

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

GitHub CLI
$ gh skill install growthxai/output output-dev-llm-streaming --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/growthxai/output.git skills-src && mkdir -p .claude/skills && cp -r skills-src/coding_assistants/claude/plugins/outputai/skills/output-dev-llm-streaming .claude/skills/output-dev-llm-streaming && 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
output-dev-llm-streaming
GitHub stars
442
Token cost
~1.2k tokens
SKILL.md length
409 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
Apache-2.0

At a glance

Implement LLM text streaming in Output workflow steps with generateTextWithStreaming, Agent.generateWithStreaming, streamText, or Agent.stream.

  • Adding token progress
  • SKILL.md covers When to Use This Skill, Choose the API, generateTextWithStreaming() and Agent.generateWithStreaming(), plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • OnChunk callbacks

What it does

Output Dev LLM Streaming is an agent skill from growthxai/output. Implement LLM text streaming in Output workflow steps with generateTextWithStreaming, Agent.generateWithStreaming, streamText, or Agent.stream. Use when adding token progress, onChunk callbacks, or handling streamText onEnd/onError with Temporal retries.

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

The repository describes itself as: The open-source TypeScript framework for building AI workflows and agents. Designed for Claude Code describe what you want, Claude builds it, with all the best practices already… The licence is Apache-2.0.

When your agent uses it

  • Adding token progress
  • OnChunk callbacks
  • Handling streamText onEnd/onError with Temporal retries

Example prompts

  • “/output-dev-llm-streaming”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit

    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

Output Dev LLM Streaming loads about 1.2k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 409 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
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 growthxai/output at commit 99ee298, republished under its Apache-2.0 licence (© growthxai). 409 words, ~1,190 tokens.

Download SKILL.mdSave it as .claude/skills/output-dev-llm-streaming/SKILL.md (or your agent's skills folder).
name
output-dev-llm-streaming
description
Implement LLM text streaming in Output workflow steps with generateTextWithStreaming, Agent.generateWithStreaming, streamText, or Agent.stream. Use when adding token progress, onChunk callbacks, or handling streamText onEnd/onError with Temporal retries.
allowed-tools
Read, Write, Edit

LLM Text Streaming

When to Use This Skill

  • Adding token or chunk progress to an LLM-powered step
  • Choosing between completed generation and direct stream access
  • Using onChunk, or onEnd / onError on streamText() / Agent.stream()
  • Making stream failures trigger Temporal activity retries
  • Streaming Agent responses or persisting streamed conversations

Choose the API

NeedUse
Complete single-shot resultgenerateText()
Complete result plus onChunk progressgenerateTextWithStreaming()
Direct access to textStream or streamstreamText()
Complete Agent result plus onChunk progressAgent.generateWithStreaming()
Direct access to the Agent streamAgent.stream()

In workflow steps, prefer generateTextWithStreaming() or Agent.generateWithStreaming() when onChunk progress is sufficient. They consume the stream internally, return complete results like generateText() or Agent.generate(), and reject on provider, transport, or abort errors. Rejection allows Temporal to record the failed activity attempt and apply the step retry policy.

streamText() and Agent.stream() remain supported for code that needs direct control over stream consumption.

generateTextWithStreaming()

typescript
import { generateTextWithStreaming } from '@outputai/llm';

const result = await generateTextWithStreaming( {
  prompt: 'draft@v1',
  variables: { topic },
  onChunk( { chunk } ) {
    if ( chunk.type === 'text-delta' ) {
      process.stdout.write( chunk.text );
    }
  }
} );

return result.result;

The result has the same complete response fields as generateText(), including result, text, output, usage, finishReason, and cost. Structured output passed with aiSdk.Output.* is available through result.output.

Agent.generateWithStreaming()

typescript
const result = await agent.generateWithStreaming( {
  onChunk( { chunk } ) {
    if ( chunk.type === 'text-delta' ) {
      process.stdout.write( chunk.text );
    }
  }
} );

generateWithStreaming() returns a complete Agent response and automatically stores messages when the Agent has a messageStore.

Show full SKILL.md (220 more words)Show less

Direct stream error handling

AI SDK streaming delivers provider and transport failures through onError. Iterating textStream does not reliably throw the original error. When using streamText() in a workflow step, capture the error and throw it after consumption:

typescript
import { streamText } from '@outputai/llm';

const captured: { error: unknown } = { error: null };
const result = streamText( {
  prompt: 'draft@v1',
  variables: { topic },
  onError( { error } ) {
    captured.error = error;
  }
} );

const chunks: string[] = [];
for await ( const chunk of result.textStream ) {
  chunks.push( chunk );
}

if ( captured.error ) {
  throw captured.error;
}

return chunks.join( '' );

Registering onError without throwing the captured error can let the step return an empty successful result, preventing Temporal from retrying it. Awaiting a completion property may also produce a generic no-output error instead of the original provider error.

Agent.stream() stores conversation messages in its wrapped onEnd when finishReason is not 'error'. Use Agent.generateWithStreaming() when a complete stored response meets the requirement.

Streaming call arguments: prompt, promptDir, variables, tools, output, toolChoice, stopWhen, abortSignal, plus onChunk (generateTextWithStreaming) or onChunk / onEnd / onError (streamText). Agent methods: messages, abortSignal, toolChoice, plus those same stream callbacks.

Rules

  • Prefer the completed streaming APIs in Temporal steps unless direct stream access is required.
  • Do not rely on onError alone to fail a step using streamText().
  • Throw the captured error only after stream consumption finishes.
  • Keep onChunk side effects bounded. A Temporal signal per token creates a history event per signal, so batch high-frequency updates.
  • Do not describe streamText() or Agent.stream() as deprecated.
  • output-dev-step-function - Put LLM calls inside Temporal activity steps
  • output-dev-agent-class - Construct and use reusable Agents
  • output-dev-prompt-file - Create prompt files for generation
  • output-error-try-catch - Handle step and workflow failures

© growthxai, 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 coding_assistants/claude/plugins/outputai/skills/output-dev-llm-streaming of growthxai/output.

Open the folder on GitHubat commit 99ee298

Compare with similar skills

Output Dev LLM Streaming 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.

Output Dev LLM Streaming compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Output Dev LLM Streaming this skillgrowthxai/output442—~1.2kAutomated safety check: PassApache-2.0
Implementsickn33/agentic-awesome-skills47k5 repos~306Automated safety check: PassMIT
Implementcodewhale-hq/Codewhale41k—~190Automated safety check: PassMIT
Os Step By Stepkharmanskyi/open-steps1.3k—~1.9kAutomated safety check: PassMIT
Structured Step By Step Reasoningaiming-lab/MetaClaw3.5k—~212Automated safety check: PassMIT
Cuda Streamspytorch/pytorch104k—~796Automated safety check: PassCustom licence

Similar skills

  • Implement

    sickn33/agentic-awesome-skills

    Implement a piece of work based on a PRD or set of issues. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 5 repos~306 tokens
    Product & Project ManagementAuto-check passed
  • Implement

    codewhale-hq/Codewhale

    Carry an authorized, defined request or approved plan through scoped edits and proportionate verification.

    41k GitHub stars~190 tokensUpdated today
    Auto-check passed
  • Os Step By Step

    kharmanskyi/open-steps

    ALWAYS invoke this skill when you need the user to act - run a command, paste a secret, click, approve - and whenever they ask how to do something or say they do not know what to do: "step by step"…

    1.3k GitHub stars~1.9k tokensUpdated 5 days ago
    Writing & ContentAuto-check passed
  • A skill your agent uses for any problem that involves multiple steps, tradeoffs, or non-trivial logic.

    3.5k GitHub stars~212 tokensUpdated 4 mo ago
    AI & LLM EngineeringAuto-check passed
  • Cuda Streams

    pytorch/pytorch

    Manage tensor lifetimes across CUDA streams and decide whether recordstream is avoidable.

    104k GitHub stars~796 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Incremental Implementation

    addyosmani/agent-skills

    Delivers a change in thin vertical slices, each implemented, tested, verified and committed before the next, using vertical, contract-first or risk-first slicing.

    104k GitHub starsUsed in 1 repo~2.3k tokens
    Agent WorkflowsAuto-check passed

More from growthxai/output

All 50 skills in this repo
  • Output Build Workflow

    growthxai/output

    Implement an Output SDK workflow from a plan document. An agent skill from growthxai/output.

    442 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Output Credentials Edit

    growthxai/output

    View, edit, and set encrypted credentials in an Output.ai project.

    442 GitHub stars~1.1k tokensUpdated today
    Auto-check: notes
  • Wire encrypted credentials to environment variables using the credential: convention.

    442 GitHub stars~930 tokensUpdated today
    Auto-check: notes
  • Output Credentials Init

    growthxai/output

    Initialize encrypted credentials for an Output.ai project. An agent skill from growthxai/output.

    442 GitHub stars~803 tokensUpdated today
    Auto-check: notes
  • Output Debug Workflow

    growthxai/output

    Debug Output SDK workflow issues. An agent skill from growthxai/output.

    442 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Output Dev Agent Class

    growthxai/output

    Use the Agent class for multi-step tool loops, conversation history, streaming progress, and reusable LLM agents.

    442 GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Questions about Output Dev LLM Streaming

What does Output Dev LLM Streaming do?

Implement LLM text streaming in Output workflow steps with generateTextWithStreaming, Agent.generateWithStreaming, streamText, or Agent.stream. Output Dev LLM Streaming is an agent skill from growthxai/output.stream.

When should I use Output Dev LLM Streaming?

Output Dev LLM Streaming fits situations like: adding token progress; onChunk callbacks; handling streamText onEnd/onError with Temporal retries.

How do I install Output Dev LLM Streaming in Claude Code?

Run `npx skills add growthxai/output --skill output-dev-llm-streaming -a claude-code`. Or copy the skill folder (coding_assistants/claude/plugins/outputai/skills/output-dev-llm-streaming in growthxai/output) into .claude/skills/output-dev-llm-streaming in your project. Claude Code loads it when a task matches its description.

How do I install Output Dev LLM Streaming in Codex?

Run `npx skills add growthxai/output --skill output-dev-llm-streaming -a codex`. Or copy the skill folder (coding_assistants/claude/plugins/outputai/skills/output-dev-llm-streaming in growthxai/output) into .agents/skills/output-dev-llm-streaming in your project. Codex loads it when a task matches its description.

Can I use Output Dev LLM Streaming 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 growthxai/output --skill output-dev-llm-streaming -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/output-dev-llm-streaming, .gemini/skills/output-dev-llm-streaming, .github/skills/output-dev-llm-streaming and .opencode/skills/output-dev-llm-streaming in your project.

What does Output Dev LLM Streaming need to run?

SKILL.md names no scripts, command-line tools or credentials: Output Dev LLM Streaming is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit.

Does Output Dev LLM Streaming 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 Output Dev LLM Streaming 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 Output Dev LLM Streaming use?

Output Dev LLM Streaming 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 Output Dev LLM Streaming 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 Output Dev LLM Streaming?

Skills that share tags, products or a category with Output Dev LLM Streaming: Implement (sickn33/agentic-awesome-skills, 47k stars), Implement (codewhale-hq/Codewhale, 41k stars), Os Step By Step (kharmanskyi/open-steps, 1.3k stars) and Structured Step By Step Reasoning (aiming-lab/MetaClaw, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Output Dev LLM Streaming?

growthxai (a GitHub organization) maintains it in growthxai/output, which has 442 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 9, 2026.

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