install-anti-slop

Installs and configures the anti-slop Oxlint plugin in TypeScript and JavaScript repositories.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/gmackie/agent-skills --skill install-anti-slop-gmackie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: install-anti-slop
Source: https://github.com/gmackie/agent-skills/tree/main/skills/install-anti-slop
Command: npx skills add https://github.com/gmackie/agent-skills --skill install-anti-slop-gmackie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires oxlint, @oxlint/plugins, and includes scripts (resource) and assets (resource) components.

What problem does it solve? Setting up a custom Oxlint plugin by hand involves copying rule source files, pinning compatible dependency versions, and wiring plugin registration into lint configuration. This Skill automates that entire setup so the anti-slop rule set is installed consistently without overwriting existing project configuration. ## Core Features & Use Cases - Bundled Plugin Installation: Copies the anti-slop Oxlint plugin (15 lint rules) into the target repository via a deterministic install script that refuses to overwrite existing files unless forced. - Configuration Integration: Registers the plugin in oxlint.config.ts, .oxlintrc.json, or Vite+ lint configuration and enables all anti-slop rules at error severity, merging with existing entries. - Dependency Management: Queries npm for current compatible versions of oxlint and @oxlint/plugins and installs them with the repository's own package manager. - Use Case: A team wants to enforce opinionated TypeScript rules banning chained type assertions, module mocking, and unsafe dictionary types. Run this Skill to copy the plugin, register it, and verify the lint setup in one pass. ## Quick Start Ask the agent to install and configure the anti-slop Oxlint plugin in the current repository and enable all of its lint rules.

Frequently Asked Questions about install-anti-slop

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

FAQPage Schema
How do I install a custom Oxlint plugin in a TypeScript project?▼

Copy the plugin source into the repository, install matching versions of oxlint and @oxlint/plugins as dev dependencies, then register the plugin under jsPlugins in oxlint.config.ts or .oxlintrc.json. This Skill automates all of those steps with its bundled install script.

What lint rules does the anti-slop Oxlint plugin enforce?▼

It ships 15 rules including bans on chained type assertions, module mocking with Vitest or Jest, unknown parameters and returns, unsafe dictionary types, runtime typeof checks, Reflect.apply and Reflect.get, and it requires SAFETY comments on non-const type assertions.

Does the anti-slop plugin work with Vite+ lint configuration?▼

Yes. For Vite+ projects, the plugin entry is added to lint.jsPlugins with the same name and specifier format used in oxlint.config.ts. The Skill merges the entry with existing plugin entries instead of replacing them.

Will installing the plugin overwrite my existing lint setup?▼

No. The install script refuses to replace an existing destination directory unless you pass --force after reviewing the files. The Skill also checks for existing anti-slop files and merges configuration entries rather than rewriting them.

How do I migrate an older local copy of the anti-slop plugin?▼

Compare the old copy's rules and diagnostics before overwriting, then re-run the installer with --force only after backing up. Keep project-specific rules in a separate plugin since anti-slop is intentionally generic.