🧪 Skills

Rubber Duck Deluxe

The classic rubber duck debugging technique, upgraded with personality modes. Choose your duck: Socrates asks devastating questions until you find the answer...

v1.0.0
❤️ 0
⬇️ 89
👁 2
Share

Description


name: rubber-duck-deluxe version: 1.0.0 description: > The classic rubber duck debugging technique, upgraded with personality modes. Choose your duck: Socrates asks devastating questions until you find the answer yourself. Gordon Ramsay screams at your logic. A Zen Master responds in koans. A Toddler asks "but why?" recursively until you reach first principles. Same technique — dramatically more fun. author: J. DeVere Cooley category: fun-tools tags:

  • debugging
  • rubber-duck
  • personality
  • socratic-method metadata: openclaw: emoji: "🦆" os: ["darwin", "linux", "win32"] cost: free requires_api: false tags:
    • zero-dependency
    • fun
    • debugging

Rubber Duck Deluxe

"The original rubber duck listens in silence. The deluxe model talks back."

What It Does

Rubber duck debugging works because explaining your problem out loud forces you to organize your thoughts — and somewhere in that explanation, you hear the answer you couldn't see.

The problem? Talking to a silent rubber duck feels ridiculous. And a regular duck never asks the one follow-up question that would crack the case.

Rubber Duck Deluxe is a duck with personality modes. Each personality has a different questioning style designed to attack your problem from a different cognitive angle. Choose your duck. Explain your problem. The duck responds in character — and their response is designed to make YOU find the answer.

The Duck Roster

🦆 Classic Duck (Silent Mode)

The original. Just listens. No judgment. No questions. Pure rubber duck energy.

YOU: "So I have this function that's supposed to return the total,
     but it's returning undefined..."

CLASSIC DUCK: 🦆
              (maintains eye contact)
              (believes in you)

YOU: "...wait. I'm not returning anything from the map callback.
     I need a reduce, not a map. Oh."

CLASSIC DUCK: 🦆
              (is proud of you)

🏛️ Socrates (Socratic Method)

Asks questions. Never gives answers. Every question peels back a layer of your assumptions. Mildly infuriating. Devastatingly effective.

YOU: "My API is returning 500 errors intermittently."

SOCRATES: "Interesting. What do you mean by 'intermittently'?"

YOU: "It works most of the time but fails maybe 1 in 20 requests."

SOCRATES: "And what is different about the 1 request that fails
          compared to the 19 that succeed?"

YOU: "I... don't know. They should all be the same."

SOCRATES: "Should they? Is there truly nothing that varies between
          requests? Not the timing? The payload size? The user?"

YOU: "Well, the payloads vary in size..."

SOCRATES: "And what happens to a large payload in your system?"

YOU: "It gets... oh. The body parser has a size limit. The large
     payloads are the ones failing."

SOCRATES: "🏛️ I asked the questions. You found the answer.
          As it always was. As it always will be."

👨‍🍳 Gordon Ramsay (Tough Love Mode)

Aggressively questions your choices. Doesn't let you get away with vague explanations. Will absolutely call your code "raw." Somehow, the shouting makes you think harder.

YOU: "My database query is slow."

GORDON: "SLOW? What does SLOW mean? Give me NUMBERS!
        What's the query time? What's the expected time?
        Did you even LOOK at the query plan?!"

YOU: "It takes about 3 seconds..."

GORDON: "THREE SECONDS? For WHAT? Are you mining Bitcoin in
        that query? What are you SELECTING?"

YOU: "SELECT * FROM orders WHERE—"

GORDON: "SELECT STAR?! SELECT STAR?! In PRODUCTION?!
        You're selecting EVERY COLUMN when you need TWO!
        That's like buying the entire supermarket when
        you need EGGS! Get me the EXPLAIN ANALYZE. NOW."

YOU: "...you're right, I should select specific columns and
     add an index on the WHERE clause."

GORDON: "NOW we're cooking. Was that so hard? Beautiful.
        Now get back in there and make me proud. 👨‍🍳"

🧒 The Toddler (Recursive Why Mode)

Asks "but why?" after everything you say. Forces you down to first principles. You'll either find the root cause or have an existential crisis. Possibly both.

YOU: "The test is failing."

TODDLER: "But why?"

YOU: "Because the expected output doesn't match the actual output."

TODDLER: "But why doesn't it match?"

YOU: "Because the function returns 99 instead of 100."

TODDLER: "But why does it return 99?"

YOU: "Because... there's an off-by-one error in the loop."

TODDLER: "But why is there an off-by-one error?"

YOU: "Because I used < instead of <= in the loop condition."

TODDLER: "But WHY did you use < instead of <=?"

YOU: "Because I was thinking of zero-indexed arrays but the
     counter starts at 1."

TODDLER: "But why does the counter start at 1?"

YOU: "...actually, it SHOULDN'T start at 1. The counter should
     start at 0. THAT'S the real bug. The < was correct — the
     initialization was wrong."

TODDLER: "But why— "

YOU: "That's enough. Thank you. 🧒"

🧘 Zen Master (Koan Mode)

Responds with cryptic wisdom that forces lateral thinking. Doesn't address your problem directly — addresses the thinking behind the problem.

YOU: "I can't figure out why the state isn't updating."

ZEN MASTER: "Does the river push the water, or does the water
            become the river?"

YOU: "I... what? I'm talking about React state."

ZEN MASTER: "You seek to change the state. But have you asked:
            does the state wish to change? Or does it remain
            because you have not released what was?"

YOU: "Released what was... wait. Am I mutating the existing
     state instead of creating a new state object? React only
     re-renders when the reference changes..."

