Skip to main content
Scaffold a new workflow transition class and its matching test file under a module’s workflows/transitions directory. The @ooneex/workflow dependency is installed if it is not already present.

Usage

ooneex workflow:transition:create [options]

Examples

# Interactive: prompts for the transition name
ooneex workflow:transition:create

# Provide the name as a flag
ooneex workflow:transition:create --name=ChargeCard

# Target a specific module
ooneex workflow:transition:create --name=ReserveStock --module=orders

Options

OptionDescriptionDefault
--nameTransition name. Normalized to PascalCase with a Transition suffix.Prompted if omitted
--moduleTarget module the transition is created in.shared
--overrideOverwrite the files if they already exist.false

AI Skill

This command ships a matching workflow:transition:create skill. It generates the transition class and test file, then guides your AI agent through implementing a single conditional, reversible step that implements ITransition from @ooneex/workflow for use inside a workflow.
ooneex claude:init