Skip to main content
Scaffold an AI skill class and a matching test file. The command writes modules/<module>/src/ai/skills/<Name>Skill.ts, writes modules/<module>/tests/ai/skills/<Name>Skill.spec.ts, creates the target module if it does not exist, and installs @talosjs/ai when it is missing.

Usage

Examples

Run with no flags to be prompted for the skill name:
Create a skill in the default module:
Create a skill in a specific module:
Overwrite an existing skill file without confirmation:

Options

Generated files

The source file is rendered from the ai-skill.txt skeleton template, and the spec file is rendered from ai-skill.test.txt. The generated class uses the Skill suffix; for example, orderRefund becomes OrderRefundSkill.

AI Skill

This command ships a matching ai:skill:create skill. After generating the class and test file, it guides your AI agent through completing an ISkill implementation from @talosjs/ai and registering it on the chat that should use it.