Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .squad-templates/skills/nap/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "nap"
description: "Context hygiene — compress, prune, archive .squad/ state to reclaim context window budget"
domain: "context-management"
confidence: "medium"
source: "extracted"
---

# Skill: nap

> Context hygiene — compress, prune, archive .squad/ state
Expand Down
8 changes: 8 additions & 0 deletions .squad/skills/cross-machine-coordination/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "cross-machine-coordination"
description: "Git-based task queuing pattern for coordinating agents across multiple machines"
domain: "distributed-systems"
confidence: "medium"
source: "specification"
---

# Skill: Cross-Machine Coordination Pattern

**Skill ID:** `cross-machine-coordination`
Expand Down
8 changes: 8 additions & 0 deletions .squad/skills/model-selection/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "model-selection"
description: "Determines which LLM model to use for each agent spawn using a 5-layer resolution hierarchy"
domain: "orchestration"
confidence: "high"
source: "extracted"
---

# Model Selection

> Determines which LLM model to use for each agent spawn.
Expand Down
8 changes: 8 additions & 0 deletions .squad/skills/personal-squad/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "personal-squad"
description: "User-level agents that travel across projects via ambient discovery and ghost protocol"
domain: "agent-management"
confidence: "high"
source: "extracted"
---

# Personal Squad — Skill Document

## What is a Personal Squad?
Expand Down
8 changes: 8 additions & 0 deletions .squad/skills/release-process/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "release-process"
description: "Battle-tested release checklist and rules derived from the v0.9.0→v0.9.1 incident"
domain: "release-engineering"
confidence: "high"
source: "extracted"
---

# Release Process

> Earned knowledge from the v0.9.0→v0.9.1 incident. Every agent involved in releases MUST read this before starting release work.
Expand Down
208 changes: 104 additions & 104 deletions packages/squad-cli/templates/casting-reference.md
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
# Casting Reference

On-demand reference for Squad's casting system. Loaded during Init Mode or when adding team members.

## Universe Table

| Universe | Capacity | Shape Tags | Resonance Signals |
|---|---|---|---|
| The Usual Suspects | 6 | small, noir, ensemble | crime, heist, mystery, deception |
| Reservoir Dogs | 8 | small, noir, ensemble | crime, heist, tension, loyalty |
| Alien | 8 | small, sci-fi, survival | space, isolation, threat, engineering |
| Ocean's Eleven | 14 | medium, heist, ensemble | planning, coordination, roles, charm |
| Arrested Development | 15 | medium, comedy, ensemble | dysfunction, business, family, satire |
| Star Wars | 12 | medium, sci-fi, epic | conflict, mentorship, legacy, rebellion |
| The Matrix | 10 | medium, sci-fi, cyberpunk | systems, reality, hacking, philosophy |
| Firefly | 10 | medium, sci-fi, western | frontier, crew, independence, smuggling |
| The Goonies | 8 | small, adventure, ensemble | exploration, treasure, kids, teamwork |
| The Simpsons | 20 | large, comedy, ensemble | satire, community, family, absurdity |
| Breaking Bad | 12 | medium, drama, tension | chemistry, transformation, consequence, power |
| Lost | 18 | large, mystery, ensemble | survival, mystery, groups, leadership |
| Marvel Cinematic Universe | 25 | large, action, ensemble | heroism, teamwork, powers, scale |
| DC Universe | 18 | large, action, ensemble | justice, duality, powers, mythology |
| Futurama | 12 | medium, sci-fi, comedy | future, robots, space, absurdity |

**Total: 15 universes** — capacity range 6–25.

## Selection Algorithm

Universe selection is deterministic. Score each universe and pick the highest:

```
score = size_fit + shape_fit + resonance_fit + LRU
```

| Factor | Description |
|---|---|
| `size_fit` | How well the universe capacity matches the team size. Prefer universes where capacity ≥ agent_count with minimal waste. |
| `shape_fit` | Match universe shape tags against the assignment shape derived from the project description. |
| `resonance_fit` | Match universe resonance signals against session and repo context signals. |
| `LRU` | Least-recently-used bonus — prefer universes not used in recent assignments (from `history.json`). |

Same inputs → same choice (unless LRU changes between assignments).

## Casting State File Schemas

### policy.json

Source template: `.squad/templates/casting-policy.json`
Runtime location: `.squad/casting/policy.json`

```json
{
"casting_policy_version": "1.1",
"allowlist_universes": ["Universe Name", "..."],
"universe_capacity": {
"Universe Name": 10
}
}
```

### registry.json

Source template: `.squad/templates/casting-registry.json`
Runtime location: `.squad/casting/registry.json`

```json
{
"agents": {
"agent-role-id": {
"persistent_name": "CharacterName",
"universe": "Universe Name",
"created_at": "ISO-8601",
"legacy_named": false,
"status": "active"
}
}
}
```

### history.json

Source template: `.squad/templates/casting-history.json`
Runtime location: `.squad/casting/history.json`

