> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/SynkraAI/aiox-core/llms.txt
> Use this file to discover all available pages before exploring further.

# Squad Creator Agent

> Specialist agent for creating, validating, and publishing AIOX squads

# Squad Creator Agent

The **Squad Creator** agent specializes in creating, validating, and publishing AIOX squads — modular teams of agents designed for specific domains or use cases.

## Role

**Squad Creation Specialist** — Guides users through the complete squad creation lifecycle, from design to publication.

## Key Responsibilities

* Design squad structure and agent composition
* Create squad manifests and configuration
* Validate squad integrity and completeness
* Generate squad documentation
* Prepare squads for publication
* Assist with squad marketplace submission

## Agent Activation

<CodeGroup>
  ```bash Claude Code theme={null}
  @squad-creator
  ```

  ```bash Codex CLI theme={null}
  /skills
  # Select: aiox-squad-creator
  ```

  ```bash Gemini CLI theme={null}
  /aiox-squad-creator
  ```
</CodeGroup>

## Core Commands

<AccordionGroup>
  <Accordion title="*create-squad - Create New Squad">
    Create a new squad from scratch with interactive guidance.

    **Usage:**

    ```
    *create-squad
    ```

    The agent will guide you through:

    1. Squad purpose and goals
    2. Required agents and roles
    3. Workflow definitions
    4. Task and template creation
    5. Configuration setup

    **Output:**

    * Squad directory structure in `squads/{squad-name}/`
    * Squad manifest (`config.yaml`)
    * Agent definitions
    * Workflows and tasks
    * README and documentation
  </Accordion>

  <Accordion title="*validate-squad - Validate Squad Structure">
    Validate a squad's structure, configuration, and completeness.

    **Usage:**

    ```
    *validate-squad <squad-name>
    ```

    **Checks:**

    * Squad manifest structure
    * Required files present
    * Agent definitions valid
    * Task/workflow syntax
    * Documentation completeness
    * No circular dependencies

    **Example:**

    ```
    *validate-squad my-content-squad
    ```
  </Accordion>

  <Accordion title="*analyze-squad - Analyze Existing Squad">
    Analyze an existing squad to understand its structure and capabilities.

    **Usage:**

    ```
    *analyze-squad <squad-name>
    ```

    **Output:**

    * Squad purpose and goals
    * Agent roster and roles
    * Available workflows
    * Task inventory
    * Dependencies
    * Configuration options
  </Accordion>

  <Accordion title="*publish-squad - Prepare for Publication">
    Prepare a squad for publication to GitHub or squad marketplace.

    **Usage:**

    ```
    *publish-squad <squad-name>
    ```

    **Steps:**

    1. Validate squad completeness
    2. Generate publication manifest
    3. Create installation script
    4. Build README and docs
    5. Package for distribution
  </Accordion>

  <Accordion title="*guide - Squad Creation Guide">
    Display comprehensive guide for squad creation.

    **Usage:**

    ```
    *guide
    ```

    Shows:

    * Squad architecture overview
    * Best practices
    * File structure requirements
    * Configuration options
    * Publishing guidelines
  </Accordion>
</AccordionGroup>

## Squad Creation Workflow

<Steps>
  <Step title="Design Phase">
    Define squad purpose, required agents, and capabilities.

    ```
    *create-squad
    # Follow interactive prompts
    ```
  </Step>

  <Step title="Structure Creation">
    Agent creates squad directory structure with all required files:

    ```
    squads/your-squad/
    ├── config.yaml           # Squad manifest
    ├── agents/              # Agent definitions
    ├── tasks/               # Executable tasks
    ├── workflows/           # Workflow definitions
    ├── templates/           # Document templates
    ├── checklists/          # Quality checklists
    ├── data/                # Knowledge base
    └── README.md            # Documentation
    ```
  </Step>

  <Step title="Validation">
    Validate squad integrity and completeness:

    ```
    *validate-squad your-squad
    ```

    Fix any reported issues.
  </Step>

  <Step title="Testing">
    Test squad agents and workflows in your project:

    ```
    @your-squad-agent
    *help
    ```
  </Step>

  <Step title="Documentation">
    Ensure complete documentation:

    * README with overview
    * Agent guides
    * Workflow documentation
    * Usage examples
  </Step>

  <Step title="Publication">
    Prepare for sharing:

    ```
    *publish-squad your-squad
    ```

    Follow publication guidelines for GitHub or marketplace.
  </Step>
