Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create test scenario JSON files for Output SDK workflows. Use when creating test inputs, documenting expected behaviors, or setting up workflow testing.
.claude/skills/growthxai-output-dev-scenario-file/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | 75% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 76% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 79% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 54% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 47% | 0% |
This skill documents how to create test scenario JSON files for Output SDK workflows. Scenarios provide predefined inputs for testing workflows during development and validation.
Scenario files are stored INSIDE the workflow folder:
src/workflows/{workflow-name}/
├── workflow.ts
├── steps.ts
├── types.ts
└── scenarios/
├── basic_input.json
├── complex_input.json
└── edge_case_empty.jsonImportant: Scenarios are workflow-specific and live inside the workflow folder.
Use snake_case for scenario file names:
{description}_input.jsonExamples:
basic_input.jsontest_input_solar_panels.jsonedge_case_empty_content.jsoncomplex_with_references.jsonNaming patterns:
basic_* - Minimal valid inputcomplex_* - Full-featured input with all optionsedge_case_* - Boundary conditions and edge caseserror_* - Inputs expected to produce errorsA scenario file is a JSON file that matches the workflow's inputSchema:
json{ "fieldName": "value", "optionalField": "optional value", "numericField": 42, "arrayField": ["item1", "item2"] }
The scenario JSON must match the Zod schema defined in types.ts:
typescriptexport const WorkflowInputSchema = z.object({ content: z.string().describe('Text content to process'), numberOfIdeas: z.number().min(1).max(10).default(1), colorPalette: z.string().optional(), aspectRatio: z.enum(['1:1', '16:9', '9:16']).default('1:1'), referenceUrls: z.array(z.string()).optional() });
basic_input.json (minimal required fields)
json{ "content": "This is sample content for testing the workflow." }
complete_input.json (all fields specified)
json{ "content": "This is sample content for testing the workflow.", "numberOfIdeas": 3, "colorPalette": "blue and green tones", "aspectRatio": "16:9", "referenceUrls": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ] }
Based on image_infographic_nano workflow:
json{ "content": "Solar panels work by converting sunlight into electricity through the photovoltaic effect. The process begins when photons from sunlight strike the silicon cells in the panel, knocking electrons loose from their atoms. These free electrons flow through the semiconductor material, creating an electric current. The panels contain multiple layers: a protective glass covering, anti-reflective coating to maximize light absorption, silicon cells (both n-type and p-type layers forming a junction), and a backing material. The DC electricity generated by the panels flows through an inverter, which converts it to AC electricity suitable for home use or feeding back into the power grid. Modern solar panels achieve 15-20% efficiency, meaning they convert that percentage of sunlight into usable electricity. The entire system includes mounting hardware, wiring, inverters, and often battery storage for excess energy.", "numberOfIdeas": 3, "aspectRatio": "16:9", "resolution": "2K", "numberOfGenerations": 1 }
json{ "content": "Detailed explanation of the topic...", "numberOfIdeas": 5, "colorPalette": "warm earth tones with orange accents", "artDirection": "minimalist corporate style", "aspectRatio": "1:1", "resolution": "4K", "numberOfGenerations": 2, "referenceImageUrls": [ "https://storage.example.com/style-guide.png" ], "storageNamespace": "test/infographics" }
bash# Run with scenario file npx output workflow run workflowName --input path/to/scenarios/basic_input.json # Run with inline JSON npx output workflow run workflowName --input '{"content": "test"}'
bash# Basic scenario npx output workflow run contentUtilsImageInfographicNano --input src/workflows/content_utils/image_infographic_nano/scenarios/test_input_solar_panels.json # Complex scenario npx output workflow run contentUtilsImageInfographicNano --input src/workflows/content_utils/image_infographic_nano/scenarios/test_input_complex.json
Related Skill: output-workflow-run for detailed CLI usage
Minimal valid input to verify the workflow works:
json{ "content": "Simple test content", "numberOfIdeas": 1 }
All optional fields populated:
json{ "content": "Detailed content...", "numberOfIdeas": 5, "colorPalette": "custom palette", "artDirection": "specific style", "aspectRatio": "16:9", "resolution": "4K", "numberOfGenerations": 3, "referenceImageUrls": ["https://example.com/ref.jpg"], "storageNamespace": "test/folder" }
Test boundary conditions:
edge_case_min_values.json
json{ "content": "x", "numberOfIdeas": 1 }
edge_case_max_values.json
json{ "content": "Very long content string...", "numberOfIdeas": 10 }
error_missing_required.json
json{ "numberOfIdeas": 3 }
Note: Error scenarios won't pass validation but are useful for testing error handling.
Add a comment field (if supported) or create a companion README:
json{ "_comment": "Tests workflow with multiple reference images", "content": "...", "referenceImageUrls": ["url1", "url2", "url3"] }
json{ "content": "Actual representative content that matches real use cases..." }
Not:
json{ "content": "test" }
If schema has enums, create scenarios for each:
json// scenario_aspect_1x1.json { "aspectRatio": "1:1", ... } // scenario_aspect_16x9.json { "aspectRatio": "16:9", ... } // scenario_aspect_9x16.json { "aspectRatio": "9:16", ... }
json// without_optional_fields.json { "content": "..." } // with_all_optional_fields.json { "content": "...", "colorPalette": "...", "artDirection": "..." } // with_some_optional_fields.json { "content": "...", "colorPalette": "..." }
Save inputs from bug reports:
json// regression_issue_123.json { "_issue": "https://github.com/org/repo/issues/123", "content": "Input that caused the bug..." }
For workflows with many scenarios, organize into subfolders:
scenarios/
├── basic/
│ └── minimal_input.json
├── complete/
│ └── all_options.json
├── edge_cases/
│ ├── empty_array.json
│ └── max_length.json
└── regression/
└── issue_123.jsonscenarios/ folder inside workflow directory.json extensionsnake_casebash# Check JSON is valid cat scenarios/basic_input.json | jq .
bash# Run workflow with scenario npx output workflow run workflowName --input scenarios/basic_input.json # Check status if async npx output workflow status <workflowId> # Get result npx output workflow result <workflowId>
output-dev-types-file - Defining inputSchema that scenarios must matchoutput-dev-folder-structure - Understanding scenarios folder locationoutput-workflow-run - Running workflows with scenario filesoutput-workflow-list - Finding available workflows| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-14 | pass→pass | 13,821 | 6,574 | -52% | 1 | 1 | 0% | 2,164 | 3,225 | +49% | 0 | 0 | — |
case-15 | fail→pass | 12,048 | 5,992 | -50% | 1 | 1 | 0% | 1,847 | 3,238 | +75% | 0 | 0 | — |
case-21 | fail→pass | 10,940 | 4,212 | -61% | 1 | 1 | 0% | 1,700 | 2,989 | +76% | 0 | 0 | — |
case-01 | fail→fail | 13,734 | 9,643 | -30% | 1 | 1 | 0% | 2,598 | 4,115 | +58% | 0 | 0 | — |
case-02 | fail→fail | 31,970 | 7,820 | -76% | 1 | 1 | 0% | 2,669 | 3,703 | +39% | 0 | 0 | — |
case-03 | fail→fail | 16,459 | 10,011 | -39% | 1 | 1 | 0% | 2,917 | 4,107 | +41% | 0 | 0 | — |
case-04 | fail→fail | 5,449 | 3,745 | -31% | 1 | 1 | 0% | 972 | 3,023 | +211% | 0 | 0 | — |
case-05 | pass→pass | 16,675 | 7,291 | -56% | 1 | 1 | 0% | 2,860 | 3,565 | +25% | 0 | 0 | — |
case-06 | pass→pass | 9,025 | 2,565 | -72% | 1 | 1 | 0% | 1,394 | 2,721 | +95% | 0 | 0 | — |
case-07 | fail→pass | 9,544 | 3,024 | -68% | 1 | 1 | 0% | 1,579 | 2,834 | +79% | 0 | 0 | — |
case-08 | fail→pass | 12,582 | 5,676 | -55% | 1 | 1 | 0% | 2,121 | 3,272 | +54% | 0 | 0 | — |
case-09 | fail→pass | 11,876 | 3,521 | -70% | 1 | 1 | 0% | 2,006 | 2,948 | +47% | 0 | 0 | — |
case-10 | fail→pass | 13,437 | 4,339 | -68% | 1 | 1 | 0% | 2,022 | 3,035 | +50% | 0 | 0 | — |
case-11 | pass→pass | 8,599 | 2,440 | -72% | 1 | 1 | 0% | 1,442 | 2,723 | +89% | 0 | 0 | — |
case-12 | pass→pass | 15,632 | 6,681 | -57% | 1 | 1 | 0% | 2,723 | 3,410 | +25% | 0 | 0 | — |
case-13 | pass→pass | 12,460 | 7,682 | -38% | 1 | 1 | 0% | 2,179 | 3,764 | +73% | 0 | 0 | — |
case-16 | fail→pass | 9,952 | 5,402 | -46% | 1 | 1 | 0% | 1,660 | 3,217 | +94% | 0 | 0 | — |
case-17 | fail→pass | 11,539 | 4,218 | -63% | 1 | 1 | 0% | 1,833 | 3,022 | +65% | 0 | 0 | — |
case-18 | pass→pass | 8,024 | 4,764 | -41% | 1 | 1 | 0% | 1,274 | 3,042 | +139% | 0 | 0 | — |
case-19 | fail→pass | 11,814 | 4,754 | -60% | 1 | 1 | 0% | 2,002 | 3,107 | +55% | 0 | 0 | — |
case-20 | fail→pass | 8,109 | 2,739 | -66% | 1 | 1 | 0% | 1,232 | 2,704 | +119% | 0 | 0 | — |
case-22 | fail→pass | 15,336 | 8,495 | -45% | 1 | 1 | 0% | 2,752 | 3,832 | +39% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +50 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.