Skip to main content
Scaffold a new AI tool class and its matching test file under a module’s ai/tools directory. The @ooneex/ai dependency is installed if it is not already present.

Usage

ooneex ai:tool:create [options]

Examples

# Interactive: prompts for the tool name
ooneex ai:tool:create

# Provide the name as a flag
ooneex ai:tool:create --name=WebSearch

# Target a specific module
ooneex ai:tool:create --name=WebSearch --module=help

Options

OptionDescriptionDefault
--nameTool name. Normalized to PascalCase with a Tool suffix; its getName() returns the snake_case identifier the model calls.Prompted if omitted
--moduleTarget module the tool is created in.shared
--overrideOverwrite the files if they already exist.false

AI Skill

This command ships a matching ai:tool:create skill. It generates the tool class and test file, then guides your AI agent through implementing a function-calling tool that implements ITool from @ooneex/ai for use by a chat.
ooneex claude:init