</Steps>

## Squad Structure Requirements

A valid squad must include:

<CardGroup cols={2}>
  <Card title="config.yaml" icon="file-code">
    Squad manifest with metadata, agents, and dependencies
  </Card>

  <Card title="agents/" icon="users">
    Agent definition files for all squad members
  </Card>

  <Card title="tasks/" icon="list-check">
    Executable task definitions for agent commands
  </Card>

  <Card title="workflows/" icon="diagram-project">
    Workflow definitions for squad processes
  </Card>

  <Card title="templates/" icon="file">
    Document templates used by agents
  </Card>

  <Card title="README.md" icon="book">
    Squad documentation and usage guide
  </Card>
</CardGroup>

## Works With

The Squad Creator agent collaborates with:

* **@architect** — For squad architecture design
* **@pm** — For squad planning and requirements
* **@qa** — For squad validation and testing
* **@devops** — For squad packaging and distribution

## Usage Examples

### Create a Content Writing Squad

```
@squad-creator

*create-squad

# Agent prompts:
# - Squad name: content-writers
# - Purpose: Blog and documentation writing
# - Agents: writer, editor, seo-specialist
# - Workflows: draft → edit → seo-optimize → publish
```

### Validate an Existing Squad

```
@squad-creator

*validate-squad data-science

# Output:
# ✅ Squad manifest valid
# ✅ All agent files present
# ✅ Workflows validated
# ⚠️  Missing: checklists/quality.md
# ❌ Invalid: tasks/analyze.md (syntax error)
```

### Analyze a Squad

```
@squad-creator

*analyze-squad marketing-automation

# Output:
# Squad: Marketing Automation
# Purpose: Automated marketing campaign management
# Agents: 4 (strategist, content-creator, analyst, optimizer)
# Workflows: 6 (campaign-creation, content-generation, ...)
# Dependencies: aiox-core ^4.0.0
```

## Best Practices

<Note>
  **Squad Design Principles:**

  1. **Single Responsibility** — Each squad should focus on one domain or workflow
  2. **Agent Cohesion** — Squad agents should work together toward squad goals
  3. **Clear Workflows** — Define explicit workflows for common tasks
  4. **Comprehensive Docs** — Include clear README and usage examples
  5. **Validation** — Always validate before publication
</Note>

## Common Pitfalls

<Warning>
  **Avoid These Mistakes:**

  * Creating squads without clear purpose
  * Missing required files (config.yaml, README.md)
  * Circular dependencies between squad agents
  * Incomplete or unclear documentation
  * Skipping validation before publication
  * Not testing squad agents in real projects
</Warning>

## Related Documentation

<CardGroup cols={2}>
  <Card title="Squad System Overview" icon="users" href="/advanced/squads">
    Learn about the AIOX squad architecture
  </Card>

  <Card title="Creating Squads Guide" icon="book" href="/guides/creating-squads">
    Complete guide to squad creation
  </Card>

  <Card title="Squad Configuration" icon="gear" href="/api/config-files">
    Squad manifest and configuration reference
  </Card>

  <Card title="Publishing Squads" icon="upload" href="/guides/squads-guide#publishing">
    How to publish and share squads
  </Card>
</CardGroup>

## Need Help?

The Squad Creator agent is here to guide you through squad creation. Activate it and ask for:

* `*guide` — Comprehensive squad creation guide
* `*help` — List all available commands
* Specific questions about squad structure, validation, or publication

<Tip>
  New to squads? Start with the [Squads Overview](/advanced/squads) to understand the squad system, then return here to create your first squad with the Squad Creator agent.
</Tip>
