squad-agents
Build AI agent teams that collaborate on projects using Squad framework. Use when: orchestrating multiple specialized agents, building collaborative AI workflows, delegating complex tasks across agent teams.
What this skill does
# Squad Agents
## Overview
Squad gives you an AI development team through GitHub Copilot. Describe what you're building and get a team of specialists — frontend, backend, tester, lead — that live in your repo as files. Each team member runs in its own context, reads only its own knowledge, writes back what it learned, and persists across sessions.
## Instructions
### Installation
```bash
npm install -g @bradygaster/squad-cli
```
### Initialize in Your Project
```bash
cd your-project
git init # if not already a repo
squad init
```
This creates `.squad/team.md` in your project root.
### Authenticate GitHub
```bash
gh auth login
gh auth status # verify: "Logged in to github.com"
```
### Launch with Copilot
```bash
copilot --agent squad --yolo
```
Then describe your project to generate the team:
```
I'm starting a new project. Set up the team.
Here's what I'm building: a recipe sharing app with React and Node.
```
### Core Commands
| Command | Description |
|---------|-------------|
| `squad init` | Scaffold Squad in the current directory |
| `squad upgrade` | Update Squad-owned files; never touches team state |
| `squad status` | Show active squad and status |
| `squad triage` | Watch issues and auto-triage to team members |
| `squad doctor` | Diagnose setup issues |
| `squad nap` | Compress, prune, archive context |
| `squad export` | Export squad to portable JSON snapshot |
| `squad import <file>` | Import squad from export file |
### Inter-Agent Communication
Agents communicate through shared files in `.squad/`:
```
.squad/
├── team.md # Team composition and roles
├── decisions/ # Shared decision log (architecture records)
├── context/ # Per-member private context
└── handoffs/ # Task handoff documents
```
Decision records capture architectural choices. Handoffs pass work between agents with structured context (endpoints, schemas, notes).
### Context Hygiene
```bash
squad nap # Standard compression
squad nap --deep # Aggressive pruning
squad nap --dry-run # Preview what would change
```
## Examples
### Example 1: Full-Stack Web App Team
A developer initializes Squad for a recipe-sharing application:
```bash
cd ~/projects/recipe-app
npm init -y && git init
npm install -g @bradygaster/squad-cli
squad init
copilot --agent squad --yolo
```
Prompt: "Build a recipe sharing app with React frontend and Express API. I need auth, CRUD for recipes, and image uploads."
Squad creates 4 team members:
- **Chef** (Lead) — architecture decisions, task breakdown, coordinates others
- **Plater** (Frontend) — React components, routing, styling with Tailwind
- **Saucier** (Backend) — Express routes, PostgreSQL models, auth with JWT
- **Taster** (Tester) — Jest unit tests, Playwright E2E tests, edge cases
Chef breaks the project into GitHub issues and assigns them. Saucier builds the API endpoints and writes a handoff: `POST /api/recipes` accepts `{title, ingredients[], steps[], image}` with Bearer auth. Plater picks up the handoff and builds the recipe form. Taster writes tests against both.
### Example 2: Research and Documentation Team
A team lead uses Squad for a technical research project:
```bash
cd ~/projects/llm-benchmark-report
git init && squad init
copilot --agent squad --yolo
```
Prompt: "Research and write a comprehensive report on LLM inference optimization techniques. Cover quantization, KV-cache, speculative decoding, and batching strategies."
Squad creates:
- **Scout** (Researcher) — gathers papers, benchmarks, and implementations
- **Analyst** — processes benchmark data, creates comparison tables
- **Scribe** (Writer) — produces the report with proper citations
- **Editor** (Reviewer) — fact-checks claims, ensures consistency
Scout logs a decision record: "Focus on open-weight models (Llama 3, Mistral) for reproducible benchmarks." Analyst creates comparison tables showing throughput vs. latency tradeoffs. Scribe drafts each section. Editor reviews for accuracy and flags unsupported claims. The final report lives in `docs/report.md` with all sources cited.
## Guidelines
- Start small with 2-3 team members and add specialists as the project grows
- Give each agent a well-defined scope to avoid overlapping work
- Use the `decisions/` directory for architectural choices to prevent conflicts
- Enable auto-triage with `squad triage --interval 5` to keep work flowing
- Run `squad export` regularly to create snapshots for backup and sharing
- Use `squad nap` periodically to keep context fresh and within limits
- Run `squad doctor` if GitHub integration or agent communication breaks
- See [GitHub Repository](https://github.com/bradygaster/squad) for full documentation
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.