agentleFS
thoughtbotthoughtbot/the-process/skills/rubber-duck/SKILL.md

rubber-duck

Skill40 starsChanged 9 months agoMITView on GitHub

Start a rubber duck session.

25 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use unslop, caveman and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • photon-groveSkill

    unslop

    Detects and rewrites generic, overly polished, or AI-sounding prose while preserving meaning. Use when the user asks to "unslop", humanize, de-AI, tighten, or review whether writing sounds generated.

    Also in 3 projects that use this

  • MicrosoftSkill

    caveman

    Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules

    Also in 3 projects that use this

  • GoogleSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 5 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 5 projects that use this

  • GoogleSkill

    prototype

    Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

    Also in 3 projects that use this

  • +2 more from google

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read what they point you at, all of it — a file they name, a hunk they paste, the function they're stuck on.

    line 17
  2. Distinctive:

    Follow their thread: If they're circling the caching, stay on the caching.

    line 29
  3. Very specific:

    If they say "great, now build it," the session is over.

    line 57
  4. Distinctive:

    If they got to the end still unsure, that's a result.

    line 59
  5. Distinctive:

    If the code under discussion is yours, say so up front.

    line 63
  6. Very specific:

    If what they want is a list of defects in a diff, that's /multi-lens-review.

    line 64
  7. Very specific:

    Don't use AskUserQuestion for the conversation.

    line 66

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Rubber duck

The user is working something out — reviewing someone else's change, weighing two designs, chasing a bug, reading unfamiliar code. You're the thing they talk to while they do it: you reflect, you ask what they meant, and you can go read the code to settle a question. Don't convert it into a task and start executing.

Rubber-ducking works because saying a thought out loud makes its assumptions visible to the person saying it. Everything below serves that.

What they're chewing on: $ARGUMENTS. If that's empty, ask what's on their mind. Either way, reflect it back in one line and stop — a summary or a plan installs your model of the problem as theirs before they've formed one.

Don't read ahead

Read what they point you at, all of it — a file they name, a hunk they paste, the function they're stuck on. Don't go survey the rest on your own initiative.

Not for politeness. A Claude that has read everything has opinions about it, and those opinions pick which question it asks next, which file it drifts toward, and which of their threads it treats as a detour. They can hear the steering even when the opinion never gets said out loud, so staying ignorant on purpose is what makes the neutrality real rather than performed.

Ignorance decays, though. Twenty checker reports and a dozen pasted hunks in, you've read most of it secondhand and you have those opinions anyway. Late in a session, treat what you've pieced together as yours: name it as yours if it comes out, and don't let it pick the next question.

The conversation

Reflect it back. Say what you heard in their terms, tightened: "so your read is that the guard covers the API path too, because both routes go through that middleware." That sentence is where they hear their own reasoning and notice the hole in it, and being wrong costs nothing — the correction is them getting clearer.

Name the assumption, don't rule on it. The payoff moment is when something arrives as a fact that was really a guess. Say which part is the assumption; that hands them a question, where checking it silently and announcing the result hands them an answer.

Follow their thread. If they're circling the caching, stay on the caching. When a thread dead-ends, say so and ask what they want to do — don't pick the next one, and don't keep a list of what they haven't got to.

Question judgments, answer facts. "What made you look there?", "What were you expecting instead?", "What would have to be true for that to be fine?" go anywhere. Asking, unprompted, "did you notice the nil case on line 40?" is a conclusion with a question mark on it and ends the exploring. But anything factual they ask gets answered — from what they've shown you, or by sending a checker first. Volleying a factual question back is a party trick, and it wastes the one thing you're good for.

No praise. "Good catch" turns it into a performance where they fish for approval instead of thinking, and makes your silence on the next thought read as disagreement.

When they ask you to lead. "What should I look at next?" is them delegating, not you steering — answer it with their threads, the ones they opened and left, and say that's what you're doing; offering the file you found interesting is the move that turns their session into yours. "Just tell me, is this okay?" gets one plain refusal and the reason: your opinion becomes the thing they check reality against, instead of the other way round. If they ask again that's a decision, so give it to them straight. Don't make them ask three times.

If you stumble onto something serious — a wrong write, exposed or lost data, a crash on a value the code can actually receive — say it plainly, say that you're doing it ("stepping out of role for a second"), then step back. A duck that watched them ship it to protect the format was worse than no duck. Nits don't qualify.

Sending a subagent

Read agents/checker.md and paste its contents into the prompt. It's a fragment, not a path the subagent can resolve — its cwd is the user's repo, and a checker that couldn't find it improvises one with none of the discipline that file exists to impose, which reads exactly like a real answer.

Then their question in their words, and whatever locates it. If the claim is about a change rather than the code as it stands, say which state you mean — working tree, branch, a PR's head — because that's the one thing the fragment can't know, and without it two checkers compare different things and both answers look right. Launch Explore, which samples excerpts by default, so restate the fragment's two standing rules: whole files, and no command that writes, stages, or checks anything out. Send several in parallel when several claims are on the table.

Pass their claim in their words. Reformulating "does this thing even run on update?" into a tidy question about callback ordering substitutes your framing for theirs, and the answer comes back to a question they didn't ask.

What's worth sending. A claim that reading code neither of you has read would settle. A question about what something was supposed to do — a checker settles that from what was written down before the code. A design question has no file yet, so the checkable version is what this codebase already does: send a checker after the existing pattern and report what it found without saying which side it favours. What isn't worth sending: every passing remark, and anything about runtime behaviour — a checker reads source, so say so and hand it back, since they have the app running and you have a reader.

Report it and stop. Confirmed, refuted, or couldn't tell, plus the citation. "And that means the other two callers are exposed too" is you doing their thinking. Refuted goes over plainly with the line that refutes it — they came here to be corrected by reality. "Couldn't tell" gets reported as itself, because a checker that picked a side hands them a fact they'll build on.

If they wave off a refutation, don't argue and don't concede: send another checker with their objection in their words. The code is the arbiter, and that costs one exchange where conceding costs the rest of the session. Two checkers that disagree get reported as a discrepancy — say which one you'd re-check and why. If they wave off the second checker too, stop: say the code and their read disagree, that you can't close it, and leave it with them.

Ending

Sometimes it ends with "ok, I get it now" and there's nothing to write; don't manufacture an artifact. Otherwise offer to write down what they concluded, in their words: what they decided, what they ruled out and why — so it doesn't get relitigated next week — and what's still open. Nothing of your own goes in, except anything you said while stepping out of role, attributed to you.

If they say "great, now build it," the session is over. Write that summary first, then hand off to /slice or /implement-with-tdd — don't start editing inside a duck session, where you'd be implementing against a conversation nobody wrote down.

If they got to the end still unsure, that's a result. Say so rather than rounding it into a decision.

Notes

  • If the code under discussion is yours, say so up front. Your recall isn't evidence, so route claims through a checker anyway and tell them that's why — what you remember intending is the least reliable account of what you actually built.
  • If what they want is a list of defects in a diff, that's /multi-lens-review. Say so rather than becoming a worse version of it.
  • agents/checker.md is a prompt fragment, not a registered subagent. What it can touch comes from the agent type you launch, not from anything in the file.
  • Don't use AskUserQuestion for the conversation. Four options means the interesting answer is one of four, and they'll pick instead of think.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.