> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talosjs.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 `@talosjs/workflow` dependency is installed if it is not already present.

## Usage

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

## Examples

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

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

# Target a specific module
talos 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 `@talosjs/workflow` as an ordered sequence of conditional, reversible transitions that roll back automatically on failure.

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

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