skills/dag-hallucination-detector/SKILL.md
Detects fabricated content, false citations, and unverifiable claims in agent outputs. Uses source verification and consistency checking. Activate on 'detect hallucination', 'fact check', 'verify claims', 'check accuracy', 'find fabrications'. NOT for validation (use dag-output-validator) or confidence scoring (use dag-confidence-scorer).
npx skillsauth add curiositech/windags-skills dag-hallucination-detectorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a DAG Hallucination Detector, detecting fabricated content, false citations, and unverifiable claims in agent outputs through systematic verification and consistency analysis.
Primary Detection Flow:
Input Content
├── Has Citations?
│ ├── YES → Extract Citations
│ │ ├── URL Citation?
│ │ │ ├── Suspicious Pattern? → FLAG (confidence: 0.7)
│ │ │ ├── Network Check Enabled?
│ │ │ │ ├── YES → Fetch URL
│ │ │ │ │ ├── 404/Error → CONFIRM HALLUCINATION (0.9)
│ │ │ │ │ └── Success → VERIFIED (0.9)
│ │ │ │ └── NO → UNVERIFIABLE (0.0)
│ │ │ └── Academic Citation?
│ │ │ ├── Matches Pattern? → Cross-reference if available
│ │ │ └── Malformed? → FLAG (0.6)
│ │ └── Quote Attribution?
│ │ ├── Generic Source? → FLAG (0.5)
│ │ └── Specific Source? → Attempt verification
│ └── NO → Continue to Claims
└── Extract Factual Claims
├── Statistics (>100% without growth context) → CONFIRM (0.99)
├── Future Dates as Historical Facts → CONFIRM (0.9)
├── Negative Counts → CONFIRM (0.99)
├── Internal Contradictions?
│ ├── Same Metric, Different Values → CONFIRM (0.95)
│ └── Opposing Assertions → FLAG (0.8)
└── Pattern Matching
├── Fake Precision (4+ decimals) → FLAG (0.6)
├── Vague Study References → FLAG (0.5)
└── Round Number Claims → FLAG (0.4)
Action Thresholds:
Rubber Stamp Verification
False Precision Blindness
Contradiction Tunnel Vision
Citation Format Fixation
Pattern Overfitting
Example 1: Subtle False Citation Input: "According to the 2023 MIT study (https://mit.edu/research/ai-performance-2023.pdf), neural networks improve 73.847% with this technique."
Detection Process:
Findings:
Example 2: Self-Contradiction Detection Input: "The platform serves 45% of enterprise users... Later: Only 5% of users actually use the advanced features..."
Detection Process:
Finding: No contradiction flagged (different user subsets) Action: Continue processing
Example 3: Fabricated Study Reference Input: "A recent Stanford study shows that 80% of developers prefer method A."
Detection Process:
Finding: vague_study (confidence: 0.5) - pattern match for unsourced claims Action: WARN and request source citation
Processing complete when ALL boxes checked:
[ ] All URLs extracted and connectivity verified (or marked unverifiable)
[ ] Academic citations matched against standard formats
[ ] Numeric claims checked for logical impossibilities (negative counts, >100%)
[ ] Internal consistency verified across all quantitative assertions
[ ] Temporal claims validated (no future dates as historical facts)
[ ] Suspicious precision patterns flagged (≥4 decimal places without source)
[ ] Cross-contradictions identified within 95% confidence threshold
[ ] Overall risk assessment assigned (low/medium/high/critical)
[ ] All findings include location, confidence score, and evidence
[ ] Report generated with actionable recommendations for each finding
This skill should NOT be used for:
dag-output-validator insteaddag-confidence-scorer insteadFor citation format fixes, use dag-content-editor. For domain-specific fact verification, escalate to human experts with relevant credentials.
data-ai
license: Apache-2.0 NOT for unrelated tasks outside this domain.
development
Use when designing caching strategies (cache-aside, write-through, write-behind), implementing distributed locks, building rate limiters, leaderboards, real-time streams (XADD/consumer groups), pub/sub, or tuning eviction policies. Triggers: thundering-herd on cache miss, dogpile on key expiry, Redlock vs SET-NX-PX choice, sliding-window rate limiter, hot-key on a single cluster slot, big-key blowup, MULTI/EXEC across slots, KEYS in production. NOT for Redis Cluster operations/admin (different domain), embedded KV (SQLite, leveldb), in-process LRU caches, or Memcached.
tools
Drawing the `'use client'` boundary correctly in React Server Components apps (Next.js App Router, RSC frameworks) — leaf-pushing, slot composition, serialization rules, and environment poisoning prevention. Grounded in react.dev and Next.js 16 docs.
development
Use when designing rate limiting for an API, choosing between token bucket / sliding window / leaky bucket / fixed window, implementing it in Redis, deciding edge (Cloudflare/Upstash) vs origin enforcement, sizing per-user vs per-IP vs per-endpoint quotas, returning the right 429 response with Retry-After, or fixing the boundary-burst bug in fixed-window limiters. Triggers: 429 too many requests, INCR + EXPIRE, ZADD + ZREMRANGEBYSCORE + ZCARD, X-RateLimit-Remaining header, Cloudflare WAF rate limiting rules, Upstash @upstash/ratelimit, leaky bucket shaping vs policing, distributed rate limiter consistency. NOT for DDoS mitigation specifically (different scale), CAPTCHA / bot management, full WAF design, or per-user quota billing.