Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Hallucination Guard

ASecurity

The single most important defensive skill. Exec memos, board decks, decision memos, and founder posts depend on this. ONE wrong number in a client-facing artifact erodes more trust than ten right ones rebuild. Pattern source: SaaStr 10K's "bad context equals bad output" lesson. Explicit ground-truth grounding is the difference between trusted output and slop.

7 stars
0 votes
0 copies
0 views
Added 9/20/2026
ai-agentsrustgo

Works with

cli

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add unempyd/revenueos --skill hallucination-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hallucination Guard?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Hallucination Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/unempyd-hallucination-guard/badge)](https://www.skillsdirectory.com/skills/unempyd-hallucination-guard)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: hallucination-guard
trigger: sub-skill, runs on every AI output containing numbers
load-context: identity, preferences-and-constraints
inputs: Draft text + ground-truth values block + tolerance
sub-skills: none
ends-with: Pass | Fail boolean + diff report
model: claude-haiku-4-5 + deterministic regex validation
---

# hallucination-guard

The single most important defensive skill. Exec memos, board decks, decision memos, and founder posts depend on this. ONE wrong number in a client-facing artifact erodes more trust than ten right ones rebuild.

Pattern source: SaaStr 10K's "bad context equals bad output" lesson. Explicit ground-truth grounding is the difference between trusted output and slop.

## When to invoke

Every AI output that mentions:

- Dollar amounts ($, USD, K, M, B)
- Percentages
- Counts (X clients, Y prospects)
- Dates and timeframes
- Founder names + titles
- Company names + facts (your customers, your competitors)
- Specific quotes attributed to anyone

## The pattern (two-step)

### Step 1: Prompt-time grounding (preventive)

Every content prompt must explicitly list ground-truth values:

```
GROUND-TRUTH VALUES (use ONLY these numbers):

ARR position: $[current] current, $[base goal] base goal, $[stretch goal] stretch goal
Clients (named only internally): [list]
Customer cap (concentration risk): $[cap]
ACV range: [min] to [max]
Pipeline (primary): {current from metric_snapshots}
Pipeline (total): {current from metric_snapshots}
Days to next event: {value}
Next event: {name, date}

DO NOT invent or extrapolate. If the data you need is not in the list above,
write [DATA NEEDED] inline. The human will fill in or remove. Never guess.
```

### Step 2: Post-generation validation (detective)

After the AI returns the draft:

1. **Regex-extract every numeric substring.** Patterns:
   - `\$[\d,]+(\.\d+)?[KMB]?` (dollar amounts)
   - `\d+(\.\d+)?%` (percentages)
   - `\d+ (clients?|customers?|logos?|prospects?|accounts?|partners?)` (counts)
   - `(Q[1-4] |H[12] |20\d\d|January|February|...)` (dates)
   - Quoted strings attributed to a person

2. **For each extraction, classify as:**
   - **Direct match** to ground-truth value (PASS)
   - **Within tolerance** (±2% for dollars, ±1 for counts) (PASS with note)
   - **Recognized safe pattern** (year, generic %, benchmark with cited source) (PASS)
   - **Unverified**: no match in ground-truth, no safe pattern → **FAIL**

3. **For each FAIL:**
   - Quote the offending span
   - Show what ground truth says
   - Show the AI's claim
   - Suggested fix

4. **Return verdict:**
   - `pass: true` — all extractions matched or safe
   - `pass: false` — at least one unverified claim. Return diff report.

5. **On FAIL:**
   - Regenerate ONCE with stricter prompt: "USE ONLY these numbers: [list]. The previous draft contained these errors: [list]."
   - If second attempt also fails: block the draft, write detailed log to audit_log, flag for human review.

## What counts as a "safe pattern"

False positives the extractor will catch. Pass without ground-truth lookup:

- **Years** (1995 to current year): historical references
- **Generic percentages** in benchmarks ("CIOs typically reject 70% of POCs") only if a cited public source accompanies
- **Round numbers in framing** ("3 marquee logos") only if they match ground truth
- **Time horizons** ("in the next 5 years," "over the past decade") — qualitative

## Ground-truth values that NEVER change without manual update

Stored in `companies.voice_overrides.ground_truth_lock`:

```json
{
  "static": {
    "company_name": "[Your Company]",
    "founder_ceo_full": "[CEO Full Name]",
    "founder_ceo_role": "CEO and Co-founder",
    "founder_cto_full": "[CTO Full Name]",
    "founder_cto_role": "CTO and Co-founder",
    "founding_year": [year],
    "public_launch_date": "[date or null]",
    "products": ["[product 1]", "[product 2]", "[product 3]"],
    "verticals": ["[vertical 1]", "[vertical 2]", "[vertical 3]"],
    "preferred_buyer_terms": ["[buyer 1]", "[buyer 2]"],
    "off_limits_buyer_terms": ["[do not say buyer]"],
    "competitive_set": ["[competitor 1]", "[competitor 2]", "status quo"],
    "named_clients_anonymized": ["[anonymized framing for marquee references]"],
    "named_clients_internal_only": ["[real names, never externalized]"]
  },
  "dynamic": {
    "current_arr": "PULLED FROM metric_snapshots",
    "pipeline_primary": "PULLED",
    "pipeline_total": "PULLED",
    "founder_reach_30d": "PULLED",
    "days_to_next_event": "PULLED"
  },
  "anti_facts": {
    "ARR_must_not_say": ["[your stretch goal]", "[your base goal]"],
    "client_count_must_not_say": ["[wrong counts]"],
    "headcount_must_not_say": ["[wrong headcount levels]"]
  }
}
```

The `anti_facts` block catches a class of plausible-sounding hallucinations where the AI says the target as if it were achieved.

## Output format

```json
{
  "verdict": "PASS" | "FAIL",
  "extractions": [
    {
      "type": "dollar_amount",
      "value": "$5M",
      "context": "Current ARR sits at $5M across three marquee logos.",
      "match": "ground_truth_direct",
      "verdict": "PASS"
    },
    {
      "type": "count",
      "value": "5",
      "context": "We have 5 enterprise clients in production.",
      "match": null,
      "verdict": "FAIL",
      "ground_truth_says": "3 (the actual count)",
      "suggested_fix": "Change '5 enterprise clients' to '3 enterprise clients' OR rewrite to remove count."
    }
  ],
  "regeneration_count": 1,
  "fails": 1,
  "blocks_publish": true
}
```

## Internal vs external policy

The daily-ideas email to the VP is internal: failed guard appends a "⚠️ flagged" note and continues. External outputs (anything that touches a non-team person): always BLOCK on failure.

## Why this is the moat

Every other AI CMO out there sends emails with made-up numbers. This skill is what separates "I tried it once and it was sloppy" from "I trust this thing with my client-facing work."

The structural counterpart for AI numerical patterns. The voice guide catches AI words. This catches AI numbers.

Attribution

unempydunempyd
View sourceMore from unempyd →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →