README-SKILLS
Command**Objectif**: Savoir où tu en es après une interruption
Structured debugging session with team knowledge capture
name: debugging description: Structured debugging session with team knowledge capture category: Development Tools version: 0.4.4
Fast, systematic debugging with hypothesis testing and team knowledge capture, with optional worktree isolation.
Transform chaotic debugging into efficient investigation with:
**NEW in v0.4.4**: Automatic context detection - run from Main OR from worktree directly! **v0.4.3**: Support for worktree isolation with `--worktree` flag for debugging sessions requiring code modifications.
The `/debugging` command **automatically detects** where you run it from:
# Working directory: ~/Documents/watchora $ /debugging "Check API timeout" → Behavior: Read-only investigation on Main (default) → Optional: Add --worktree for code modifications
# Working directory: ~/Documents/watchora/worktrees/debug $ /debugging "Check API timeout" → Behavior: Automatically uses worktree (no --worktree needed!) → Syncs, locks, creates branch, works in current directory
**Key Point**: If you have a dedicated Cursor window open on `worktrees/debug/`, you can use `/debugging` directly from there!
# From Main: Investigate on Main (read-only, quick) /debugging "Check why API returns 500" # From Main: With worktree isolation (modifications needed) /debugging "Memory leak in WebSocket handler" --worktree # From Worktree: Auto-detects worktree context cd worktrees/debug/ /debugging "Memory leak issue" # Automatically uses worktree! # Manage active session (works from anywhere) /debugging --resolve # Complete and document /debugging --abort # Cancel session /debugging --status # Show current status /debugging --pause # Pause session /debugging --resume # Resume paused session # Migrate from Main to worktree /debugging --to-worktree # Move current session to worktree # List past sessions /debugging --list # Show all debug sessions
| Option | Description | |--------|-------------| | `--worktree` | Use debug worktree for isolation | | `--to-worktree` | Migrate current session from Main to worktree | | `--resolve` | Resolve session (document + cleanup) | | `--abort` | Abort session without documenting | | `--status` | Show current session status | | `--pause` | Pause session and save state | | `--resume` | Resume paused session | | `--list` | List all past debug sessions |
**Assess immediately**:
**Auto-detect red flags**:
**Web search** for existing solutions:
**If found**: Link solution, adapt, skip investigation.
Test obvious fixes before deep dive:
$ /debugging "OAuth timeout in production" 🔍 Debugging on Main (read-only investigation) 📝 Session: .prds/debug-sessions/2025-01-13-oauth-timeout-production.md 💡 On Main - for read-only investigation Use --worktree if you need to make changes
$ /debugging --resolve 💬 Resolution status? 1. Resolved with fix → Create PR (requires worktree) 2. Resolved without fix (config/data issue) → Document only 3. Workaround → Document + TODO 4. Not resolved → Save state for later Choose: 2 # If option 2 (no fix needed): ✅ Documented in .prds/debug-sessions/2025-01-13-oauth-timeout-production.md Root cause: Redis session TTL too short in production config Solution: Updated production config (no code changes) Session closed.
$ /debugging "Memory leak in WebSocket handler" --worktree 🔍 Checking worktree debug/... # AUTO-SYNC (Intelligent) 🔄 Syncing worktree (5 commits behind)... Recent changes: - a3f2c1d fix: WebSocket cleanup - 8d4e2a9 feat: Connection pooling - 1c8f3b2 refactor: Event handlers ✅ Synced with main # START SESSION ✅ Started in worktrees/debug/ 📝 Branch: debug/memory-leak-websocket 📄 Session: .prds/debug-sessions/2025-01-13-memory-leak-websocket.md 🔒 Locked worktree (one session at a time) 💻 Open in new window: code worktrees/debug/
**Auto-sync thresholds** (same as /ship):
Work in `worktrees/debug/`:
$ /debugging --resolve 💬 Resolution status? 1. Resolved with fix → Create PR 2. Resolved without fix → Document only 3. Workaround → Document + TODO 4. Not resolved → Save state Choose: 1 # Fix found - create PR ✅ Committed fix 📤 PR #236: fix: Memory leak in WebSocket close handler 📝 Updated session doc: Root cause: Event listeners not cleaned up Solution: Added cle
The complete Claude Code plugin for Product-Driven Development Transform PRDs from ideas to shipped features with AI-powered review, guided implementation, and automated quality gates. Never ship unclear requirements again.
**Objectif**: Savoir où tu en es après une interruption
4-phase Context Engineering workflow with guided implementation
Complete and close a PRD after PR is merged to production
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.