stuck
Get unstuck when blocked on a problem. Use when you've tried multiple approaches without success, or when debugging has hit a wall.
What this skill does
# Stuck Helper Systematic approaches for getting unstuck on hard problems. ## When to Use - You've tried multiple approaches without success - The same error keeps appearing despite fixes - You don't understand why something isn't working - Debugging has hit a dead end ## Quick Unstuck ```bash 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?" ``` ## Structured Debugging ### Rubber Duck Protocol ```bash 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." ``` ### Assumption Audit ```bash 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?" ``` ### Fresh Perspective ```bash 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?" ``` ## Common Stuck Scenarios ### Async/Promise Issues ```bash 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" ``` ### State Management ```bash 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" ``` ### Type Errors ```bash 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)" ``` ### Build/Config Issues ```bash 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." ``` ## Escalation Ladder When simple debugging fails, escalate systematically: ### Level 1: Verify Environment ```bash # Check versions node --version npm --version # Check dependencies npm ls # Clean and reinstall rm -rf node_modules package-lock.json && npm install ``` ### Level 2: Minimal Reproduction ```bash # Create minimal test case mkdir /tmp/test-issue cd /tmp/test-issue # Create smallest code that reproduces issue ``` ### Level 3: Git Bisect ```bash # Find when it broke git bisect start git bisect bad HEAD git bisect good <last-known-good-commit> # Test each commit git suggests ``` ### Level 4: Search for Similar Issues ```bash # GitHub issues gh search issues "[error message]" --limit 10 # With specific repo gh search issues "[error]" --repo package/repo ``` ### Level 5: Ask for Help ```bash # 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." ``` ## Prevention Checklist After getting unstuck, prevent recurrence: ```bash 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" ``` ## Best Practices 1. **State the problem clearly** - Writing it out often reveals the issue 2. **List what you've tried** - Prevents repeating failed approaches 3. **Question assumptions** - Often the issue is a wrong assumption 4. **Simplify** - Remove code until you find the minimal case 5. **Take breaks** - Fresh eyes see what tired ones miss 6. **Ask for help early** - Don't spend hours on a 5-minute question 7. **Document the solution** - Future you will thank present you
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.