Repository Analysis

google-labs-code/design.md

A format specification for describing a visual identity to coding agents. DESIGN.md gives agents a persistent, structured understanding of a design system.

23.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google-labs-code/design.md, a TypeScript project with 25,875 GitHub stars. SynthScan v2.0 examined 15,315 lines of code across 116 source files, recording 181 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 23.9 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

23.9
Adjusted Score
23.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
25.9K
Stars
TypeScript
Language
15.3K
Lines of Code
116
Files
181
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 85LOW 96

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 181 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators84 hits · 266 pts
SeverityFileLineSnippetContext
MEDIUMpackages/cli/scripts/check-package.ts31// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/scripts/check-package.ts78// ── Phase 1: Pre-pack validation ───────────────────────────────────COMMENT
MEDIUMpackages/cli/scripts/check-package.ts150// ── Phase 2: Clean build ───────────────────────────────────────────COMMENT
MEDIUMpackages/cli/scripts/check-package.ts185// ── Phase 3: Pack audit ────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/scripts/check-package.ts249// ── Phase 4: Consumer smoke test ───────────────────────────────────COMMENT
MEDIUMpackages/cli/scripts/check-package.ts329// ── Main ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.test.ts35// ── Loader robustness ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.test.ts100// ── Lazy loading ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.test.ts117// ── Structural invariants ─────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.test.ts184// ── Derived constants ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/index.test.ts60 // ── State assertions ────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/index.test.ts67 // ── Lint assertions ─────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/index.test.ts72 // ── Tailwind assertions ─────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts33// ── Schema ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts72// ── Load & Validate ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts81// ── Lazy singleton ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts97// ── Interfaces ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts137// ── Constant exports ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts172// ── Derived constants ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/spec-config.ts195// ── Aggregate type ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/index.ts15// ── Primary API ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/index.ts20// ── Result types ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/index.ts35// ── Advanced linting ───────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/dtcg/spec.ts39// ── DTCG Token & Group Structures ─────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/dtcg/spec.ts58// ── Result ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/dtcg/spec.ts76// ── Interface ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/css-vars/spec.ts25// ── Result ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/css-vars/spec.ts45// ── Interface ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/spec.ts21// ── LINT RESULT ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/spec.ts31// ── GRADED TOKEN EDITS ─────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/spec.ts48// ── INTERFACE ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts39 // ── Cycle 15: E3 — Broken reference emits error ──────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts56 // ── Cycle 16: E4 — Circular reference emits error ────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts76 // ── Cycle 17: W1 — Missing primary emits warning ─────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts97 // ── Cycle 18: W2 — Low contrast ratio emits warning ──────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts140 // ── Cycle 19: I1 — Token count summary emits info ────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts157 // ── Cycle 20: Clean document produces zero errors ─────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts180 // ── Cycle 21: preEvaluate graded menu ─────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/linter/handler.test.ts207 // ── Summary counts ───────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/spec.ts17// ── INPUT ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/spec.ts24// ── ERROR CODES ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/spec.ts33// ── OUTPUT ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/spec.ts73// ── RESULT ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/spec.ts85// ── INTERFACE ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/handler.test.ts21 // ── Cycle 2: Frontmatter extraction ───────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/handler.test.ts41 // ── Cycle 3: Code block extraction ────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/handler.test.ts78 // ── Cycle 4: Merge multiple code blocks ───────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/handler.test.ts106 // ── Cycle 5: Duplicate section detection ──────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/parser/handler.test.ts129 // ── Cycle 6: Malformed YAML ───────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/spec.ts19// ── TAILWIND CONFIG SCHEMA ──────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/spec.ts52// ── INTERFACE ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/handler.test.ts34 // ── Cycle 22: Colors map to theme.extend.colors ─────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/handler.test.ts48 // ── Cycle 23: Typography maps to fontFamily + fontSize ──────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/handler.test.ts85 // ── Cycle 24: Rounded + spacing map correctly ───────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/handler.test.ts105 // ── Empty state produces empty config ─────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/v4/spec.ts18// ── TAILWIND v4 THEME DATA SCHEMA ────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/tailwind/v4/spec.ts52// ── INTERFACE ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/model/spec.ts33// ── RESOLVED VALUE TYPES ───────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/linter/model/spec.ts66// ── Re-exported from spec-config (single source of truth) ─────────COMMENT
MEDIUMpackages/cli/src/linter/model/spec.ts70// ── STATE ──────────────────────────────────────────────────────────COMMENT
24 more matches not shown…
Over-Commented Block92 hits · 92 pts
SeverityFileLineSnippetContext
LOWexamples/paws-and-paths/tailwind.config.js1// Copyright 2026 Google LLCCOMMENT
LOWexamples/atmospheric-glass/tailwind.config.js1// Copyright 2026 Google LLCCOMMENT
LOWexamples/totality-festival/tailwind.config.js1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/scripts/check-package.ts1#!/usr/bin/env bunCOMMENT
LOWpackages/cli/src/utils.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/utils.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/version.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/index.ts1#!/usr/bin/env nodeCOMMENT
LOWpackages/cli/src/version.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/spec-config.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/lint.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/index.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/fixture.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/spec-config.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/index.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/spec-config.yaml1# Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/dtcg/conformance.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/dtcg/spec.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/dtcg/handler.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/dtcg/handler.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/fixer/spec.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/fixer/handler.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/fixer/handler.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/css-vars/spec.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/css-vars/handler.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/css-vars/handler.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/css-vars/serialize.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/spec.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/runner.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/handler.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/handler.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/runner.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ages/cli/src/linter/linter/rules/token-like-ignored.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/orphaned-tokens.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ges/cli/src/linter/linter/rules/contrast-ratio.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/test-helpers.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/types.test.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ckages/cli/src/linter/linter/rules/missing-sections.ts1// Copyright 2026 Google LLCCOMMENT
LOW…es/cli/src/linter/linter/rules/missing-primary.test.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ckages/cli/src/linter/linter/rules/levenshtein.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/levenshtein.ts1// Copyright 2026 Google LLCCOMMENT
LOW…cli/src/linter/linter/rules/missing-typography.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/missing-primary.ts1// Copyright 2026 Google LLCCOMMENT
LOW…s/cli/src/linter/linter/rules/missing-sections.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/types.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/broken-ref.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/section-order.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/unknown-key.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ages/cli/src/linter/linter/rules/token-summary.test.ts1// Copyright 2026 Google LLCCOMMENT
LOW…es/cli/src/linter/linter/rules/orphaned-tokens.test.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ckages/cli/src/linter/linter/rules/unknown-key.test.ts1// Copyright 2026 Google LLCCOMMENT
LOW…cli/src/linter/linter/rules/token-like-ignored.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/token-summary.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/index.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/contrast-ratio.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ages/cli/src/linter/linter/rules/section-order.test.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/linter/rules/broken-ref.test.ts1// Copyright 2026 Google LLCCOMMENT
LOW…ages/cli/src/linter/linter/rules/missing-typography.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/parser/spec.ts1// Copyright 2026 Google LLCCOMMENT
LOWpackages/cli/src/linter/parser/handler.test.ts1// Copyright 2026 Google LLCCOMMENT
32 more matches not shown…
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOW.agents/skills/typed-service-contracts/SKILL.md37### Step 1: Define the Contract (`spec.ts`)COMMENT
LOW.agents/skills/typed-service-contracts/SKILL.md90### Step 2: Implement the Handler (`handler.ts`)COMMENT
LOW.agents/skills/typed-service-contracts/SKILL.md136### Step 3: Testing StrategyCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/cli/src/linter/spec-config.yaml16# This file is the single source of truth for the DESIGN.md format specification.COMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/cli/src/linter/lint.ts117function extractSectionsFromContent(content: string): Array<{ heading: string; content: string }> {CODE