@bradygaster/squad-cli 0.9.3-insider.1 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/README.md +33 -0
  2. package/dist/cli/commands/cast.d.ts.map +1 -1
  3. package/dist/cli/commands/cast.js +9 -2
  4. package/dist/cli/commands/cast.js.map +1 -1
  5. package/dist/cli/commands/externalize.d.ts +27 -0
  6. package/dist/cli/commands/externalize.d.ts.map +1 -0
  7. package/dist/cli/commands/externalize.js +209 -0
  8. package/dist/cli/commands/externalize.js.map +1 -0
  9. package/dist/cli/commands/loop.d.ts +6 -1
  10. package/dist/cli/commands/loop.d.ts.map +1 -1
  11. package/dist/cli/commands/loop.js +13 -13
  12. package/dist/cli/commands/loop.js.map +1 -1
  13. package/dist/cli/commands/migrate.js +2 -2
  14. package/dist/cli/commands/migrate.js.map +1 -1
  15. package/dist/cli/commands/plugin.d.ts.map +1 -1
  16. package/dist/cli/commands/plugin.js +2 -1
  17. package/dist/cli/commands/plugin.js.map +1 -1
  18. package/dist/cli/commands/rc.js +2 -2
  19. package/dist/cli/commands/rc.js.map +1 -1
  20. package/dist/cli/commands/skill.d.ts +31 -0
  21. package/dist/cli/commands/skill.d.ts.map +1 -0
  22. package/dist/cli/commands/skill.js +497 -0
  23. package/dist/cli/commands/skill.js.map +1 -0
  24. package/dist/cli/commands/start.d.ts.map +1 -1
  25. package/dist/cli/commands/start.js +31 -5
  26. package/dist/cli/commands/start.js.map +1 -1
  27. package/dist/cli/commands/watch/agent-spawn.d.ts +62 -0
  28. package/dist/cli/commands/watch/agent-spawn.d.ts.map +1 -0
  29. package/dist/cli/commands/watch/agent-spawn.js +127 -0
  30. package/dist/cli/commands/watch/agent-spawn.js.map +1 -0
  31. package/dist/cli/commands/watch/capabilities/decision-hygiene.js +3 -3
  32. package/dist/cli/commands/watch/capabilities/decision-hygiene.js.map +1 -1
  33. package/dist/cli/commands/watch/capabilities/execute.d.ts.map +1 -1
  34. package/dist/cli/commands/watch/capabilities/execute.js +15 -5
  35. package/dist/cli/commands/watch/capabilities/execute.js.map +1 -1
  36. package/dist/cli/commands/watch/capabilities/monitor-email.js +3 -3
  37. package/dist/cli/commands/watch/capabilities/monitor-email.js.map +1 -1
  38. package/dist/cli/commands/watch/capabilities/monitor-teams.js +3 -3
  39. package/dist/cli/commands/watch/capabilities/monitor-teams.js.map +1 -1
  40. package/dist/cli/commands/watch/capabilities/retro.js +3 -3
  41. package/dist/cli/commands/watch/capabilities/retro.js.map +1 -1
  42. package/dist/cli/commands/watch/capabilities/wave-dispatch.js +3 -3
  43. package/dist/cli/commands/watch/capabilities/wave-dispatch.js.map +1 -1
  44. package/dist/cli/commands/watch/config.d.ts +10 -8
  45. package/dist/cli/commands/watch/config.d.ts.map +1 -1
  46. package/dist/cli/commands/watch/config.js +27 -5
  47. package/dist/cli/commands/watch/config.js.map +1 -1
  48. package/dist/cli/commands/watch/external-loader.d.ts +14 -0
  49. package/dist/cli/commands/watch/external-loader.d.ts.map +1 -0
  50. package/dist/cli/commands/watch/external-loader.js +85 -0
  51. package/dist/cli/commands/watch/external-loader.js.map +1 -0
  52. package/dist/cli/commands/watch/health.js +10 -9
  53. package/dist/cli/commands/watch/health.js.map +1 -1
  54. package/dist/cli/commands/watch/index.d.ts +10 -0
  55. package/dist/cli/commands/watch/index.d.ts.map +1 -1
  56. package/dist/cli/commands/watch/index.js +53 -7
  57. package/dist/cli/commands/watch/index.js.map +1 -1
  58. package/dist/cli/commands/watch/pid-tracker.d.ts +35 -0
  59. package/dist/cli/commands/watch/pid-tracker.d.ts.map +1 -0
  60. package/dist/cli/commands/watch/pid-tracker.js +127 -0
  61. package/dist/cli/commands/watch/pid-tracker.js.map +1 -0
  62. package/dist/cli/commands/watch/types.d.ts +5 -0
  63. package/dist/cli/commands/watch/types.d.ts.map +1 -1
  64. package/dist/cli/core/email-scrub.js +2 -2
  65. package/dist/cli/core/email-scrub.js.map +1 -1
  66. package/dist/cli/core/gh-cli.d.ts +2 -1
  67. package/dist/cli/core/gh-cli.d.ts.map +1 -1
  68. package/dist/cli/core/gh-cli.js +3 -2
  69. package/dist/cli/core/gh-cli.js.map +1 -1
  70. package/dist/cli/core/init.d.ts.map +1 -1
  71. package/dist/cli/core/init.js +26 -31
  72. package/dist/cli/core/init.js.map +1 -1
  73. package/dist/cli/core/migrations.js +1 -1
  74. package/dist/cli/core/migrations.js.map +1 -1
  75. package/dist/cli/core/nap.js +2 -2
  76. package/dist/cli/core/nap.js.map +1 -1
  77. package/dist/cli/core/project-type.js +1 -1
  78. package/dist/cli/core/project-type.js.map +1 -1
  79. package/dist/cli/core/templates.d.ts.map +1 -1
  80. package/dist/cli/core/templates.js +48 -0
  81. package/dist/cli/core/templates.js.map +1 -1
  82. package/dist/cli/core/upgrade.d.ts +4 -2
  83. package/dist/cli/core/upgrade.d.ts.map +1 -1
  84. package/dist/cli/core/upgrade.js +46 -21
  85. package/dist/cli/core/upgrade.js.map +1 -1
  86. package/dist/cli/shell/index.d.ts.map +1 -1
  87. package/dist/cli/shell/index.js +22 -0
  88. package/dist/cli/shell/index.js.map +1 -1
  89. package/dist/cli/shell/session-store.js +2 -2
  90. package/dist/cli/shell/session-store.js.map +1 -1
  91. package/dist/cli-entry.js +101 -83
  92. package/dist/cli-entry.js.map +1 -1
  93. package/package.json +6 -2
  94. package/templates/casting-reference.md +104 -104
  95. package/templates/ceremonies.md +28 -28
  96. package/templates/fact-checker-charter.md +83 -0
  97. package/templates/mcp-config.md +0 -2
  98. package/templates/scribe-charter.md +1 -1
  99. package/templates/skills/external-comms/SKILL.md +329 -329
  100. package/templates/skills/gh-auth-isolation/SKILL.md +183 -183
  101. package/templates/skills/humanizer/SKILL.md +105 -105
  102. package/templates/skills/pr-review-response/SKILL.md +268 -0
  103. package/templates/skills/pr-screenshots/SKILL.md +149 -149
  104. package/templates/skills/versioning-policy/SKILL.md +119 -0
  105. package/templates/squad.agent.md.template +13 -6
  106. package/dist/cli/commands/watch/capabilities/budget-check.d.ts +0 -29
  107. package/dist/cli/commands/watch/capabilities/budget-check.d.ts.map +0 -1
  108. package/dist/cli/commands/watch/capabilities/budget-check.js +0 -38
  109. package/dist/cli/commands/watch/capabilities/budget-check.js.map +0 -1
  110. package/dist/cli/commands/watch/capabilities/circuit-breaker.d.ts +0 -52
  111. package/dist/cli/commands/watch/capabilities/circuit-breaker.d.ts.map +0 -1
  112. package/dist/cli/commands/watch/capabilities/circuit-breaker.js +0 -152
  113. package/dist/cli/commands/watch/capabilities/circuit-breaker.js.map +0 -1
  114. package/dist/cli/commands/watch/capabilities/health-check.d.ts +0 -29
  115. package/dist/cli/commands/watch/capabilities/health-check.d.ts.map +0 -1
  116. package/dist/cli/commands/watch/capabilities/health-check.js +0 -139
  117. package/dist/cli/commands/watch/capabilities/health-check.js.map +0 -1
  118. package/dist/cli/commands/watch/capabilities/heartbeat.d.ts +0 -48
  119. package/dist/cli/commands/watch/capabilities/heartbeat.d.ts.map +0 -1
  120. package/dist/cli/commands/watch/capabilities/heartbeat.js +0 -115
  121. package/dist/cli/commands/watch/capabilities/heartbeat.js.map +0 -1
  122. package/dist/cli/commands/watch/capabilities/lockfile.d.ts +0 -30
  123. package/dist/cli/commands/watch/capabilities/lockfile.d.ts.map +0 -1
  124. package/dist/cli/commands/watch/capabilities/lockfile.js +0 -100
  125. package/dist/cli/commands/watch/capabilities/lockfile.js.map +0 -1
  126. package/dist/cli/commands/watch/capabilities/machine-capabilities.d.ts +0 -30
  127. package/dist/cli/commands/watch/capabilities/machine-capabilities.d.ts.map +0 -1
  128. package/dist/cli/commands/watch/capabilities/machine-capabilities.js +0 -103
  129. package/dist/cli/commands/watch/capabilities/machine-capabilities.js.map +0 -1
  130. package/dist/cli/commands/watch/capabilities/post-failure.d.ts +0 -19
  131. package/dist/cli/commands/watch/capabilities/post-failure.d.ts.map +0 -1
  132. package/dist/cli/commands/watch/capabilities/post-failure.js +0 -58
  133. package/dist/cli/commands/watch/capabilities/post-failure.js.map +0 -1
  134. package/dist/cli/commands/watch/capabilities/priority.d.ts +0 -59
  135. package/dist/cli/commands/watch/capabilities/priority.d.ts.map +0 -1
  136. package/dist/cli/commands/watch/capabilities/priority.js +0 -101
  137. package/dist/cli/commands/watch/capabilities/priority.js.map +0 -1
  138. package/dist/cli/commands/watch/capabilities/rate-pool.d.ts +0 -67
  139. package/dist/cli/commands/watch/capabilities/rate-pool.d.ts.map +0 -1
  140. package/dist/cli/commands/watch/capabilities/rate-pool.js +0 -187
  141. package/dist/cli/commands/watch/capabilities/rate-pool.js.map +0 -1
  142. package/dist/cli/commands/watch/capabilities/stale-reclaim.d.ts +0 -23
  143. package/dist/cli/commands/watch/capabilities/stale-reclaim.d.ts.map +0 -1
  144. package/dist/cli/commands/watch/capabilities/stale-reclaim.js +0 -87
  145. package/dist/cli/commands/watch/capabilities/stale-reclaim.js.map +0 -1
  146. package/dist/cli/commands/watch/capabilities/webhook-alerts.d.ts +0 -29
  147. package/dist/cli/commands/watch/capabilities/webhook-alerts.d.ts.map +0 -1
  148. package/dist/cli/commands/watch/capabilities/webhook-alerts.js +0 -114
  149. package/dist/cli/commands/watch/capabilities/webhook-alerts.js.map +0 -1
