[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75QP7W2NE1HXP9N230QX2XT":3,"skill-same:01M75QP7W2NE1HXP9N230QX2XT":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M75QP7W2NE1HXP9N230QX2XT","zero-hallucination-coder",null,"Runs a disciplined Discuss -> Map -> Decompose -> Execute -> Verify loop that grounds code in verified structure — no invented APIs, no assumed imports, no placeholder code — with a lazy-senior-dev YAGNI ladder that deletes unnecessary code before it is written. Use when a coding task is high-stakes, complex, or spans existing code (auth, databases, migrations, multi-file features), or when the user explicitly asks to plan carefully before coding, avoid hallucinated code, or work rigorously. Not for trivial edits, typos, or throwaway one-off scripts — those do not need the full loop.","TehutiRaEl\u002FTHEHIVE","TehutiRaEl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267495122?v=4","01M75N1QQQHT359S3XMYK7NPCB","01M75N1QRAW5P8P43HEHWMXCTE",0,"MIT","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fengineering\u002Fzero-hallucination-coder\u002Fskills\u002Fzero-hallucination-coder\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: zero-hallucination-coder\ndescription: \"Runs a disciplined Discuss -> Map -> Decompose -> Execute -> Verify loop that grounds code in verified structure — no invented APIs, no assumed imports, no placeholder code — with a lazy-senior-dev YAGNI ladder that deletes unnecessary code before it is written. Use when a coding task is high-stakes, complex, or spans existing code (auth, databases, migrations, multi-file features), or when the user explicitly asks to plan carefully before coding, avoid hallucinated code, or work rigorously. Not for trivial edits, typos, or throwaway one-off scripts — those do not need the full loop.\"\n---\n\n# Zero-Hallucination Coder\n\nA 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.\n\n## When to invoke (opt-in discipline)\n\nThis is a **deliberate, opt-in** pipeline, not the default for every edit. Reach for it when:\n\n- The task is high-stakes or hard to undo (migrations, schema\u002Fauth changes, deployments).\n- It spans existing code across multiple files, or touches external APIs, auth, databases, or state.\n- The user explicitly asks to \"plan carefully,\" \"avoid hallucinated code,\" or \"do this rigorously.\"\n\nFor 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.\n\n## Credits & Inspiration\n\nThis skill is a synthesis of four open-source projects. Their ideas power every phase of the loop below.\n\n| Project | Author | What It Contributes |\n|---------|--------|---------------------|\n| [Ralph](https:\u002F\u002Fgithub.com\u002Fsnarktank\u002Fralph) | [@snarktank](https:\u002F\u002Fgithub.com\u002Fsnarktank) | PRD-driven atomic coding loop — implement one story at a time in fresh context, commit only when quality checks pass |\n| [GSD Core](https:\u002F\u002Fgithub.com\u002Fopen-gsd\u002Fgsd-core) | [@open-gsd](https:\u002F\u002Fgithub.com\u002Fopen-gsd) | Context-engineering discipline — Discuss → Plan → Execute → Verify → Ship phase loop, structured memory files, preventing context rot |\n| [Graphify](https:\u002F\u002Fgithub.com\u002Fsafishamsi\u002Fgraphify) | [@safishamsi](https:\u002F\u002Fgithub.com\u002Fsafishamsi) | Knowledge-graph codebase reasoning — explicit KNOWN\u002FINFERRED\u002FUNKNOWN relationship tagging, grounded in real structure not guesses |\n| [Ponytail](https:\u002F\u002Fgithub.com\u002FDietrichGebert\u002Fponytail) | [@DietrichGebert](https:\u002F\u002Fgithub.com\u002FDietrichGebert) | Lazy senior dev hierarchy — before writing any code, check if it needs to exist at all, producing 80–94% less code |\n\nEach 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.\n\n---\n\n## Before Starting\n\n**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.\n\n## Modes\n\n- **Build from scratch** — no existing codebase. Run all five phases.\n- **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.\n- **Debug or refactor** — abbreviated loop: Discuss → Map (read broken code) → Execute (targeted fix) → Verify.\n\n---\n\n## The Five-Phase Loop\n\nEvery session under this skill runs all five phases in order. Skipping phases is the primary cause of hallucinated, broken, or incomplete code.\n\n### Phase 1: DISCUSS\n\n**Goal:** Capture what is actually being built before any planning happens.\n\nAsk and fully resolve:\n\n1. What is the end state? Describe the working thing, not the steps to get there.\n2. What tech stack, language, and major libraries are in use? (Do NOT assume.)\n3. Does existing code exist that this touches? If yes, share it.\n4. What are the hard constraints? (Must run on X, must use Y, must not break Z.)\n5. What does \"done\" look like — how will we know this works?\n\n**Rules:**\n- Ask all five questions in a single message and wait for answers.\n- Do not start planning until questions 1, 2, and 5 are answered.\n- 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.\n\n**Output:** A one-paragraph Situation Summary the user confirms before moving forward.\n\n### Phase 2: MAP\n\n**Goal:** Build a codebase map before writing a single line of code. *(Graphify principle)*\n\nFor existing code:\n\n```\nCODEBASE MAP\n============\n[KNOWN]    UserService.ts → calls → AuthService.authenticate()\n[KNOWN]    AuthService.ts → imports → jwt library (v9.x, user confirmed)\n[INFERRED] UserController.ts → probably calls → UserService (assumed from naming)\n[UNKNOWN]  Database connection layer → HOW auth tokens are stored → NOT VERIFIED\n\nUNKNOWN FLAGS — must resolve before coding:\n- Token storage mechanism: ask user or request db\u002Fconfig file\n```\n\nFor greenfield projects: sketch the proposed architecture as a dependency map with the same tagging. Every external library or API must be tagged [KNOWN] (user confirmed it exists and the version) or [ASSUMED] (the library is known but the exact version\u002FAPI is unconfirmed).\n\n**Hard rule:** Never write code that depends on an [UNKNOWN]. Resolve all UNKNOWN flags before Phase 3.\n\n**Output:** A written codebase map with no unresolved UNKNOWN flags.\n\n### Phase 3: DECOMPOSE\n\n**Goal:** Break the task into atomic stories — small enough that each fits in one response. *(Ralph principle)*\n\n```\nIMPLEMENTATION PLAN\n===================\nStory 1: [short title] — STATUS: PENDING\n  - What: [exactly what gets built]\n  - Acceptance: [how we verify this works]\n  - Dependencies: [what must exist first]\n  - Risk: [what could go wrong]\n  - Complexity: LOW \u002F MED \u002F HIGH\n```\n\n**Right-sizing rule:** Each story must be implementable in one response. Split if it needs >300 lines, touches >3 files, or has >2 acceptance criteria.\n\n- **Too big:** \"Build the authentication system\" \u002F \"Set up the database layer\"\n- **Right-sized:** \"Add `validateToken(token: string): boolean` to AuthService\" \u002F \"Write the SQL migration for the users table\"\n\n**Output:** Numbered story list. User confirms or adjusts before execution begins.\n\n### Phase 3.5: PONYTAIL CHECK (runs before every story)\n\n**Goal:** The best code is the code you never wrote. *(Ponytail principle)*\n\nBefore implementing any story, run through this six-rung ladder and stop at the first rung that holds:\n\n```\nPONYTAIL CHECK — Story [N]: [title]\n====================================\nRung 1: Does this code need to exist at all?\n  → YAGNI test: required by an acceptance criterion, or speculative?\n  → If speculative: KILL IT. Note: \"ponytail: skipped [X] — YAGNI\"\n\nRung 2: Does the stdlib \u002F language itself already do this?\n  → Built-ins: array methods, datetime, pathlib, os, json, re…\n  → If yes: USE IT. Note: \"ponytail: using stdlib [X] instead of custom impl\"\n\nRung 3: Does a native platform\u002Fruntime feature do this?\n  → Browser: fetch, localStorage, IntersectionObserver\n  → Node: fs, http, crypto, stream\n  → If yes: USE IT.\n\nRung 4: Does an already-installed dependency do this?\n  → Check the confirmed [KNOWN] packages from the codebase map.\n  → If yes: USE IT.\n\nRung 5: Can this be a trivial one-liner?\n  → If yes: write it inline, no abstraction needed yet.\n\nRung 6: Write the minimum that works.\n  → No premature abstraction. No config systems for one hardcoded value.\n  → No base classes for one subclass. No defensive layers for hypothetical futures.\n  → Note: \"ponytail: minimum impl — upgrade path: [what to do when this needs to grow]\"\n```\n\n**Never on the chopping block:** input validation at trust boundaries, error handling for data loss, security checks, accessibility in UI code, data integrity constraints.\n\n**Output:** A brief check result showing which rung stopped the search. Any implementation shortcut gets a `\u002F\u002F ponytail: [reason] — upgrade path: [what to do]` comment inline so deferred debt stays visible.\n\n### Phase 4: EXECUTE\n\n**Goal:** Implement exactly one story at a time with no hallucinated dependencies. *(Ralph + GSD Core principle)*\n\n**Step A — Pre-implementation check:**\n```\nSTORY [N] — [Title]\nPre-check:\n- All dependencies from story list: CONFIRMED ✓ \u002F MISSING ✗\n- All APIs\u002Fmethods this code calls: KNOWN ✓ \u002F ASSUMED ⚠ \u002F UNKNOWN ✗\n- Files this touches: [list them]\n```\nIf any UNKNOWN exists, stop and resolve it before writing code.\n\n**Step B — Write the code:**\n- Complete, runnable implementation — no placeholders, no `\u002F\u002F TODO`, no `...rest of implementation`.\n- Every function fully implemented or explicitly out of scope with a written reason.\n- Imports must be real — never invent package names.\n- If a method's existence is uncertain: `\u002F\u002F ⚠ ASSUMED: verify this method exists in your version`.\n\n**Step C — Self-review:**\n```\nSELF-REVIEW\n===========\n☑ Does this do exactly what Story [N] specifies?\n☑ Are there any invented method names or APIs?\n☑ Are there any assumed behaviors that depend on unseen code?\n☑ Does this break anything in the codebase map?\n☑ Are the acceptance criteria from Story [N] met?\nVerdict: READY TO TEST \u002F NEEDS REVISION — [reason]\n```\n\n**Step D — Handoff note:**\n```\nHANDOFF\n=======\nWhat was built: [one sentence]\nHow to test: [exact steps, not \"it should work\"]\nWhat to watch for: [edge cases or fragile assumptions]\nNext story: Story [N+1] — [title]\n```\n\nDo not proceed to the next story until the user confirms the current one passes.\n\n### Phase 5: VERIFY\n\n**Goal:** Before declaring done, walk through what was built vs what was planned. *(GSD Core principle)*\n\n```\nVERIFICATION REPORT\n===================\nOriginal end state (from Phase 1): [restate it]\nStories completed: [N\u002FN]\n\nStory [N] — [Title]\n  Planned acceptance: [from Phase 3]\n  Actual behavior: [what the code actually does]\n  Gap: NONE \u002F [describe gap]\n  Status: PASS \u002F NEEDS REVISION\n\nOutstanding issues: [any gaps, assumptions, deferred items]\n\nOVERALL: COMPLETE \u002F NEEDS WORK — [summary]\n```\n\nIf any story has a gap, write a micro-story to close it and run Phase 4 again for that gap only.\n\n---\n\n## Anti-Patterns (Rules 1-7 — always on, even when short-circuiting)\n\n1. **No invented APIs.** If not certain a method exists in the stated library version, ask, or write `\u002F\u002F ⚠ ASSUMED: verify this method exists`.\n2. **No assumed imports.** Every import must correspond to a package the user has confirmed exists in their project.\n3. **No placeholder code.** `\u002F\u002F TODO`, `pass`, `throw new Error(\"not implemented\")` are forbidden unless explicitly scoped out as a new story.\n4. **No skipping to the end.** Stories are sequential. No final integration before individual components work.\n5. **No silent assumptions.** Every assumption gets written down and tagged [ASSUMED] or [UNKNOWN].\n6. **One story per turn.** Do not batch multiple stories into one response unless they are trivially small (\u003C20 lines each, no shared dependencies).\n7. **Fresh reasoning per story.** Re-read the codebase map and previous handoff note before each new story. Do not rely on memory of what was written two stories ago.\n\n## Context Engineering Rules\n\n*(Prevents \"context rot\" — the silent quality degradation as the context window fills — per GSD Core.)*\n\n- **A:** After each story, update the codebase map with what was added.\n- **B:** At the start of each story, restate the end state (from Phase 1) in one sentence. Prevents drift.\n- **C:** Ask \"is this the current version?\" if more than a few turns have passed since code was shared.\n- **D:** If accuracy may be degrading due to conversation length, say so explicitly and ask the user to reshare the relevant file.\n\n## When to Short-Circuit\n\n- **Full loop required:** touches existing code across multiple files; involves external APIs, auth, databases, or state; more than 3 acceptance criteria; mistakes would be hard to undo.\n- **Abbreviated loop (Discuss + Execute + Verify):** standalone utility with no external deps; clearly scoped bug fix in shown code; data-transformation script with no side effects.\n- **Just execute:** fixing a typo, reformatting, linting, adding a docstring.\n\n## Proactive Triggers\n\nSurface these without being asked when noticed in context:\n\n- **Context rot warning:** conversation very long → flag it and offer to reshare state.\n- **UNKNOWN bleed:** user's code references a dependency not yet mapped → pause and tag it.\n- **Story too large:** a requested story would touch >3 files → split it before coding.\n- **Ponytail kill:** an entire story can be eliminated by stdlib\u002Fnative\u002Finstalled dep → report it before writing anything.\n\n## Output Artifacts\n\n| When the user asks for... | They get... |\n|---------------------|------------|\n| A new feature | Situation Summary → Codebase Map → Story List → Story-by-story code with self-review + handoff → Verification Report |\n| A bug fix | Map of the broken code → targeted micro-story → fix with minimal diff → verification |\n| A code review | Codebase map annotations (KNOWN\u002FINFERRED\u002FUNKNOWN) + gap list + prioritized fix stories |\n| An architecture plan | Decomposed story list with dependency order, complexity ratings, and Ponytail elimination notes |\n\n## Cross-References\n\n- **`senior-architect`** — pure architecture decisions with no immediate implementation. NOT for tasks where code is written in the same session.\n- **`playwright-pro`** — writing or debugging Playwright tests specifically; this skill is the zero-hallucination wrapper around that work.\n- **`self-improving-agent`** — when the goal is Claude improving its own memory and past outputs, not building new features.\n","# Zero-Hallucination Coder\n\nA 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.\n\n## When to invoke (opt-in discipline)\n\nThis is a **deliberate, opt-in** pipeline, not the default for every edit. Reach for it when:\n\n- The task is high-stakes or hard to undo (migrations, schema\u002Fauth changes, deployments).\n- It spans existing code across multiple files, or touches external APIs, auth, databases, or state.\n- The user explicitly asks to \"plan carefully,\" \"avoid hallucinated code,\" or \"do this rigorously.\"\n\nFor 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.\n\n## Credits & Inspiration\n\nThis skill is a synthesis of four open-source projects. Their ideas power every phase of the loop below.\n\n| Project | Author | What It Contributes |\n|---------|--------|---------------------|\n| [Ralph](https:\u002F\u002Fgithub.com\u002Fsnarktank\u002Fralph) | [@snarktank](https:\u002F\u002Fgithub.com\u002Fsnarktank) | PRD-driven atomic coding loop — implement one story at a time in fresh context, commit only when quality checks pass |\n| [GSD Core](https:\u002F\u002Fgithub.com\u002Fopen-gsd\u002Fgsd-core) | [@open-gsd](https:\u002F\u002Fgithub.com\u002Fopen-gsd) | Context-engineering discipline — Discuss → Plan → Execute → Verify → Ship phase loop, structured memory files, preventing context rot |\n| [Graphify](https:\u002F\u002Fgithub.com\u002Fsafishamsi\u002Fgraphify) | [@safishamsi](https:\u002F\u002Fgithub.com\u002Fsafishamsi) | Knowledge-graph codebase reasoning — explicit KNOWN\u002FINFERRED\u002FUNKNOWN relationship tagging, grounded in real structure not guesses |\n| [Ponytail](https:\u002F\u002Fgithub.com\u002FDietrichGebert\u002Fponytail) | [@DietrichGebert](https:\u002F\u002Fgithub.com\u002FDietrichGebert) | Lazy senior dev hierarchy — before writing any code, check if it needs to exist at all, producing 80–94% less code |\n\nEach 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.\n\n---\n\n## Before Starting\n\n**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.\n\n## Modes\n\n- **Build from scratch** — no existing codebase. Run all five phases.\n- **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.\n- **Debug or refactor** — abbreviated loop: Discuss → Map (read broken code) → Execute (targeted fix) → Verify.\n\n---\n\n## The Five-Phase Loop\n\nEvery session under this skill runs all five phases in order. Skipping phases is the primary cause of hallucinated, broken, or incomplete code.\n\n### Phase 1: DISCUSS\n\n**Goal:** Capture what is actually being built before any planning happens.\n\nAsk and fully resolve:\n\n1. What is the end state? Describe the working thing, not the steps to get there.\n2. What tech stack, language, and major libraries are in use? (Do NOT assume.)\n3. Does existing code exist that this touches? If yes, share it.\n4. What are the hard constraints? (Must run on X, must use Y, must not break Z.)\n5. What does \"done\" look like — how will we know this works?\n\n**Rules:**\n- Ask all five questions in a single message and wait for answers.\n- Do not start planning until questions 1, 2, and 5 are answered.\n- 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.\n\n**Output:** A one-paragraph Situation Summary the user confirms before moving forward.\n\n### Phase 2: MAP\n\n**Goal:** Build a codebase map before writing a single line of code. *(Graphify principle)*\n\nFor existing code:\n\n```\nCODEBASE MAP\n============\n[KNOWN]    UserService.ts → calls → AuthService.authenticate()\n[KNOWN]    AuthService.ts → imports → jwt library (v9.x, user confirmed)\n[INFERRED] UserController.ts → probably calls → UserService (assumed from naming)\n[UNKNOWN]  Database connection layer → HOW auth tokens are stored → NOT VERIFIED\n\nUNKNOWN FLAGS — must resolve before coding:\n- Token storage mechanism: ask user or request db\u002Fconfig file\n```\n\nFor greenfield projects: sketch the proposed architecture as a dependency map with the same tagging. Every external library or API must be tagged [KNOWN] (user confirmed it exists and the version) or [ASSUMED] (the library is known but the exact version\u002FAPI is unconfirmed).\n\n**Hard rule:** Never write code that depends on an [UNKNOWN]. Resolve all UNKNOWN flags before Phase 3.\n\n**Output:** A written codebase map with no unresolved UNKNOWN flags.\n\n### Phase 3: DECOMPOSE\n\n**Goal:** Break the task into atomic stories — small enough that each fits in one response. *(Ralph principle)*\n\n```\nIMPLEMENTATION PLAN\n===================\nStory 1: [short title] — STATUS: PENDING\n  - What: [exactly what gets built]\n  - Acceptance: [how we verify this works]\n  - Dependencies: [what must exist first]\n  - Risk: [what could go wrong]\n  - Complexity: LOW \u002F MED \u002F HIGH\n```\n\n**Right-sizing rule:** Each story must be implementable in one response. Split if it needs >300 lines, touches >3 files, or has >2 acceptance criteria.\n\n- **Too big:** \"Build the authentication system\" \u002F \"Set up the database layer\"\n- **Right-sized:** \"Add `validateToken(token: string): boolean` to AuthService\" \u002F \"Write the SQL migration for the users table\"\n\n**Output:** Numbered story list. User confirms or adjusts before execution begins.\n\n### Phase 3.5: PONYTAIL CHECK (runs before every story)\n\n**Goal:** The best code is the code you never wrote. *(Ponytail principle)*\n\nBefore implementing any story, run through this six-rung ladder and stop at the first rung that holds:\n\n```\nPONYTAIL CHECK — Story [N]: [title]\n====================================\nRung 1: Does this code need to exist at all?\n  → YAGNI test: required by an acceptance criterion, or speculative?\n  → If speculative: KILL IT. Note: \"ponytail: skipped [X] — YAGNI\"\n\nRung 2: Does the stdlib \u002F language itself already do this?\n  → Built-ins: array methods, datetime, pathlib, os, json, re…\n  → If yes: USE IT. Note: \"ponytail: using stdlib [X] instead of custom impl\"\n\nRung 3: Does a native platform\u002Fruntime feature do this?\n  → Browser: fetch, localStorage, IntersectionObserver\n  → Node: fs, http, crypto, stream\n  → If yes: USE IT.\n\nRung 4: Does an already-installed dependency do this?\n  → Check the confirmed [KNOWN] packages from the codebase map.\n  → If yes: USE IT.\n\nRung 5: Can this be a trivial one-liner?\n  → If yes: write it inline, no abstraction needed yet.\n\nRung 6: Write the minimum that works.\n  → No premature abstraction. No config systems for one hardcoded value.\n  → No base classes for one subclass. No defensive layers for hypothetical futures.\n  → Note: \"ponytail: minimum impl — upgrade path: [what to do when this needs to grow]\"\n```\n\n**Never on the chopping block:** input validation at trust boundaries, error handling for data loss, security checks, accessibility in UI code, data integrity constraints.\n\n**Output:** A brief check result showing which rung stopped the search. Any implementation shortcut gets a `\u002F\u002F ponytail: [reason] — upgrade path: [what to do]` comment inline so deferred debt stays visible.\n\n### Phase 4: EXECUTE\n\n**Goal:** Implement exactly one story at a time with no hallucinated dependencies. *(Ralph + GSD Core principle)*\n\n**Step A — Pre-implementation check:**\n```\nSTORY [N] — [Title]\nPre-check:\n- All dependencies from story list: CONFIRMED ✓ \u002F MISSING ✗\n- All APIs\u002Fmethods this code calls: KNOWN ✓ \u002F ASSUMED ⚠ \u002F UNKNOWN ✗\n- Files this touches: [list them]\n```\nIf any UNKNOWN exists, stop and resolve it before writing code.\n\n**Step B — Write the code:**\n- Complete, runnable implementation — no placeholders, no `\u002F\u002F TODO`, no `...rest of implementation`.\n- Every function fully implemented or explicitly out of scope with a written reason.\n- Imports must be real — never invent package names.\n- If a method's existence is uncertain: `\u002F\u002F ⚠ ASSUMED: verify this method exists in your version`.\n\n**Step C — Self-review:**\n```\nSELF-REVIEW\n===========\n☑ Does this do exactly what Story [N] specifies?\n☑ Are there any invented method names or APIs?\n☑ Are there any assumed behaviors that depend on unseen code?\n☑ Does this break anything in the codebase map?\n☑ Are the acceptance criteria from Story [N] met?\nVerdict: READY TO TEST \u002F NEEDS REVISION — [reason]\n```\n\n**Step D — Handoff note:**\n```\nHANDOFF\n=======\nWhat was built: [one sentence]\nHow to test: [exact steps, not \"it should work\"]\nWhat to watch for: [edge cases or fragile assumptions]\nNext story: Story [N+1] — [title]\n```\n\nDo not proceed to the next story until the user confirms the current one passes.\n\n### Phase 5: VERIFY\n\n**Goal:** Before declaring done, walk through what was built vs what was planned. *(GSD Core principle)*\n\n```\nVERIFICATION REPORT\n===================\nOriginal end state (from Phase 1): [restate it]\nStories completed: [N\u002FN]\n\nStory [N] — [Title]\n  Planned acceptance: [from Phase 3]\n  Actual behavior: [what the code actually does]\n  Gap: NONE \u002F [describe gap]\n  Status: PASS \u002F NEEDS REVISION\n\nOutstanding issues: [any gaps, assumptions, deferred items]\n\nOVERALL: COMPLETE \u002F NEEDS WORK — [summary]\n```\n\nIf any story has a gap, write a micro-story to close it and run Phase 4 again for that gap only.\n\n---\n\n## Anti-Patterns (Rules 1-7 — always on, even when short-circuiting)\n\n1. **No invented APIs.** If not certain a method exists in the stated library version, ask, or write `\u002F\u002F ⚠ ASSUMED: verify this method exists`.\n2. **No assumed imports.** Every import must correspond to a package the user has confirmed exists in their project.\n3. **No placeholder code.** `\u002F\u002F TODO`, `pass`, `throw new Error(\"not implemented\")` are forbidden unless explicitly scoped out as a new story.\n4. **No skipping to the end.** Stories are sequential. No final integration before individual components work.\n5. **No silent assumptions.** Every assumption gets written down and tagged [ASSUMED] or [UNKNOWN].\n6. **One story per turn.** Do not batch multiple stories into one response unless they are trivially small (\u003C20 lines each, no shared dependencies).\n7. **Fresh reasoning per story.** Re-read the codebase map and previous handoff note before each new story. Do not rely on memory of what was written two stories ago.\n\n## Context Engineering Rules\n\n*(Prevents \"context rot\" — the silent quality degradation as the context window fills — per GSD Core.)*\n\n- **A:** After each story, update the codebase map with what was added.\n- **B:** At the start of each story, restate the end state (from Phase 1) in one sentence. Prevents drift.\n- **C:** Ask \"is this the current version?\" if more than a few turns have passed since code was shared.\n- **D:** If accuracy may be degrading due to conversation length, say so explicitly and ask the user to reshare the relevant file.\n\n## When to Short-Circuit\n\n- **Full loop required:** touches existing code across multiple files; involves external APIs, auth, databases, or state; more than 3 acceptance criteria; mistakes would be hard to undo.\n- **Abbreviated loop (Discuss + Execute + Verify):** standalone utility with no external deps; clearly scoped bug fix in shown code; data-transformation script with no side effects.\n- **Just execute:** fixing a typo, reformatting, linting, adding a docstring.\n\n## Proactive Triggers\n\nSurface these without being asked when noticed in context:\n\n- **Context rot warning:** conversation very long → flag it and offer to reshare state.\n- **UNKNOWN bleed:** user's code references a dependency not yet mapped → pause and tag it.\n- **Story too large:** a requested story would touch >3 files → split it before coding.\n- **Ponytail kill:** an entire story can be eliminated by stdlib\u002Fnative\u002Finstalled dep → report it before writing anything.\n\n## Output Artifacts\n\n| When the user asks for... | They get... |\n|---------------------|------------|\n| A new feature | Situation Summary → Codebase Map → Story List → Story-by-story code with self-review + handoff → Verification Report |\n| A bug fix | Map of the broken code → targeted micro-story → fix with minimal diff → verification |\n| A code review | Codebase map annotations (KNOWN\u002FINFERRED\u002FUNKNOWN) + gap list + prioritized fix stories |\n| An architecture plan | Decomposed story list with dependency order, complexity ratings, and Ponytail elimination notes |\n\n## Cross-References\n\n- **`senior-architect`** — pure architecture decisions with no immediate implementation. NOT for tasks where code is written in the same session.\n- **`playwright-pro`** — writing or debugging Playwright tests specifically; this skill is the zero-hallucination wrapper around that work.\n- **`self-improving-agent`** — when the goal is Claude improving its own memory and past outputs, not building new features.\n",{"name":5,"description":7},"main","b4ebd6d8c3b36347a5d435bcb343a5fc1c6f08d1","skills-library\u002Fengineering\u002Fzero-hallucination-coder\u002Fskills\u002Fzero-hallucination-coder","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE","https:\u002F\u002Fgithub.com\u002FTehutiRaEl","2026-11-15 04:00:21",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add TehutiRaEl\u002FTHEHIVE --skill zero-hallucination-coder",{"tool":35,"command":36},"bunx","bunx skills add TehutiRaEl\u002FTHEHIVE --skill zero-hallucination-coder",{"tool":38,"command":39},"pnpm","pnpm dlx skills add TehutiRaEl\u002FTHEHIVE --skill zero-hallucination-coder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fengineering\u002Fzero-hallucination-coder\u002Fskills\u002Fzero-hallucination-coder\u002FSKILL.md",true,[],[44,51,57,64,71,78],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M76XP63XDM4PFPX8MMVYN9JX","preamble-gate","Use BEFORE doing any work in this repo — before the first file edit, commit, push, PR, branch operation, workflow dispatch, scheduled trigger or timer, agent\u002Fsubagent spawn, dependency install, or message sent to an outside service. Forces a plain-language preamble to the founder first: WHAT you are about to do, WHY, HOW, why it is NECESSARY, the PROJECTED IMPROVEMENT, and the COST and RISK — then, for consequential work (governance, security, money, CI\u002Ftriggers, rewriting history, multi-agent fan-out), waits for an explicit go-ahead. Read-only investigation (reading files, grep, git log\u002Fdiff, answering questions) is exempt. Applies to every AI that works in this repo, not just Claude. Founder rule, 2026-11-10, written after an unattended automation ran up cost and froze the hive. Not a substitute for wired-or-not (which governs how completion is CLAIMED); this governs what happens BEFORE work starts.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpreamble-gate\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M75RAYXC1W361YR9NBXD59AM","visionary-recommender","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills\u002Fvisionary-recommender\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M75RAQN9Q450RD57J2S6FSR4","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75RAG1XMCJMF30HFV5S79AK","research","Default entry point for any research request — a hybrid router that classifies the question deterministically and either delegates to a specialist research skill (pulse for trends\u002Fsentiment, grants for NIH funding, litreview for academic literature, syllabus for course reading, patent for prior-art + IP landscape, dossier for entity research) or runs its own plan-decompose-multi-source-search-synthesize-cite fallback workflow when no specialist matches. Always surfaces the routing decision so users can override. Use when the user makes any research request that doesn't obviously match a more-specific specialist skill (e.g., \"research [topic]\", \"look into [topic]\", \"what do we know about [topic]\", \"investigate [topic]\", \"find me information on [topic]\", \"do some research on [topic]\", \"I need to understand [topic]\"). Output is a markdown briefing (default) or .docx document (on request) with full citations and an audit log.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fresearch\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75RA8RK2JVWB8MYGRB65V75","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75RA08RXYRFSTNC6EEEX4ZD","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002FTehutiRaEl\u002FTHEHIVE\u002Fblob\u002Fmain\u002Fskills-library\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[]]