From outputai
Outlines standard folder structure conventions for Output SDK workflows. Use when creating new workflows, reorganizing files, understanding file placement, or reviewing compliance.
npx claudepluginhub growthxai/output --plugin outputaiThis skill is limited to using the following tools:
This skill documents the standard folder structure for Output SDK workflows. Following these conventions ensures consistency across the codebase and enables proper tooling support.
Provides complete context for Output.ai Framework projects using Temporal for durable LLM-powered workflows. Covers structure, components, patterns, steps, prompts, and tool inventory.
Executes looplia workflows from Markdown files by iterating steps with general-purpose subagent calls. Use for /run commands, workflow.md processing, and multi-step skill orchestration.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
This skill documents the standard folder structure for Output SDK workflows. Following these conventions ensures consistency across the codebase and enables proper tooling support.
src/
├── shared/ # Shared code across workflows
│ ├── clients/ # API clients (using @outputai/http)
│ ├── utils/ # Utility functions & helpers
│ ├── services/ # Business logic services
│ ├── steps/ # Shared steps (optional)
│ └── evaluators/ # Shared evaluators (optional)
└── workflows/
└── {workflow-name}/ # Individual workflow directory
├── workflow.ts # Workflow definition (REQUIRED)
├── steps.ts # OR steps/ folder
├── evaluators.ts # OR evaluators/ folder (optional)
├── types.ts # Zod schemas and TypeScript types
├── utils.ts # Workflow-specific utilities (optional)
├── prompts/ # LLM prompt templates (optional)
│ └── {promptName}@v1.prompt
└── scenarios/ # Test input scenarios (optional)
└── {scenario_name}.json
workflow() function definitionRelated Skill: output-dev-workflow-function
step() function definitionsRelated Skill: output-dev-step-function
evaluator() function definitionsz from @outputai/core (never from zod)Related Skill: output-dev-types-file
.prompt files for LLM operations{promptName}@v1.promptRelated Skill: output-dev-prompt-file
{scenario_name}.jsonRelated Skill: output-dev-scenario-file
src/workflows/{workflow-name}/
├── workflow.ts
├── steps.ts # All steps in one file
├── evaluators.ts # All evaluators in one file (optional)
├── types.ts
└── ...
src/workflows/{workflow-name}/
├── workflow.ts
├── steps/ # Steps split into individual files
│ ├── fetch_data.ts
│ ├── process.ts
│ └── validate.ts
├── evaluators/ # Evaluators split into individual files
│ ├── quality.ts
│ └── accuracy.ts
├── types.ts
└── ...
The Output SDK enforces strict rules about where components can be defined:
| Component | Must be in |
|---|---|
step() calls | Files containing 'steps' in path |
evaluator() calls | Files containing 'evaluators' in path |
workflow() calls | workflow.ts file |
Examples:
src/workflows/my_workflow/steps.ts ✓src/workflows/my_workflow/steps/fetch_data.ts ✓src/shared/steps/common_steps.ts ✓src/workflows/my_workflow/helpers.ts ✗ (cannot contain step() calls)Steps and evaluators are Temporal activities with isolation constraints to ensure deterministic replay.
./utils.js, ./types.js, ./helpers.js./clients/pokeapi.js, ./lib/helpers.js../../shared/utils/*.js../../shared/clients/*.js../../shared/services/*.jsImport Pattern Examples:
// From workflow steps.ts - importing shared client
import { GeminiImageService } from '../../shared/clients/gemini_client.js';
// From workflow steps.ts - importing local utility
import { formatResponse } from './utils.js';
// From workflow steps.ts - importing types
import { InputSchema, OutputSchema } from './types.js';
// WRONG - steps cannot import other steps
import { otherStep } from '../../shared/steps/other.js'; // ✗
HTTP clients shared across workflows:
src/shared/clients/
├── gemini_client.ts # Google Gemini API client
├── jina_client.ts # Jina AI client
└── perplexity_client.ts # Perplexity API client
Import pattern in workflow steps:
import { GeminiImageService } from '../../shared/clients/gemini_client.js';
Related Skill: output-dev-http-client-create
Utility functions shared across workflows:
src/shared/utils/
├── string_helpers.ts
├── date_formatters.ts
└── validators.ts
Business logic services shared across workflows:
src/shared/services/
├── image_service.ts
└── content_service.ts
Shared steps that can be imported by workflows:
src/shared/steps/
└── common_steps.ts
Note: Workflows import shared steps, but steps cannot import other steps directly.
snake_case for workflow folder namesimage_infographic_nano, resume_parsercamelCase for .ts files (except workflow.ts, steps.ts, types.ts, evaluators.ts)camelCase@v{n} for .prompt filessnake_case for .json scenario filesname property in workflow() should be camelCaseimageInfographicNanosrc/workflows/image_infographic_nano/
├── workflow.ts # workflow({ name: 'imageInfographicNano', ... })
├── steps.ts # generateImageIdeas, generateImages, validateReferenceImages
├── types.ts # WorkflowInputSchema, WorkflowOutput, step schemas
├── utils.ts # normalizeReferenceImageUrls, buildS3Url, etc.
├── prompts/
│ └── generateImageIdeas@v1.prompt
└── scenarios/
├── test_input_complex.json
└── test_input_solar_panels.json
When reviewing workflow structure, verify:
workflow.ts exists with default exportsteps.ts or steps/ folder exists with all step definitionstypes.ts exists with Zod schemas.ts imports use .js extensionprompts/ folder exists if LLM operations are usedscenarios/ folder exists with at least one test inputsnake_case conventioncamelCase conventionoutput-dev-workflow-function - Writing workflow.ts filesoutput-dev-step-function - Writing step functionsoutput-dev-evaluator-function - Writing evaluators.ts filesoutput-dev-types-file - Creating Zod schemasoutput-dev-prompt-file - Creating prompt filesoutput-dev-scenario-file - Creating test scenariosoutput-dev-http-client-create - Creating shared HTTP clients