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
Examples
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 matchingflag: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.
- Claude
- Codex