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:Options
Generated files
The source file is rendered from theai-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 matchingai: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.
- Claude
- Codex