AI Slop Code Risk Monitor

Renhuai123/ziwei-doushu

SlopCodeMonitor badge for Renhuai123/ziwei-doushu Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
13.9 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Renhuai123/ziwei-doushu. SynthScan examined 22,732 lines of code across 113 source files, recording 107 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 13.9 (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.

13.9
Adjusted Signal
13.9
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
22.7K
Lines of Code
113
Files
107
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 49.4/100 · MEDIUM

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

PR Review Velocity Impact 48.4/100 · MEDIUM

Which changes need focused human review? 107 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 97LOW 10

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 107 distinct pattern matches across 3 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 Separators97 hits · 306 pts
SeverityFileLineSnippetContext
MEDIUMapp/page.tsx9// ─── 滚动入场 wrapper ────────────────────────────────────COMMENT
MEDIUMapp/page.tsx38// ─── 主题切换按钮 ────────────────────────────────────────COMMENT
MEDIUMapp/page.tsx82// ─── 主星数据 ────────────────────────────────────────────COMMENT
MEDIUMapp/page.tsx90// ─── 功能模块 ────────────────────────────────────────────COMMENT
MEDIUMapp/page.tsx137// ─── 4 大学习板块(hero 后时间轴)──────────────────────────COMMENT
MEDIUMapp/page.tsx181// ─── 倪海厦核心教义 ──────────────────────────────────────COMMENT
MEDIUMapp/page.tsx201// ─── 主题色彩 helper ─────────────────────────────────────COMMENT
MEDIUMapp/page.tsx251// ─── 四化简介数据 ─────────────────────────────────────────COMMENT
MEDIUMapp/page.tsx259// ─── 主星简介数据 ─────────────────────────────────────────COMMENT
MEDIUMapp/page.tsx277// ─── 功能视觉装饰 ────────────────────────────────────────COMMENT
MEDIUMapp/page.tsx443// ─── 主页 ─────────────────────────────────────────────────COMMENT
MEDIUMapp/heming/page.tsx10// ─── AiContent 渲染器(与 InsightPanel 一致)────────────────COMMENT
MEDIUM⚡app/heming/page.tsx55 // ─── 双方命盘状态 ─────────────────────────────────────────COMMENT
MEDIUM⚡app/heming/page.tsx62 // ─── AI 合盘分析状态 ─────────────────────────────────────COMMENT
MEDIUM⚡app/heming/page.tsx72 // ─── 起盘(单次调用,返回 chart 给统一流程使用)──────────COMMENT
MEDIUMapp/heming/page.tsx86 // ─── 统一入口:起盘 + 合盘分析 ─────────────────────────────COMMENT
MEDIUMcomponents/BirthForm.tsx94 // ─── 校验逻辑 ───────────────────────────────────────────COMMENT
MEDIUMcomponents/BirthForm.tsx110 // ─── 完成度(用于进度条) ────────────────────────────────COMMENT
MEDIUMcomponents/BirthForm.tsx119 // ─── Summary chip:全部必填完成后显示 ───────────────────COMMENT
MEDIUMcomponents/BirthForm.tsx151 // ─── 样式变量 ────────────────────────────────────────────COMMENT
MEDIUMlib/nihai/tianji.ts17// ─── 天纪模块 ────────────────────────────────────────────COMMENT
MEDIUMlib/nihai/tianji.ts358// ─── 易经六十四卦数据库 ──────────────────────────────────COMMENT
MEDIUMlib/nihai/tianji.ts426// ─── 堪舆学条目 ──────────────────────────────────────────COMMENT
MEDIUMlib/nihai/tianji.ts500// ─── 倪师天纪核心语录库 ──────────────────────────────────COMMENT
MEDIUMlib/nihai/tianji.ts533// ─── 统计 ────────────────────────────────────────────────COMMENT
MEDIUMlib/nihai/diji.ts14// ─── 地纪模块 ────────────────────────────────────────────COMMENT
MEDIUMlib/nihai/diji.ts177// ─── 统计 ────────────────────────────────────────────────COMMENT
MEDIUMlib/nihai/renji.ts15// ─── 人纪模块 ────────────────────────────────────────────COMMENT
MEDIUMlib/nihai/renji.ts349// ─── 215条针灸经验穴位(倪师临床精华) ────────────────────COMMENT
MEDIUMlib/nihai/renji.ts483// ─── 31条透针透穴法 ────────────────────────────────────────COMMENT
MEDIUMlib/nihai/renji.ts518// ─── 汉唐100方完整列表 ────────────────────────────────────COMMENT
MEDIUMlib/nihai/renji.ts619// ─── 核心经方精选(伤寒论+金匮要略) ──────────────────────COMMENT
MEDIUMlib/nihai/renji.ts648// ─── 统计 ────────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/school-data.ts18// ─── 星 ID → 星名 映射(数据表内用纯整数 ID,本表是我们整理的常识对应)─────────COMMENT
MEDIUMlib/ziwei/school-data.ts48// ─── 命主表(按命宫地支 1-12 = 寅卯辰巳午未申酉戌亥子丑)──────────────────────COMMENT
MEDIUMlib/ziwei/school-data.ts67// ─── 身主表(按生年地支 1-12 = 子丑寅卯辰巳午未申酉戌亥)─────────────────────COMMENT
MEDIUMlib/ziwei/school-data.ts84// ─── 五行局表(命宫天干组 × 命宫地支组 → 五行局数)─────────────────────────COMMENT
MEDIUMlib/ziwei/school-data.ts98// ─── 十天干四化表(含 5 种主流派变体)────────────────────────────────────────COMMENT
MEDIUM⚡lib/ziwei/school-data.ts116// ─── 五种庚年四化变体(主流排盘软件设置中可选)─────────────────────────────────────COMMENT
MEDIUM⚡lib/ziwei/school-data.ts125// ─── 紫府对宫表(已知紫微宫位查天府宫位)────────────────────────────────────COMMENT
MEDIUM⚡lib/ziwei/school-data.ts132// ─── 14 主星亮度表(4 套主流派系,可切换)────────────────────────────────────COMMENT
MEDIUMlib/ziwei/school-data.ts272// ─── 星曜亮度(全星:主星 + 辅星 + 煞星 + 空劫,凡 SCHOOL_STAR_ID_TO_NAME 收录的)──────────COMMENT
MEDIUMlib/ziwei/school-data.ts308// ─── 小星位置表(24 种辅助星,按生月或生时定位)─────────────────────────────COMMENT
MEDIUMlib/ziwei/school-data.ts367// ─── 流年小星表 ──────────────────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts17 // ─── 直辖市 ───────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts138 // ─── 华北 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts189 // ─── 东北 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts243 // ─── 华东 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts351 // ─── 华中 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts418 // ─── 华南 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts490 // ─── 西南 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts565 // ─── 西北 ─────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/cities.ts659 // ─── 特别行政区 / 台湾 ──────────────────────────────────COMMENT
MEDIUMlib/ziwei/sihua.ts16// ─── 1) 由天干索引取四化四星 ───────────────────────────────────COMMENT
MEDIUMlib/ziwei/sihua.ts31// ─── 2) 公历年 → 年柱天干索引 ──────────────────────────────────COMMENT
MEDIUMlib/ziwei/sihua.ts42// ─── 3) 大限四化:取大限宫的宫干(非本命年干)───────────────COMMENT
MEDIUMlib/ziwei/sihua.ts70// ─── 4) 流年四化 ──────────────────────────────────────────────COMMENT
MEDIUMlib/ziwei/sihua.ts84// ─── 5) 流月四化(月柱天干,由年干 + 月序推) ───────────────COMMENT
MEDIUMlib/ziwei/sihua.ts138// ─── 5b) 流日四化(农历日柱天干)──────────────────────────────COMMENT
MEDIUMlib/ziwei/sihua.ts165// ─── 5c) 流时四化(五鼠遁:日干起子时天干)───────────────────COMMENT
37 more matches not shown…
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWnext-env.d.ts1/// <reference types="next" />COMMENT
LOWlib/ziwei/algorithm.ts21// 原配置 yearDivide:'exact'(立春换年)→ 改为 'normal'(正月初一换年)COMMENT
LOWlib/ziwei/algorithm.ts41 '太阳': ['旺','庙','旺','旺','庙','得','得','陷','不','陷','陷','不'],COMMENT
LOWlib/ziwei/algorithm.ts61 '天相': ['庙','平','得','得','庙','得','庙','平','得','得','庙','庙'],COMMENT
LOWlib/ziwei/algorithm.ts101// 注意:astro.config 是全局副作用,每次调用影响所有后续 generateChartCOMMENT
LOWlib/ziwei/algorithm.ts321function parseWuxingJu(name: string): number {COMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/ziwei/school-data.ts254export function schoolBrightnessTableToIztroFormat(CODE
LOWlib/ziwei/patterns.ts933function detectJiYueTongLiangPartial(chart: ZiweiChart, ming: Palace, patterns: Pattern[]) {CODE
LOWlib/ziwei/yunxian-context.ts102export function resolveEffectiveDaXianIndex(CODE
LOWlib/ziwei/algorithm.ts137export function resolveEffectiveLunarDate(CODE