Overview
The Lua CLI creates a clean, minimal project structure by default. You can optionally include examples with--with-examples.
- Minimal (Default)
- With Examples
- After You Build
Core Files
src/index.ts
Your agent’s main configuration file.lua.skill.yaml
Auto-managed configuration file. Created duringlua init, updated automatically by CLI commands.
IDs like
skillId, webhookId, and jobId are auto-generated during compilation. Never edit these manually.package.json
Standard Node.js package configuration:Building Your Project
Recommended Structure
As your project grows, organize it like this:File Naming Conventions
Auto-Generated Directories
dist/
Compiled JavaScript output. Created bylua compile.
.lua/
CLI cache directory. Safe to delete - will be regenerated.Environment Files
.env
Your local environment variables (create this file):.env.example
Template for environment variables (commit this):Git Configuration
✅ Commit These
❌ Don’t Commit These
Sample .gitignore
Project Size Patterns
- Small (1-5 tools)
- Medium (5-15 tools)
- Large (15+ tools)
Next Steps
Building Skills
Learn how to build custom skills
Best Practices
Follow recommended patterns
API Reference
Available platform APIs
Examples
See working code examples

