/outputai:output-dev-folder-structurefrom outputai
Documents standard folder structure conventions for Output SDK workflows. Use when creating new workflows, organizing files, or reviewing project layout for compliance.
Ships in outputai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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/core/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/
│ └── [email protected]
└── 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 clientsWhat SKILL.md sets; muted values are Claude Code's defaults
51 skills in this plugin
/output-build-workflowImplement 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./output-credentials-editView, edit, and set encrypted credentials in an Output.ai project. Use when adding secrets, updating API keys, verifying credential values, or retrieving a specific credential./output-credentials-env-varsWire encrypted credentials to environment variables using the credential: convention. Use when setting up LLM provider keys (ANTHROPIC_API_KEY, OPENAI_API_KEY) or any env var that should come from encrypted credentials.npx claudepluginhub growthxai/output --plugin outputaiOther plugins' skills for the same job