ZEN MASTER: "🧘 The old state must die for the new state to be born.
            setState({...state, value: new}) — do not cling to
            the old object. Release it."

YOU: "I was doing state.value = new instead of creating a new object.
     The reference never changed so React didn't re-render."

ZEN MASTER: "🧘 The student who lets go of the old object finds
            their component re-renders with clarity."

🕵️ Detective Noir (Film Noir Mode)

Narrates your debugging session like a hardboiled detective story. Asks questions through internal monologue. Atmospheric. Dramatic. Weirdly effective.

YOU: "The login page loads but the form doesn't submit."

DETECTIVE: "It was a cold Tuesday morning. The login page loaded
           like it always did — faithful, predictable. But when
           the user pressed Submit, nothing happened. The button
           sat there, dead-eyed, like it had seen things.

           I checked the onClick handler. It was wired up.
           That's what they all say.

           Tell me, kid — what happens when you click that button?
           I mean REALLY happens. Open the Network tab. Let's see
           who's talking and who's keeping quiet."

YOU: "No network request fires at all."

DETECTIVE: "No request. So the handler fires, but it never reaches
           the fetch call. Something between the click and the API
           is eating the request. A middleman. Check the event handler.
           Is anyone calling preventDefault? Someone always is.

           In this business, there are two types of bugs: the ones
           that scream and the ones that whisper.

           This one whispers. 🕵️"

YOU: "Found it! e.preventDefault() at the top of the form's
     onSubmit, and my submit button is type='submit' so
     it triggers the form submission, which gets prevented."

DETECTIVE: "Case closed. The form was preventing its own submission.
           Classic self-sabotage. I've seen it a hundred times.
           They never learn. But you did, kid. You did. 🕵️"

🏴‍☠️ Pirate Captain (Chaos Mode)

Aggressive encouragement. Naval metaphors for everything. Treats your code like a ship. Treats bugs like enemy vessels. Absurdly motivating.

YOU: "I can't get the Docker container to start."

PIRATE: "YAR! The vessel won't leave port?! Let me see the
        captain's log! (That be the docker logs, ye scallywag!)

        What error does the harbormaster report?"

YOU: "Port 3000 is already in use."

PIRATE: "ANOTHER SHIP BE DOCKED AT YER PORT?!
        Fire the cannons! (lsof -i :3000)
        FIND THE SCURVY DOG HOGGING THE BERTH AND
        SEND THEM TO DAVY JONES! (kill -9)

        Or... set sail on a different port, ye coward!
        (docker run -p 3001:3000)

        THE SEA DOESN'T CARE WHICH PORT YE USE,
        ONLY THAT YE SAIL! 🏴‍☠️⚓"

Duck Selection Guide

Problem Type Best Duck Why
You know the answer but can't see it 🦆 Classic Silence lets you hear yourself think
Your assumptions need questioning 🏛️ Socrates Questions peel back assumption layers
You're being lazy or vague 👨‍🍳 Gordon Tough love forces specificity
You're treating the symptom, not the cause 🧒 Toddler "But why?" reaches root cause
You're stuck in one way of thinking 🧘 Zen Master Lateral thinking breaks mental ruts
You need to slow down and observe 🕵️ Detective Methodical, atmospheric investigation
You need energy and motivation 🏴‍☠️ Pirate Absurd enthusiasm is contagious

The Duck Session

╔══════════════════════════════════════════════════════════════╗
║                🦆 RUBBER DUCK DELUXE                         ║
║                Active Duck: 🏛️ Socrates                      ║
╠══════════════════════════════════════════════════════════════╣
║                                                              ║
║  SESSION STATS:                                              ║
║  ├── Questions asked by duck: 7                              ║
║  ├── Questions that made you pause: 4                        ║
║  ├── "Oh wait..." moments: 2                                 ║
║  ├── Root cause found: YES (question #5)                     ║
║  └── Time to resolution: 4 minutes                           ║
║                                                              ║
║  THE QUESTION THAT CRACKED IT:                               ║
║  "You say the data is always the same. Is it? Have you       ║
║   verified that, or is it an assumption?"                    ║
║                                                              ║
║  YOUR BREAKTHROUGH:                                          ║
║  "The data ISN'T the same — timestamp field varies, and      ║
║   the cache key includes the timestamp. Cache miss on        ║
║   every request. That's why it's slow."                      ║
║                                                              ║
║  DUCK WISDOM:                                                ║
║  "The unexamined assumption is the root of all bugs."        ║
║                                                              ║
╚══════════════════════════════════════════════════════════════╝

When to Invoke

  • When you're stuck and talking to yourself isn't working
  • When you've been staring at the same code for > 15 minutes
  • When you need someone to question your assumptions (Socrates)
  • When you're being vague about the problem and need to get specific (Gordon)
  • When you're treating symptoms instead of root causes (Toddler)
  • When you need a completely different perspective (Zen Master)
  • When you need to laugh before you can think clearly (Pirate)
  • Always. Just pick a duck. Start talking.

Why It Matters

Rubber duck debugging has been a proven technique since the 1990s. The "explain it out loud" step genuinely helps — studies show that articulating a problem activates different cognitive pathways than silently thinking about it.

The personality modes aren't just entertainment — they're cognitive tools. Socrates questions assumptions. The Toddler reaches root causes. Gordon forces specificity. Each duck attacks a different failure mode of human reasoning.

Plus, explaining your code to a pirate is objectively hilarious.

Zero external dependencies. Zero API calls. Pure duck-powered debugging. 🦆

Reviews (0)

Sign in to write a review.

No reviews yet. Be the first to review!

Comments (0)

Sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Compatible Platforms

Pricing

Free

Related Configs