本文へスキップ
Skillpedia
一般的なプログラミング29k · #9616

zero-hallucination-coder

できること

このスキルは、ログイン、データベース、マイグレーションの変更など、重要度の高いコーディング作業のために、AIを慎重な手順で進めさせます。作り出された関数や省略された手順を減らしたい開発者を対象としています。

使う場面

  • ✓データベースのマイグレーションや認証の変更など、重要で取り消しにくいコーディングタスクのとき。
  • ✓複数の既存ファイルにまたがり、外部のAPIに触れる変更のとき。
  • ✓AIに慎重に計画させ、作り出されたコードを避けてほしいとき。

スキルのリンク

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/zero-hallucination-coder/skills/zero-hallucination-coder/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/zero-hallucination-coder/skills/zero-hallucination-coder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このデータベースのマイグレーションを慎重に計画してください。使う関数が、当社のライブラリのバージョンに本当に存在することを確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

目標の議論、既存コードの把握、作業のステップへの分解、変更、そして次に進む前の各インポートとAPIの確認、という段階を順に進めます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

小さな編集にも使うべきですか?

いいえ。スキルは、誤字の修正や小さな書式の整えには、完全な手順は余計な手間になるため不要としています。

何を確認しますか?

変更が完了とみなされる前に、コードで使われるすべてのインポートとAPIが存在することを確認します。

AIの動作は遅くなりますか?

はい。計画と確認の手順が加わるので、リスクの高い作業のためのものです。

詳細

作者による元の説明

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

人気

GitHubのスター
29k
ランキング
#9616
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル