Skip to content

AI Slop Score

This guide explains how CloudAEye assesses the code quality of a pull request.

Overview

CloudAEye analyzes PR code changes for duplicate code, nonexistent APIs, dead code, missing tests, and other code quality issues when you comment @cloudaeye /slop_score in the PR timeline.

The result includes a review band and findings to help you identify changes that need closer review. The band describes code quality, not whether the code was written by AI.

Prerequisites

Step 1: Register

Sign up with CloudAEye SaaS.

Step 2: Setup Code Review

Setup Code Review by following the Getting Started guide.

Generate AI Slop Score

To analyze the code quality of your pull request, comment the following in the PR timeline:

@cloudaeye /slop_score

CloudAEye analyzes the code changes and adds a Slop Score Card to the pull request.

Slop Score Card

The card includes:

  • A score out of 100 and its review band for the code change.
  • The number of changed lines, files, and functions with behavioral changes.
  • Code quality signals and their findings.
  • Issue severity, details, and file locations.

AI Slop Score

What the Analysis Covers

CloudAEye evaluates nine code-quality signals:

  • Duplicate code: Detects duplicated logic and code that could reuse existing repository implementations.
  • Hallucinated APIs: Identifies calls, imports, or environment variables that cannot be resolved.
  • Dead code: Finds unused imports, parameters, private fields, unreachable branches, and unreferenced functions.
  • Missing tests: Identifies new public code without corresponding tests, weakened assertions, and tests that merely restate the implementation.
  • High complexity: Measures complexity and nesting introduced by the change.
  • Generic naming: Flags names that do not clearly communicate the purpose of a variable, function, or abstraction.
  • Boilerplate comments: Detects comments that simply repeat what the code already says.
  • Overengineering: Identifies unnecessary wrappers, redundant abstractions, and abstractions with only one caller.
  • Style inconsistency: Finds code that conflicts with the conventions of the files being modified.

The report also provides context about the change size, behavioral edits, and documentation drift. Generated and vendored files, such as lockfiles and build output, are excluded from the analysis.

Score and Review Bands

CloudAEye reports a score out of 100 and one of the following bands. The score is not calibrated yet, and the card says so:

  • Low likelihood of slop
  • Review recommended
  • High likelihood of low-quality code
  • Strong candidate for manual review before merge

The card identifies signals with incomplete coverage. A signal that was not measured should not be treated as having no issues.

AI Slop Score does not replace a code review. Use Review Code to check for bugs and security vulnerabilities.

Use in a Coding Agent

CloudAEye's AI Slop Score helps developers determine how much manual review a code change needs before merging. It evaluates nine code-quality signals, identifies potential issues, and returns a score out of 100 with a review recommendation.

Use it to assess AI-generated code, inherited changes, or large pull requests where the amount of code changed may not reflect the actual behavioral complexity.

Run AI Slop Score

Use the command in a supported coding agent, such as Claude Code:

/cloudaeye:slop-score

This analyzes all uncommitted changes in your working tree.

To evaluate changes in a specific directory:

/cloudaeye:slop-score src/auth/

To evaluate a specific pull request:

/cloudaeye:slop-score #405

Replace 405 with the pull request number.

Understand the Score

The command returns a score from 0 to 100. Higher scores indicate a greater need for careful manual review.

The score is accompanied by a review band, individual signal findings, and explanations of the issues identified. Signals that could not be measured are explicitly marked rather than treated as clean.

Use the score as a guide to review effort, not as a precise measure of code quality.

  1. Generate or modify code using your coding agent.
  2. Run /cloudaeye:slop-score to evaluate the changes.
  3. Examine the review band and the individual findings.
  4. Address unnecessary duplication, missing tests, unresolved APIs, dead code, and other identified issues.
  5. Run the score again after making changes.
  6. Run /cloudaeye:inspect or /cloudaeye:review to check for bugs and correctness issues before merging.

Note: A low AI Slop Score does not mean the code is correct, and the score does not determine whether code was written by AI or a human. It measures characteristics of the change that can affect review effort. Use dedicated code review and security analysis to evaluate correctness and vulnerabilities.

For detailed scoring behavior, invocation options, cost considerations, and examples of the scorecard, see the Coding Agent: Skills & Commands reference.