with one click
debug
// Troubleshooting and fixing — something is broken, find and fix it. Use when user says "broken", "error", "not working", "crash", "blank page", "can't connect", "debug", or reports any failure.
// Troubleshooting and fixing — something is broken, find and fix it. Use when user says "broken", "error", "not working", "crash", "blank page", "can't connect", "debug", or reports any failure.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | debug |
| description | Troubleshooting and fixing — something is broken, find and fix it. Use when user says "broken", "error", "not working", "crash", "blank page", "can't connect", "debug", or reports any failure. |
| compatibility | macOS/Linux, any language/framework supported by the project. |
| requires | ["workspace"] |
| companions | ["systematic-debugging"] |
| triggers | {"priority":50,"keywords":["\\b(broken|error|not working|crash|blank page|can.t connect|debug|fix this|won.t start|500|traceback|exception)\\b"],"urls":["https?://[^\\s]*sentry\\.[^\\s]+/issues/"]} |
| search_hints | ["debug","fix","error","broken","crash","not working","bug","trace","troubleshoot"] |
| metadata | {"version":"0.0.1","subagent_safe":false} |
This skill delegates the generic debugging doctrine to:
systematic-debugging — root-cause-first investigationverification-before-completion — evidence before claiming the fix workedThese are optional companion skills from obra/superpowers. If not installed, this skill still works — you just won't get the external debugging and verification guidelines. TeaTree keeps the workflow-specific parts locally: service/worktree failure modes, repo scripts, and when to bounce back into lifecycle commands.
Reactive mode — something is wrong, find and fix it.
/t3:workspace now if not already loaded.Before attempting ANY fix, read the relevant troubleshooting documentation. This is non-negotiable — many issues have known solutions documented there.
When the user gives a debugging hint, investigate that hint FIRST before other theories. User hints are based on deep project knowledge — treat as most likely root cause.
When the bug report includes screenshots or videos, analyze ALL visual evidence before writing any code. Use t3 tool analyze-video for videos. Each frame may reveal additional issues beyond what the text description mentions.
When a user reports "this worked yesterday" or "this just started happening," check what changed before deep-diving into code:
git log --oneline --since="3 days ago" in relevant reposls -la)This is faster than reading every file in detail and often pinpoints the cause immediately.
unset VAR or env -i to mask env issues — if the command fails in the user's shell, that's the bug. Find the source of the stale env var (.zshrc, direnv, .env) and fix it.git diff master...HEAD first to confirm what the branch introduced. Do not speculate about pre-existing causes without checking the base branch. Symlinks, config files, and generated artifacts can sneak into commits.git log origin/<branch> --oneline -1). Unpushed fixes are the most common cause.git merge --no-commit origin/master) and rebuild to reproduce.npm ci (clean install from lockfile); local node_modules may have drifted.Common failure categories:
| Category | Typical symptoms |
|---|---|
| Service startup | DB hang, port conflict, migration error |
| Docker/backend | Redis networking, migration gap, DB import chain |
| Frontend | Blank page, XHR cache, translation sync, build error |
| Worktree-specific | DB exists, port in use, direnv not loaded, DSLR failure |
| Network | Connection refused, timeout (check VPN first) |
| CI-specific | Build fails in CI but passes locally (see Phase 1 checklist) |
After fixing and verifying, the fix needs to be committed and pushed via a PR. Load /t3:ship (or the project's delivery skill) before committing. Never commit directly on main — create a worktree and branch first. (Source: t3:rules § Worktree-First Work)
| Command | When to use |
|---|---|
t3 <overlay> run backend | Restart backend after a fix |
t3 <overlay> run frontend | Restart frontend after a fix |
t3 <overlay> worktree start | Full restart when multiple services affected |
t3 ci fetch-errors | Analyze CI error logs |
When analyzing errors:
After resolving a non-obvious issue, run /t3:retro to capture the lesson (troubleshooting entry, playbook update, or guardrail) so it doesn't recur.