You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e85b4d5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): point runtime URLs and init templates at github/squad (#2412)
* fix(cli): point runtime URLs and init templates at github/squad
- squad upgrade release URL, the .ai-team migration notice and the SDK's
report URL
- state-backend docs link (also fixes a pre-existing 404)
- squad init templates: session-init-reference, gh-auth-isolation,
pr-review-response, external-comms, tiered-memory, github-multi-account
- test/repo-links.test.ts guards user-facing links
Closes#2404
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* docs(skills): pick the gh alias by push access throughout github-multi-account
This PR replaced the hardcoded repo binding with a push-permission check,
but usage rule 3 still chose the alias by repo owner, and the Step 5
message to the user said the same, so the skill contradicted itself
(flagged in Copilot review). Point rule 3 at the permission check and
reword the Step 5 message to match.
Synced to the root, CLI and SDK template mirrors and the repo-local copy.
Refs #2404
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Point the CLI and SDK's user-facing links (release notes, issue and bug-report links, and the git-notes migration guide, which previously linked a page that didn't exist) and the templates `squad init` ships at the repository's new home, `github/squad`.
Copy file name to clipboardExpand all lines: .copilot/skills/github-multi-account/SKILL.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,24 +72,26 @@ ghw api user --jq '.login' # should show work username
72
72
```
73
73
74
74
### Step 5: Tell the user
75
-
"All set! From now on use `ghp`for personal repos and `ghw`for work repos. I'll use them too."
75
+
"All set! `ghp`uses your personal account and `ghw`your work account. For each repo, I'll use whichever one can push to it."
76
76
77
77
## After Setup — Usage Rules
78
78
79
79
1.**NEVER** use bare `gh` for repo operations — always `ghp` or `ghw`
80
80
2.**NEVER** manually `gh auth switch` — the aliases handle it
81
-
3. Determine alias by repo owner:
82
-
- Personal account repos → `ghp` / `gh-personal`
83
-
- Work/EMU account repos → `ghw` / `gh-work`
81
+
3. Pick the alias by which account can write to the repo, not by who owns it; see **Repo-Specific Account Binding** below.
84
82
85
83
## Repo-Specific Account Binding
86
84
87
-
This repo (`bradygaster/squad`) is bound to the **bradygaster** (personal) account.
88
-
All `gh` operations in this repo MUST use `ghp` / `gh-personal`.
85
+
Pick the alias by which account can write to the repo, not by the repo's name. Squad itself lives at `github/squad`, which the `github` organization owns, so don't assume your personal account. Check once before the first write and use the alias that prints `true` (gh fills in `{owner}` and `{repo}` from the current checkout):
86
+
```powershell
87
+
ghp api 'repos/{owner}/{repo}' --jq '.permissions.push'
88
+
ghw api 'repos/{owner}/{repo}' --jq '.permissions.push'
89
+
```
90
+
If neither prints `true`, neither account can push there; work from a fork.
89
91
90
92
## For Squad Agents
91
-
At the TOP of any script touching GitHub, define:
93
+
At the TOP of any script touching GitHub, define the aliases with the usernames the user confirmed in Step 2:
Copy file name to clipboardExpand all lines: .squad-templates/skills/github-multi-account/SKILL.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,24 +72,26 @@ ghw api user --jq '.login' # should show work username
72
72
```
73
73
74
74
### Step 5: Tell the user
75
-
"All set! From now on use `ghp`for personal repos and `ghw`for work repos. I'll use them too."
75
+
"All set! `ghp`uses your personal account and `ghw`your work account. For each repo, I'll use whichever one can push to it."
76
76
77
77
## After Setup — Usage Rules
78
78
79
79
1.**NEVER** use bare `gh` for repo operations — always `ghp` or `ghw`
80
80
2.**NEVER** manually `gh auth switch` — the aliases handle it
81
-
3. Determine alias by repo owner:
82
-
- Personal account repos → `ghp` / `gh-personal`
83
-
- Work/EMU account repos → `ghw` / `gh-work`
81
+
3. Pick the alias by which account can write to the repo, not by who owns it; see **Repo-Specific Account Binding** below.
84
82
85
83
## Repo-Specific Account Binding
86
84
87
-
This repo (`bradygaster/squad`) is bound to the **bradygaster** (personal) account.
88
-
All `gh` operations in this repo MUST use `ghp` / `gh-personal`.
85
+
Pick the alias by which account can write to the repo, not by the repo's name. Squad itself lives at `github/squad`, which the `github` organization owns, so don't assume your personal account. Check once before the first write and use the alias that prints `true` (gh fills in `{owner}` and `{repo}` from the current checkout):
86
+
```powershell
87
+
ghp api 'repos/{owner}/{repo}' --jq '.permissions.push'
88
+
ghw api 'repos/{owner}/{repo}' --jq '.permissions.push'
89
+
```
90
+
If neither prints `true`, neither account can push there; work from a fork.
89
91
90
92
## For Squad Agents
91
-
At the TOP of any script touching GitHub, define:
93
+
At the TOP of any script touching GitHub, define the aliases with the usernames the user confirmed in Step 2:
Copy file name to clipboardExpand all lines: .squad-templates/skills/pr-review-response/SKILL.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,15 +86,15 @@ gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
86
86
87
87
```bash
88
88
# Specific and traceable
89
-
gh api repos/bradygaster/squad/pulls/42/comments/18234/replies \
89
+
gh api repos/github/squad/pulls/42/comments/18234/replies \
90
90
-f body="Fixed in a1b2c3d — switched to path.dirname(squadDirInfo.path) for worktree consistency"
91
91
92
92
# When applying a suggested code change
93
-
gh api repos/bradygaster/squad/pulls/42/comments/18235/replies \
93
+
gh api repos/github/squad/pulls/42/comments/18235/replies \
94
94
-f body="Applied suggestion — updated error message to include the file path for debuggability"
95
95
96
96
# When pushing back on a suggestion
97
-
gh api repos/bradygaster/squad/pulls/42/comments/18236/replies \
97
+
gh api repos/github/squad/pulls/42/comments/18236/replies \
98
98
-f body="Considered but not applied — this path needs to stay absolute because worktree resolution depends on it. See detectSquadDir() in detect-squad-dir.ts."
gh api repos/bradygaster/squad/pulls/99/comments/55123/replies \
214
+
gh api repos/github/squad/pulls/99/comments/55123/replies \
215
215
-f body="Fixed — added early return when squadDir is undefined"
216
216
217
-
gh api repos/bradygaster/squad/pulls/99/comments/55124/replies \
217
+
gh api repos/github/squad/pulls/99/comments/55124/replies \
218
218
-f body="Fixed — switched to path.join(squadDir, 'config.json') for cross-platform consistency"
219
219
220
-
gh api repos/bradygaster/squad/pulls/99/comments/55125/replies \
220
+
gh api repos/github/squad/pulls/99/comments/55125/replies \
221
221
-f body="Fixed — changed from console.log to debug() so it only shows with --verbose flag"
222
222
```
223
223
@@ -235,13 +235,13 @@ const name = config?.agent?.name ?? 'default';
235
235
236
236
**Reply format when applying:**
237
237
```bash
238
-
gh api repos/bradygaster/squad/pulls/99/comments/55130/replies \
238
+
gh api repos/github/squad/pulls/99/comments/55130/replies \
239
239
-f body="Applied suggestion — using optional chaining with nullish coalescing"
240
240
```
241
241
242
242
**Reply format when not applying:**
243
243
```bash
244
-
gh api repos/bradygaster/squad/pulls/99/comments/55130/replies \
244
+
gh api repos/github/squad/pulls/99/comments/55130/replies \
245
245
-f body="Not applied — config is guaranteed non-null at this point (validated on line 12). Optional chaining would mask errors."
246
246
```
247
247
@@ -250,7 +250,7 @@ gh api repos/bradygaster/squad/pulls/99/comments/55130/replies \
250
250
Not every review comment should be accepted. When a suggestion is incorrect or doesn't apply:
251
251
252
252
```bash
253
-
gh api repos/bradygaster/squad/pulls/99/comments/55140/replies \
253
+
gh api repos/github/squad/pulls/99/comments/55140/replies \
254
254
-f body="Considered but not applied — this file is in the zero-dependency bootstrap set (see copilot-instructions.md § Protected Files). Adding path.join() would require importing from the SDK, which breaks the bootstrap constraint."
Copy file name to clipboardExpand all lines: .squad-templates/skills/tiered-memory/SKILL.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ source: design proposal
8
8
9
9
# Skill: Tiered Agent Memory
10
10
11
-
> **Status (v0.10.0):** This skill describes a **design proposal**, not a shipped runtime. Skill files install via `squad init`/`upgrade`, but the underlying tier scaffolding (`.squad/memory/hot/`, `cold/`, `wiki/`), Scribe promotion logic, and spawn-template tier-aware reads are tracked in [bradygaster/squad#1264](https://github.com/bradygaster/squad/issues/1264). Until those land, agents continue to load full `history.md` + `decisions.md` on every spawn.
11
+
> **Status (v0.10.0):** This skill describes a **design proposal**, not a shipped runtime. Skill files install via `squad init`/`upgrade`, but the underlying tier scaffolding (`.squad/memory/hot/`, `cold/`, `wiki/`), Scribe promotion logic, and spawn-template tier-aware reads are tracked in [bradygaster/squad#1264](https://github.com/github/squad/issues/1264). Until those land, agents continue to load full `history.md` + `decisions.md` on every spawn.
12
12
13
13
## Overview
14
14
@@ -116,9 +116,9 @@ Until then, see the Scribe charter for current behavior: `.squad/agents/scribe/c
116
116
117
117
## References
118
118
119
-
- Tracking issue: [bradygaster/squad#1264](https://github.com/bradygaster/squad/issues/1264) — installation gap + runtime status
120
-
- Original design spike: [bradygaster/squad#686](https://github.com/bradygaster/squad/issues/686) — tiered memory implementation plan
- Cold adds a summary; only include when history is relevant
219
219
- Wiki adds variable size; only include specific relevant docs
220
-
- Runtime backing is tracked in [bradygaster/squad#1264](https://github.com/bradygaster/squad/issues/1264) — until those changes land, this skill is design-only and agents continue to load full history.md + decisions.md on every spawn
220
+
- Runtime backing is tracked in [bradygaster/squad#1264](https://github.com/github/squad/issues/1264) — until those changes land, this skill is design-only and agents continue to load full history.md + decisions.md on every spawn
0 commit comments