install-anti-slop

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

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

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 with opinionated anti-slop rules requires copying plugin source, resolving compatible dependency versions, merging lint configuration, and wiring ignore patterns correctly. This Skill automates that entire installation and migration workflow while preserving existing repository configuration and unrelated work. ## Core Features & Use Cases - Bundled Plugin Installation: Copies the anti-slop Oxlint plugin (15 lint rules) into the target repository via an install script that refuses to overwrite existing files without explicit review. - Configuration Merging: Registers the plugin in oxlint.config.ts, .oxlintrc.json, or Vite+ configs, merging ignore patterns for agent tooling directories and enabling all anti-slop rules at error severity. - Dependency Resolution: 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, unsafe dictionary types, module mocking, and unknown parameters across their TypeScript monorepo. Run this Skill to install the plugin, configure Oxlint, and verify with the repository's lint and typecheck commands. ## Quick Start Install the anti-slop Oxlint plugin into this repository and configure it with the existing lint 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 install a custom Oxlint plugin in a TypeScript repository?

Run the bundled install script with node to copy the plugin into tools/oxlint/anti-slop, then register it in your Oxlint config under jsPlugins with the specifier pointing to the copied index.ts. Install matching versions of oxlint and @oxlint/plugins as dev dependencies.

What rules does the anti-slop Oxlint plugin enforce?

The plugin provides 15 rules including no-chained-type-assertions, no-unsafe-dictionary-type, no-module-mocking, no-unknown-parameters, no-unknown-returns, no-runtime-typeof, and require-safety-comment-for-type-assertion. All rules are enabled at error severity during setup.

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

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

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

The install script refuses to overwrite an existing destination unless you pass --force after backing up and reviewing the existing files. For migrations, compare the old copy's rules and diagnostics before overwriting, keeping project-specific rules in their own plugin.

Why does the installer query npm instead of using pinned versions?

The procedure queries npm view for the current versions of oxlint and @oxlint/plugins to install compatible, up-to-date releases rather than trusting versions remembered by the agent. Both packages are installed as development dependencies using the repository's existing package manager.