claude-code-ultimate-guide/examples/scripts/check-claude.ps1
Florian BRUNIAUX 76845f8226 chore: release v2.5.0 with content optimization and script externalization
- Remove ~1048 lines of non-Claude-Code-specific content (-10.9%)
- Externalize health check and reinstall scripts to examples/scripts/
- Clean up table of contents and fix broken references
- Update version numbers and statistics across all documentation

Removed sections:
- DeepSeek Integration (200 lines)
- Git Archaeology Pattern (250 lines)
- Emergency Hotfix Checklist (140 lines)
- Maturity Model & Success Metrics (95 lines)
- Generic Prompt Templates (105 lines)
- Task-specific checklists

New files:
- examples/scripts/check-claude.{sh,ps1}
- examples/scripts/clean-reinstall-claude.{sh,ps1}

Stats: 9593 → 8545 lines, focus on Claude Code-specific content

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-11 13:52:19 +01:00

37 lines
1.1 KiB
PowerShell

Write-Host "`n=== Claude Code Health Check ===" -ForegroundColor Cyan
Write-Host "`n--- Node & npm ---"
node --version
npm --version
Write-Host "`n--- Claude Installation ---"
where.exe claude
if ($?) { Write-Host "✓ Claude found in PATH" -ForegroundColor Green }
else { Write-Host "✗ Claude not in PATH" -ForegroundColor Red }
Write-Host "`n--- Running Claude Doctor ---"
try {
claude doctor
Write-Host "✓ Claude doctor completed" -ForegroundColor Green
} catch {
Write-Host "✗ Claude doctor failed: $_" -ForegroundColor Red
}
Write-Host "`n--- API Key Status ---"
if ($env:ANTHROPIC_API_KEY) {
Write-Host "✓ ANTHROPIC_API_KEY is set" -ForegroundColor Green
} else {
Write-Host "✗ ANTHROPIC_API_KEY not set" -ForegroundColor Red
}
Write-Host "`n--- MCP Servers ---"
claude mcp list
Write-Host "`n--- Config Location ---"
$configPath = "$env:USERPROFILE\.claude.json"
if (Test-Path $configPath) {
Write-Host "✓ Config found at: $configPath" -ForegroundColor Green
} else {
Write-Host "⚠ No config file at: $configPath" -ForegroundColor Yellow
}
Write-Host "`n=== Health Check Complete ===" -ForegroundColor Cyan