Command Palette

Search for a command to run...

Назад к скиллам
скилл № 44647

frontend-anti-slop

This skill should be used when auditing React/Next.js source for Hallmark-adapted anti-AI-slop patterns via a deterministic Tailwind/JSX scanner.

БесплатноЗапускает вложенные скрипты
jikig-aiот jikig-ai★ 21 звезда на GitHub

Установить frontend-anti-slop в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.

frontend-anti-slop

A deterministic source-static audit for React/Next.js components that flags AI-default visual and microinteraction patterns adapted from Nutlope/hallmark (MIT). v1 ships 18 Tier 1 ripgrep gates over apps/web-platform/{app,components}/**/*.{tsx,jsx,css}, apps/web-platform/server/**/*.{ts,tsx}, and the Eleventy docs site. v1.5 (post-calibration) adds a Tier 2 LLM-judgment reviewer agent for the ~12 gates regex cannot resolve.

Attribution. Rule set and anti-pattern names adapted from Hallmark (Together AI, MIT). Verbatim license at /LICENSES/hallmark.MIT.txt; upstream stanza in /plugins/soleur/NOTICE.

When this skill fires

  • Invoked by soleur:review when a PR touches apps/web-platform/(app|components)/.*\.(tsx|jsx|css)$. See plugins/soleur/skills/review/SKILL.md § Anti-slop Scanner Hook.
  • Manual: soleur:frontend-anti-slop --paths <files-or-dirs> [--dry-run|--json] [--rule <ID>].

The scanner is non-blocking by design — exit code is 0 regardless of finding count. v1 ships in calibration mode: findings surface in PR review output for operator review, no auto-filing to GitHub issues. Calibration unlocks v1.5 (auto-file + Tier 2 agent) at ≤ 10% FP rate over ≥ 20 findings ≥ 2 weeks.

Invocation

# Default — scans staged + modified frontend files vs. the index.
bun run plugins/soleur/skills/frontend-anti-slop/scripts/tier1-scan.ts

# Explicit paths (files or directories).
bun run plugins/soleur/skills/frontend-anti-slop/scripts/tier1-scan.ts \
  --paths apps/web-platform/components/ui/ --json

# Single rule.
bun run plugins/soleur/skills/frontend-anti-slop/scripts/tier1-scan.ts \
  --paths apps/web-platform/components/ --rule GRADIENT-TEXT --json

Skill tool form:

Skill(skill: "soleur:frontend-anti-slop")
Skill(skill: "soleur:frontend-anti-slop", args: "--paths apps/web-platform/components/ui/ --json")

Scope

In scope (v1) Out of scope
`apps/web-platform/(app components)/**/*.{tsx,jsx,css}`
apps/web-platform/server/**/*.{ts,tsx} (email/HTML templates) App-code remediation of pre-existing findings (forward-gate only)
18 deterministic Tier 1 gates (regex-only) Tier 2 LLM-judgment gates (deferred to v1.5)
Source-static analysis Rendered-DOM / screenshot analysis (that's soleur:ux-audit)
JSON output matching finding.schema.json Auto-filing GitHub issues
<!-- anti-slop:disable RULE_ID reason="..." --> per-file overrides AST-based gates (CARD-IN-CARD, focus states) — v1.5 with ts-morph

Rule set

The 18 Tier 1 gates live in slop-rules.md as a parsed Markdown table. Each row: id, tier, category, hallmark_gate, severity, pattern, message, suggested_fix. The scanner filters to tier === 1 and runs each pattern regex line-by-line over target files.

React/Tailwind code examples for each rule live in anti-patterns.md.

Brand rules (blocking)

Three brand-category gates ship alongside the Hallmark-derived anti-slop rules: BRAND-RAW-HEX (high), BRAND-WHITE-ON-GOLD (high), BRAND-NONZERO-CORNER (medium). Unlike the advisory anti-slop findings, a finding whose originating rule is category: brand and severity: high makes the scanner exit non-zero (blocking) — it is a required-fix gate, not calibration-mode triage. Brand medium findings and all non-brand anti-slop findings stay advisory (exit 0). The emitted Finding always serializes category: "anti-slop"; the brand discriminator lives only on the Rule, so --json output stays conformant to finding.schema.json.

BRAND-RAW-HEX ("use a wired design token, not a literal color") is project-agnostic — Soleur users adopting this scanner should keep it as-is, but re-base BRAND-WHITE-ON-GOLD / BRAND-NONZERO-CORNER on their own brand-guide.md palette and wired token file rather than the hardcoded Soleur gold identity.

Findings emit as JSON conforming to finding.schema.json:

{
  "route": "
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/anti-patterns.md
  • references/slop-rules.md
  • scripts/tier1-scan.ts

FAQ

Что делает скилл frontend-anti-slop?

This skill should be used when auditing React/Next.js source for Hallmark-adapted anti-AI-slop patterns via a deterministic Tailwind/JSX scanner.

Как установить скилл frontend-anti-slop?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл frontend-anti-slop запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить frontend-anti-slop с