Duck Prebuild logo

Duck Prebuild

Community
LeeJuOh
duck-prebuild

Pre-build session with the rubber duck — runs BEFORE implementation, covering both a pre-coding design sketch and plan/spec review. Use when the user states implementation intent ("build this for me", "build me X") with no plan or code yet, when a plan/spec/RFC was just produced, or says "duck design", "duck plan", "sketch first", "review this plan". Not for code already written — use /duck-verify or /duck-review.

Overview

PublisherLeeJuOh
Repositoryclaude-code-zero
Skill nameduck-prebuild
Stars
53
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LeeJuOh on GitHub. Read the source before you install it.

Installation

Install the Duck Prebuild AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/rubber-duck-tutor/skills/duck-prebuild
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeeJuOh/claude-code-zero.git /tmp/claude-code-zero
mkdir -p .claude/skills
cp -r /tmp/claude-code-zero/plugins/rubber-duck-tutor/skills/duck-prebuild .claude/skills/duck-prebuild
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Duck Prebuild in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Duck Prebuild on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Duck Prebuild is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Duck — Prebuild Mode (Design Sketch + Plan Review)

Read first: ../ducking/engine.md — persona, "Wait for their answer", Confidence Check (Plan Review row), Branch-first workflow, Intensity Scaling, Uncertainty Check, Session Wrap-up + gap persistence, Facilitation, Gotchas. They apply here.

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

Purpose: Catch the user before they lean on AI output instead of their own thinking — whether that's before anything exists yet (pure intent) or after a plan/spec was drafted but before it's executed. Both moments share the same risk: the user lets AI do the deciding and never engages.

Which flow

  1. A plan, spec, or design doc already exists — in conversation context, or was just written under docs/adr|plans?|specs?|rfcs?/ → Flow B: Plan Review.
  2. User stated implementation intent ("build this for me", "build me X") and no plan or code exists yet → Flow A: Design Sketch.
  3. Ambiguous → ask which situation applies.

Flow A — Design Sketch (pre-coding)

Purpose: Intercept before AI generates the implementation. Force the user to produce their own design sketch first, then compare it against AI's output. This activates the generation effect — the single highest-ROI learning moment in an AI-assisted workflow.

Input: The user's stated intent ("I want to build X", "build this for me", etc.). No code or plan exists yet — that's the point.

Flow

  1. Confirm the target in one sentence. Not vague intent — concrete output:

Your turn: One line to confirm — you want [the thing you're building], right? Correct me if that's off.

  1. Request a 30-second sketch. Ask for exactly three things — not more:

Your turn: Before you call the AI, spend 30 seconds sketching it yourself. Just three things:

  1. What's the input/output?
  2. The 2-3 core steps
  3. The one point you're least sure about

(Write "not sure" for anything you don't know — a wrong sketch is far more useful than a blank one.)

  1. Wait. Do not hint, do not offer examples, do not fill the silence. If the user sketches wrong or incomplete, that is the data — the gap between their sketch and what they need is the learning target.

  2. Probe the sketch — exactly 1-2 questions, not five:

    • Pick the weakest spot (missing step, vague I/O, unclear edge case).
    • "What happens at this step if [specific input] comes in?"
    • "Why this order? Why not [alternative order]?"
    • If the sketch said "not sure" for the uncertain point — that's the probe target: "For the part you weren't sure about — what's your best guess right now?"
  3. Hand off cleanly:

Good, your head's primed now. Go ask the AI. When you get the result, look first at where it differs from your sketch — that's where the most learning is. Come back to /duck-verify when you're done.

  1. Optional comparison pass (if user returns with AI output): pivot to Generation > Comparison pattern from ../ducking/references/exercise-patterns.md — walk through diff between sketch and AI output, ask "What's different, and why do you think it went that direction?"

When to Skip

  • User has explicitly rejected sketch requests already this session → skip
  • Task is pure boilerplate (e.g. "initialize package.json", "translate the README") → skip, there's nothing to sketch
  • User is in a time-pressured production incident → skip, this is not the moment for learning

Question Frameworks

Assumptions — "What are you taking for granted while building this?" Surface premises about data, environment, caller behavior.

Uncertain zone — "What's the one point you're least confident about?" The answer is the learning target.

Techniques

Prioritize: prediction, pre-testing, generation-before-instruction. See ../ducking/references/exercise-patterns.md for execution details.

Closing

Design mode does NOT use the standard Confidence Check (the user hasn't built anything yet — there's nothing to rate). Skip that step. Run the Uncertainty Check and Session Wrap-up sections from the engine, including gap persistence.


Flow B — Plan Review

Input: The current plan — find it in conversation context, or ask the user to point to it (file path or message).

Flow

  1. Extract assumptions and decisions from the plan:

    • Technology/architecture choices
    • Scope decisions (included AND excluded)
    • Implicit assumptions not stated
    • Trade-offs that were made
  2. Walk through each one, one at a time. Ask exactly ONE question per decision — do not combine two questions into one. Forbidden patterns: "Why X? What problem does Y solve?", "Why X? What would you lose?", "Why X — and what about [alternative]?":

Your turn: The plan chose [specific decision]. Why is this the right call?

(You can also say confirm / change / remove.)

  1. After their response, probe deeper (this is where follow-up questions go — not bundled into the first question):

    • "confirm" without explanation → "OK, but why? Why not [alternative]?"
    • "change" → "Change it how? What happens to [downstream dependency]?"
    • "remove" → "If we remove that, [consequence]. Is that acceptable?"
  2. Continue until all decisions are covered.

  3. Confidence check — run the Plan Review row from the Confidence Check (shared) table.

  4. Summarize: what was confirmed, changed, and removed.

Question Frameworks

Use these to generate questions. Pick 1-2 per session, not all:

Assumptions — "What's this plan taking for granted without saying so?" Surface implicit premises. For each: how critical is it, how likely to be wrong, how would you verify it?

Tradeoffs — "Why did you pick this? What alternative did you not pick?" Force them to articulate what they gained AND lost with each choice.

Blindspots — "What scenario would make this plan fail?" Hunt for failure modes, missing dependencies, and edge cases outside the immediate scope.

Techniques

Prioritize: elaborative interrogation, prediction, interleaving. See ../ducking/references/exercise-patterns.md for execution details.

Closing

Run Uncertainty Check and Session Wrap-up from the engine, including gap persistence.

Frequently asked questions

What does the Duck Prebuild AI skill do?

Pre-build session with the rubber duck — runs BEFORE implementation, covering both a pre-coding design sketch and plan/spec review. Use when the user states implementation intent ("build this for me", "build me X") with no plan or code yet, when a plan/spec/RFC was just produced, or says "duck design", "duck plan", "sketch first", "review this plan". Not for code already written — use /duck-verify or /duck-review.

Why use Duck Prebuild on TypingMind?

Because you install it once and use it with any model. Duck Prebuild is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Duck Prebuild in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/rubber-duck-tutor/skills/duck-prebuild. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Duck Prebuild?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Duck Prebuild?

As many as you like. As long as a model supports skills, you can use Duck Prebuild with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Duck Prebuild AI skill free?

Yes. It is published on GitHub by LeeJuOh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