Agent skill

Output Dev Workflow Cost

by growthxai in growthxai/output

Calculate and display the cost of an Output SDK workflow execution run.

Apache-2.0Auto-check: notesAI & LLM Engineering

Install Output Dev Workflow Cost

skills CLI
$ npx skills add growthxai/output --skill output-dev-workflow-cost -a claude-code

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

GitHub CLI
$ gh skill install growthxai/output output-dev-workflow-cost --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-workflow-cost .claude/skills/output-dev-workflow-cost && 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-workflow-cost
GitHub stars
442
Token cost
~1.4k tokens
SKILL.md length
467 words
Files
1
Skills in repo
52
Repo updated
First seen
Licence
Apache-2.0

At a glance

Calculate and display the cost of an Output SDK workflow execution run.

  • Works in 2 steps: Get a Workflow Run ID → Calculate the Cost
  • Checking LLM token costs
  • SKILL.md covers Overview, When to Use This Skill, Step 1: Get a Workflow Run ID and Step 2: Calculate the Cost, plus 3 more sections
  • Calls npx and jq

What it does

Output Dev Workflow Cost is an agent skill from growthxai/output. Calculate and display the cost of an Output SDK workflow execution run. Use when checking LLM token costs, API service costs, or total spend for a specific workflow run.

Its SKILL.md is about 1.4k 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 AI & LLM Engineering, covering LLM cost and token optimization. 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

  • Checking LLM token costs
  • API service costs
  • Total spend for a specific workflow run

Example prompts

  • “/output-dev-workflow-cost”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Get a Workflow Run ID
  2. Calculate the Cost

What it can do on your machine

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

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • jq

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

  • Network

    Links to these hosts (documentation or services it may open):

    • models.dev

    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 Workflow Cost loads about 1.4k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 467 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

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 ff9e1ab, republished under its Apache-2.0 licence (© growthxai). 467 words, ~1,374 tokens.

