zero-hallucination-coder
O que ela faz
Esta skill guia a IA por um processo cuidadoso para trabalhos de código de alto risco, como mudanças em logins, bancos de dados ou migrações. Ela é para desenvolvedores que querem menos funções inventadas e menos etapas puladas.
Quando usar
- ✓Quando uma tarefa de código é de alto risco ou difícil de desfazer, como uma migração de banco ou uma mudança de autenticação.
- ✓Quando uma mudança atinge vários arquivos existentes e toca APIs externas.
- ✓Quando você pede à IA que planeje com cuidado e evite código inventado.
Link da skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/zero-hallucination-coder/skills/zero-hallucination-coder/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Planeje esta migração de banco de dados com cuidado e garanta que cada função que você usar realmente exista na nossa versão da biblioteca.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela passa por uma sequência de fases: discutir o objetivo, mapear o código existente, dividir o trabalho em etapas, fazer as mudanças e verificar cada import e API antes de avançar.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Devo usar em pequenas edições?
Não. A skill diz que uma correção de digitação ou uma reformatação pequena não precisa do processo completo, já que ele adiciona etapas extras.
O que ela verifica?
Ela verifica se cada import e cada API usada no código existe antes de a mudança ser considerada concluída.
Ela deixa a IA mais lenta?
Sim. Ela adiciona etapas de planejamento e checagem, por isso é indicada apenas para trabalhos arriscados.
Detalhes
Descrição original do 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.
Popularidade
- Estrelas no GitHub
- 29 mil
- Posição no ranking
- #9616
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-launcher-orchestrator
29 milAjuda seu agente a planejar, criar, testar e agendar um agente gerenciado do Claude na sua própria conta, passo a passo, a partir de um objetivo claro.
grade-iterate
29 milPermite que seu agente avalie o trabalho de um agente de IA gerenciado com base em uma rubrica e o melhore em um número fixo de rodadas, para que ele nunca entre em loop infinito.
interview
29 milPermite que seu agente entreviste você sobre uma ideia de agente de IA e transforme suas respostas em um plano de construção simples antes de qualquer lançamento.
run-without-you
29 milAjuda seu agente a configurar um agente gerenciado de IA para rodar em um agendamento ou quando um evento acontecer, com o horário do cron verificado antes do lançamento.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.