Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
日本語の概要は準備中です。原文の説明を表示しています。
Cross-platform path handling and command patterns
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Squad runs on Windows, macOS, and Linux. Several bugs have been traced to platform-specific assumptions: ISO timestamps with colons (illegal on Windows), git -C with Windows paths (unreliable), forward-slash paths in Node.js on Windows.
2026-03-15T05:30:00Z is illegal on WindowssafeTimestamp() utility: Replaces colons with hyphens → 2026-03-15T05-30-00Z.toISOString().replace(/:/g, '-') — use the utilitygit -C {path}: Unreliable with Windows paths (backslashes, spaces, drive letters)cd first: Change directory, then run git commandsgit diff --cached --quiet (exit 0 = no changes)-m flag: Backtick-n (\n) fails silently in PowerShell-F flag: Write message to file, commit with git commit -F $msgFileTEAM ROOT from spawn prompt or run git rev-parse --show-toplevel/ or \startsWith or === for path comparison on Windows or macOS: These filesystems are case-insensitive — C:\Users\ and c:\users\ refer to the same locationprocess.platform === 'win32' || process.platform === 'darwin' and lowercase both sides before comparingconst CASE_INSENSITIVE = process.platform === 'win32' || process.platform === 'darwin';
function pathStartsWith(fullPath: string, prefix: string): boolean {
if (CASE_INSENSITIVE) {
return fullPath.toLowerCase().startsWith(prefix.toLowerCase());
}
return fullPath.startsWith(prefix);
}
/Home/ and /home/ are different directories✓ Correct:
// Timestamp utility
const safeTimestamp = () => new Date().toISOString().replace(/:/g, '-').split('.')[0] + 'Z';
// Git workflow (PowerShell)
cd $teamRoot
git add .squad/
if ($LASTEXITCODE -eq 0) {
$msg = @"
docs(ai-team): session log
Changes:
- Added decisions
"@
$msgFile = [System.IO.Path]::GetTempFileName()
Set-Content -Path $msgFile -Value $msg -Encoding utf8
git commit -F $msgFile
Remove-Item $msgFile
}
✗ Incorrect:
// Colon in filename
const logPath = `.squad/log/${new Date().toISOString()}.md`; // ILLEGAL on Windows
// git -C with Windows path
exec('git -C C:\\src\\squad add .squad/'); // UNRELIABLE
// Inline newlines in commit message
exec('git commit -m "First line\nSecond line"'); // FAILS silently in PowerShell
git -C because it "looks cleaner" (it doesn't work)git diff --cached --quiet check (creates empty commits)if (!resolved.startsWith(rootDir + path.sep)) {
throw new Error('Path traversal blocked');
}
// Fails: 'c:\\Users\\temp\\file'.startsWith('C:\\Users\\temp\\') → false
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication
日本語の概要は準備中です。原文の説明を表示しています。
Shared hard rules enforced across all squad agents
日本語の概要は準備中です。原文の説明を表示しています。
Route gh-aw design, creation, diagnosis, patching, active debugging, and upgrade requests to the right strategies.
日本語の概要は準備中です。原文の説明を表示しています。
How to write comprehensive architectural proposals that drive alignment before code is written
日本語の概要は準備中です。原文の説明を表示しています。
Upgrade gh-aw to latest gh-aw-firewall release and identify follow-up spec tasks.
日本語の概要は準備中です。原文の説明を表示しています。
Review code that performs git or gh operations against repository checkouts in gh-aw, checking that the right credentials are available at the right time and that sparseness, shallowness and credential-free factors are properly considered.
日本語の概要は準備中です。原文の説明を表示しています。