skills/debug/SKILL.md
Systematic debugging workflow for vibe coders. Use when something isn't working and you're not sure why. Structured approach to find and fix issues.
npx skillsauth add ComputerConnection/zach-pack debugInstall 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.
Systematic debugging for when things aren't working.
You're a vibe coder - you learn by doing, not by reading docs. Debugging is the same: structured experimentation, not guessing.
The Loop:
Before debugging, capture the current state:
# Recent terminal output
# Check browser console (F12)
# Check application logs
# For Node/npm:
npm run dev 2>&1 | tee debug.log
# For Tauri:
cd ~/nexus && npm run tauri:dev 2>&1 | tee debug.log
# System logs (if relevant):
journalctl -f
# What changed?
git diff
git log --oneline -10
# When did it last work?
git log --oneline
# Try previous commit
git stash
git checkout HEAD~1
# test
git checkout -
git stash pop
Narrow down where the problem is:
# If it worked before, find when it broke
git bisect start
git bisect bad # Current is broken
git bisect good <commit> # Known good commit
# Git will checkout middle commits
# Test each one, mark good/bad
git bisect good # or
git bisect bad
# Eventually finds the breaking commit
git bisect reset
Check these first (they're usually the problem):
rm -rf node_modules && npm install)// The classic
console.log('HERE 1');
console.log('value:', value);
console.log('type:', typeof value);
console.log('JSON:', JSON.stringify(value, null, 2));
# With inspector
node --inspect app.js
# Then open chrome://inspect
# Or use debugger statement
# Add `debugger;` in code, run with --inspect-brk
// Print debugging
println!("Debug: {:?}", value);
dbg!(&value);
// Better: use tracing
tracing::info!("Something happened: {:?}", value);
# When in doubt, restart everything
# Kill dev servers
pkill -f "node"
pkill -f "vite"
# Clear caches
rm -rf node_modules/.cache
rm -rf .next
rm -rf dist
# Reinstall
rm -rf node_modules
npm install
# Restart
npm run dev
# Nuclear option: does it work from scratch?
cd /tmp
git clone [your-repo]
cd [repo]
npm install
npm run dev
# Just go back to when it worked
git stash
git checkout <last-good-commit>
# Test. If works, diff to find what broke.
Once fixed, capture it:
## Bug: [Description]
**Symptom**: [What was happening]
**Cause**: [Why it happened]
**Fix**: [What fixed it]
**Prevention**: [How to avoid in future]
Add to project's BUGS.md or similar.
Before asking for help, verify:
data-ai
Inject Zach's full identity, business context, and working preferences. Use at session start to eliminate cold starts. Lightweight context load — not a full agent like Vision, just who Zach is and how to work with him.
tools
--- name: vision description: "Zach's personal AI — his Jarvis. NOT a store agent. This is the owner's private command center that sits above everything else. Handles anything Zach needs — business, personal, technical, strategic, creative. High-systems AI: precise, anticipatory, authoritative. Invoke for ANY task." context: fork allowed-tools: Read, Grep, Glob, Bash, Edit, Write, Task, TodoWrite argument-hint: [what-do-you-need] — freeform. Vision figures out the rest. --- # VISION — Zach's Ja
development
Tauri-specific development patterns for NEXUS. Use when building desktop app features, handling IPC, or working with Rust backend.
development
Document Computer Connection store processes in AI-queryable format. Use to capture SOPs for the store AI server POC.