Troubleshooting
Common issues and solutions for the Claude Commands Library.
Installation Issues
Commands Not Found
Symptom: Running /prompt or other commands returns "command not found"
Causes:
- Installation incomplete
- Wrong directory
- Files not deployed
Solutions:
# Re-run installer
.\install-claude-commands.ps1
# Verify files exist
Test-Path .claude/commands/prompt.md
Test-Path .claude/library/prompt-perfection-core.md
# Check file permissions
Get-Acl .claude/commands/Installer Fails
Symptom: Installation script errors out
Causes:
- Network issues
- Permission denied
- Path conflicts
Solutions:
# Run as Administrator
Start-Process powershell -Verb RunAs
# Check execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Manual install
git clone https://github.com/Tadzesi/claude-ideas.git
Copy-Item -Recurse claude-ideas/.claude ./.claudeCommand Issues
Phase 0 Not Running
Symptom: Commands skip directly to execution without asking questions
Causes:
- Library file missing
- Import syntax error
- Corrupted command file
Solutions:
# Check library exists
Test-Path .claude/library/prompt-perfection-core.md
# Verify command imports
Get-Content .claude/commands/prompt.md | Select-String "Import"
# Re-download command
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/.../prompt.md" -OutFile ".claude/commands/prompt.md"Agent Not Spawning
Symptom: Complex prompts don't trigger agent analysis
Causes:
- Complexity score too low
- Agent templates missing
- Cache returning stale result
Solutions:
# Force agent with flag
# /prompt-hybrid --agent Your prompt here
# Check complexity rules
Get-Content .claude/config/complexity-rules.json | ConvertFrom-Json
# Clear cache
Remove-Item .claude/cache/agent-results/* -ForceSlow Performance
Symptom: Commands take much longer than expected
Causes:
- Cache not working
- Too many agents spawning
- Large codebase scan
Solutions:
# Check cache is enabled
(Get-Content .claude/config/cache-config.json | ConvertFrom-Json).enabled
# Reduce agent count
# Edit .claude/config/verification-config.json
# Set verification_agents.count to 2
# Use simpler command for quick tasks
# /prompt instead of /prompt-hybridConfiguration Issues
Invalid JSON
Symptom: "Failed to parse configuration" errors
Cause: JSON syntax error
Solution:
# Validate all config files
Get-ChildItem .claude/config/*.json | ForEach-Object {
try {
Get-Content $_.FullName | ConvertFrom-Json | Out-Null
Write-Host "OK: $($_.Name)" -ForegroundColor Green
} catch {
Write-Host "ERROR: $($_.Name)" -ForegroundColor Red
Write-Host $_.Exception.Message
}
}Common JSON errors:
- Trailing comma after last item
- Missing quotes around strings
- Single quotes instead of double quotes
- Unescaped backslashes in paths
Settings Not Applied
Symptom: Changed configuration has no effect
Causes:
- Cached old config
- Wrong file edited
- Syntax valid but semantically wrong
Solutions:
# Clear cache
Remove-Item .claude/cache/* -Recurse -Force
# Verify you're editing the right file
# Project config: .claude/config/
# Global config: ~/.claude/config/
# Check JSON is valid
Get-Content .claude/config/complexity-rules.json | ConvertFrom-JsonStatusline Issues
Statusline Not Appearing
Symptom: No custom statusline at bottom of terminal
Causes:
- Not configured in settings.json
- Script path incorrect
- Script execution blocked
Solutions:
# Check settings
Get-Content "$env:USERPROFILE\.claude\settings.json"
# Verify script exists
Test-Path "$env:USERPROFILE\.claude\statusline.ps1"
# Check execution policy
Get-ExecutionPolicy
# Reinstall statusline
iwr -useb https://raw.githubusercontent.com/Tadzesi/claude-ideas/main/install-claude-statusline.ps1 | iexShows "---%"
Symptom: Statusline shows dashes instead of values
Cause: Normal before first API call
Solution: Send a message to Claude Code; values populate after first response
Wrong Path in Settings
Symptom: Statusline configured but not appearing at all
Cause: Path uses backslashes — Claude Code uses bash internally on Windows, which silently drops backslashes, causing the script to not run
Solution: Use forward slashes in the path:
{
"statusLine": {
"type": "command",
"command": "powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:/Users/YOUR_USERNAME/.claude/statusline.ps1"
}
}Note: Use double backslashes \\ in JSON paths.
Memory/Session Issues
Session Not Saving
Symptom: /session-end doesn't persist data
Causes:
- Memory directory missing
- File permissions
- Disk full
Solutions:
# Create memory directory
New-Item -ItemType Directory -Path .claude/memory -Force
# Check permissions
Get-Acl .claude/memory
# Check disk space
Get-PSDrive CSession Not Loading
Symptom: /session-start shows no previous context
Causes:
- No previous sessions
- Memory files empty
- Different project directory
Solutions:
# Check session file exists
Test-Path .claude/memory/sessions.md
# View contents
Get-Content .claude/memory/sessions.md
# Ensure you're in correct project
Get-LocationCache Issues
Cache Growing Too Large
Symptom: .claude/cache/ consuming significant disk space
Solution:
# Check size
(Get-ChildItem .claude/cache -Recurse | Measure-Object -Property Length -Sum).Sum / 1MB
# Clear cache
Remove-Item .claude/cache/* -Recurse -Force
# Reduce max size in config
# Edit .claude/config/cache-config.json
# Set storage.max_size_mb to 25Stale Cache Results
Symptom: Analysis returns outdated information
Causes:
- File changes not detected
- Cache TTL too long
- Manual file edits bypassed tracking
Solution:
# Clear agent cache
Remove-Item .claude/cache/agent-results/* -Force
# Or use --no-cache flag
# /prompt-hybrid --no-cache Your promptLearning System Issues
Patterns Not Detected
Symptom: System doesn't suggest smart defaults
Causes:
- Learning disabled
- Threshold not met (need 3+ occurrences)
- Pattern file missing
Solutions:
# Check learning is enabled
(Get-Content .claude/config/learning-config.json | ConvertFrom-Json).enabled
# Check pattern file
Test-Path .claude/memory/prompt-patterns.md
# View recorded patterns
Get-Content .claude/memory/prompt-patterns.mdWrong Suggestions
Symptom: Smart defaults don't match preferences
Solution:
# Reset patterns
Remove-Item .claude/memory/prompt-patterns.md
# Or edit to remove specific patterns
notepad .claude/memory/prompt-patterns.mdGetting Help
Debug Mode
Enable verbose output:
/prompt-hybrid --verbose Your promptCheck Versions
# Check library version
Select-String "Version:" .claude/library/prompt-perfection-core.md
# Check command versions
Get-ChildItem .claude/commands/*.md | ForEach-Object {
$version = Select-String "Version:" $_.FullName
Write-Host "$($_.Name): $version"
}Report Issues
If problems persist:
Gather information:
- Claude Code version
- Library version
- Error messages
- Steps to reproduce
Quick Reference
| Issue | Quick Fix |
|---|---|
| Commands not found | Re-run installer |
| Agent not spawning | Use --agent flag |
| Slow performance | Clear cache |
| Invalid config | Validate JSON syntax |
| Statusline missing | Check settings.json path |
| Session not saving | Create .claude/memory/ |
| Cache too large | Delete .claude/cache/* |