From johnlindquist-claude
Get unstuck when blocked on a problem. Use when you've tried multiple approaches without success, or when debugging has hit a wall.
npx claudepluginhub joshuarweaver/cascade-ai-ml-engineering --plugin johnlindquist-claudeThis skill uses the workspace's default tool permissions.
Systematic approaches for getting unstuck on hard problems.
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.
Systematic approaches for getting unstuck on hard problems.
gemini -m pro -o text -e "" "I'm stuck on this problem:
PROBLEM: [describe what you're trying to do]
TRIED: [what you've already attempted]
ERROR/SYMPTOM: [what's happening]
EXPECTED: [what should happen]
Help me get unstuck. Consider:
1. Am I solving the right problem?
2. What assumptions might be wrong?
3. What haven't I tried?
4. What would an expert check first?"
gemini -m pro -o text -e "" "I need to rubber duck debug this issue:
I'm trying to: [goal]
The code does: [behavior]
I expected: [expected behavior]
The relevant code is:
\`\`\`
[paste code]
\`\`\`
Walk through the code step by step with me, questioning each assumption."
gemini -m pro -o text -e "" "Audit my assumptions about this problem:
PROBLEM: [description]
MY ASSUMPTIONS:
1. [assumption 1]
2. [assumption 2]
3. [assumption 3]
For each assumption:
- Is it definitely true?
- How would I verify it?
- What if it's wrong?"
gemini -m pro -o text -e "" "I've been stuck on this for a while. Give me a completely fresh approach:
PROBLEM: [description]
WHAT I'VE TRIED:
- [approach 1]
- [approach 2]
- [approach 3]
Suggest approaches from a different angle. What would someone with no context try?"
gemini -m pro -o text -e "" "Debug this async code issue:
CODE:
\`\`\`
[paste async code]
\`\`\`
SYMPTOM: [what's happening]
Check for:
- Missing await
- Race conditions
- Unhandled rejections
- Callback timing
- Promise chain issues"
gemini -m pro -o text -e "" "Debug this state management issue:
FRAMEWORK: [React/Vue/etc]
CODE:
\`\`\`
[paste code]
\`\`\`
SYMPTOM: State not updating / Stale state / Infinite loop
Check for:
- Mutation vs immutable update
- Dependency arrays
- Closure over stale values
- Re-render triggers"
gemini -m pro -o text -e "" "Help me understand this TypeScript error:
ERROR:
\`\`\`
[paste error]
\`\`\`
CODE:
\`\`\`
[paste code]
\`\`\`
Explain:
1. What the error means in plain English
2. Why TypeScript is complaining
3. How to fix it properly (not just any)"
gemini -m pro -o text -e "" "Debug this build/config issue:
TOOL: [webpack/vite/esbuild/etc]
ERROR:
\`\`\`
[paste error]
\`\`\`
CONFIG:
\`\`\`
[paste config]
\`\`\`
Common causes and solutions for this type of error."
When simple debugging fails, escalate systematically:
# Check versions
node --version
npm --version
# Check dependencies
npm ls
# Clean and reinstall
rm -rf node_modules package-lock.json && npm install
# Create minimal test case
mkdir /tmp/test-issue
cd /tmp/test-issue
# Create smallest code that reproduces issue
# Find when it broke
git bisect start
git bisect bad HEAD
git bisect good <last-known-good-commit>
# Test each commit git suggests
# GitHub issues
gh search issues "[error message]" --limit 10
# With specific repo
gh search issues "[error]" --repo package/repo
# Prepare a good question
gemini -m pro -o text -e "" "Help me write a good Stack Overflow question for:
PROBLEM: [description]
CODE: [minimal reproduction]
ERROR: [full error]
TRIED: [what I've attempted]
Format as a clear, answerable question."
After getting unstuck, prevent recurrence:
gemini -m pro -o text -e "" "I just solved this issue:
PROBLEM: [what was wrong]
SOLUTION: [how I fixed it]
Suggest:
1. Test to prevent regression
2. Documentation to add
3. Linting/tooling to catch this earlier
4. Pattern to follow in future"