Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

anti-slop

> 开发工具
Open source

A GitHub action that detects and automatically closes low-quality and AI slop PRs.

745 stars0 likes2 views
WebsiteGitHub

About

A GitHub action that detects and automatically closes low-quality and AI slop PRs.

Anti Slop

A GitHub Action that detects and automatically closes low-quality and AI slop PRs. It ships with 34 check rules covering PR branches, size, title, description, template, commit messages, file changes, user signals and contributor history.

Everything is configurable through 57 options including checks, exemptions and failure actions, that you do not have to touch if you don't want to, as we've set sensible defaults.

[!IMPORTANT] Anti Slop is currently v0 and subject to breaking changes prior to v1.0.0. Pin to a specific version or commit SHA if you need stability.

Why Anti Slop?

Open-source maintainers are drowning in low-quality and AI-generated slop PRs. These PRs undermine real contributions and waste reviewers time. Anti Slop stops these PRs before they reach your review queue.

  • Fast: The entire action runs in under 15 seconds which means slop PRs are caught and closed before you even notice them.
  • Keep open source open: The beauty of open source is that anyone can contribute. Anti Slop blocks low-quality and AI-generated PRs without forcing you to restrict contributions to Members only - new contributors are not penalized just for being new.
  • Language agnostic: All checks are fully language agnostic and work with any programming language out of the box.
  • Battle-tested rules: All 31 checks are derived from patterns identified across 130+ manually reviewed AI slop PRs submitted to different large open-source projects.
  • Thoughtful defaults: Defaults are created and adjusted based on hands-on experience maintaining Coolify (50K+ stars, 120+ slop PRs per month).
  • Anti-slop, not anti-AI: Genuinely good AI-assisted contributions are not penalized.
  • Configurable sensitivity: The max-failures threshold controls how many checks must fail before any actions are taken. The higher the number, the less likely a legitimate contributor is flagged.
  • Zero-configuration exemptions: Owners, Members and Collaborators are automatically exempt by default with zero configuration needed.
  • No inline scripts: No ugly, unmaintainable and unreadable inline GitHub Action scripts. Just clean, well-named configuration options that are easy to understand and maintain.
  • Immutable releases: Pin to a specific version (e.g. v0.2.0) and it is guaranteed immutable by GitHub - no convoluted SHA pinning needed but the same security benefits as if you pinned to a specific SHA.

Quick Start

Add this workflow file .github/workflows/pr-quality.yaml:

yaml
name: PR Quality

permissions:
  contents: read
  issues: read
  pull-requests: write

on:
  pull_request_target:
    types: [opened, reopened]

jobs:
  anti-slop:
    runs-on: ubuntu-latest
    steps:
      - uses: peakoss/anti-slop@v0
        with:
          max-failures: 4

Recommended Permissions

For the execution of this action it must be able to read the contents of pull requests and issues to run checks.

In addition based on additionally configured options (eg. comment, add label, remove label, etc.) the action could require more permissions.

We recommend the following permissions by default:

yaml
permissions:
  contents: read
  issues: read
  pull-requests: write

You can find more information about how to use permissions with GitHub Actions in the GitHub Actions documentation.

Full Example

Below is a full example workflow file with every option and its default value so you can much faster configure the action to your needs.

Full Example Workflow

…

All Options

The only required input is github-token and it is automatically set to the workflow's GITHUB_TOKEN by its default value.

Inputs

Input Description Default
github-token GitHub token used to authenticate API requests. ${{ github.token }}
max-failures Number of check failures needed before failure actions are triggered. 4
allowed-target-branches Newline-separated target branch patterns to allow. Empty allows all branches. ""
blocked-target-branches Newline-separated target branch patterns to block. ""
allowed-source-branches Newline-separated source branch patterns to allow. Empty allows all branches. ""
blocked-source-branches Newline-separated source branch patterns to block. main, master
max-changed-files Maximum number of changed files allowed in the PR. 0 disables this check. 50
max-changed-lines Maximum number of changed lines (additions + deletions) allowed in the PR. 0 disables this check. 10000
max-negative-reactions Maximum number of negative reactions (thumbs down + confused) allowed on the PR. 0 disables this check. 0
require-maintainer-can-modify Require the PR to allow maintainers to push to the source branch. true
require-conventional-title Require PR titles to follow Conventional Commits format (e.g. 'feat:', 'fix:', 'feat(scope):'). false
require-description Require a non-empty PR description. true
max-description-length Maximum character length for the PR description. 0 disables this check. 2500
max-emoji-count Maximum number of emojis allowed in the PR title and description. 0 disables this check. 2
max-code-references Maximum number of code references (file paths, function/method calls) allowed in the PR description. 0 disables this check. 5
require-linked-issue Require the PR to reference at least one issue in the PR description. false
blocked-terms Newline-separated list of terms blocked from appearing in the PR description. ""
blocked-issue-numbers Comma-separated list of issue numbers blocked from being referenced in the PR description. ""
require-pr-template Require the PR description to follow the repository PR template structure. false
strict-pr-template-sections Comma-separated PR template section headings (without '#') classified as strict. All checkboxes must be present and checked. Only applies when require-pr-template is ena

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptaiai-slopai-slop-detectionanti-slop

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具