install-anti-slop

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

2|2|Updated Dec 23, 2017
One-click install
npx skills add https://github.com/xriu/dotfiles --skill install-anti-slop-xriu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: install-anti-slop
Source: https://github.com/xriu/dotfiles/tree/main/home/.skills/dmmulroy/install-anti-slop
Command: npx skills add https://github.com/xriu/dotfiles --skill install-anti-slop-xriu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Setting up opinionated Oxlint rules that reject low-evidence TypeScript patterns (chained assertions, unknown types, unsafe dictionaries, module mocking) requires copying a local plugin, matching dependency versions, and merging configuration without breaking an existing lint setup. This Skill automates that installation and migration safely. ## Core Features & Use Cases - Plugin Installation: Copies the bundled anti-slop Oxlint plugin into the target repository via an install script that refuses to overwrite existing files without an explicit --force flag. - Configuration Merging: Registers the plugin, ignore patterns, and fifteen generic rules in oxlint.config.ts, .oxlintrc.json, or Vite+ configs while preserving existing entries. - Optional Effect Rules: Registers the anti-slop-effect plugin with service-constructor import rules when the repository directly depends on Effect. - Use Case: A team wants to enforce strict type-evidence lint rules across a TypeScript monorepo; the Skill detects the package manager, pins @oxlint/plugins to the installed oxlint version, configures the rules, and runs lint and typecheck to verify. ## Quick Start Install the anti-slop Oxlint plugin into this repository and configure all generic rules in my existing Oxlint setup.

Frequently Asked Questions about install-anti-slop

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

FAQPage Schema
How do I add custom Oxlint rules to a TypeScript repository?▼

Run the skill's install script to copy the anti-slop plugin into tools/oxlint/anti-slop, then register it in your Oxlint config under jsPlugins and enable the rules at error severity. The plugin loads through @oxlint/plugins as a local JavaScript plugin.

How to configure Oxlint jsPlugins with a local plugin?▼

Add an entry to jsPlugins with a name and a specifier pointing to the local plugin's index.ts file, then reference rules with the plugin-name/rule-name prefix. Merge this with existing configuration rather than replacing it.

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

Yes, for Vite+ the ignore patterns and jsPlugins entries are added to the lint config fields, and the same patterns are merged into fmt.ignorePatterns so vp check does not reformat the vendored plugin or agent assets.

What version of @oxlint/plugins should I install?▼

Install @oxlint/plugins at exactly the same version as the oxlint dependency already in the repository, pinned exactly rather than by range. If oxlint is not yet a dependency, query npm for the current version of both packages and install them together.

When are the Effect anti-slop rules enabled?▼

The anti-slop-effect plugin is only registered when the repository declares effect directly in a package manifest or the user explicitly requests it. A transitive Effect dependency in a lockfile is not sufficient.

What happens if anti-slop files already exist in my repository?▼

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, and compare rules and diagnostics before replacing an older local copy.