framework:make:story

Generate Story Foundry fixtures for PHP tests using Zenstruck Foundry.

9|2|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/atournayre/claude-marketplace --skill framework-make-story
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: framework:make:story
Source: https://github.com/atournayre/claude-marketplace/tree/main/framework/skills/make-story
Command: npx skills add https://github.com/atournayre/claude-marketplace --skill framework-make-story

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the repetitive manual work of creating test fixtures by automatically generating structured Story classes with predefined scenarios, saving developers hours of setup time.

Core Features & Use Cases

  • Automated Story Generation: Creates complete Story classes with build methods and predefined test scenarios.
  • Fixture Orchestration: Automatically manages dependencies between different entity stories.
  • Named States: Generates reusable named instances for consistent testing across your codebase.
  • Use Case: Imagine you need to test an e-commerce application. Use this Skill to automatically generate Product, Category, User, and Order stories with realistic test data and proper relationships.

Quick Start

Use skill framework:make:story to create a Product story with default scenarios.

Frequently Asked Questions about framework:make:story

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate test fixture creation for PHP projects using Zenstruck Foundry?▼

Automate test fixture creation by generating Story classes that extend Story and implement StoryInterface. The Skill generates complete Story fixtures with build() methods, predefined scenarios, and factory calls, eliminating manual setup work for PHP Foundry projects.

What are Story fixtures and how do they improve testing in Zenstruck Foundry?▼

Story fixtures are reusable test data classes that encapsulate entity creation logic with named states and dependencies. They provide consistent test data across your codebase, manage relationships between entities automatically, and integrate with AppStory for coordinated fixture orchestration.

Can I define dependencies between different entity stories in my test fixtures?▼

Yes. The generated Story classes support inter-story dependencies, allowing you to orchestrate fixtures across related entities. Dependencies are managed automatically, and the #[AsFixture(name: 'main')] attribute enables AppStory integration for coordinated fixture execution.

How do I create named states for reusable test scenarios across my test suite?▼

Generate Story classes with predefined named instances and scenarios in the build() method. These named states provide consistent test data patterns you can reference repeatedly, reducing duplication and ensuring uniform test setup across your application.

What's the best way to scaffold multi-entity test fixtures for complex applications?▼

Use the Skill to generate related Story classes for each entity—Product, Category, User, Order. Each Story manages its own factory calls and relationships; AppStory orchestration coordinates them, creating realistic interdependent test data automatically.

Do I need to write custom factory logic after generating Story fixtures?▼

Generated Story classes include factory calls and build() methods with predefined scenarios. You can extend them with custom logic as needed, but the Skill provides complete, functional Story classes ready for immediate use in your test suite.