</>MCP Agents Market
Plugin

anti-slop

by dmmulroy3.9kTypeScriptUpdated 2026-08-18

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

Claude CodeCursorWindsurfCodexContinueRoo

anti-slop is an opinionated Oxlint plugin that rejects low-evidence TypeScript and JavaScript coding patterns through custom lint rules. It enforces type safety by flagging chained assertions, unsafe dictionary types, runtime typeof checks, and other practices that weaken static guarantees. Designed to be vendored rather than installed as a fixed dependency, it ships with an agent skill that automates copying rules into your repository, configuring Oxlint, and enabling specialized Effect framework rules when detected.

Key Features

15 generic lint rules rejecting type assertions, unknown parameters/returns, unsafe dictionary types, and value widening
Separate Effect-specific rule group for projects using the Effect framework (e.g., no-service-constructor-imports)
Vendorable design: copy rules into your repository and customize them to match team standards
Agent skill automates installation, dependency setup, config merging, and Effect detection
Enforces safety comments on type assertions to document invariants
Rejects module mocking (Vitest/Jest) in favor of real dependency seams
Blocks runtime typeof narrowing and Reflect.apply/get patterns outside boundary parsing
Integrates with Oxlint and Vite+ configurations via jsPlugins registration

Use Cases

  • 01Enforce strict type safety standards across TypeScript codebases developed with AI coding assistants
  • 02Prevent AI-generated code from introducing unsafe type assertions and unknown contracts
  • 03Establish team-wide coding standards by vendoring and customizing the ruleset
  • 04Audit Effect-based architectures to ensure service constructors are imported via Layers
  • 05Integrate with Oxlint workflows in Vite+ projects for consistent linting and formatting
  • 06Document type assertion invariants with required safety comments for review

Related Plugins

View more

anti-slop — FAQ

What is the anti-slop Claude Code plugin?+

anti-slop is an opinionated Oxlint plugin that provides custom lint rules to reject low-evidence TypeScript and JavaScript patterns like chained type assertions, unknown returns, and unsafe dictionary types. It's designed to be vendored into your repository and customized rather than used as a fixed npm dependency.

How do I install anti-slop with an agent skill?+

Run `npx skills add dmmulroy/anti-slop --skill install-anti-slop` and ask your coding agent to install or configure anti-slop. The skill automatically copies the plugin, installs Oxlint dependencies, merges configuration, enables all generic rules, and detects Effect usage to enable optional Effect rules.

Can I install anti-slop manually without the agent skill?+

Yes. Copy the `src/` directory into your repository (e.g., `tools/oxlint/anti-slop/`), install `oxlint` and `@oxlint/plugins`, then register the plugin and rules in `oxlint.config.ts` by adding the jsPlugins entry and enabling each rule under the rules object.

Which AI coding clients work with anti-slop?+

anti-slop works with any AI coding assistant that supports agent skills and Oxlint integration, including Claude Code, Cursor, Windsurf, and other environments listed in the default ignore patterns (Codex, Continue, Gemini, Roo, etc.).

Does anti-slop require an API key or subscription?+

No. anti-slop is a free, MIT-licensed Oxlint plugin. You only need to install Oxlint and @oxlint/plugins as development dependencies in your project.

What are the Effect-specific rules and when should I enable them?+

The Effect rule group (anti-slop-effect) includes rules like no-service-constructor-imports that enforce Effect framework architecture patterns. Enable this plugin only in repositories that use Effect by registering the `effect/index.ts` entry point in your Oxlint config alongside the main plugin.

How do I install anti-slop?+

Open the source repository on GitHub and follow its README. anti-slop is a plugin — MCP Agents Market links you directly to the official repo.

Is anti-slop free?+

anti-slop is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches