.claude/skills/auto-claude-troubleshooting/SKILL.md
Auto-Claude debugging and troubleshooting guide. Use when fixing installation issues, debugging build failures, resolving agent errors, or diagnosing performance problems.
npx skillsauth add adaptationio/skrillz auto-claude-troubleshootingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive debugging guide for all Auto-Claude issues.
# Python version (need 3.12+)
python3 --version
# Node.js version (need 24+)
node --version
# Claude Code CLI
claude --version
# Git
git --version
cd apps/backend
# Check virtual environment
source .venv/bin/activate # or .venv\Scripts\activate
python --version
# Test import
python -c "from core.client import create_client; print('OK')"
# Check dependencies
pip list | grep claude-agent-sdk
# Environment variables
cat .env | grep -v "^#" | grep -v "^$"
# OAuth token
echo $CLAUDE_CODE_OAUTH_TOKEN | head -c 20
# Test Claude Code
claude --version
# Wrong Python version
$ python3 --version
Python 3.9.7 # Too old!
# Fix: Install Python 3.12+
# macOS
brew install [email protected]
# Ubuntu
sudo apt install python3.12 python3.12-venv
# Windows
winget install Python.Python.3.12
# Create venv with correct version
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Error: node-gyp rebuild failed
# Fix: Install Visual Studio Build Tools
# 1. Download from https://visualstudio.microsoft.com/visual-cpp-build-tools/
# 2. Select "Desktop development with C++"
# 3. Restart terminal
npm install
# Error: Permission denied
# Fix: Use sudo or change ownership
sudo npm install -g @anthropic-ai/claude-code
# Or fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Error: Invalid OAuth token
# Fix: Re-generate token
claude setup-token
# Add to .env
echo "CLAUDE_CODE_OAUTH_TOKEN=$(claude setup-token --output)" >> apps/backend/.env
# Error: CLAUDE_CODE_OAUTH_TOKEN not set
# Check if set
echo $CLAUDE_CODE_OAUTH_TOKEN
# Set manually
export CLAUDE_CODE_OAUTH_TOKEN="your-token-here"
# Or add to .env
echo "CLAUDE_CODE_OAUTH_TOKEN=your-token-here" >> apps/backend/.env
# Error: Claude Pro/Max subscription required
# Fix: Verify subscription at https://claude.ai/upgrade
# Must have active Pro or Max subscription
# Error: Spec 001 not found
# List available specs
python run.py --list
# Check spec directory
ls -la .auto-claude/specs/
# Create spec first
python spec_runner.py --interactive
# Error: Agent timed out
# Increase timeout
API_TIMEOUT_MS=600000 python run.py --spec 001
# Or add to .env
echo "API_TIMEOUT_MS=600000" >> .env
# Build appears stuck
# Check progress
tail -f .auto-claude/specs/001-feature/build-progress.txt
# Check for PAUSE file
ls -la .auto-claude/specs/001-feature/PAUSE
# Remove pause
rm .auto-claude/specs/001-feature/PAUSE
# Add human input to unstick
echo "Please proceed with the next subtask" > .auto-claude/specs/001-feature/HUMAN_INPUT.md
# Error: Command not allowed
# Check security log
cat .auto-claude-security.json
# Add command to allowlist in security.py
# Or run without sandbox (not recommended)
# Error: Worktree already exists
# Remove existing worktree
git worktree remove .worktrees/auto-claude/001-feature
# Or force remove
git worktree remove --force .worktrees/auto-claude/001-feature
git worktree prune
# Error: Branch auto-claude/001-feature already exists
# Delete existing branch
git branch -D auto-claude/001-feature
# Then retry
python run.py --spec 001
# Error: Merge conflicts detected
# Manual resolution
cd .worktrees/auto-claude/001-feature/
git merge main --no-commit
git status
# Resolve conflicts in editor
code path/to/conflicted/file
# Complete merge
git add .
git commit -m "Resolved conflicts"
cd ../../apps/backend
# Error: Graphiti initialization failed
# Check if enabled
grep GRAPHITI apps/backend/.env
# Verify provider credentials
# For OpenAI
curl -H "Authorization: Bearer $OPENAI_API_KEY" https://api.openai.com/v1/models
# For Ollama
curl http://localhost:11434/api/tags
# Error: Embedding dimension mismatch
# Clear embeddings and re-index
rm -rf ~/.auto-claude/memories/embeddings
python run.py --spec 001
# Error: Database corrupted
# Backup and reset
mv ~/.auto-claude/memories ~/.auto-claude/memories.backup
python query_memory.py --search "test" # Creates fresh DB
# QA keeps rejecting
# Check QA report
cat .auto-claude/specs/001-feature/qa_report.md
# Skip QA temporarily
python run.py --spec 001 --skip-qa
# Or limit iterations
MAX_QA_ITERATIONS=5 python run.py --spec 001 --qa
# QA Fixer fails to fix issues
# Check fix request
cat .auto-claude/specs/001-feature/QA_FIX_REQUEST.md
# Add human guidance
echo "Focus on fixing the session storage issue first" > .auto-claude/specs/001-feature/HUMAN_INPUT.md
# Level 1: Basic
DEBUG=true DEBUG_LEVEL=1 python run.py --spec 001
# Level 2: Detailed
DEBUG=true DEBUG_LEVEL=2 python run.py --spec 001
# Level 3: Verbose (everything)
DEBUG=true DEBUG_LEVEL=3 python run.py --spec 001
# Log to file
DEBUG=true DEBUG_LOG_FILE=debug.log python run.py --spec 001
# View in real-time
tail -f debug.log
# See agent messages
DEBUG=true python run.py --spec 001 2>&1 | tee agent.log
# Search for errors
grep -i error agent.log
grep -i failed agent.log
# Full reset for a spec
rm -rf .auto-claude/specs/001-feature
rm -rf .worktrees/auto-claude/001-feature
git branch -D auto-claude/001-feature 2>/dev/null
git worktree prune
# Recreate spec
python spec_runner.py --task "Your task description"
# Continue interrupted spec
python spec_runner.py --continue 001-feature
# Continue interrupted build
python run.py --spec 001
# 1. Pause the build
touch .auto-claude/specs/001-feature/PAUSE
# 2. Make manual changes in worktree
cd .worktrees/auto-claude/001-feature/
# ... edit files ...
git add .
git commit -m "Manual fix"
# 3. Resume
cd ../../apps/backend
rm .auto-claude/specs/001-feature/PAUSE
python run.py --spec 001
# Use faster model
AUTO_BUILD_MODEL=claude-sonnet-4-5-20250929 python run.py --spec 001
# Reduce thinking tokens
# Edit agent creation to use max_thinking_tokens=3000
# Skip research phase
SKIP_RESEARCH_PHASE=true python spec_runner.py --task "..."
# Monitor memory
watch -n 1 'ps aux | grep python'
# Reduce context
MAX_CONTEXT_FILES=30 python run.py --spec 001
# Use smaller embedding model
OLLAMA_EMBEDDING_MODEL=all-minilm
OLLAMA_EMBEDDING_DIM=384
# Error: Rate limit exceeded
# Wait and retry
sleep 60
python run.py --spec 001
# Or use different endpoint
ANTHROPIC_BASE_URL=http://localhost:3456 python run.py --spec 001
# System info
echo "Python: $(python3 --version)"
echo "Node: $(node --version)"
echo "Git: $(git --version)"
echo "Claude: $(claude --version)"
# Auto-Claude version
cat package.json | grep '"version"'
# Last 50 lines of logs
tail -50 .auto-claude/specs/*/build-progress.txt
Include:
development
Setup secure web-based terminal access to WSL2 from mobile/tablet via ttyd + ngrok/Cloudflare/Tailscale. One-command install, start, stop, status. Use when you need remote terminal access, web terminal, browser-based shell, or mobile access to WSL2 environment.
development
Complete development workflows where Claude writes the code while Gemini and Codex provide research, planning, reviews, and different perspectives. Claude remains the main developer. Use for complex projects requiring expert planning and multi-perspective reviews.
development
Systematic progress tracking for skill development. Manages task states (pending/in_progress/completed), updates in real-time, reports progress, identifies blockers, and maintains momentum. Use when tracking skill development, coordinating work, or reporting progress.
testing
Comprehensive testing workflow orchestrating functional testing, example validation, integration testing, and usability assessment. Sequential workflow for complete skill testing from examples through scenarios to integration validation. Use when conducting thorough testing, pre-deployment validation, ensuring skill functionality, or comprehensive quality checks.