zero-hallucination-coder
Was er macht
Dieser Skill führt die KI durch einen sorgfältigen Ablauf für Programmierarbeit mit hohem Risiko, etwa Änderungen an Anmeldungen, Datenbanken oder Migrationen. Er ist für Entwickler gedacht, die weniger erfundene Funktionen und weniger übersprungene Schritte wollen.
Wann du ihn nutzt
- ✓Wenn eine Programmieraufgabe hohes Risiko hat oder schwer rückgängig zu machen ist, etwa eine Datenbankmigration oder eine Änderung der Anmeldung.
- ✓Wenn eine Änderung mehrere bestehende Dateien betrifft und externe APIs berührt.
- ✓Wenn du willst, dass die KI sorgfältig plant und erfundenen Code vermeidet.
Link zum Skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/zero-hallucination-coder/skills/zero-hallucination-coder/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Plane diese Datenbankmigration sorgfältig und stell sicher, dass jede Funktion, die du nutzt, in unserer Bibliotheksversion wirklich existiert.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill durchläuft mehrere Phasen: Ziel besprechen, bestehenden Code erfassen, die Arbeit in Schritte zerlegen, die Änderungen machen und vor dem nächsten Schritt jeden Import und jede API prüfen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Soll ich ihn für kleine Änderungen nutzen?
Nein. Der Skill sagt, dass ein Tippfehler oder eine kleine Umformatierung den vollen Ablauf nicht braucht, da er zusätzliche Schritte bringt.
Was prüft er?
Er prüft, dass jeder Import und jede API im Code existiert, bevor eine Änderung als fertig gilt.
Macht er die KI langsamer?
Ja. Er fügt Planungs- und Prüfschritte hinzu, deshalb ist er nur für riskante Arbeit gedacht.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 29k
- Platz im Ranking
- #9616
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
agent-launcher-orchestrator
29kBegleitet dich Schritt für Schritt von einer klaren Idee zu einem lauffähigen Claude Managed Agent in deinem eigenen Konto, inklusive Tests und Zeitplan.
grade-iterate
29kLässt die Arbeit eines verwalteten KI-Agenten anhand eines Bewertungsrasters prüfen und in festen Runden verbessern, ohne endlose Schleifen.
interview
29kLässt deinen Agenten dich zu einer KI-Agenten-Idee befragen und deine Antworten in einen einfachen Bauplan verwandeln, bevor etwas gestartet wird.
run-without-you
29kRichtet einen verwalteten KI-Agenten für Zeitpläne oder Ereignisse ein und prüft vor dem Start die Cron-Zeiten, damit nichts schiefläuft.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.