Add comprehensive Claude Code setup including: - Custom coding rules (Go, Git, Testing, Security, Patterns) - 24 installed plugins (Voltagent, Workflows, Skills) - Cross-platform installers (bash, PowerShell) - Complete documentation This configuration provides the same powerful development environment across any Claude Code installation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
116 lines
4.1 KiB
PowerShell
116 lines
4.1 KiB
PowerShell
# Claude Code Configuration Installer for Windows
|
|
# Restores your Claude Code environment with agents, skills, and rules
|
|
|
|
# Error handling
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
# Colors (PowerShell 7+)
|
|
function Print-Header {
|
|
param([string]$Message)
|
|
Write-Host "`n======================================" -ForegroundColor Blue
|
|
Write-Host $Message -ForegroundColor Blue
|
|
Write-Host "======================================" -ForegroundColor Blue
|
|
}
|
|
|
|
function Print-Step {
|
|
param([string]$Message)
|
|
Write-Host "[✓] $Message" -ForegroundColor Green
|
|
}
|
|
|
|
function Print-Info {
|
|
param([string]$Message)
|
|
Write-Host "[i] $Message" -ForegroundColor Yellow
|
|
}
|
|
|
|
# Get script directory
|
|
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$ClaudeDir = Join-Path $env:USERPROFILE ".claude"
|
|
|
|
# Check if Claude Code is installed
|
|
if (-not (Get-Command "claude" -ErrorAction SilentlyContinue)) {
|
|
Write-Host "[Error] Claude Code CLI not found!" -ForegroundColor Red
|
|
Write-Host "Please install Claude Code first: https://claude.ai/code"
|
|
exit 1
|
|
}
|
|
|
|
Print-Header "Claude Code Configuration Installer (Windows)"
|
|
|
|
# Step 1: Backup existing configuration
|
|
Print-Step "Backing up existing configuration..."
|
|
if (Test-Path $ClaudeDir) {
|
|
$BackupDir = "$env:USERPROFILE\.claude.backup.$(Get-Date -Format 'yyyyMMdd_HHmmss')"
|
|
Copy-Item -Path $ClaudeDir -Destination $BackupDir -Recurse -Force
|
|
Print-Info "Backup created at: $BackupDir"
|
|
}
|
|
|
|
# Step 2: Copy rules
|
|
Print-Step "Installing coding rules and patterns..."
|
|
$RulesDir = Join-Path $ScriptDir "rules"
|
|
$TargetRulesDir = Join-Path $ClaudeDir "rules"
|
|
if (-not (Test-Path $TargetRulesDir)) {
|
|
New-Item -ItemType Directory -Path $TargetRulesDir -Force | Out-Null
|
|
}
|
|
Copy-Item -Path "$RulesDir\*" -Destination $TargetRulesDir -Recurse -Force
|
|
Print-Info "Rules installed to: $TargetRulesDir"
|
|
|
|
# Step 3: Install plugins via marketplace
|
|
Print-Step "Installing plugins from marketplace..."
|
|
|
|
$plugins = @(
|
|
"everything-claude-code@everything-claude-code",
|
|
"voltagent-core-dev@voltagent-subagents",
|
|
"voltagent-lang@voltagent-subagents",
|
|
"voltagent-infra@voltagent-subagents",
|
|
"voltagent-qa-sec@voltagent-subagents",
|
|
"voltagent-data-ai@voltagent-subagents",
|
|
"voltagent-dev-exp@voltagent-subagents",
|
|
"voltagent-domains@voltagent-subagents",
|
|
"voltagent-biz@voltagent-subagents",
|
|
"voltagent-meta@voltagent-subagents",
|
|
"voltagent-research@voltagent-subagents",
|
|
"python-development@claude-code-workflows",
|
|
"javascript-typescript@claude-code-workflows",
|
|
"backend-development@claude-code-workflows",
|
|
"kubernetes-operations@claude-code-workflows",
|
|
"cloud-infrastructure@claude-code-workflows",
|
|
"security-scanning@claude-code-workflows",
|
|
"code-review-ai@claude-code-workflows",
|
|
"full-stack-orchestration@claude-code-workflows",
|
|
"conductor@claude-code-workflows",
|
|
"agent-teams@claude-code-workflows",
|
|
"document-skills@anthropic-agent-skills",
|
|
"example-skills@anthropic-agent-skills",
|
|
"swift-lsp@claude-plugins-official"
|
|
)
|
|
|
|
foreach ($plugin in $plugins) {
|
|
Print-Info "Installing $plugin..."
|
|
try {
|
|
claude plugin install $plugin 2>$null
|
|
} catch {
|
|
Write-Host " Warning: Failed to install $plugin" -ForegroundColor DarkYellow
|
|
}
|
|
}
|
|
|
|
# Step 4: Settings template
|
|
$SettingsTemplate = Join-Path $ScriptDir "settings.json.template"
|
|
if (Test-Path $SettingsTemplate) {
|
|
Print-Step "Settings template available..."
|
|
Print-Info "To apply settings, copy manually to: ~/.claude/settings.json"
|
|
}
|
|
|
|
# Summary
|
|
Print-Header "Installation Complete!"
|
|
Write-Host ""
|
|
Write-Host "Your Claude Code environment has been configured with:" -ForegroundColor Green
|
|
Write-Host " • Custom coding rules (Go, Git, Testing, Security)"
|
|
Write-Host " • 24 specialized plugins (agents, skills, workflows)"
|
|
Write-Host " • Voltagent subagents for comprehensive coverage"
|
|
Write-Host ""
|
|
Write-Host "Next steps:" -ForegroundColor Yellow
|
|
Write-Host " 1. Restart Claude Code"
|
|
Write-Host " 2. Check available agents: /help"
|
|
Write-Host " 3. Check available skills: /skills"
|
|
Write-Host ""
|
|
Write-Host "Repository: https://gitea.cbcren.online/renato97/claude" -ForegroundColor Blue
|