```json
{
"universe_usage_history": [
{
"universe": "Universe Name",
"assignment_id": "unique-id",
"used_at": "ISO-8601"
}
],
"assignment_cast_snapshots": {
"assignment-id": {
"universe": "Universe Name",
"agents": {
"role-id": "CharacterName"
},
"created_at": "ISO-8601"
}
}
}
```
# Casting Reference
On-demand reference for Squad's casting system. Loaded during Init Mode or when adding team members.
## Universe Table
| Universe | Capacity | Shape Tags | Resonance Signals |
|---|---|---|---|
| The Usual Suspects | 6 | small, noir, ensemble | crime, heist, mystery, deception |
| Reservoir Dogs | 8 | small, noir, ensemble | crime, heist, tension, loyalty |
| Alien | 8 | small, sci-fi, survival | space, isolation, threat, engineering |
| Ocean's Eleven | 14 | medium, heist, ensemble | planning, coordination, roles, charm |
| Arrested Development | 15 | medium, comedy, ensemble | dysfunction, business, family, satire |
| Star Wars | 12 | medium, sci-fi, epic | conflict, mentorship, legacy, rebellion |
| The Matrix | 10 | medium, sci-fi, cyberpunk | systems, reality, hacking, philosophy |
| Firefly | 10 | medium, sci-fi, western | frontier, crew, independence, smuggling |
| The Goonies | 8 | small, adventure, ensemble | exploration, treasure, kids, teamwork |
| The Simpsons | 20 | large, comedy, ensemble | satire, community, family, absurdity |
| Breaking Bad | 12 | medium, drama, tension | chemistry, transformation, consequence, power |
| Lost | 18 | large, mystery, ensemble | survival, mystery, groups, leadership |
| Marvel Cinematic Universe | 25 | large, action, ensemble | heroism, teamwork, powers, scale |
| DC Universe | 18 | large, action, ensemble | justice, duality, powers, mythology |
| Futurama | 12 | medium, sci-fi, comedy | future, robots, space, absurdity |
**Total: 15 universes** — capacity range 6–25.
## Selection Algorithm
Universe selection is deterministic. Score each universe and pick the highest:
```
score = size_fit + shape_fit + resonance_fit + LRU
```
| Factor | Description |
|---|---|
| `size_fit` | How well the universe capacity matches the team size. Prefer universes where capacity ≥ agent_count with minimal waste. |
| `shape_fit` | Match universe shape tags against the assignment shape derived from the project description. |
| `resonance_fit` | Match universe resonance signals against session and repo context signals. |
| `LRU` | Least-recently-used bonus — prefer universes not used in recent assignments (from `history.json`). |
Same inputs → same choice (unless LRU changes between assignments).
## Casting State File Schemas
### policy.json
Source template: `.squad/templates/casting-policy.json`
Runtime location: `.squad/casting/policy.json`
```json
{
"casting_policy_version": "1.1",
"allowlist_universes": ["Universe Name", "..."],
"universe_capacity": {
"Universe Name": 10
}
}
```
### registry.json
Source template: `.squad/templates/casting-registry.json`
Runtime location: `.squad/casting/registry.json`
```json
{
"agents": {
"agent-role-id": {
"persistent_name": "CharacterName",
"universe": "Universe Name",
"created_at": "ISO-8601",
"legacy_named": false,
"status": "active"
}
}
}
```
### history.json
Source template: `.squad/templates/casting-history.json`
Runtime location: `.squad/casting/history.json`
```json
{
"universe_usage_history": [
{
"universe": "Universe Name",
"assignment_id": "unique-id",
"used_at": "ISO-8601"
}
],
"assignment_cast_snapshots": {
"assignment-id": {
"universe": "Universe Name",
"agents": {
"role-id": "CharacterName"
},
"created_at": "ISO-8601"
}
}
}
```
28 changes: 28 additions & 0 deletions packages/squad-cli/templates/ceremonies.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,31 @@
2. Root cause analysis
3. What should change?
4. Action items for next iteration


---

## Retrospective with Enforcement

| Field | Value |
|-------|-------|
| **Trigger** | auto |
| **When** | weekly |
| **Condition** | No *retrospective* log in .squad/log/ within the last 7 days |
| **Facilitator** | lead |
| **Participants** | all |
| **Time budget** | focused |
| **Enabled** | yes |
| **Enforcement skill** | retro-enforcement |

**Agenda:**
1. What shipped this week? (closed issues, merged PRs)
2. What did not ship? (open issues, blockers)
3. Root cause on any failures
4. Action items -- each MUST become a GitHub Issue labeled retro-action

**Coordinator integration:**
At round start, call Test-RetroOverdue (see skill retro-enforcement). If overdue, run this ceremony before the work queue.

**Why GitHub Issues, not markdown:**
Production data: 0% completion across 6 retros using markdown checklists, 100% after switching to GitHub Issues.
8 changes: 8 additions & 0 deletions packages/squad-cli/templates/skills/cli-wiring/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "cli-wiring"
description: "Checklist for correctly wiring new CLI commands in cli-entry.ts"
domain: "cli-development"
confidence: "high"
source: "extracted"
---

# Skill: CLI Command Wiring

**Bug class:** Commands implemented in `packages/squad-cli/src/cli/commands/` but never routed in `cli-entry.ts`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: "cross-machine-coordination"
description: "Git-based task queuing pattern for coordinating agents across multiple machines"
domain: "distributed-systems"
confidence: "medium"
source: "specification"
---

# Skill: Cross-Machine Coordination Pattern

**Skill ID:** `cross-machine-coordination`
Expand Down
Loading