Saltar al contenido
Skillpedia
Programación general29 mil · #9616

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.md

Có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

Usa esta skill para ayudarme: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/zero-hallucination-coder/skills/zero-hallucination-coder/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

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:

  1. What is the end state? Describe the working thing, not the steps to get there.
  2. What tech stack, language, and major libraries are in use? (Do NOT assume.)
  3. Does existing code exist that this touches? If yes, share it.
  4. What are the hard constraints? (Must run on X, must use Y, must not break Z.)
  5. 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.

repo: alirezarezvani/claude-skills

Popularidad

Estrellas en GitHub
29 mil
Posición en el ranking
#9616
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas