From dstoic
Use when user reports an error, bug, or something not working. Search-first troubleshooting with diagnostic phase. Triggers: debug, error, broken, not working, failing, crash, exception.
npx claudepluginhub digital-stoic-org/agent-skills --plugin dstoicThis skill is limited to using the following tools:
Search-first diagnostic workflow. Human executes commands.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Search-first diagnostic workflow. Human executes commands.
CRITICAL: After EVERY AskUserQuestion call, check if answers are empty/blank. Known Claude Code bug: outside Plan Mode, AskUserQuestion silently returns empty answers without showing UI.
If answers are empty: DO NOT proceed with assumptions. Instead:
0.Load → 1.Search → 2.Qualify → 3.Diagnose → 4.Investigate → 5.Persist → 6.Learn
Read /praxis/reference/troubleshoot/learnings.yaml if exists. Apply known patterns before searching.
80% of bugs solved online.
[error] [stack] [framework] on SO, GitHub, Docs, RedditAskUserQuestion:
See protocols/diagnose.md for details.
Pattern matches → suggest fix, skip OODA
Only if diagnosis inconclusive.
Exit when root cause confirmed and fix verified.
MUST execute after root cause confirmed and fix verified. DO NOT skip. DO NOT wait for user to ask.
Persist the diagnostic session to $THINKING_DIR/troubleshoot/{project}/{date}-{slug}-llm.md.
{project} = current project folder name. {slug} = lowercase hyphenated from primary symptom/error. Create directory if missing.
Collision handling: If filename exists, append sequence: {date}-{slug}-2-llm.md, {date}-{slug}-3-llm.md. First write gets clean name.
Guard: If $THINKING_DIR is unset, skip artifact persistence silently (troubleshooting must not fail because of missing env var).
Content (required sections):
This is the active thinking trail — distinct from learnings.yaml which captures distilled, reusable conclusions.
After resolution, AskUserQuestion: "Save this learning?"
/praxis/reference/troubleshoot/learnings.yamlscope: project:<name>Before responding to user, verify:
$THINKING_DIR (or guard triggered if unset)protocols/diagnose.md - Mental models, bisect strategies