deslop

Detect slop patterns in AI-generated code using grep or ripgrep.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/harryy2510/dotclaude --skill deslop-harryy2510
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/harryy2510/dotclaude/tree/main/plugins/dotclaude/skills/deslop
Command: npx skills add https://github.com/harryy2510/dotclaude --skill deslop-harryy2510

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires grep, rg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Detects and flags "slop" patterns in AI-generated code to prevent low-quality or insecure patterns from entering your codebase.

Core Features & Use Cases

  • Detects hardcoded secrets, placeholders, and empty error handling within code across languages.
  • Integrates as a stand-alone scan or pre-commit/CI check using a Bash script that relies on grep or ripgrep.
  • Patterns are sourced from references/patterns.md to guide detection and prioritization.

Quick Start

Run a full slop scan on your repository by executing bash scripts/deslop.sh.

Frequently Asked Questions about deslop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect slop patterns in AI-generated code?

You can detect slop patterns in AI-generated code by running a standalone Bash script that uses grep or ripgrep to scan your repository against regex pattern definitions. This identifies hardcoded secrets, placeholders, and empty error handling.

What are common slop patterns to look for in code reviews?

Common slop patterns include hardcoded secrets, placeholders, and empty error handling blocks. Detecting these during code reviews prevents low-quality or insecure AI-generated code from entering your repository.

Can I use static analysis scripts as a pre-commit check for AI code?

Yes, you can integrate static analysis scripts as a pre-commit check or CI pipeline step for AI code. Running a standalone Bash script with grep or ripgrep flags insecure slop patterns before changes are committed to the codebase.

Does the deslop scan require ripgrep to run?

No, the deslop scan does not strictly require ripgrep. The standalone Bash script supports both ripgrep and standard grep utilities to apply regex static analysis and flag slop patterns across your codebase files.

How do I customize regex patterns for detecting hardcoded secrets in my repository?

You can customize regex patterns for detecting hardcoded secrets by modifying the pattern definitions in the references file. The Bash script reads these definitions to guide its static analysis and detection prioritization across your codebase.

What is the best way to prevent low-quality AI code from entering a codebase?

The best way to prevent low-quality AI code from entering a codebase is running static analysis scans that detect slop patterns. Applying these checks in pre-commit hooks or CI pipelines stops insecure code before integration.