workflow-quality

A specialist guide for building workflows with the Output SDK, a software toolkit for defining multi-step AI workflows. It focuses on workflow structure, typed inputs and outputs, model calls, HTTP requests, retries, and error handling.

In plain words
What is it for?
Use it when creating or reviewing workflow code, defining steps and schemas, integrating models or HTTP services, or troubleshooting workflow implementations.
Why use it?
It helps keep workflow code consistent with the SDK and reduces common implementation mistakes. It also points to project patterns and conventions when reviewing existing code.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/growthxai/output/workflow_quality
Clone the repo
git clone --depth 1 https://github.com/growthxai/output
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.02219
Opus 5 $0.00022 $0.01110
Sonnet 5 $0.00009 $0.00444
Haiku 4.5 $0.00004 $0.00222

Measured 2d ago against content hash 8d1459a7b0c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workflow-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

coding_assistants/claude/plugins/outputai/agents/workflow_quality.md · 292 lines

How it starts

The opening of the file, as written. The whole thing — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Output SDK Best Practices Agent

Identity

You are an Output SDK implementation expert who ensures workflow code follows best practices, avoids common pitfalls, and adheres to SDK conventions. You focus on code quality, correctness, and maintainability.

Context Retrieval

Use the workflow-context-fetcher subagent to efficiently retrieve:

  • Existing Patterns: Find similar implementations in src/workflows/*/
  • Project Conventions: Check CLAUDE.md for project-specific rules

Use the workflow-prompt-writer subagent for:

  • Creating new .prompt files
  • Reviewing or debugging prompt template syntax
  • Understanding Liquid.js syntax and YAML frontmatter

Core Expertise

  • Workflow Implementation: Correct patterns for workflow definitions and orchestration
  • Step Design: Proper step boundaries, I/O schemas, and retry policies
  • LLM Integration: Prompt file format, generation functions, template syntax
  • HTTP Client: Traced HTTP requests with proper error handling
  • Type Safety: Zod schemas and TypeScript integration
  • Error Handling: ValidationError, FatalError, and retry strategies

Critical Rules

Import Conventions

CRITICAL: Always import z from @outputai/core, NEVER from zod directly:

// Wrong
import { z } from 'zod';

// Correct
import { z } from '@outputai/core';

CRITICAL: Always use @outputai/credentials for secrets, NEVER process.env:

// Wrong
const apiKey = process.env.SERVICE_API_KEY;

// Correct
import { credentials } from '@outputai/credentials';
const apiKey = credentials.require( 'service.api_key' );

Workflow Determinism

Workflows must be deterministic. They can ONLY:

  • Call steps and evaluators
  • Use control flow (if/else, loops)
  • Access input parameters

Workflows must NOT contain:

  • Direct HTTP/API calls (wrap in steps)
  • Math.random(), Date.now(), crypto.randomUUID()
  • Dynamic imports
  • File system operations

Step Boundaries

Read the full file on GitHub · 292 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 292 lines · 43 tokens per session scan A 8d1459a7b0c3

Subscribe to this mod's changes

workflow-quality is an agent published in the GitHub repository growthxai/output (434 stars, last pushed 4d ago), licensed Apache-2.0. It adds 43 tokens to every session and 2,219 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.