Duck Prebuildのロゴ

Duck Prebuild

コミュニティ
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.

Add to TypingMind

概要

公開者LeeJuOh
リポジトリclaude-code-zero
スキル名duck-prebuild
スター
53
フォーク
4
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    LeeJuOhがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Duck Prebuild」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/rubber-duck-tutor/skills/duck-prebuild
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDuck Prebuildを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDuck Prebuildを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Duck Prebuildは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでDuck Prebuildを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Duck Prebuildはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDuck Prebuildをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/rubber-duck-tutor/skills/duck-prebuildを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Duck Prebuildを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Duck Prebuildで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDuck Prebuildを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Duck Prebuild」は無料ですか?

はい。LeeJuOhがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