duck

duck is a skill for Claude Code from LeeJuOh/claude-code-zero. It costs 74 tokens per session (836 once invoked), scanned A, original, MIT.

A coding tutor that uses a rubber-duck conversation to help you think through your work. It chooses a mode for planning, checking recent edits, reviewing changes, or getting oriented in an unfamiliar codebase.

In plain words
What is it for?
Use it to sketch a design before coding, explain and verify recent changes, review uncommitted changes before a commit or pull request, or learn how a repository is organised.
Why use it?
It helps you catch gaps in your understanding before or after coding, instead of accepting generated code without checking it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rubber-duck-tutor plugin — 6 skills shipped together

Good fit Use it to sketch a design before coding, explain and verify recent changes, review uncommitted changes before a commit or pull request, or learn how a repository is organised.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add LeeJuOh/claude-code-zero
Claude Code
/plugin install rubber-duck-tutor

Made for: Claude Code.

Or install rubber-duck-tutor, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for duck

README.md
[![agentmods](https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/duck/github.svg)](https://agentmods.dev/skills/leejuoh/claude-code-zero/duck)
Your own site
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/duck"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/duck/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for duck

Your own site · 80×15
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/duck"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/duck.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 836 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00836
Opus 5.5 $0.00030 $0.00334
Sonnet 5.5 $0.00015 $0.00167
Haiku 4.5 $0.00007 $0.00084

Measured 2mo ago against content hash acd29b2918c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

duck scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/rubber-duck-tutor/skills/duck/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Duck (auto-detect)

Auto-detects which mode fits the user's current state and routes to the matching mode skill. Read ../ducking/engine.md for shared persona, principles, and session-management rules — they apply to every mode.

Paths for engine.md's commands: <scripts> is ${CLAUDE_PLUGIN_ROOT}/skills/ducking/scripts, <data-dir> is ${CLAUDE_PLUGIN_DATA}.

Mode Map

Trigger phrase / state Mode skill
"build this for me" / stated implementation intent, no plan or code yet /duck-prebuild
Active plan in conversation (or .claude/orientation.md-adjacent design doc) /duck-prebuild
Files recently created/modified in this session /duck-verify
Uncommitted changes (git diff --stat non-empty) /duck-review
User new to the repo, returning after long break, "where should I even start" /duck-orient
None of the above Ask the user which phase they want

Detection Order

Check in this order — first match wins:

  1. Pre-coding intent — user just stated they want to build X but no plan/diff/code exists yet → /duck-prebuild
  2. Plan in context — a plan or design doc was produced in this session → /duck-prebuild
  3. Uncommitted changes — git diff --stat shows a real diff → /duck-review
  4. Recent in-session edits — files were created or modified earlier in this session but not yet committed → /duck-verify
  5. Orientation gap — user appears unfamiliar with the repo → /duck-orient
  6. Ambiguous — ask the user which phase they want before continuing

Behavior When the User Picks Their Own Mode

If the user named a mode (prebuild, verify, review, orient — or the older design/plan words, both alias to prebuild), suggest the matching /duck-<mode> command and stop — don't run the mode flow inline. The dedicated mode skill carries the full instructions for that flow.

If the user passed $ARGUMENTS and it matches a known mode word, hand off to /duck-<mode> (map design/plan → prebuild; otherwise use $ARGUMENTS as-is):

Read the full file on GitHub · 53 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +2 lines acd29b2918c9
  2. 3mo ago First seen · 51 lines · 74 tokens per session scan A 81616ce09dea

Subscribe to this mod's changes

duck is a skill published in the GitHub repository LeeJuOh/claude-code-zero (52 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 836 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

duck compared with skills from other repositories

duck next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
duckLeeJuOh/claude-code-zeroSkill52yesterdayMITA74Claude Code
concept-diagramsNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
baoyu-comicNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
memento-flashcardsNousResearch/hermes-agentSkill267ktodayMITA21Claude Code, Codex
manim-videoNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
canvasNousResearch/hermes-agentSkill267ktodayMITA12Claude Code, Codex
biological-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A59Claude Code