> ## 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:create

> Generate a new workflow class.

Scaffold a new workflow class and its matching test file under a module's `workflows` directory. The `@ooneex/workflow` dependency is installed if it is not already present.

## Usage

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

## Examples

```bash theme={null}
# Interactive: prompts for the workflow name
ooneex workflow:create

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

# Target a specific module
ooneex workflow:create --name=OrderProcessing --module=orders
```

## Options

| Option       | Description                                                       | Default             |
| ------------ | ----------------------------------------------------------------- | ------------------- |
| `--name`     | Workflow name. Normalized to PascalCase with a `Workflow` suffix. | Prompted if omitted |
| `--module`   | Target module the workflow is created in.                         | `shared`            |
| `--override` | Overwrite the files if they already exist.                        | `false`             |

## AI Skill

This command ships a matching `workflow:create` skill. It generates the workflow class and test file, then guides your AI agent through completing a multi-step business process from `@ooneex/workflow` as an ordered sequence of conditional, reversible transitions that roll back automatically on failure.

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

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