Skip to main content

Building Process

1

Plan Your Skill

Define what your skill will do and what tools it needs
2

Create Tools

Implement tools as TypeScript classes
3

Define Skill

Add tools to a LuaSkill instance in index.ts
4

Test Locally

Test with lua chat (sandbox mode) and optionally lua test
5

Deploy

Push and deploy to production

Complete Example: Task Management Skill

Step 1: Plan

Goal: Build a skill to manage tasks Tools needed:
  • create_task - Add new tasks
  • list_tasks - View all tasks
  • complete_task - Mark tasks as done
  • search_tasks - Find tasks

Step 2: Create Tools

Create src/tools/TaskTools.ts:

Step 3: Configure Agent with Skill

Update src/index.ts to use the LuaAgent pattern:
Use LuaAgent to configure your agent’s persona, welcome message, and skills together. This is now the recommended pattern.

Step 4: Test

Select sandbox mode to test with your local skills.

Step 5: Deploy

Best Practices

Build one tool at a time:
  1. Create basic version
  2. Test thoroughly
  3. Add more features
  4. Test again
Use Zod for comprehensive validation:

Common Patterns

CRUD Pattern

Search Pattern

External API Pattern

Next Steps

Multi-Skill Projects

Organize tools into multiple skills

Best Practices

Advanced tips and patterns

Tool Examples

See 30+ working examples

Build Your First Skill

Follow complete tutorial