> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ooneex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# workflow:transition:create

> Generate a new workflow transition class.

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

```bash theme={null}
ooneex workflow:transition:create [options]
```

## Examples

```bash theme={null}
# 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

| Option       | Description                                                           | Default             |
| ------------ | --------------------------------------------------------------------- | ------------------- |
| `--name`     | Transition name. Normalized to PascalCase with a `Transition` suffix. | Prompted if omitted |
| `--module`   | Target module the transition is created in.                           | `shared`            |
| `--override` | Overwrite 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.

<Tabs>
  <Tab title="Claude">
    ```bash theme={null}
    ooneex claude:init
    ```
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    ooneex codex:init
    ```
  </Tab>
</Tabs>
