Creating Custom Skills

Custom skills allow you to extend Tuvo Code with specialized capabilities tailored to your specific needs.

Skill Structure

A skill is defined by a TypeScript file that exports a skill object:

// skills/my-custom-skill.ts import { Skill } from '@tuvo/core'; export const myCustomSkill: Skill = { name: 'my-custom-skill', description: 'Performs custom task', execute: async (context, input) => { // Your skill logic here return result; }, };

Registering Skills

Register your skill in the skills registry:

// skills/index.ts import { myCustomSkill } from './my-custom-skill'; export const skills = [ myCustomSkill, // ... other skills ];

Using Custom Skills

Once registered, your skill is automatically available in Tuvo Code:

> use my-custom-skill to perform the custom task

Best Practices

  • • Keep skills focused on a single responsibility
  • • Provide clear descriptions
  • • Handle errors gracefully
  • • Write tests for your skills
  • • Document usage examples