Use when the user wants to set, change, view, or replace the squad's north-star goal, or manage multiple squads in one project — phrases like "set the squad goal", "change the goal", "what's our goal", "show the goal", "update the goal", "the goal is wrong", "we've shifted direction", "park this squad", "switch squads", "list squads", or "bring back the named squad". Manages .squad/goal.md as the binding north-star constraint that every other skill and hook reads from, and named directories u...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Squad Goal?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/amit1992ko-squad-goal)
---
name: squad-goal
description: Use when the user wants to set, change, view, or replace the squad's north-star goal, or manage multiple squads in one project — phrases like "set the squad goal", "change the goal", "what's our goal", "show the goal", "update the goal", "the goal is wrong", "we've shifted direction", "park this squad", "switch squads", "list squads", or "bring back the named squad". Manages .squad/goal.md as the binding north-star constraint that every other skill and hook reads from, and named directories under .squad/squads as parked squads. This skill is read-write on goal/squad lifecycle files only; it does not generate roles or spawn workers.
license: MIT
---
# squad-goal
You manage `.squad/goal.md` — the squad's binding north-star outcome. Every other skill in Squad OS reads this file; the `SessionStart` hook injects its contents into every session's context.
Run the operation the user asked for. Operations are: **read**, **write**, **replace**, **show diff**, **park**, **switch**, **list squads**, **refuse**.
## Roster shape compatibility
Whenever this skill reads `.squad/roster.json`, choose its source shape once:
`schema_version: 2` means v2; no schema version means legacy. Project roles into a
read-only lifecycle view using these equivalents:
- identifier: v2 `id` // legacy `name`
- cadence: v2 `execution_mode` // legacy `mode`
- goal references: `squad_goal_ref` in both shapes; v2 `goal_ref` // legacy `role_goal`
- ownership: v2 `file_ownership.include` and `.exclude` // legacy `file_scope` and an
empty exclude list
- provider data: v2 `provider_overrides`; legacy Claude data projected from `model`,
`tools`, `agent_file`, and `isolation` (with no legacy Codex override)
- worktree isolation: v2 `provider_overrides.claude.isolation` // legacy `isolation`
The `//` notation names source-shape equivalents; it is not permission to fall back to
legacy aliases inside a malformed v2 object. Validate the selected shape and stop on a
missing required field. This projection is read-only. Preserve a legacy roster's source
shape on ordinary lifecycle writes; migrate it to v2 only through a separate
`squad-roster` conversion plan that previews the exact writes/deletes and receives the
matching confirmation. If a requested change cannot be represented losslessly in legacy
shape, stop and offer that migration instead of dropping data.
## File schema
Goals are saved at `.squad/goal.md` with this exact structure:
```markdown
---
mode: one-time | multi-use | evergreen
created: <ISO-8601 datetime>
target: <ISO-8601 deadline or "ongoing">
skill_onboarding: user | auto
---
# Squad goal
<one outcome-framed paragraph — measurable, time-bounded>
## Definition of done
- <observable signal 1>
- <observable signal 2>
- <observable signal 3>
## Out of scope
- <explicit exclusion 1>
- <explicit exclusion 2>
```
The frontmatter is required. `target` is `"ongoing"` for evergreen mode and an ISO-8601 date otherwise. `skill_onboarding` uses the roster's `approval_mode` vocabulary: `user` (the human approves each onboarded skill) or `auto`. A goal written before this field existed has none, and absence means `user`.
## Operations
### Read / show
If the user asks "what's our goal", "show the goal", or similar:
1. Read `.squad/goal.md`.
2. If it exists: print the full contents, then the mode, created date, and target deadline on a single summary line.
3. If it doesn't exist: print *"No squad goal set. Run `/squad-os:squad-onboard` to set one."* and stop.
### Write (first time)
This path is normally invoked by `squad-onboard` at its **Step 3**, with a pre-confirmed outcome from the user and the just-inferred mode — before the research offer, not at the end of the flow. Everything after that point reads the goal from disk rather than from the transcript: rule #4's prompt-baking, the research verb's contradiction stop (which must quote a line from the file), and `squad-role`'s preflight.
1. Confirm `.squad/goal.md` does not exist. If it does, route to **replace** instead.
2. Create `.squad/` if needed (`mkdir -p`), then write the managed `.squad/.gitignore`.
It keeps the squad's per-run files out of git, and it lives inside
`.squad/` so the project's root `.gitignore` is never touched. Its patterns are
relative to `.squad/`:
```gitignore
# Managed by squad-os: per-run squad files.
/role-plan-*
/role-comm-*
/workspaces/
```
If the file already exists, append only the pattern lines it lacks and keep every
line already there. Mention the file in the step 5 report, so the human sees it.
It deliberately leaves `partner.md` alone: whether the partner model is committed
is the human's choice, offered by `squad-partner` when the file is created.
`.claude/worktrees/` sits outside `.squad/`, so this file cannot cover it.
3. Compose the file with the schema above, using:
- `mode`: inferred or user-overridden from onboarding
- `created`: current UTC time in ISO-8601
- `target`: deadline from the outcome statement, or `"ongoing"` for evergreen
- `skill_onboarding`: `user` or `auto`, as the human answered at onboarding;
`user` when they had no preference
- Body: the user-confirmed outcome paragraph
- Definition of done: 3–5 observable signals derived from the outcome
- Out of scope: anything the user explicitly excluded
4. Write the file.
5. Print: *"Squad goal saved to `.squad/goal.md`. The SessionStart hook will inject it into every new session. `.squad/.gitignore` keeps per-run files and sandboxes out of git."*
### Replace
If `.squad/goal.md` already exists and the user wants to change it:
1. Read the existing goal.
2. Show it side-by-side with the proposed new goal.
3. Ask: *"This replaces the current goal. Existing roles in `.squad/roster.json` were generated against the old goal — they may no longer fit. Replace anyway? (If the old initiative isn't finished, I can **park** the current squad instead and start this as a new one — nothing is lost.)"*
4. If yes: write the new goal. Then check `.squad/roster.json` — if any roles exist, print a warning: *"Roster has [N] roles. Run `/squad-os:squad-roster` to review them against the new goal; some may need replacing."*
5. If no: leave the file unchanged.
### Show diff
If the user is mid-edit and asks "show me what I'm changing":
1. Read current `.squad/goal.md`.
2. Show their proposed text alongside.
3. Highlight the differences in plain language (mode change, deadline change, definition of done changes, scope changes).
## Multiple squads: park / switch / list
One project runs **one active squad** — `.squad/goal.md` + `.squad/roster.json` are what every hook, script, and skill reads, and concurrent squads would collide on `.claude/agents/` names and hook lookups. A second initiative doesn't replace the first, though: it parks it.
**Layout:** parked squads live at `.squad/squads/<slug>/` (slug: short kebab-case name — derive from the goal, confirm with the user). Each holds the squad's durable state: `goal.md`, `roster.json`, `roster.md`, `role-goal-*.md`, `verification.md` (if present), `world/` (the belief ledger — every `claims-<owner>.md` under it, moved as a unit; hard rule #13), and `agents/` (the role definition files, moved out of `.claude/agents/` so parked roles can't auto-delegate or collide with the active squad's names). Ephemeral state is **not** parked: `.squad/role-comm-*` manifests are deleted (per-engagement), `.squad/workspaces/<role>/` and `.claude/worktrees/<role>/` are left to be re-provisioned/re-created on resume. Parked dirs follow the same commit policy as active state — everything in them is commit-grade.
**`.squad/partner.md` is never parked, moved, or restored by this skill — not by park, not by switch, not by list.** It describes the single human commanding this *project*, not the initiative currently active in it (hard rule #12), so unlike everything in the paragraph above it stays exactly where it is, at `.squad/partner.md`, in force across every squad this project ever runs, parked or active. This skill has no write access to it in the first place — `squad-partner` is its only writer anywhere in the plugin — so there is nothing for park or switch to move even if the move list below were extended to include it. If a future edit to this skill is tempted to add `partner.md` to the Park or Switch move lists: don't. That would strand or duplicate the human's own file for no reason the human ever asked for.
**No cross-squad merge.** A parked squad's `world/` is its own. Nothing in this skill, or anywhere in the plugin, merges two squads' belief ledgers into one — park and switch move `.squad/world/` wholesale, they never combine it with another squad's. Switching back to a squad restores exactly the ledger it had when parked; whatever the squad that was active in the meantime came to believe stays with *that* squad when it, in turn, gets parked.
**Export receipts are installation state, never parked squad state.** Before parking,
inspect every `.squad/exports/*/export-receipt.json` with its matching `manifest.json`.
A receipt-backed snapshot whose manifest declares `destination: project` is an active
installed project export. Refuse to park while one exists: hand the user to
`squad-roster`'s receipt-based uninstall, preview the exact uninstall plan, and require the
matching plan confirmation. Do not move, rename, or delete `.squad/exports/`,
`.squad/receipts/`, or any `export-receipt.json` as part of park/switch. Uninstall owns
those receipts and removes only receipt-owned, unmodified files.
### Park
1. Confirm no dispatch is mid-flight (workers running, or worktrees with uncommitted changes the user hasn't dealt with). If in doubt, ask — never park under a running squad.
2. Run the installed-export preflight above. If any receipt-backed project snapshot is active, refuse before moving a single file and require its receipt uninstall first. Never move a receipt into the parked directory.
3. Pick the slug with the user. Refuse if `.squad/squads/<slug>/` already exists.
4. Move `goal.md`, `roster.json`, `roster.md`, all `role-goal-*.md`, `verification.md`, and `world/` (if present — the whole directory, every `claims-<owner>.md` inside it) from `.squad/` into `.squad/squads/<slug>/`. **Never `partner.md`, `ontology.md`, `exports/`, `receipts/`, or an `export-receipt.json`** — they stay untouched (see above; `ontology.md` is the project's vocabulary, hard rule #17, and like `partner.md` it outlives any one squad).
5. For each role, use the projected Claude `agent_file`. Move that file from `.claude/agents/` into `.squad/squads/<slug>/agents/`; never derive a path when the selected roster shape omits it.
6. Delete any `.squad/role-comm-*.md`.
7. Report: *"Squad `<slug>` parked. No active squad — run `squad-onboard` for a new one, or `switch` to a parked squad."*
### Switch
1. List parked squads (below); confirm the target.
2. If a squad is currently active, **park it first** (full Park flow — needs its own slug).
3. Restore the target: move its files from `.squad/squads/<slug>/` back to `.squad/` — including `world/` if present, moved back as a whole directory, never merged with anything already at `.squad/world/` (Step 2 above already parked whatever squad was active, so it should be empty or absent at this point; if it isn't, stop and surface the collision rather than silently combining two belief ledgers) — and its `agents/*.md` back to `.claude/agents/`. If an agent filename already exists in `.claude/agents/` (a non-squad subagent), stop and surface the collision — never overwrite. **`.squad/partner.md`, if present, is not part of this restore** — it was never parked, so it is simply already sitting at `.squad/partner.md`, unaffected by whichever squad is active.
4. Report the restored goal (one-line summary) and remind: workspaces/worktrees are not restored — `squad-spawn` re-provisions environments on next dispatch.
### List squads
Print the active squad (from `.squad/goal.md` frontmatter + first goal line) and every parked squad under `.squad/squads/*/` (slug, mode, target, first goal line from each `goal.md`). If a parked dir is missing `goal.md` or `roster.json`, flag it as damaged rather than offering to switch to it.
## Refusals
Refuse and explain when:
- **Delete request:** Never delete `.squad/goal.md` without explicit confirmation. If user says "delete the goal", ask *"This unsets the squad's north-star. Confirm with `yes, delete`."* and only proceed on that exact phrase.
- **Ask, not outcome:** If the user proposes a new goal that's an ask ("make X better") not an outcome (measurable + time-bounded), push back once: *"Goals must be outcomes. What's the measurable signal, and by when?"* Then accept whatever they say next.
- **No mode:** If the user is writing a goal but the mode is unclear, infer from the goal shape (see `squad-onboard` for the inference table) and state your inference. Don't ask the user — let them override if they disagree.
## Validation before write
Before writing, sanity-check:
- The body paragraph contains at least one number or measurable phrase (revenue, conversion, time bound, count, percentage).
- `target` parses as a valid ISO-8601 date or is the literal string `"ongoing"`.
- `skill_onboarding`, when present, is `user` or `auto`.
- Definition of done has at least one bullet.
- Frontmatter is valid YAML.
If any check fails, fix it interactively with the user — don't write a broken file.
## What this skill does NOT do
- Does not generate roles (that's `squad-role`).
- Does not spawn workers (that's `squad-spawn`).
- Does not modify `.squad/roster.json` (that's `squad-roster`).
- Does not run the onboarding flow (that's `squad-onboard`).
- Does not read or adjudicate belief content, and never merges two squads' `world/` ledgers into one — it only moves `.squad/world/` wholesale on park/switch (see "No cross-squad merge" above). Reading and adjudicating are `squad-world`.
If the user asks for any of those, hand off to the appropriate skill.