DetectAI

Detect AI-generated text via heuristic patterns, statistical signals, Pangram scoring, and watermark scanning.

18.8k|2.4k|Updated Sep 8, 2025
One-click install
npx skills add https://github.com/danielmiessler/LifeOS --skill detectai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DetectAI
Source: https://github.com/danielmiessler/LifeOS/tree/main/LifeOS/install/skills/DetectAI
Command: npx skills add https://github.com/danielmiessler/LifeOS --skill detectai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Determining whether a piece of text was written by AI is usually answered by gut feeling or a single unreliable detector score. This Skill combines four independent measures — a heuristic pattern audit, deterministic statistical signals, an empirical Pangram model score, and a byte-level watermark scan — so the answer rests on evidence rather than vibes.

Core Features & Use Cases

  • Heuristic Audit: Flags known AI writing tells (inflated vocabulary, recycled transitions, uniform rhythm) against a severity-tiered P0/P1/P2 pattern catalog, quoting each offending passage with no edits made.
  • Statistical Signals: Runs a deterministic pass measuring n-gram entropy, type-token ratio, repetition, burstiness, and stylometry, each labeled with its research-backed reliability tier.
  • Empirical Scoring: Submits text to the Pangram detection API for AI%/AI-assisted%/human% probabilities, with calibrated known-human baselines and batch draft comparison.
  • Watermark Scan: Detects invisible characters, homoglyphs, bidi controls, and Unicode steganography embedded in the bytes, without any API key.
  • Use Case: A writer asks which of three drafts reads most human. The Skill scores each draft plus two known-human passages in one batch, producing a ranked table where the relative gap — not any absolute number — drives the conclusion.

Quick Start

Ask the assistant to scan your document for AI writing patterns and score it for AI-detectability, for example: "Audit this blog post for AI tells and tell me how likely it is to be flagged as AI-generated."

Frequently Asked Questions about DetectAI

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect AI-generated text in a document?

Run the heuristic audit to flag known AI writing patterns with severity tiers, then score the text with the Pangram detection model for an empirical AI percentage. Combining both measures is more trustworthy than either alone, since text can clear every pattern and still score 100% AI.

What is the Pangram AI detection score and how accurate is it?

Pangram is a trained detection model that returns AI, AI-assisted, and human probability percentages per text. It is among the strongest detectors available but still has real false-positive rates, so results should be reported as a strong signal calibrated against known-human baselines, never as a verdict.

Can I detect AI watermarks and hidden characters in text?

Yes, the watermark scan detects keyless character-level channels: zero-width characters, variation-selector steganography, homoglyphs, bidi overrides, and anomalous whitespace. It cannot detect sampling-time statistical watermarks like SynthID or Kirchenbauer, which are key-gated by design.

Why does AI detection fail on short text samples?

Detectors are unreliable under roughly five sentences and tend to make decisive 100% or 0% calls on short passages regardless of true authorship. Score passages of a few hundred words or more, and include known-human writing in the same batch as a calibration baseline.

Does AI detection work without an API key?

Yes, the heuristic pattern audit, statistical signal analysis, and watermark scan all run locally with no key and no cost. Only the empirical Pangram scoring workflow requires a PANGRAM_API_KEY and prepaid credits billed per thousand words.