> ## 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.

# flag:create

> Generate a new feature flag class.

Scaffolds a feature flag class and its test file in a module. It writes the class under the module's `src/flags` directory, generates a matching test spec under `tests/feature-flag`, pre-fills a kebab-case flag key from the name, and installs the `@ooneex/feature-flag` package if it is missing.

## Usage

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

## Examples

```bash theme={null}
ooneex flag:create
```

```bash theme={null}
ooneex flag:create --name=NewCheckout
```

```bash theme={null}
ooneex flag:create --name=NewCheckout --module=checkout --override
```

## Options

| Option       | Description                                                                  | Default             |
| ------------ | ---------------------------------------------------------------------------- | ------------------- |
| `--name`     | Feature flag class name. The `FeatureFlag` suffix is appended automatically. | Prompted if omitted |
| `--module`   | Target module the class is generated into.                                   | `shared`            |
| `--override` | Overwrite an existing class without prompting.                               | `false`             |

## AI Skill

This command ships a matching `flag:create` skill. It generates the feature flag class and its test file, then guides your AI agent through completing a flag that implements the `IFeatureFlag` interface from `@ooneex/feature-flag`.

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

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