Workflow Quality
Use this agent when you need expert guidance on Output SDK implementation patterns, code quality, and best practices. Invoke when writing or reviewing workflow code, troubleshooting implementation issues, or ensuring code follows SDK conventions.
- Type
- Subagent
- Repository
- growthxai/output
- GitHub stars
- 439
- License
- Apache-2.0
- Repo last updated
- Sep 25, 2026
- Model
- sonnet
What Workflow Quality is
Workflow Quality is a subagent published in the growthxai/output repository on GitHub, which has about 439 stars. 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 in place.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Workflow Quality and get back a compact result.
How to install Workflow Quality
Claude Code
- Download workflow_quality.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from coding_assistants/claude/plugins/outputai/agents/workflow_quality.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
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
All I/O operations must be wrapped in steps:
// Wrong - I/O in workflow
export default workflow( {
fn: async input => {
const data = await fetch( 'https://api.example.com' ); // ❌
return { data };
}
} );
// Correct - I/O in step
export const fetchData = step( {
name: 'fetchData',
fn: async input => {
const client = createKyClient( { prefix: 'https://api.example.com' } );
return client.get( 'endpoint' ).json();
}
} );No Try-Catch Wrapping
Don't wrap step calls in try-catch blocks. Allow failures to propagate:
// Wrong
fn: async input => {
try {
const result = await myStep( input );
return result;
} catch ( error ) {
throw new FatalError( error.message );
}
}
// Correct
fn: async input => {
const result = await myStep( input );
return result;
}HTTP Client Usage
Never use axios directly. Use @outputai/http:
import { createKyClient } from '@outputai/http';
const client = createKyClient( {
prefix: 'https://api.example.com',
timeout: 30000,
retry: { limit: 3 }
} );
// GET request
const data = await client.get( 'endpoint' ).json();
// POST request
const result = await client.post( 'endpoint', { json: payload } ).json();LLM Integration
Never call LLM APIs directly. Use @outputai/llm:
import { generateText, aiSdk } from '@outputai/llm';
// Text generation
const { result: text } = await generateText( {
prompt: 'prompts/my_prompt@v1',
variables: { topic: 'AI' }
} );
// Structured output
const { output: data } = await generateText( {
prompt: 'prompts/extract@v1',
variables: { text },
output: aiSdk.Output.object( {
schema: z.object( { title: z.string(), summary: z.string() } )
} )
} );Schema Definitions
Define input/output schemas with Zod:
import { step, z } from '@outputai/core';
export const processData = step( {
name: 'processData',
inputSchema: z.object( {
id: z.string(),
count: z.number().optional()
} ),
outputSchema: z.object( {
result: z.string(),
processed: z.boolean()
} ),
fn: async input => {
// input is typed as { id: string, count?: number }
return { result: input.id, processed: true };
}
} ); Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Workflow Quality?
Workflow Quality is a subagent for Claude Code and Claude Cowork from the growthxai/output repository on GitHub. Use this agent when you need expert guidance on Output SDK implementation patterns, code quality, and best practices. Invoke when writing or reviewing workflow code, troubleshooting implementation issues, or ensuring code follows SDK conventions.
How do I install Workflow Quality in Claude Code?
Download workflow_quality.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Workflow Quality in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Workflow Quality safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Temporal Expert Use this agent for Output.ai workflow abstractions, designing activity boundaries, implementing error handling patterns, optimizing worker performance, and testing Temporal workflows with Output.ai patterns. Specializes in LLM workflow integration and Output.ai best practices. Subagent · growthxai/output
- Workflow Prompt Writer Use this agent when writing, reviewing, or debugging LLM prompt files (.prompt). Specializes in Liquid.js template syntax, YAML frontmatter configuration, and Output SDK prompt conventions. Subagent · growthxai/output
- Output Build Workflow Implement an Output SDK workflow from a plan document. Use when the user asks to build, implement, or code a workflow from an existing plan, or after output-plan-workflow has produced a plan and the user is ready to build. Skill · growthxai/output
- Llm Expert Use this agent for AI SDK integration, LLM provider configuration, prompt template management, error handling for AI APIs, and optimizing LLM workflow patterns within Output. Specializes in Anthropic Claude and OpenAI integrations. Subagent · growthxai/output
- Code Reviewer Fresh-context adversarial code reviewer. Use for the fresh subagent review step in implement and task-to-pr, after any non-trivial change… Subagent · owainlewis/blueprint
- Autocontext Curator Validates and structures lesson candidates before persisting to lessons.json Subagent · jamditis/claude-skills-journalism
- Workflow Planner Design new workflows for the Output SDK system, plan complex workflow orchestrations, or create comprehensive implementation blueprints. Use at the beginning of workflow development to ensure proper architecture and complete requirements gathering. Subagent · growthxai/output
- Adaptive Coordinator Dynamic topology switching coordinator with self-organizing swarm patterns and real-time optimization Subagent · spencermarx/open-code-review