---
title: "Discussion on \"Combatting Slop with Quality Gates\" | Hashnode"
description: "Discussion on \"Combatting Slop with Quality Gates\". How I use Claude Code skills, code quality metrics, linters and adversarial cold reviews to catch AI slop code before it gets merged."
url: "https://hashnode.com/posts/combatting-slop-with-quality-gates/6ac4ba8593176c970e096c6f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Combatting Slop with Quality Gates](https://agentops.hashnode.dev/combatting-slop-with-quality-gates?utm_source=hashnode&utm_medium=feed)

How I use Claude Code skills, code quality metrics, linters and adversarial cold reviews to catch AI slop code before it gets merged.

Oct 6 · 13 min read · agentops.hashnode.dev  
Read the article

-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#code-quality](https://hashnode.com/tag/code-quality)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#ai](https://hashnode.com/tag/ai)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)

## Written by

[Chris Adkin](https://hashnode.com/@chrisadkin)

@chrisadkin

  
[View profile](https://hashnode.com/@chrisadkin)

AI-powered DevSecOps

## Responses 2

Markdown supported · ⌘↵ to post

[Adam Lewis](https://hashnode.com/@nark3d)

[Oct 7](https://hashnode.com/posts/combatting-slop-with-quality-gates/6ac4ba8593176c970e096c6f/comment/6ac607b002d777105f8b86ff)

A gate is only as good as what the spec says when it's wrong. That part stayed open. If the spec is the thing slop gets measured against, what happens when the agent satisfies every check and the feature is still the wrong one? Can the gate fail a spec, or only the code written against it?

[Chris Adkin](https://hashnode.com/@chrisadkin)

[Oct 7](https://hashnode.com/posts/combatting-slop-with-quality-gates/6ac4ba8593176c970e096c6f/comment/6ac607b002d777105f8b86ff#reply-6ac66afeedd19310f69f78c8)

I thought I had already replied to this, but thanks for the comment by the way. The short answer, in my humble opinion, is that there will be some gates that may be tightly coupled to a spec, and some that are spec-agnostic - a gate associated with a linter, for example. I'm currently looking at a publicly available repo, getting my harness (Claude Code) to recreate each PR based on a spec derived from each PR's documentation, and then measuring both the original PR and the harness-generated one against CRAP tests, mutation tests, linter output, the metrics used by SlopCodeBench, etc. The art in doing this is to do it in such a way that the harness does not realise what the test is and game it by copying the original PRs verbatim.
