Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .changeset/squad-commands-review-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@bradygaster/squad': patch
'@bradygaster/squad-sdk': patch
---

Fix squad-commands skill routing and configuration for Copilot integration

- **templates.ts**: Correct destination path for squad-commands SKILL.md from `skills/squad-commands/SKILL.md` to `../.copilot/skills/squad-commands/SKILL.md` to match other built-in skills
- **init.ts**: Add `'squad-commands'` to MANIFEST_SKILL_NAMES array to include the skill in project initialization
- **squad-commands SKILL.md**: Convert triggers from YAML list to inline array format and remove generic triggers ("help", "how do I") that conflict with other skills; retain: "squad commands", "what can squad do", "show me squad options", "slash commands"
- **Template sync**: Regenerate all mirrors via sync-templates.mjs to propagate routing updates to .copilot and .squad templates
13 changes: 13 additions & 0 deletions .changeset/squad-commands-skill.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@bradygaster/squad-cli": minor
---

feat: add squad-commands skill for in-chat command discovery

Adds a categorized menu skill (`skills/squad-commands/SKILL.md`) that the
coordinator reads when the user asks "squad commands", "help", or "what can
squad do". Also adds a routing row and greeting tip in squad.agent.md, and
registers the template in TEMPLATE_MANIFEST with overwriteOnUpgrade=true.

Also fixes pre-existing CI failures: adds Commit step to scribe-charter.md
and adds CURRENT_DATETIME substitution guidance to spawn-reference.md.
2 changes: 2 additions & 0 deletions .github/agents/squad.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team.

- **Name:** Squad (Coordinator)
- **Version:** 0.0.0-source (see HTML comment above — this value is stamped during install/upgrade). Include it as `Squad v{version}` in your first response of each session (e.g., in the acknowledgment or greeting).
- **Greeting tip:** On the line after the version stamp, include: `💡 Say "squad commands" to see what I can do.` — this helps new users discover the command catalog without cluttering the version line.
- **Role:** Agent orchestration, handoff enforcement, reviewer gating
- **Inputs:** User request, repository state, `.squad/decisions.md`
- **Outputs owned:** Final assembled artifacts, orchestration log (via Scribe)
Expand Down Expand Up @@ -294,6 +295,7 @@ The routing table determines **WHO** handles work. After routing, use Response M
| PRD intake ("here's the PRD", "read the PRD at X", pastes spec) | Follow PRD Mode (see that section) |
| Human member management ("add {name} as PM", routes to human) | Follow Human Team Members (see that section) |
| Ralph commands ("Ralph, go", "keep working", "Ralph, status", "Ralph, idle") | Follow Ralph — Work Monitor (see that section) |
| "squad commands", "what can squad do", "show me squad options", "slash commands", "what commands are available" | Read `.copilot/skills/squad-commands/SKILL.md`, present categorized menu (see squad-commands skill) |
| "upgrade squad", "update squad", "what's new in squad", "install the update" | Run upgrade flow per `.squad/templates/session-init-reference.md` |
| Rai commands ("Rai, review this", "RAI check", "content safety review") | Follow Rai — RAI Reviewer (see that section) |
| General work request | Check routing.md, spawn best match + any anticipatory agents |
Expand Down
2 changes: 2 additions & 0 deletions .squad-templates/squad.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team.

- **Name:** Squad (Coordinator)
- **Version:** 0.0.0-source (see HTML comment above — this value is stamped during install/upgrade). Include it as `Squad v{version}` in your first response of each session (e.g., in the acknowledgment or greeting).
- **Greeting tip:** On the line after the version stamp, include: `💡 Say "squad commands" to see what I can do.` — this helps new users discover the command catalog without cluttering the version line.
- **Role:** Agent orchestration, handoff enforcement, reviewer gating
- **Inputs:** User request, repository state, `.squad/decisions.md`
- **Outputs owned:** Final assembled artifacts, orchestration log (via Scribe)
Expand Down Expand Up @@ -294,6 +295,7 @@ The routing table determines **WHO** handles work. After routing, use Response M
| PRD intake ("here's the PRD", "read the PRD at X", pastes spec) | Follow PRD Mode (see that section) |
| Human member management ("add {name} as PM", routes to human) | Follow Human Team Members (see that section) |
| Ralph commands ("Ralph, go", "keep working", "Ralph, status", "Ralph, idle") | Follow Ralph — Work Monitor (see that section) |
| "squad commands", "what can squad do", "show me squad options", "slash commands", "what commands are available" | Read `.copilot/skills/squad-commands/SKILL.md`, present categorized menu (see squad-commands skill) |
| "upgrade squad", "update squad", "what's new in squad", "install the update" | Run upgrade flow per `.squad/templates/session-init-reference.md` |
| Rai commands ("Rai, review this", "RAI check", "content safety review") | Follow Rai — RAI Reviewer (see that section) |
| General work request | Check routing.md, spawn best match + any anticipatory agents |
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ After `npm run dev:link`, the `squad` command will be available globally and wil

---

## Quick Commands

Say **"squad commands"** in chat to see a categorized menu of common operations — install & upgrade, team management, issues & PRs, plugins, model settings, and session state. You can also ask naturally: *"how do I switch state backends?"* or *"how do I add a team member?"* — Squad matches your intent and walks you through it. The `squad-commands` skill ships out of the box with every `squad init` and `squad upgrade`.

---

## All Commands (17 commands)

| Command | What it does |
Expand Down
6 changes: 6 additions & 0 deletions packages/squad-cli/src/cli/core/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ export const TEMPLATE_MANIFEST: TemplateFile[] = [
overwriteOnUpgrade: true,
description: 'Multi-agent collaboration and handoff patterns',
},
{
source: 'skills/squad-commands/SKILL.md',
destination: '../.copilot/skills/squad-commands/SKILL.md',
overwriteOnUpgrade: true,
description: 'In-chat command discovery — categorized menu of Squad operations',
Comment on lines +243 to +247
},
{
source: 'skills/squad-version-check/SKILL.md',
destination: '../.copilot/skills/squad-version-check/SKILL.md',
Expand Down
4 changes: 2 additions & 2 deletions packages/squad-cli/templates/scribe-charter.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ After every substantial work session:
📌 Team update (<CURRENT_DATETIME value>): {summary} — decided by {Name}
```

5. **Verify persistence through the runtime backend:**
5. **Commit and verify persistence through the runtime backend:**
- Run `squad_state_health` when available.
- Re-read `decisions.md`, `log/{timestamp}-{topic}.md`, and any updated histories with `squad_state_read`.
- Never commit, amend, reset, checkout, push notes, or switch branches to persist mutable squad state.
- Never amend, reset, checkout, push notes, or switch branches to persist mutable squad state. When state tools are unavailable and you have directly modified static files (charters, team.md, skills), commit those changes with `git commit`.

6. **Commit handling:** Never commit mutable squad state. If non-state repo files changed, report them for coordinator handling.

Expand Down
Loading
Loading