Download SKILL.mdSave it as .claude/skills/output-dev-workflow-cost/SKILL.md (or your agent's skills folder).
name
output-dev-workflow-cost
description
Calculate and display the cost of an Output SDK workflow execution run. Use when checking LLM token costs, API service costs, or total spend for a specific workflow run.
allowed-tools
Bash

Workflow Run Cost

Overview

This skill helps you calculate the cost of a completed workflow execution using the Output CLI. It breaks down costs by LLM model (token usage) and external API service calls.

When to Use This Skill

  • Checking how much a workflow run cost in LLM tokens
  • Analyzing API service spend per workflow execution
  • Comparing costs between workflow runs
  • Presenting cost data during a demo or review

Step 1: Get a Workflow Run ID

The workflow cost command requires a workflow run ID — not the workflow name.

A run ID looks like: process_transcripts_2026-03-23T19:35:17.000Z_c2biRk_F9rYktF-wagBf5

If you already have a run ID, skip to Step 2.
If you don't have a run ID:

Option A — List recent runs (use skill: output-workflow-runs-list):

bash
npx output workflow runs list <workflowName> --limit 5

Copy the run ID from the most recent completed run.

Option B — Run the workflow now and capture the ID:

If you know the input, run it synchronously and the run ID will be in the output:

bash
npx output workflow run <workflowName> --input '{"key": "value"}'

Or asynchronously (use skill: output-workflow-start):

bash
npx output workflow start <workflowName> --input '{"key": "value"}'
# Returns: Workflow ID: <runId>

If you don't know the input, check for a scenario file (use skill: output-dev-scenario-file) or the workflow's inputSchema in its types.ts.

Note: The workflow name (e.g. process_transcripts) identifies the workflow type. The workflow run ID (e.g. process_transcripts_2026-03-23T19:35:17.000Z_abc123) identifies a specific execution. workflow cost requires the run ID.


Step 2: Calculate the Cost

Basic usage (text output):
bash
npx output workflow cost <runId>
With a local trace file:
bash
npx output workflow cost <runId> path/to/trace.json
JSON output (for programmatic use or display):
bash
npx output workflow cost <runId> --json
Verbose — show per-call breakdown:
bash
npx output workflow cost <runId> --verbose
All flags:
FlagDescriptionDefault
--jsonOutput machine-readable JSON instead of the text reportfalse
--verboseShow detailed per-LLM-call breakdownfalse

Understanding the Output

Show full SKILL.md (208 more words)Show less
Text format example:

Pricing values are illustrative — the model and per-token rates shown below were current as of 2026-05-04. Live pricing comes from models.dev. For current model IDs, see output-dev-model-selection.

Costs come in two figures per row: Original is the as-charged cost recorded in the trace attributes (llm:generation:cost / http:request:cost, with llm:generation:usage and legacy llm:usage fallbacks), and Adjusted is the cost after applying any costs.yml override (equal to Original when no override applies). The bottom line and JSON totalCost are the Adjusted total.

Workflow: process_transcripts
Duration: 12.3s

LLM Costs:
  Model              | Calls | Original | Adjusted
  claude-sonnet-4-6  |     3 |  $0.0123 |  $0.0123
  Subtotal           |     3 |  $0.0123 |  $0.0123

API Costs:
  Host       | Calls | Original | Adjusted
  r.jina.ai  |     2 |  $0.0040 |  $0.0040
  Subtotal   |     2 |  $0.0040 |  $0.0040

TOTAL ESTIMATED COST (adjusted)   $0.0163
As-charged (from trace)           $0.0163

API Costs only include calls where the client attached a dollar amount with addRequestCost (see output-dev-http-client-create, "Attaching Request Cost (Paid APIs)"). An HTTP call that never calls addRequestCost is still traced but contributes nothing here — that's expected for free or internal services, and a gap to fix for paid ones.

JSON format fields:
json
{
  "workflowName": "process_transcripts",
  "durationMs": 12300,
  "llmOriginalCost": 0.0123,
  "llmAdjustedCost": 0.0123,
  "totalInputTokens": 1234,
  "totalOutputTokens": 567,
  "httpCosts": [{ "host": "r.jina.ai", "originalTotalCost": 0.004, "adjustedTotalCost": 0.004 }],
  "httpOriginalCost": 0.004,
  "httpAdjustedCost": 0.004,
  "originalTotalCost": 0.0163,
  "totalCost": 0.0163
}

Per-call entries in llmCalls and httpCosts[].calls carry originalCost and adjustedCost. (Older releases exposed llmTotalCost, services[], serviceTotalCost, and unknownModels — replaced by the fields above.)


Examples

Get cost of the last run:

bash
# First get the run ID
npx output workflow runs list process_transcripts --limit 1 --json

# Then get the cost
npx output workflow cost process_transcripts_2026-03-23T19:35:17.000Z_abc123

Get cost as JSON and extract total:

bash
npx output workflow cost <runId> --json | jq '.totalCost'

Show full per-call breakdown:

bash
npx output workflow cost <runId> --verbose

  • output-workflow-runs-list — Find run IDs from execution history
  • output-workflow-start — Start a workflow and capture its run ID
  • output-workflow-run — Run a workflow synchronously
  • output-dev-scenario-file — Create or find scenario files for workflow input

© 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-workflow-cost of growthxai/output.

Open the folder on GitHubat commit ff9e1ab

Compare with similar skills

Output Dev Workflow Cost 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 Workflow Cost compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Output Dev Workflow Cost this skillgrowthxai/output442—~1.4kAutomated safety check: NotesApache-2.0
Context Compressionguanyang/open-agent-hub9772 repos~4.6kAutomated safety check: PassMIT
Bounty Hunter1sadjlk/bounty-hunter-skill2821 repos~761Automated safety check: PassMIT
Skill Shortenerluongnv89/asm954—~3.8kAutomated safety check: NotesMIT
Fleet Auditoralexgreensh/token-optimizer2.5k—~1.7kAutomated safety check: PassCustom licence
Context Auditundefined-ui/second-brain-os1k—~802Automated safety check: PassMIT

Similar skills

  • Context Compression

    guanyang/open-agent-hub

    This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…

    977 GitHub starsUsed in 2 repos~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Bounty Hunter

    1sadjlk/bounty-hunter-skill

    A professional AI bounty hunter persona named Atlas. An agent skill from 1sadjlk/bounty-hunter-skill.

    282 GitHub starsUsed in 1 repo~761 tokens
    AI & LLM EngineeringAuto-check passed
  • Skill Shortener

    luongnv89/asm

    Refactor a too-long SKILL.md by progressive disclosure: measure token cost, classify every section KEEP/CUT/MOVE, shorten the body into references/ and scripts/, verify nothing was lost.

    954 GitHub stars~3.8k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check: notes
  • Fleet Auditor

    alexgreensh/token-optimizer

    Cross-system agent token/cost audit (Claude Code, Codex, OpenClaw, Hermes, OpenCode): idle burns, model misrouting, config bloat, with dollar savings.

    2.5k GitHub stars~1.7k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Context Audit

    undefined-ui/second-brain-os

    Audit an agent's context layout against the four places: system prompt, tools, history, tail.

    1k GitHub stars~802 tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Headroom

    momori777/Artemis

    SmartCrusher + CCR context compression — crunch large JSON arrays, tool outputs, and search results to save tokens.

    378 GitHub stars~562 tokensUpdated 9 days ago
    AI & LLM EngineeringAuto-check passed

More from growthxai/output

All 52 skills in this repo
  • Zod schema constraints that Anthropic rejects or silently ignores when sent as structured-output tool definitions via aiSdk.Output.object().

    442 GitHub stars~597 tokensUpdated yesterday
    Auto-check passed
  • 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 yesterday
    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 yesterday
    Auto-check: notes
  • Wire encrypted credentials to environment variables using the credential: convention.

    442 GitHub stars~930 tokensUpdated yesterday
    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 yesterday
    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 yesterday
    Auto-check passed

Questions about Output Dev Workflow Cost

What does Output Dev Workflow Cost do?

Calculate and display the cost of an Output SDK workflow execution run. Output Dev Workflow Cost is an agent skill from growthxai/output. Calculate and display the cost of an Output SDK workflow execution run.

When should I use Output Dev Workflow Cost?

Output Dev Workflow Cost fits situations like: checking LLM token costs; API service costs; total spend for a specific workflow run.

How do I install Output Dev Workflow Cost in Claude Code?

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

How do I install Output Dev Workflow Cost in Codex?

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

Can I use Output Dev Workflow Cost 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-workflow-cost -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-workflow-cost, .gemini/skills/output-dev-workflow-cost, .github/skills/output-dev-workflow-cost and .opencode/skills/output-dev-workflow-cost in your project.

What does Output Dev Workflow Cost need to run?

Going by SKILL.md and its folder, Output Dev Workflow Cost needs the command-line tools its instructions call (npx and jq). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash.

Does Output Dev Workflow Cost access the network?

SKILL.md names 1 domain. As links in the text: models.dev. This is read from the text; nothing was executed.

Is Output Dev Workflow Cost safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Output Dev Workflow Cost use?

Output Dev Workflow Cost 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 Workflow Cost use?

About 1.4k tokens (SKILL.md is roughly 5.5k 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 Workflow Cost?

Skills that share tags, products or a category with Output Dev Workflow Cost: Context Compression (guanyang/open-agent-hub, 977 stars), Bounty Hunter (1sadjlk/bounty-hunter-skill, 282 stars), Skill Shortener (luongnv89/asm, 954 stars) and Fleet Auditor (alexgreensh/token-optimizer, 2.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 Workflow Cost?

growthxai (a GitHub organization) maintains it in growthxai/output, which has 442 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 8, 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.