Overview
This guide walks you through creating a custom squad from scratch, from initial planning to validation and deployment.Prerequisites
- AIOX project initialized
- Basic understanding of AIOX agents and tasks
- Domain knowledge for your squad’s purpose
Step 1: Planning Your Squad
Define the Domain
Before creating a squad, answer these questions:-
What problem does this squad solve?
- Example: “Automate casting workflow for film production”
-
Who are the users?
- Example: “Casting directors, production managers”
-
What are the key workflows?
- Example: “Process submissions, schedule auditions, manage callbacks”
-
What agents are needed?
- Example: “Casting coordinator, audition scheduler, talent evaluator”
Research Existing Squads
Step 2: Design with Squad Designer
Gather Documentation
Collect all relevant documentation:- Product requirements documents (PRDs)
- Technical specifications
- User stories
- Process diagrams
- Domain glossaries
Run the Designer
- Analyze your documentation
- Extract domain concepts and workflows
- Recommend agents with roles and responsibilities
- Suggest tasks for each agent
- Generate a blueprint file (
.squad-design.yaml)
Review the Blueprint
Open.squad-design.yaml:
Refine Recommendations
Edit the blueprint to:- Add missing agents
- Remove unnecessary agents
- Adjust agent responsibilities
- Add custom tasks
- Modify task inputs/outputs
Step 3: Create the Squad
Option A: From Blueprint
Option B: From Template
Option C: Interactive Creation
- Squad name (validates kebab-case)
- Description (what the squad does)
- Author (your name and email)
- License (MIT, Apache, etc.)
- Template (basic, etl, agent-only, or none)
- Agent names (comma-separated)
- Config inheritance (extend, override, none)
Step 4: Define Agents
Agent File Structure
Each agent is a markdown file inagents/:
schedule-audition
Usage:*schedule-audition --actor-id ID --slot DATETIME
Description: Schedule an audition for an actor
Knowledge Base
Submission Format
Standard submission includes:- Headshot (JPG/PNG, max 5MB)
- Resume (PDF)
- Demo reel link (optional)
- Contact information
Audition Process
- Review submission
- Initial screening
- Schedule audition
- Conduct audition
- Callback decision
- Final selection
Task Best Practices
- Clear inputs/outputs - Document all parameters
- Error handling - List all possible error states
- Step-by-step - Break down the process
- Checklist - Validation points
- Dependencies - What this task needs
Step 6: Configure the Squad
Edit squad.yaml
Config Files
Customize configuration inconfig/:
coding-standards.md:
Step 7: Add Workflows (Optional)
Createworkflows/casting-workflow.yaml:
Step 8: Validate the Squad
Common Validation Errors
Error: “Invalid squad name”- Solution: Use kebab-case (lowercase with hyphens)
- Example:
casting-squadnotCastingSquad
- Solution: Add missing fields to
squad.yaml - Required:
name,version,description,aiox.type,aiox.minVersion
- Solution: Review task format specification
- Ensure all required sections present
- Solution: Check
components.agentsinsquad.yaml - Verify file exists in
agents/directory
Step 9: Test the Squad
Local Testing
Integration Testing
Validation Testing
Step 10: Document the Squad
README.md
Create comprehensive documentation:Usage
Process a submission
Schedule an audition
Agents
- Casting Coordinator - Manages submissions and scheduling
- Talent Evaluator - Evaluates actor fit for roles
Requirements
- Node.js 18+
- PostgreSQL 14+
- SendGrid API key
License
MITPublish Options
Option A: GitHub (Public)SynkraAI/aiox-squads.
Option B: Synkra Marketplace
.gitignore:
Best Practices
Design
- Start with documentation - Use Squad Designer
- Keep agents focused - One clear responsibility per agent
- Create comprehensive tasks - Cover all workflows
- Test early and often - Validate as you build
Development
- Follow task format - Adhere to TASK-FORMAT-SPEC-V1
- Document thoroughly - Clear README and examples
- Version semantically - Use semver (x.y.z)
- Handle errors gracefully - Clear error messages
Publishing
- Validate strictly - Use
--strictflag - Write good README - Usage examples and requirements
- Choose appropriate license - MIT recommended
- Tag appropriately - Help users find your squad
Troubleshooting
See the Squads Guide for common issues and solutions.Next Steps
- Custom Workflows - Create multi-step workflows
- Advanced Tasks - Build complex task orchestrations
- Squad Testing - Write tests for your squad
- Community - Share your squad with others