SKILL.md--- name: install-anti-slop description: Install, configure, update, or upgrade vendored anti-slop Oxlint plugins. Use when adding anti-slop, picking up upstream rules or fixes, or migrating an existing installation while preserving local customizations. --- # Install or update anti-slop Anti-slop is vendored code: the target repository owns its rules, diagnostics, tests, and configuration. Preserve those choices when bringing in upstream changes. > [!IMPORTANT] > **Prefer [`cloudflare/oxlint-config`](https://github.com/cloudflare/oxlint-config) over anti-slop.** It has adopted most of anti-slop's rules and is actively maintained by Cloudflare and the Vite team. Before a fresh install, tell the user about it and recommend it; continue with anti-slop only if they still want it, or if they need something that config doesn't cover. ## Choose the path Read the repository's agent instructions and `git status`. Identify its package manager, Oxlint/Vite+ configuration, and any existing anti-slop entry points, including renamed or relocated copies referenced by `jsPlugins`. - **Existing installation — update, upgrade, migrate, or reconfigure:** read [Update a vendored installation](references/update.md) and follow that procedure instead of the fresh-install steps below. - **No installation — fresh install:** follow the procedure below. If the user requested an update but no installation can be found, confirm the target before installing. Complete when the operation and target path are established and pre-existing work is identified. ## Fresh install 1. Copy the bundled plugin from this skill. Run from the target repository: ```bash node <skill-directory>/scripts/install.mjs ``` This creates `tools/oxlint/anti-slop/`. Pass another relative destination as the first argument when the repository has an established tooling layout. The script refuses to replace an existing destination; route existing copies through the update procedure rather than `--force`. Preserve the nested `vendor/eslint-stylistic/LICENSE` and `UPSTREAM.md`; they travel with the copied rule. Readability enforcement is self-contained and requires no Stylistic plugin dependency. Complete when the files, including vendored license and provenance, exist at the agreed destination without replacing an existing copy. 2. Install current compatible dependencies rather than trusting versions remembered by the agent: - If the repository already depends on `oxlint`, read its installed version from the package manager or lockfile and install `@oxlint/plugins` at exactly that version. Pin it exactly rather than by range so future upgrades move both packages together. - Only when the repository has no `oxlint` dependency, query `npm view oxlint version` and `npm view @oxlint/plugins version`, then install the same current version of both packages. - `oxlint` is a development dependency. The copied source