SlopScan

A command-line tool that scans a website, repository, folder or ZIP for the patterns that make work feel generic, and shows the evidence behind every finding. It scores patterns, not authorship.

Status
Open source, v0.1.0
Stack
Python, Typer, Rich, httpx
Scans
Websites, GitHub repos, folders, ZIPs
License
MIT

The problem

You can feel it before you can name it. A landing page with the same ten sections in the same order. A grid of identical cards. Gradients and glows on everything. Copy that promises to transform your workflow.

Saying a site feels generic is easy. Explaining why, in a way someone can act on, is harder. The obvious shortcut is a detector that announces whether something was written by AI, but the project README is blunt that no tool can currently do that reliably.

The idea

Score the patterns, not the author.

SlopScan is a heuristic pattern analyzer, not an authorship detector. It measures how strongly a target shows patterns that tend to go with template-driven work, and every report says so. It will never claim a site was definitely made by AI, and it never names a model.

Strip away the "AI slop" framing and what is left is still useful: a design-pattern and template-pattern analyzer that tells you what to change, with the evidence attached.

How it works

Whatever you point it at gets turned into one scan corpus, and the same rules run on all of it.

  1. TargetWebsite, GitHub repo, local folder or ZIP
  2. CorpusOne normalized view of the files and pages
  3. Rules22 rules in 9 categories
  4. ScoringCombined per category, then weighted
  5. ReportTerminal, JSON, Markdown or HTML

Each rule turns raw counts into a strength between 0 and 1 that flattens out as the count grows, so the tenth identical card adds far less than the second. The template rule compares a page's section order with the familiar SaaS sequence and reports how closely it matches.

What it offers

Four kinds of target
Live websites (one page plus a small, bounded number of same-origin stylesheets, no crawling by default), public GitHub repositories read through the API, local folders, and ZIP archives.
Evidence for every finding
Each finding carries a severity, how often it occurred, and the evidence behind it, so the report reads as a to-do list rather than a verdict.
Four report formats
A Rich terminal report by default, plus JSON for tooling, Markdown for pull requests and HTML for sharing.
A CI gate
--fail-under 70 exits non-zero when the score meets or exceeds the threshold.
Accessibility on the side
Accessibility gaps are reported alongside the score but never counted in it.
Optional AI layer
Off by default. When enabled it sends only aggregated evidence, never raw source, and can add interpretation but never change the score.
No telemetry
Local and ZIP scans never leave your machine, and the tool does not phone home.

Why findings are combined, not added

Gradients, glows and glassmorphism all belong to the same visual family. If each one simply added to the total, a page with three mild signals would score like a page with three severe, independent ones. So within a category SlopScan combines findings with a noisy-OR: 1 - product(1 - a), where each activation is the rule's strength times its confidence times a severity multiplier.

Move the sliders to see the difference. This is an illustration of the formula, not a scan. Confidence is held at 100% for the demo.

Visual category, three findingsIllustration
60%
50%
40%
If simply added up (capped at 100%)100% Combined with noisy-OR76%

Strength is how much of the pattern is present. The multipliers are the real severity weights from the scoring code.

Confidence is a separate number entirely. It depends on how many categories fired, how much was scanned, how complete the scan was and how good the evidence is, and not on how high the score is.

Real runs

The repository ships two fixtures: a deliberately generic SaaS page and a restrained, hand-written site. These are the actual reports, and you can reproduce them from a clone.

$ slopscan analyze tests/fixtures/generic_saasReal run
AI-SLOP LIKELIHOOD36%Confidence 58%
  • Visual59%
  • Template72%
  • Copy63%
  • Repetition32%

Generic SaaS fixture.

$ slopscan analyze tests/fixtures/human_portfolioReal run
AI-SLOP LIKELIHOOD0%Confidence 28%
  • Visual0%
  • Template0%
  • Copy0%
  • Repetition0%

Hand-written fixture. Small sample.

The second report is the interesting one. A score of 0% with only 28% confidence reads as: nothing suspicious found, but the sample is tiny, so do not lean on it. That is exactly why confidence is its own number.

I also ran it on this portfolio's own source: 27% with 68% confidence. The top findings were excessive, universal excessive rounding and repetitive scroll-reveal animation. A pattern is not a verdict, and the report is where the judgment starts.

Decisions and challenges

Diminishing returns
A rule's strength is 1 - exp(-n / k), so repetition counts, but never linearly.
Never claim certainty
A test checks that the output language never asserts certainty, and another that results are reproducible between runs.
Tests against false positives
A restrained human-made site must score low and a generic one meaningfully higher. Rule documentation lists each rule's known false-positive cases.
Untrusted input by default
Every target is treated as hostile. URLs are resolved and rejected if any address is loopback, private, link-local or a cloud metadata address, and the check repeats on every redirect hop. ZIPs reject path traversal, absolute paths and suspicious compression ratios, and symlinks are skipped, not followed.
Never runs what it scans
It does not install dependencies, execute scanned code or clone repositories.

Status and links

SlopScan is open source under the MIT license and currently at v0.1.0. To try it, install from source:

git clone https://github.com/LwkMoon/SlopScan
cd SlopScan
pip install -e .

slopscan analyze ./my-project
slopscan analyze https://example.com --format html --output report.html

The project's biggest early boost came from a write-up on jxxy.net, a Chinese-language AI knowledge base. The article walks through how the four scoring dimensions work and what the tool does and does not output.

More case studies.