Logotipo de Duck Prebuild

Duck Prebuild

Comunidad
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

Descripción general

EditorLeeJuOh
Repositorioclaude-code-zero
Nombre de la habilidadduck-prebuild
Estrellas
53
Forks
4
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por LeeJuOh en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Duck Prebuild en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/rubber-duck-tutor/skills/duck-prebuild
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Duck Prebuild en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Duck Prebuild automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Duck Prebuild no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Duck Prebuild en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Duck Prebuild está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Duck Prebuild en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/rubber-duck-tutor/skills/duck-prebuild. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Duck Prebuild?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Duck Prebuild?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Duck Prebuild con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Duck Prebuild?

Sí. LeeJuOh la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