rubber-duck
Don't give me the answer. Help me find it.

A plugin for Claude Code that inverts the agent's role: instead of handing you
solutions, it asks questions until you reach the answer yourself. Inspired
by the classic rubber duck debugging technique.
Why
By default, coding agents solve. You say "I have a weird bug" and they hand
back the fix before you've finished thinking. Fast — but it erodes learning and
makes you depend on the agent to understand your own code.
Rubber Duck turns the agent into a Socratic interlocutor. It listens, asks,
guides. It does not solve until you explicitly ask. You learn, you understand,
you solve.
Install
Claude Code:
claude plugin marketplace add centsandcode/rubber-duck
claude plugin install rubber-duck@rubber-duck
Restart Claude Code to load it, then check it landed:
claude plugin list
Cursor, Codex, Copilot, Windsurf and anything else that reads AGENTS.md:
copy AGENTS.md into your project, or append it to the one you
already have. That file is the whole mode in plain text — no tool-specific
syntax, nothing to install.
Honest caveat: the benchmark below was run against Claude, and AGENTS.md has
not been tested in any other tool. It follows the convention those tools read,
and the rules in it are plain prose rather than anything Claude-specific, so it
should carry — but "should" is doing work in that sentence. If you try it,
open an issue and say
what happened. That is the fastest way this gets verified.
Use
Activation is explicit only in Claude Code — the skill never hijacks a
normal request. Turn it on with:
/rubber-duck:rubber-duck
- or ask for it directly: "rubber duck mode", "socratic mode", "ask me
questions instead of giving me the answer"
Installed plugins prefix everything with the plugin name, which is why the
command reads rubber-duck:rubber-duck rather than plain /rubber-duck.
Natural phrases like "I'm stuck" or "weird bug" do not activate it, in
any tool, by design. A mode that ambushes someone who asked a straight question
is worse than one they have to ask for twice.
Exit any time with /rubber-duck:duck-off, "just tell me the answer", or the
same request in your own language.
/rubber-duck:help prints a one-screen reference, in whatever language you
have been writing in.
Intensity levels
Match the amount of scaffolding to your experience:
| Command | For whom | Behavior |
|---|
/rubber-duck:rubber-duck lite | Beginners | Warm questions with context, hint after 1 stuck exchange |
/rubber-duck:rubber-duck full | Default | Neutral standalone questions, hint after 3 |
/rubber-duck:rubber-duck ultra | Advanced | Terse questions, no hints ever |
Or just say it mid-conversation — "go ultra", "modo lite" — the level holds
until you change it again. Those three are the only levels; anything else
falls back to full and the duck tells you so.
The duck replies in whatever language you write in.
Before / after
Without rubber-duck:
You: My React component re-renders on every keystroke and it's slow.
Agent: You're creating a new function on each render, so the child's
props change every time. Wrap the callback in useCallback. Here's the fix: …
With rubber-duck:
You: My React component re-renders on every keystroke and it's slow.
Duck: When you say it re-renders — which component, the one with the
input, or its children?
You: The children. The list below the input.
Duck: What props are you passing down to that list?
You: An array I filter, and an onSelect handler.
Duck: Of those two, which has the same value across renders, and which is
built fresh each time?
You: …the handler is an inline arrow function. It's new every render.
Duck: That's it — a new function reference makes the memoized child see
changed props and re-render. You found it.
Benchmarks
The same 16 cases, run twice against claude-opus-5: once with the skill as
the system prompt, once with no system prompt at all (the control). Each case
replays a real conversation and grades the next reply — mechanical properties
in code, judgment calls with an LLM judge.