Skip to main content
Scaffolds an analytics class and its test file in a module. It writes the class under the module’s src/analytics directory, generates a matching test spec, and installs the @ooneex/analytics package if it is missing.

Usage

ooneex analytics:create [options]

Examples

ooneex analytics:create
ooneex analytics:create --name=PageView
ooneex analytics:create --name=PageView --module=tracking --override

Options

OptionDescriptionDefault
--nameAnalytics class name. The Analytics suffix is appended automatically.Prompted if omitted
--moduleTarget module the class is generated into.shared
--overrideOverwrite an existing class without prompting.false

AI Skill

This command ships a matching analytics:create skill. It generates the analytics class and its test file, then guides your AI agent through completing an analytics tracking class built on the @ooneex/analytics package.
ooneex claude:init