AI Slop Code RIsk Monitor

nicbarker/clay

High performance UI layout library in C.

9.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for nicbarker/clay, a C project with 18,240 GitHub stars. SynthScan examined 30,653 lines of code across 82 source files, recording 112 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 9.2 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

9.2
Adjusted Signal
9.2
Raw Pattern Score
100%
Time Factor
2026-05-20
Last Push
18.2K
Stars
C
Language
30.7K
Lines of Code
82
Files
112
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 6.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 43 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.1/100 · LOW

Are imports declared and package/API names verified? 21 finding(s).

Agent Over-Engineering Ratio 29.5/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 49 finding(s).

PR Review Velocity Impact 28.8/100 · MEDIUM

Which changes need focused human review? 112 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 48LOW 64

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 112 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators48 hits · 213 pts
SeverityFileLineSnippetContext
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt6# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt8# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt12# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt14# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt22# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt24# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt34# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt36# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt47# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt49# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt55# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt57# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt65# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt67# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt75# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-SDL2-video-demo/CMakeLists.txt77# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt7# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt9# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt13# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt15# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt23# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt25# -------------------------------------------------COMMENT
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt39# -------------------------------------------------COMMENT
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt41# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt53# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt55# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt61# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt63# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt81# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt83# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt90# -------------------------------------------------COMMENT
MEDIUM⚡examples/GLES3-GLFW-video-demo/CMakeLists.txt92# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt5# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt7# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt11# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt13# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt21# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt23# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt33# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt35# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt46# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt48# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt54# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt56# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt64# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt66# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt74# -------------------------------------------------COMMENT
MEDIUM⚡…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt76# -------------------------------------------------COMMENT
Over-Commented Block42 hits · 42 pts
SeverityFileLineSnippetContext
LOWclay.h21#include <arm_neon.h>COMMENT
LOWclay.h41#endifCOMMENT
LOWclay.h81#define CLAY_SID(label) Clay__HashString(label, 0)COMMENT
LOWclay.h161COMMENT
LOWclay.h181COMMENT
LOWclay.h481COMMENT
LOWclay.h501 // CLAY_POINTER_CAPTURE_MODE_CAPTURE (default) - "Capture" the pointer event and don't allow events like hover and cCOMMENT
LOWclay.h661COMMENT
LOWclay.h801 // CLAY_RENDER_COMMAND_TYPE_BORDER - The renderer should draw a colored border inset into the bounding box.COMMENT
LOWclay.h821typedef CLAY_PACKED_ENUM {COMMENT
LOWclay.h901typedef struct Clay_ErrorData {COMMENT
LOWclay.h921typedef struct {COMMENT
LOWclay.h941CLAY_DLL_EXPORT void Clay_SetPointerState(Clay_Vector2 position, bool pointerDown);COMMENT
LOWclay.h961CLAY_DLL_EXPORT Clay_Vector2 Clay_GetScrollOffset(void);COMMENT
LOWclay.h981// The returned Clay_ElementData contains a `found` bool that will be true if an element with the provided ID was found.COMMENT
LOWclay.h1001// Binds a callback function that Clay will call to determine the dimensions of a given string slice.COMMENT
LOWclay.h1041CLAY_DLL_EXPORT void Clay__OpenTextElement(Clay_String text, Clay_TextElementConfig textConfig);COMMENT
LOWrenderers/GLES3/clay_renderer_gles3.h1#ifndef CLAY_RENDERER_GLES3_HCOMMENT
LOWrenderers/GLES3/clay_renderer_gles3.h821#endifCOMMENT
LOWrenderers/cairo/clay_renderer_cairo.c1// Copyright (c) 2024 Justin Andreas Lacoste (@27justin)COMMENT
LOWrenderers/cairo/clay_renderer_cairo.c21//COMMENT
LOWrenderers/cairo/clay_renderer_cairo.c41void Clay_Cairo_Initialize(cairo_t *cairo);COMMENT
LOWrenderers/raylib/raymath.h61// Function specifiers definitionCOMMENT
LOWrenderers/raylib/raymath.h81COMMENT
LOWrenderers/raylib/raymath.h101COMMENT
LOWrenderers/raylib/raylib.h81* 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWrenderers/raylib/raylib.h101 #endifCOMMENT
LOWrenderers/raylib/raylib.h121 #define PI 3.14159265358979323846fCOMMENT
LOWrenderers/raylib/raylib.h141#ifndef RL_FREECOMMENT
LOWrenderers/raylib/raylib.h161// NOTE: We set some defines with some data types declared by raylibCOMMENT
LOWrenderers/raylib/raylib.h181#define PINK CLITERAL(Color){ 255, 109, 194, 255 } // PinkCOMMENT
LOWrenderers/raylib/raylib.h201#define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo)COMMENT
LOWrenderers/win32_gdi/clay_renderer_gdi.c1#include <Windows.h>COMMENT
LOWrenderers/sokol/sokol_clay.h141#endif /* SOKOL_CLAY_INCLUDED */COMMENT
LOWrenderers/SDL2/clay_renderer_SDL2.c141 indices[indexCount++] = vertexCount - 1; //LTCOMMENT
LOWexamples/sokol-corner-radius/main.c1#include "sokol_app.h"COMMENT
LOW…es/playdate-project-example/clay-video-demo-playdate.c1// This is the video demo with some adjustments so it works on the playdateCOMMENT
LOWexamples/cairo-pdf-rendering/main.c1// Copyright (c) 2024 Justin Andreas Lacoste (@27justin)COMMENT
LOWexamples/win32_gdi/main.c1COMMENT
LOWexamples/sokol-video-demo/main.c1#include "sokol_app.h"COMMENT
LOWexamples/sokol-video-demo/sokol.c1#define SOKOL_IMPLCOMMENT
LOWexamples/sokol-video-demo/sokol.c21#define FONTSTASH_IMPLEMENTATIONCOMMENT
Fake / Example Data21 hits · 26 pts
SeverityFileLineSnippetContext
LOWexamples/shared-layouts/clay-video-demo.c81 documents.documents[1] = (Document){ .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolorCODE
LOWexamples/shared-layouts/clay-video-demo.c81 documents.documents[1] = (Document){ .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolorCODE
LOWexamples/raylib-sidebar-scrolling-container/main.c80 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor iCODE
LOWexamples/raylib-sidebar-scrolling-container/main.c80 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor iCODE
LOWexamples/raylib-sidebar-scrolling-container/main.c104 CLAY_TEXT(CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis eCODE
LOWexamples/raylib-sidebar-scrolling-container/main.c104 CLAY_TEXT(CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis eCODE
LOWexamples/raylib-multi-context/main.c36 { .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipCODE
LOWexamples/raylib-multi-context/main.c36 { .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipCODE
LOW⚡…es/playdate-project-example/clay-video-demo-playdate.c133 .title = CLAY_STRING("Lorem Ipsum"),CODE
LOW⚡…es/playdate-project-example/clay-video-demo-playdate.c136 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOW⚡…es/playdate-project-example/clay-video-demo-playdate.c136 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOW⚡examples/GLES3-SDL2-sidebar-scrolling-container/main.c335 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuCODE
LOW⚡examples/GLES3-SDL2-sidebar-scrolling-container/main.c335 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuCODE
LOW⚡examples/GLES3-SDL2-sidebar-scrolling-container/main.c339 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuCODE
LOW⚡examples/GLES3-SDL2-sidebar-scrolling-container/main.c339 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuCODE
LOW⚡examples/GLES3-SDL2-sidebar-scrolling-container/main.c342 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inCODE
LOW⚡examples/GLES3-SDL2-sidebar-scrolling-container/main.c342 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inCODE
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c376 CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis egestas CODE
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c376 CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis egestas CODE
LOWexamples/clay-official-website/main.c189Clay_String LOREM_IPSUM_TEXT = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempCODE
LOWexamples/clay-official-website/main.c189Clay_String LOREM_IPSUM_TEXT = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempCODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/clay-official-website/index.html398 function SetElementBackgroundColorAndRadius(element, cornerRadius, backgroundColor) {CODE