anti-slop
Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns
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
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 moreandrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
claude-mem
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
rtk
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
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.