install-anti-slop

Install and configure the anti-slop Oxlint plugin in TypeScript or JavaScript repositories.

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

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 requires copying rule source files, installing matching dependency versions, and merging plugin registration, ignore patterns, and rule severity into an existing lint configuration without breaking unrelated setup. This Skill automates that installation and migration workflow while preserving existing configuration and uncommitted work. ## Core Features & Use Cases - Bundled Plugin Installation: Copies a vendored anti-slop Oxlint plugin with 15 lint rules into the target repository, refusing to overwrite existing files unless forced. - Configuration Merging: Registers the plugin in oxlint.config.ts, .oxlintrc.json, or Vite+ lint config, merging ignore patterns for agent tooling directories and enabling all anti-slop rules at error severity. - Dependency Alignment: 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 rules against chained type assertions, unknown parameters, module mocking, and unsafe dictionary types across their TypeScript codebase; this Skill installs the plugin, wires up the config, and runs lint and typecheck to verify. ## Quick Start Install the anti-slop Oxlint plugin into this repository and enable all of its lint rules in my existing Oxlint configuration.

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 repo?▼

Run the skill's install script with node to copy the plugin into tools/oxlint/anti-slop, then register it under jsPlugins in your oxlint.config.ts or .oxlintrc.json. Install matching versions of oxlint and @oxlint/plugins as development dependencies first.

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

The plugin ships 15 rules covering chained type assertions, conditional empty-object spreads, known-value widening, module mocking, object and unknown parameters, Reflect.apply and Reflect.get, runtime typeof, unsafe dictionary types, widen-then-assert flows, and required SAFETY comments on assertions.

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

Yes. For Vite+, add the plugin to lint.jsPlugins and merge the ignore patterns into both lint.ignorePatterns and fmt.ignorePatterns so vp check does not reformat the vendored plugin or installed agent assets.

What happens if the anti-slop plugin destination already exists?▼

The install script refuses to overwrite an existing destination and exits with an error. Only re-run with --force after backing up and reviewing the existing files, comparing rules and diagnostics before replacing an older local copy.

Which package managers can install the anti-slop plugin dependencies?▼

The skill detects the repository's package manager from the packageManager field and lockfiles, then installs oxlint and @oxlint/plugins with that same tool. It does not replace the package manager or rewrite unrelated dependency ranges.