@@ -1,183 +1,183 @@
1
- ---
2
- name: "gh-auth-isolation"
3
- description: "Safely manage multiple GitHub identities (EMU + personal) in agent workflows"
4
- domain: "security, github-integration, authentication, multi-account"
5
- confidence: "high"
6
- source: "earned (production usage across 50+ sessions with EMU corp + personal GitHub accounts)"
7
- tools:
8
- - name: "gh"
9
- description: "GitHub CLI for authenticated operations"
10
- when: "When accessing GitHub resources requiring authentication"
11
- ---
12
-
13
- ## Context
14
-
15
- Many developers use GitHub through an Enterprise Managed User (EMU) account at work while maintaining a personal GitHub account for open-source contributions. AI agents spawned by Squad inherit the shell's default `gh` authentication — which is usually the EMU account. This causes failures when agents try to push to personal repos, create PRs on forks, or interact with resources outside the enterprise org.
16
-
17
- This skill teaches agents how to detect the active identity, switch contexts safely, and avoid mixing credentials across operations.
18
-
19
- ## Patterns
20
-
21
- ### Detect Current Identity
22
-
23
- Before any GitHub operation, check which account is active:
24
-
25
- ```bash
26
- gh auth status
27
- ```
28
-
29
- Look for:
30
- - `Logged in to github.com as USERNAME` — the active account
31
- - `Token scopes: ...` — what permissions are available
32
- - Multiple accounts will show separate entries
33
-
34
- ### Extract a Specific Account's Token
35
-
36
- When you need to operate as a specific user (not the default):
37
-
38
- ```bash
39
- # Get the personal account token (by username)
40
- gh auth token --user personaluser
41
-
42
- # Get the EMU account token
43
- gh auth token --user corpalias_enterprise
44
- ```
45
-
46
- **Use case:** Push to a personal fork while the default `gh` auth is the EMU account.
47
-
48
- ### Push to Personal Repos from EMU Shell
49
-
50
- The most common scenario: your shell defaults to the EMU account, but you need to push to a personal GitHub repo.
51
-
52
- ```bash
53
- # 1. Extract the personal token
54
- $token = gh auth token --user personaluser
55
-
56
- # 2. Push using token-authenticated HTTPS
57
- git push https://personaluser:$token@github.com/personaluser/repo.git branch-name
58
- ```
59
-
60
- **Why this works:** `gh auth token --user` reads from `gh`'s credential store without switching the active account. The token is used inline for a single operation and never persisted.
61
-
62
- ### Create PRs on Personal Forks
63
-
64
- When the default `gh` context is EMU but you need to create a PR from a personal fork:
65
-
66
- ```bash
67
- # Option 1: Use --repo flag (works if token has access)
68
- gh pr create --repo upstream/repo --head personaluser:branch --title "..." --body "..."
69
-
70
- # Option 2: Temporarily set GH_TOKEN for one command
71
- $env:GH_TOKEN = $(gh auth token --user personaluser)
72
- gh pr create --repo upstream/repo --head personaluser:branch --title "..."
73
- Remove-Item Env:\GH_TOKEN
74
- ```
75
-
76
- ### Config Directory Isolation (Advanced)
77
-
78
- For complete isolation between accounts, use separate `gh` config directories:
79
-
80
- ```bash
81
- # Personal account operations
82
- $env:GH_CONFIG_DIR = "$HOME/.config/gh-public"
83
- gh auth login # Login with personal account (one-time setup)
84
- gh repo clone personaluser/repo
85
-
86
- # EMU account operations (default)
87
- Remove-Item Env:\GH_CONFIG_DIR
88
- gh auth status # Back to EMU account
89
- ```
90
-
91
- **Setup (one-time):**
92
- ```bash
93
- # Create isolated config for personal account
94
- mkdir ~/.config/gh-public
95
- $env:GH_CONFIG_DIR = "$HOME/.config/gh-public"
96
- gh auth login --web --git-protocol https
97
- ```
98
-
99
- ### Shell Aliases for Quick Switching
100
-
101
- Add to your shell profile for convenience:
102
-
103
- ```powershell
104
- # PowerShell profile
105
- function ghp { $env:GH_CONFIG_DIR = "$HOME/.config/gh-public"; gh @args; Remove-Item Env:\GH_CONFIG_DIR }
106
- function ghe { gh @args } # Default EMU
107
-
108
- # Usage:
109
- # ghp repo clone personaluser/repo # Uses personal account
110
- # ghe issue list # Uses EMU account
111
- ```
112
-
113
- ```bash
114
- # Bash/Zsh profile
115
- alias ghp='GH_CONFIG_DIR=~/.config/gh-public gh'
116
- alias ghe='gh'
117
-
118
- # Usage:
119
- # ghp repo clone personaluser/repo
120
- # ghe issue list
121
- ```
122
-
123
- ## Examples
124
-
125
- ### ✓ Correct: Agent pushes blog post to personal GitHub Pages
126
-
127
- ```powershell
128
- # Agent needs to push to personaluser.github.io (personal repo)
129
- # Default gh auth is corpalias_enterprise (EMU)
130
-
131
- $token = gh auth token --user personaluser
132
- git remote set-url origin https://personaluser:$token@github.com/personaluser/personaluser.github.io.git
133
- git push origin main
134
-
135
- # Clean up — don't leave token in remote URL
136
- git remote set-url origin https://github.com/personaluser/personaluser.github.io.git
137
- ```
138
-
139
- ### ✓ Correct: Agent creates a PR from personal fork to upstream
140
-
141
- ```powershell
142
- # Fork: personaluser/squad, Upstream: bradygaster/squad
143
- # Agent is on branch contrib/fix-docs in the fork clone
144
-
145
- git push origin contrib/fix-docs # Pushes to fork (may need token auth)
146
-
147
- # Create PR targeting upstream
148
- gh pr create --repo bradygaster/squad --head personaluser:contrib/fix-docs `
149
- --title "docs: fix installation guide" `
150
- --body "Fixes #123"
151
- ```
152
-
153
- ### ✗ Incorrect: Blindly pushing with wrong account
154
-
155
- ```bash
156
- # BAD: Agent assumes default gh auth works for personal repos
157
- git push origin main
158
- # ERROR: Permission denied — EMU account has no access to personal repo
159
-
160
- # BAD: Hardcoding tokens in scripts
161
- git push https://personaluser:ghp_xxxxxxxxxxxx@github.com/personaluser/repo.git main
162
- # SECURITY RISK: Token exposed in command history and process list
163
- ```
164
-
165
- ### ✓ Correct: Check before you push
166
-
167
- ```bash
168
- # Always verify which account has access before operations
169
- gh auth status
170
- # If wrong account, use token extraction:
171
- $token = gh auth token --user personaluser
172
- git push https://personaluser:$token@github.com/personaluser/repo.git main
173
- ```
174
-
175
- ## Anti-Patterns
176
-
177
- - ❌ **Hardcoding tokens** in scripts, environment variables, or committed files. Use `gh auth token --user` to extract at runtime.
178
- - ❌ **Assuming the default `gh` auth works** for all repos. EMU accounts can't access personal repos and vice versa.
179
- - ❌ **Switching `gh auth login`** globally mid-session. This changes the default for ALL processes and can break parallel agents.
180
- - ❌ **Storing personal tokens in `.env`** or `.squad/` files. These get committed by Scribe. Use `gh`'s credential store.
181
- - ❌ **Ignoring token cleanup** after inline HTTPS pushes. Always reset the remote URL to avoid persisting tokens.
182
- - ❌ **Using `gh auth switch`** in multi-agent sessions. One agent switching affects all others sharing the shell.
183
- - ❌ **Mixing EMU and personal operations** in the same git clone. Use separate clones or explicit remote URLs per operation.
1
+ ---
2
+ name: "gh-auth-isolation"
3
+ description: "Safely manage multiple GitHub identities (EMU + personal) in agent workflows"
4
+ domain: "security, github-integration, authentication, multi-account"
5
+ confidence: "high"
6
+ source: "earned (production usage across 50+ sessions with EMU corp + personal GitHub accounts)"
7
+ tools:
8
+ - name: "gh"
9
+ description: "GitHub CLI for authenticated operations"
10
+ when: "When accessing GitHub resources requiring authentication"
11
+ ---
12
+
13
+ ## Context
14
+
15
+ Many developers use GitHub through an Enterprise Managed User (EMU) account at work while maintaining a personal GitHub account for open-source contributions. AI agents spawned by Squad inherit the shell's default `gh` authentication — which is usually the EMU account. This causes failures when agents try to push to personal repos, create PRs on forks, or interact with resources outside the enterprise org.
16
+
17
+ This skill teaches agents how to detect the active identity, switch contexts safely, and avoid mixing credentials across operations.
18
+
19
+ ## Patterns
20
+
21
+ ### Detect Current Identity
22
+
23
+ Before any GitHub operation, check which account is active:
24
+
25
+ ```bash
26
+ gh auth status
27
+ ```
28
+
29
+ Look for:
30
+ - `Logged in to github.com as USERNAME` — the active account
31
+ - `Token scopes: ...` — what permissions are available
32
+ - Multiple accounts will show separate entries
33
+
34
+ ### Extract a Specific Account's Token
35
+
36
+ When you need to operate as a specific user (not the default):
37
+
38
+ ```bash
39
+ # Get the personal account token (by username)
40
+ gh auth token --user personaluser
41
+
42
+ # Get the EMU account token
43
+ gh auth token --user corpalias_enterprise
44
+ ```
45
+
46
+ **Use case:** Push to a personal fork while the default `gh` auth is the EMU account.
47
+
48
+ ### Push to Personal Repos from EMU Shell
49
+
50
+ The most common scenario: your shell defaults to the EMU account, but you need to push to a personal GitHub repo.
51
+
52
+ ```bash
53
+ # 1. Extract the personal token
54
+ $token = gh auth token --user personaluser
55
+
56
+ # 2. Push using token-authenticated HTTPS
57
+ git push https://personaluser:$token@github.com/personaluser/repo.git branch-name
58
+ ```
59
+
60
+ **Why this works:** `gh auth token --user` reads from `gh`'s credential store without switching the active account. The token is used inline for a single operation and never persisted.
61
+
62
+ ### Create PRs on Personal Forks
63
+
64
+ When the default `gh` context is EMU but you need to create a PR from a personal fork:
65
+
66
+ ```bash
67
+ # Option 1: Use --repo flag (works if token has access)
68
+ gh pr create --repo upstream/repo --head personaluser:branch --title "..." --body "..."
69
+
70
+ # Option 2: Temporarily set GH_TOKEN for one command
71
+ $env:GH_TOKEN = $(gh auth token --user personaluser)
72
+ gh pr create --repo upstream/repo --head personaluser:branch --title "..."
73
+ Remove-Item Env:\GH_TOKEN
74
+ ```
75
+
76
+ ### Config Directory Isolation (Advanced)
77
+
78
+ For complete isolation between accounts, use separate `gh` config directories:
79
+
80
+ ```bash
81
+ # Personal account operations
82
+ $env:GH_CONFIG_DIR = "$HOME/.config/gh-public"
83
+ gh auth login # Login with personal account (one-time setup)
84
+ gh repo clone personaluser/repo
85
+
86
+ # EMU account operations (default)
87
+ Remove-Item Env:\GH_CONFIG_DIR
88
+ gh auth status # Back to EMU account
89
+ ```
90
+
91
+ **Setup (one-time):**
92
+ ```bash
93
+ # Create isolated config for personal account
94
+ mkdir ~/.config/gh-public
95
+ $env:GH_CONFIG_DIR = "$HOME/.config/gh-public"
96
+ gh auth login --web --git-protocol https
97
+ ```
98
+
99
+ ### Shell Aliases for Quick Switching
100
+
101
+ Add to your shell profile for convenience:
102
+
103
+ ```powershell
104
+ # PowerShell profile
105
+ function ghp { $env:GH_CONFIG_DIR = "$HOME/.config/gh-public"; gh @args; Remove-Item Env:\GH_CONFIG_DIR }
106
+ function ghe { gh @args } # Default EMU
107
+
108
+ # Usage:
109
+ # ghp repo clone personaluser/repo # Uses personal account
110
+ # ghe issue list # Uses EMU account
111
+ ```
112
+
113
+ ```bash
114
+ # Bash/Zsh profile
115
+ alias ghp='GH_CONFIG_DIR=~/.config/gh-public gh'
116
+ alias ghe='gh'
117
+
118
+ # Usage:
119
+ # ghp repo clone personaluser/repo
120
+ # ghe issue list
121
+ ```
122
+
123
+ ## Examples
124
+
125
+ ### ✓ Correct: Agent pushes blog post to personal GitHub Pages
126
+
127
+ ```powershell
128
+ # Agent needs to push to personaluser.github.io (personal repo)
129
+ # Default gh auth is corpalias_enterprise (EMU)
130
+
131
+ $token = gh auth token --user personaluser
132
+ git remote set-url origin https://personaluser:$token@github.com/personaluser/personaluser.github.io.git
133
+ git push origin main
134
+
135
+ # Clean up — don't leave token in remote URL
136
+ git remote set-url origin https://github.com/personaluser/personaluser.github.io.git
137
+ ```
138
+
139
+ ### ✓ Correct: Agent creates a PR from personal fork to upstream
140
+
141
+ ```powershell
142
+ # Fork: personaluser/squad, Upstream: bradygaster/squad
143
+ # Agent is on branch contrib/fix-docs in the fork clone
144
+
145
+ git push origin contrib/fix-docs # Pushes to fork (may need token auth)
146
+
147
+ # Create PR targeting upstream
148
+ gh pr create --repo bradygaster/squad --head personaluser:contrib/fix-docs `
149
+ --title "docs: fix installation guide" `
150
+ --body "Fixes #123"
151
+ ```
152
+
153
+ ### ✗ Incorrect: Blindly pushing with wrong account
154
+
155
+ ```bash
156
+ # BAD: Agent assumes default gh auth works for personal repos
157
+ git push origin main
158
+ # ERROR: Permission denied — EMU account has no access to personal repo
159
+
160
+ # BAD: Hardcoding tokens in scripts
161
+ git push https://personaluser:ghp_xxxxxxxxxxxx@github.com/personaluser/repo.git main
162
+ # SECURITY RISK: Token exposed in command history and process list
163
+ ```
164
+
165
+ ### ✓ Correct: Check before you push
166
+
167
+ ```bash
168
+ # Always verify which account has access before operations
169
+ gh auth status
170
+ # If wrong account, use token extraction:
171
+ $token = gh auth token --user personaluser
172
+ git push https://personaluser:$token@github.com/personaluser/repo.git main
173
+ ```
174
+
175
+ ## Anti-Patterns
176
+
177
+ - ❌ **Hardcoding tokens** in scripts, environment variables, or committed files. Use `gh auth token --user` to extract at runtime.
178
+ - ❌ **Assuming the default `gh` auth works** for all repos. EMU accounts can't access personal repos and vice versa.
179
+ - ❌ **Switching `gh auth login`** globally mid-session. This changes the default for ALL processes and can break parallel agents.
180
+ - ❌ **Storing personal tokens in `.env`** or `.squad/` files. These get committed by Scribe. Use `gh`'s credential store.
181
+ - ❌ **Ignoring token cleanup** after inline HTTPS pushes. Always reset the remote URL to avoid persisting tokens.
182
+ - ❌ **Using `gh auth switch`** in multi-agent sessions. One agent switching affects all others sharing the shell.
183
+ - ❌ **Mixing EMU and personal operations** in the same git clone. Use separate clones or explicit remote URLs per operation.
@@ -1,105 +1,105 @@
1
- ---
2
- name: "humanizer"
3
- description: "Tone enforcement patterns for external-facing community responses"
4
- domain: "communication, tone, community"
5
- confidence: "low"
6
- source: "manual (RFC #426 — PAO External Communications)"
7
- ---
8
-
9
- ## Context
10
-
11
- Use this skill whenever PAO drafts external-facing responses for issues or discussions.
12
-
13
- - Tone must be warm, helpful, and human-sounding — never robotic or corporate.
14
- - Brady's constraint applies everywhere: **Humanized tone is mandatory**.
15
- - This applies to **all external-facing content** drafted by PAO in Phase 1 issues/discussions workflows.
16
-
17
- ## Patterns
18
-
19
- 1. **Warm opening** — Start with acknowledgment ("Thanks for reporting this", "Great question!")
20
- 2. **Active voice** — "We're looking into this" not "This is being investigated"
21
- 3. **Second person** — Address the person directly ("you" not "the user")
22
- 4. **Conversational connectors** — "That said...", "Here's what we found...", "Quick note:"
23
- 5. **Specific, not vague** — "This affects the casting module in v0.8.x" not "We are aware of issues"
24
- 6. **Empathy markers** — "I can see how that would be frustrating", "Good catch!"
25
- 7. **Action-oriented closes** — "Let us know if that helps!" not "Please advise if further assistance is required"
26
- 8. **Uncertainty is OK** — "We're not 100% sure yet, but here's what we think is happening..." is better than false confidence
27
- 9. **Profanity filter** — Never include profanity, slurs, or aggressive language, even when quoting
28
- 10. **Baseline comparison** — Responses should align with tone of 5-10 "gold standard" responses (>80% similarity threshold)
29
- 11. **Empathetic disagreement** — "We hear you. That's a fair concern." before explaining the reasoning
30
- 12. **Information request** — Ask for specific details, not open-ended "can you provide more info?"
31
- 13. **No link-dumping** — Don't just paste URLs. Provide context: "Check out the [getting started guide](url) — specifically the section on routing" not just a bare link
32
-
33
- ## Examples
34
-
35
- ### 1. Welcome
36
-
37
- ```text
38
- Hey {author}! Welcome to Squad 👋 Thanks for opening this.
39
- {substantive response}
40
- Let us know if you have questions — happy to help!
41
- ```
42
-
43
- ### 2. Troubleshooting
44
-
45
- ```text
46
- Thanks for the detailed report, {author}!
47
- Here's what we think is happening: {explanation}
48
- {steps or workaround}
49
- Let us know if that helps, or if you're seeing something different.
50
- ```
51
-
52
- ### 3. Feature guidance
53
-
54
- ```text
55
- Great question! {context on current state}
56
- {guidance or workaround}
57
- We've noted this as a potential improvement — {tracking info if applicable}.
58
- ```
59
-
60
- ### 4. Redirect
61
-
62
- ```text
63
- Thanks for reaching out! This one is actually better suited for {correct location}.
64
- {brief explanation of why}
65
- Feel free to open it there — they'll be able to help!
66
- ```
67
-
68
- ### 5. Acknowledgment
69
-
70
- ```text
71
- Good catch, {author}. We've confirmed this is a real issue.
72
- {what we know so far}
73
- We'll update this thread when we have a fix. Thanks for flagging it!
74
- ```
75
-
76
- ### 6. Closing
77
-
78
- ```text
79
- This should be resolved in {version/PR}! 🎉
80
- {brief summary of what changed}
81
- Thanks for reporting this, {author} — it made Squad better.
82
- ```
83
-
84
- ### 7. Technical uncertainty
85
-
86
- ```text
87
- Interesting find, {author}. We're not 100% sure what's causing this yet.
88
- Here's what we've ruled out: {list}
89
- We'd love more context if you have it — {specific ask}.
90
- We'll dig deeper and update this thread.
91
- ```
92
-
93
- ## Anti-Patterns
94
-
95
- - ❌ Corporate speak: "We appreciate your patience as we investigate this matter"
96
- - ❌ Marketing hype: "Squad is the BEST way to..." or "This amazing feature..."
97
- - ❌ Passive voice: "It has been determined that..." or "The issue is being tracked"
98
- - ❌ Dismissive: "This works as designed" without empathy
99
- - ❌ Over-promising: "We'll ship this next week" without commitment from the team
100
- - ❌ Empty acknowledgment: "Thanks for your feedback" with no substance
101
- - ❌ Robot signatures: "Best regards, PAO" or "Sincerely, The Squad Team"
102
- - ❌ Excessive emoji: More than 1-2 emoji per response
103
- - ❌ Quoting profanity: Even when the original issue contains it, paraphrase instead
104
- - ❌ Link-dumping: Pasting URLs without context ("See: https://...")
105
- - ❌ Open-ended info requests: "Can you provide more information?" without specifying what information
1
+ ---
2
+ name: "humanizer"
3
+ description: "Tone enforcement patterns for external-facing community responses"
4
+ domain: "communication, tone, community"
5
+ confidence: "low"
6
+ source: "manual (RFC #426 — PAO External Communications)"
7
+ ---
8
+
9
+ ## Context
10
+
11
+ Use this skill whenever PAO drafts external-facing responses for issues or discussions.
12
+
13
+ - Tone must be warm, helpful, and human-sounding — never robotic or corporate.
14
+ - Brady's constraint applies everywhere: **Humanized tone is mandatory**.
15
+ - This applies to **all external-facing content** drafted by PAO in Phase 1 issues/discussions workflows.
16
+
17
+ ## Patterns
18
+
19
+ 1. **Warm opening** — Start with acknowledgment ("Thanks for reporting this", "Great question!")
20
+ 2. **Active voice** — "We're looking into this" not "This is being investigated"
21
+ 3. **Second person** — Address the person directly ("you" not "the user")
22
+ 4. **Conversational connectors** — "That said...", "Here's what we found...", "Quick note:"
23
+ 5. **Specific, not vague** — "This affects the casting module in v0.8.x" not "We are aware of issues"
24
+ 6. **Empathy markers** — "I can see how that would be frustrating", "Good catch!"
25
+ 7. **Action-oriented closes** — "Let us know if that helps!" not "Please advise if further assistance is required"
26
+ 8. **Uncertainty is OK** — "We're not 100% sure yet, but here's what we think is happening..." is better than false confidence
27
+ 9. **Profanity filter** — Never include profanity, slurs, or aggressive language, even when quoting
28
+ 10. **Baseline comparison** — Responses should align with tone of 5-10 "gold standard" responses (>80% similarity threshold)
29
+ 11. **Empathetic disagreement** — "We hear you. That's a fair concern." before explaining the reasoning
30
+ 12. **Information request** — Ask for specific details, not open-ended "can you provide more info?"
31
+ 13. **No link-dumping** — Don't just paste URLs. Provide context: "Check out the [getting started guide](url) — specifically the section on routing" not just a bare link
32
+
33
+ ## Examples
34
+
35
+ ### 1. Welcome
36
+
37
+ ```text
38
+ Hey {author}! Welcome to Squad 👋 Thanks for opening this.
39
+ {substantive response}
40
+ Let us know if you have questions — happy to help!
41
+ ```
42
+
43
+ ### 2. Troubleshooting
44
+
45
+ ```text
46
+ Thanks for the detailed report, {author}!
47
+ Here's what we think is happening: {explanation}
48
+ {steps or workaround}
49
+ Let us know if that helps, or if you're seeing something different.
50
+ ```
51
+
52
+ ### 3. Feature guidance
53
+
54
+ ```text
55
+ Great question! {context on current state}
56
+ {guidance or workaround}
57
+ We've noted this as a potential improvement — {tracking info if applicable}.
58
+ ```
59
+
60
+ ### 4. Redirect
61
+
62
+ ```text
63
+ Thanks for reaching out! This one is actually better suited for {correct location}.
64
+ {brief explanation of why}
65
+ Feel free to open it there — they'll be able to help!
66
+ ```
67
+
68
+ ### 5. Acknowledgment
69
+
70
+ ```text
71
+ Good catch, {author}. We've confirmed this is a real issue.
72
+ {what we know so far}
73
+ We'll update this thread when we have a fix. Thanks for flagging it!
74
+ ```
75
+
76
+ ### 6. Closing
77
+
78
+ ```text
79
+ This should be resolved in {version/PR}! 🎉
80
+ {brief summary of what changed}
81
+ Thanks for reporting this, {author} — it made Squad better.
82
+ ```
83
+
84
+ ### 7. Technical uncertainty
85
+
86
+ ```text
87
+ Interesting find, {author}. We're not 100% sure what's causing this yet.
88
+ Here's what we've ruled out: {list}
89
+ We'd love more context if you have it — {specific ask}.
90
+ We'll dig deeper and update this thread.
91
+ ```
92
+
93
+ ## Anti-Patterns
94
+
95
+ - ❌ Corporate speak: "We appreciate your patience as we investigate this matter"
96
+ - ❌ Marketing hype: "Squad is the BEST way to..." or "This amazing feature..."
97
+ - ❌ Passive voice: "It has been determined that..." or "The issue is being tracked"
98
+ - ❌ Dismissive: "This works as designed" without empathy
99
+ - ❌ Over-promising: "We'll ship this next week" without commitment from the team
100
+ - ❌ Empty acknowledgment: "Thanks for your feedback" with no substance
101
+ - ❌ Robot signatures: "Best regards, PAO" or "Sincerely, The Squad Team"
102
+ - ❌ Excessive emoji: More than 1-2 emoji per response
103
+ - ❌ Quoting profanity: Even when the original issue contains it, paraphrase instead
104
+ - ❌ Link-dumping: Pasting URLs without context ("See: https://...")
105
+ - ❌ Open-ended info requests: "Can you provide more information?" without specifying what information