Plugin Doubt Gate
Description
Claude Code Stop hook plugin that detects uncertainty in assistant messages and requests verification
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
doubt-gate
A Claude Code **Stop hook plugin** that detects uncertainty in assistant messages. When doubt keywords (`likely`, `maybe`, `might`, `probably`, etc.) appear outside of code blocks and blockquotes, the hook blocks the stop and instructs the agent to add logging, assertions, or other verification before concluding.
This ensures the agent provides concrete evidence rather than speculation.
How it works
Claude Code pipes a JSON payload to stdin on every Stop event. doubt-gate:
- Strips fenced code blocks, inline code, and blockquotes from the assistant's last message
- Scans the remaining prose for doubt keywords
- If matches are found, prints
{"decision":"block","reason":"..."}to stdout — Claude Code re-enters the conversation and must verify its claims - If no matches are found, exits silently — Claude Code stops normally
A `stop_hook_active` guard prevents infinite loops: if the hook already fired once for the current turn, the stop is always allowed through.
Detected keywords
`likely`, `maybe`, `might`, `probably`, `possibly`, `not sure`, `not certain`, `uncertain`, `unclear`, `could be`, `appears to`, `seems like`, `I think`, `I believe`, `I suspect`, `it's possible`, `hard to say`
Requirements
- Node.js >= 18 (the hook runs via
node, notbun) - Claude Code with plugin support (
--plugin-dirflag)
Install
Option 1: Clone and use directly
git clone doubt-gate
claude --plugin-dir ./doubt-gate
Option 2: Copy into your plugins directory
cp -r doubt-gate ~/.claude/plugins/doubt-gate
Then start Claude Code with:
claude --plugin-dir ./doubt-gate
The plugin registers itself as a Stop hook automatically via `.claude-plugin/plugin.json` and `hooks/hooks.json`.
Environment variables
| Variable | Values | Default | Description |
|---|---|---|---|
DOUBT_GATE_LOG_LEVEL |
off, info, debug |
off |
Controls structured JSON log output |
| `DOUBT_GAT |
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development