From e2163f3a3c5c56d7ffd717351238f7343f37800f Mon Sep 17 00:00:00 2001 From: "Kensan (Enterprise IT Team)" Date: Mon, 20 Apr 2026 11:05:33 +0900 Subject: [PATCH] =?UTF-8?q?feat(v3.2.50):=20slash=20commands=20runtime=20?= =?UTF-8?q?=E6=9C=89=E5=8A=B9=E5=8C=96=20=E2=80=94=20.claude/commands/=20?= =?UTF-8?q?=E3=81=AB=E3=82=82=E9=85=8D=E7=BD=AE=20(E-2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 背景 v3.2.44 で .claude/claudeos/commands/ に 39 ファイル配置、v3.2.49 で agents を .claude/agents/ に runtime 有効化したが、commands は Start-ClaudeCode が個別に 6 ファイル (cron-* / work-time-* / session-info) のみ .claude/commands/ に deploy していた。残 33 ファイル (build-fix / code-review / refactor-clean / verify / plan / tdd / sessions / 等) は reference のみだった。 本 PR で 39 ファイル全体を .claude/commands/ にも配置し、slash command として runtime 有効化する。 ## 変更 Local / SSH 両モードで agents (E-1) と同パターンで commands 追加。 Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/lib/TemplateSyncManager.ps1 | 6 ++++++ scripts/main/Start-ClaudeCode.ps1 | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/scripts/lib/TemplateSyncManager.ps1 b/scripts/lib/TemplateSyncManager.ps1 index 8c58e21a..fea13c32 100644 --- a/scripts/lib/TemplateSyncManager.ps1 +++ b/scripts/lib/TemplateSyncManager.ps1 @@ -184,6 +184,12 @@ function Sync-LauncherClaudeGlobalConfig { -TargetDir (Join-Path $ProjectDir '.claude\agents') ` -Label '.claude/agents' + # v3.2.50 (E-2): slash commands を runtime 有効化 (39 ファイル) + Sync-ProjectTemplateDirectory ` + -TemplateDir (Join-Path $StartupRoot 'Claude\templates\claudeos\commands') ` + -TargetDir (Join-Path $ProjectDir '.claude\commands') ` + -Label '.claude/commands' + $settingsTemplatePath = Join-Path $StartupRoot 'scripts\templates\claude-settings.json' Initialize-ProjectTemplate ` -TemplatePath $settingsTemplatePath ` diff --git a/scripts/main/Start-ClaudeCode.ps1 b/scripts/main/Start-ClaudeCode.ps1 index 853d12e8..f348c1f6 100644 --- a/scripts/main/Start-ClaudeCode.ps1 +++ b/scripts/main/Start-ClaudeCode.ps1 @@ -455,6 +455,13 @@ chmod +x $(ConvertTo-BashSingleQuoted -Value $remoteBootstrap) } else { Write-Warn ".claude/agents/ activation exit=$LASTEXITCODE — Agent Teams は reference のみ" } + + # v3.2.50 (E-2): slash commands を runtime 有効化 (39 ファイル) + & $sshExeForMkdir -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new -o ControlMaster=no ` + $linuxHost "mkdir -p '$linuxProject/.claude/commands' && cp -rf '$linuxProject/.claude/claudeos/commands/.' '$linuxProject/.claude/commands/' 2>/dev/null" 2>$null + if ($LASTEXITCODE -eq 0) { + Write-Ok ".claude/commands/ activated (39 slash commands runtime)" + } } Write-Info "Connecting via SSH: $linuxHost"