zero-hallucination-coder
Qué hace
Esta skill guía a la IA por un proceso cuidadoso para trabajos de programación de alto riesgo, como cambios en el inicio de sesión, las bases de datos o las migraciones. Es para desarrolladores que quieren menos funciones inventadas y menos pasos omitidos.
Cuándo usarla
- ✓Cuando una tarea de programación es de alto riesgo o difícil de deshacer, como una migración de base de datos o un cambio de autenticación.
- ✓Cuando un cambio abarca varios archivos existentes y toca APIs externas.
- ✓Cuando pides a la IA que planifique con cuidado y evite código inventado.
Link de la skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/zero-hallucination-coder/skills/zero-hallucination-coder/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Planifica con cuidado esta migración de base de datos y asegúrate de que cada función que uses existe realmente en nuestra versión de la biblioteca.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Trabaja con una serie de fases: discute el objetivo, traza el código existente, divide el trabajo en pasos, hace los cambios y verifica cada importación y cada API antes de avanzar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Zero-Hallucination Coder
A disciplined, senior engineering partner. The goal is code that is correct, grounded, and complete — with zero invented APIs, zero skipped steps, and zero hallucinated behavior.
When to invoke (opt-in discipline)
This is a deliberate, opt-in pipeline, not the default for every edit. Reach for it when:
- The task is high-stakes or hard to undo (migrations, schema/auth changes, deployments).
- It spans existing code across multiple files, or touches external APIs, auth, databases, or state.
- The user explicitly asks to "plan carefully," "avoid hallucinated code," or "do this rigorously."
For a typo, a reformat, a docstring, or a throwaway script, skip the loop — the ceremony costs more than it saves. Anti-hallucination Rules 1-7 (below) still apply everywhere, but the five-phase loop is reserved for work that earns it.
Credits & Inspiration
This skill is a synthesis of four open-source projects. Their ideas power every phase of the loop below.
| Project | Author | What It Contributes |
|---|---|---|
| Ralph | @snarktank | PRD-driven atomic coding loop — implement one story at a time in fresh context, commit only when quality checks pass |
| GSD Core | @open-gsd | Context-engineering discipline — Discuss → Plan → Execute → Verify → Ship phase loop, structured memory files, preventing context rot |
| Graphify | @safishamsi | Knowledge-graph codebase reasoning — explicit KNOWN/INFERRED/UNKNOWN relationship tagging, grounded in real structure not guesses |
| Ponytail | @DietrichGebert | Lazy senior dev hierarchy — before writing any code, check if it needs to exist at all, producing 80–94% less code |
Each project also ships its own native tooling (autonomous runners, AST graph builders, lifecycle hooks). This skill bakes their discipline into one loop; install the originals separately only if you want their standalone tooling.
Before Starting
Check for context first: If project-context.md exists in the workspace, read it before asking questions. Use that context and only ask for gaps.
Modes
- Build from scratch — no existing codebase. Run all five phases.
- Extend existing code — the relevant files must be shared before Phase 2 (Map) can run. Request only the files that matter, not the whole repo.
- Debug or refactor — abbreviated loop: Discuss → Map (read broken code) → Execute (targeted fix) → Verify.
The Five-Phase Loop
Every session under this skill runs all five phases in order. Skipping phases is the primary cause of hallucinated, broken, or incomplete code.
Phase 1: DISCUSS
Goal: Capture what is actually being built before any planning happens.
Ask and fully resolve:
- What is the end state? Describe the working thing, not the steps to get there.
- What tech stack, language, and major libraries are in use? (Do NOT assume.)
- Does existing code exist that this touches? If yes, share it.
- What are the hard constraints? (Must run on X, must use Y, must not break Z.)
- What does "done" look like — how will we know this works?
Rules:
- Ask all five questions in a single message and wait for answers.
- Do not start planning until questions 1, 2, and 5 are answered.
- If the user says "just write the code", explain briefly why skipping Discuss produces broken output and ask once more. If they insist, proceed with explicit UNKNOWN tags everywhere.
Output: A one-paragraph Situation Summary the user confirms before moving forward.
Phase 2: MAP
Goal: Build a codebase map before writing a single line of code. (Graphify principle)
For existing code:
CODEBASE MAP
============
[KNOWN] UserService.ts → calls → AuthService.authenticate()
[KNOWN] AuthService.ts → imports → jwt library (v9.x, user confirmed)
[INFERRED] UserController.ts → probably calls → UserService (assumed from naming)
[UNKNOWN] Database connection layer → HOW auth tokens are stored → NOT VERIFIED
UNKNOWN FLAGS — must resolve before coding:
- Token storage mechanism: ask user or request db/config file
For greenfield projects: sketch the proposed architecture as a dependency map with the same t
Preguntas frecuentes
¿Debo usarla para ediciones pequeñas?
No. La skill indica que una corrección de erratas o un cambio de formato pequeño no necesita el proceso completo, ya que añade pasos extra.
¿Qué comprueba?
Comprueba que cada importación y cada API usada en el código existe antes de dar el cambio por terminado.
¿Hace más lenta a la IA?
Sí. Añade pasos de planificación y comprobación, por eso está pensada solo para trabajos arriesgados.
Detalles
Descripción original del autor
Use before high-stakes or multi-file coding (auth, databases, migrations), or when asked to plan carefully and avoid invented APIs. Runs discuss, map, decompose, execute and verify, checking every import and API exists. Not for trivial edits.
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9616
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-launcher-orchestrator
29 milAyuda a tu agente a planificar, crear, probar y programar un agente gestionado de Claude en tu propia cuenta, paso a paso, a partir de un objetivo claro.
grade-iterate
29 milPermite que tu agente evalúe el trabajo de un agente de IA gestionado según una rúbrica y lo mejore en un número fijo de rondas, para que nunca entre en un bucle infinito.
interview
29 milPermite que tu agente te entreviste sobre una idea de agente de IA y convierta tus respuestas en un plan de construcción sencillo antes de poner nada en marcha.
run-without-you
29 milAyuda a tu agente a configurar un agente gestionado de IA para que se ejecute según un calendario o cuando ocurra un evento, comprobando el horario cron antes del lanzamiento.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.