What is a Squad?
Squads are modular teams of AI agents that extend AIOX functionality. Each squad is a self-contained package containing:| Component | Purpose |
|---|---|
| Agents | Domain-specific AI personas |
| Tasks | Executable workflows |
| Workflows | Multi-step orchestrations |
| Config | Coding standards, tech stack |
| Templates | Document generation templates |
| Tools | Custom tool integrations |
Distribution Levels
Official Squads
| Squad | Version | Description |
|---|---|---|
etl-squad | 2.0.0 | Data collection and transformation |
creator-squad | 1.0.0 | Content generation utilities |
Quick Start
Prerequisites
- Node.js 18+
- AIOX project initialized (
.aiox-core/exists) - Git for version control
Option 1: Guided Design (Recommended)
Option 2: Direct Creation
Squad Architecture
Directory Structure
Squad Manifest (squad.yaml)
Task-First Architecture
Squads follow task-first architecture where tasks are the primary entry point:Creating Squads
Using @squad-creator Agent
Available Commands
| Command | Description |
|---|---|
*create-squad {name} | Create new squad with prompts |
*create-squad {name} --template {type} | Create from template |
*create-squad {name} --from-design | Create from design blueprint |
*validate-squad {name} | Validate squad structure |
*list-squads | List all local squads |
*design-squad | Design squad from documentation |
*analyze-squad {name} | Analyze squad structure |
*extend-squad {name} | Add components to existing squad |
Templates
| Template | Use Case |
|---|---|
basic | Simple squad with one agent and task |
etl | Data extraction, transformation, loading |
agent-only | Squad with agents, no tasks |
Config Inheritance Modes
| Mode | Behavior |
|---|---|
extend | Add squad rules to core AIOX rules |
override | Replace core rules with squad rules |
none | Standalone configuration |
Squad Designer
The Squad Designer analyzes your documentation and recommends agents and tasks.Usage
Workflow
- Collect Documentation - Provide PRDs, specs, requirements
- Domain Analysis - System extracts concepts, workflows, roles
- Agent Recommendations - Review suggested agents
- Task Recommendations - Review suggested tasks
- Generate Blueprint - Save to
.squad-design.yaml - Create from Blueprint -
*create-squad my-squad --from-design
Blueprint Format
Analyzing & Extending Squads
Analyzing Squads
Analysis Output
Extending Squads
Add new components to existing squads with automatic manifest updates:Component Types
| Type | Directory | Extension | Description |
|---|---|---|---|
| agent | agents/ | .md | Agent persona definition |
| task | tasks/ | .md | Executable task workflow |
| workflow | workflows/ | .yaml | Multi-step orchestration |
| checklist | checklists/ | .md | Validation checklist |
| template | templates/ | .md | Document generation template |
| tool | tools/ | .js | Custom tool integration |
| script | scripts/ | .js | Utility automation script |
| data | data/ | .yaml | Static data configuration |
Validating Squads
Basic Validation
Strict Mode (for CI/CD)
Validation Checks
| Check | Description |
|---|---|
| Manifest Schema | squad.yaml against JSON Schema |
| Directory Structure | Required folders exist |
| Task Format | Tasks follow TASK-FORMAT-SPEC-V1 |
| Agent Definitions | Agents have required fields |
| Dependencies | Referenced files exist |
Validation Output
Publishing & Distribution
Level 1: Local (Private)
Squads in./squads/ are automatically available to your project.
Level 2: aiox-squads Repository (Public)
Level 3: Synkra Marketplace
Downloading Squads
Using Squads
Activating Squad Agents
Squad Resolution
The Squad Loader resolves squads in this order:Best Practices
Squad Design
- Keep squads focused - One domain per squad
- Define clear agents - Each agent has distinct responsibilities
- Create comprehensive tasks - Cover all common workflows
- Document thoroughly - Include README and examples
Squad Creation
- Start with design - Use
*design-squadfor better planning - Validate early - Run
*validate-squadfrequently - Test locally - Use squad before publishing
- Version semantically - Follow semver (x.y.z)
Squad Usage
- Check compatibility - Verify
aiox.minVersion - Review dependencies - Install required packages
- Read documentation - Check README.md
- Report issues - Help improve community squads
Troubleshooting
”Squad not found”
Validation Errors
YAML Parse Errors
- Incorrect indentation (use 2 spaces)
- Missing quotes around special characters
- Tabs instead of spaces
FAQ
What’s the difference between a Squad and AIOX core?
Squads are domain-specific extensions. AIOX core is the framework for general software development.Can I use Squads from different sources together?
Yes. The Squad Loader resolves from multiple sources. Local squads take precedence.How do I update a published Squad?
- Update version in
squad.yaml(semver) - Run
*validate-squad --strict - Re-publish:
*publish-squador*sync-squad-synkra
Can Squads depend on other Squads?
Yes, declare independencies.squads:
How do I make a Squad private?
- Level 1: Keep in
./squads/(not committed) - add to.gitignore - Level 3: Sync with
--privateflag
Next Steps
- Creating Squads - Step-by-step squad creation guide
- Custom Workflows - Build workflows for your squad
- Task Format Spec - Learn the task format specification
- Publishing Guide - Share your squad with the community