AI Slop Code Risk Monitor

Milkdown/milkdown

SlopCodeMonitor badge for Milkdown/milkdown Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

🍼 Plugin driven WYSIWYG markdown editor framework.

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Milkdown/milkdown, a TypeScript project with 12,035 GitHub stars. SynthScan examined 129,574 lines of code across 988 source files, recording 76 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low 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.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
12.0K
Stars
TypeScript
Language
129.6K
Lines of Code
988
Files
76
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.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 1.5/100 · LOW

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

PR Review Velocity Impact 3.4/100 · LOW

Which changes need focused human review? 76 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 1MEDIUM 4LOW 71

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 76 distinct pattern matches across 5 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.

Over-Commented Block47 hits · 47 pts
SeverityFileLineSnippetContext
LOWpackages/plugins/plugin-streaming/src/flush.ts41 return { tr, newDoc }COMMENT
LOWpackages/plugins/plugin-streaming/src/flush.ts161 return { tr, applied: true, insertEndPos: from + textContent.length }COMMENT
LOWpackages/plugins/plugin-streaming/src/flush.ts181/// plugin syntax carries trigger characters that are too common in prose for anCOMMENT
LOWpackages/plugins/plugin-streaming/src/flush.ts341COMMENT
LOWpackages/plugins/plugin-streaming/src/types.ts21 /// Insert buffer as plain text. `preserveNewlines` controls whetherCOMMENT
LOWpackages/plugins/plugin-streaming/src/types.ts41 /// Auto-scroll to follow streaming content (default: true).COMMENT
LOWpackages/plugins/plugin-automd/src/config.ts61 return textCOMMENT
LOWpackages/plugins/preset-gfm/src/node/table/schema.ts1import type { Node, NodeType } from '@milkdown/prose/model'COMMENT
LOW…ugins/preset-commonmark/src/__test__/inline-br.spec.ts201 return getMarkdown()(ctx)COMMENT
LOW…et-commonmark/src/plugin/remark-preserve-empty-line.ts61 )COMMENT
LOW…ckages/plugins/preset-commonmark/src/node/list-item.ts101///COMMENT
LOW…ckages/plugins/preset-commonmark/src/node/list-item.ts121COMMENT
LOW…ckages/plugins/preset-commonmark/src/node/list-item.ts141 group: 'ListItem',COMMENT
LOWpackages/plugins/plugin-diff/src/diff-compute.ts501/// precondition fails:COMMENT
LOWpackages/plugins/plugin-diff/src/diff-compute.ts581 const oldCut = sharedOld.copy(sharedOld.content.cut(localFrom, localTo))COMMENT
LOW…/plugins/plugin-diff/src/__test__/diff-compute.spec.ts941 const changes = computeDocDiff(oldDoc, newDoc, {COMMENT
LOWpackages/plugins/plugin-upload/src/upload.ts21export interface UploadOptions {COMMENT
LOWpackages/plugins/plugin-tooltip/src/tooltip-provider.ts21COMMENT
LOWpackages/plugins/plugin-tooltip/src/tooltip-provider.ts61 /// @internalCOMMENT
LOWpackages/plugins/plugin-collab/src/collab-service.ts81 yUndoPluginKey,COMMENT
LOWpackages/transformer/src/serializer/types.ts1import type { Mark, Node } from '@milkdown/prose/model'COMMENT
LOWpackages/transformer/src/serializer/types.ts21 ///COMMENT
LOWpackages/transformer/src/serializer/types.ts41 match: (mark: Mark) => booleanCOMMENT
LOWpackages/transformer/src/parser/types.ts1import type { MarkType, Node, NodeType } from '@milkdown/prose/model'COMMENT
LOWpackages/transformer/src/parser/types.ts21 /// For example:COMMENT
LOWpackages/transformer/src/parser/types.ts41 /// ```COMMENT
LOWpackages/transformer/src/utility/stack.ts1import { stackOverFlow } from '@milkdown/exception'COMMENT
LOWpackages/utils/src/composable/$command.ts21/// function. The factory function will be called when the plugin is created.COMMENT
LOWpackages/utils/src/composable/composed/$mark-schema.ts21 ctx: $Ctx<GetMarkSchema, T>COMMENT
LOWpackages/utils/src/composable/composed/$node-schema.ts21 ctx: $Ctx<GetNodeSchema, T>COMMENT
LOWpackages/ctx/src/timer/timer.ts1import type { TimerMap } from './clock'COMMENT
LOWpackages/ctx/src/plugin/types.ts1import type { Meta } from '../inspector'COMMENT
LOWpackages/ctx/src/plugin/types.ts21/// return async () => {COMMENT
LOWpackages/crepe/src/core/slice.ts1import { createSlice, type Ctx } from '@milkdown/kit/ctx'COMMENT
LOWpackages/crepe/src/core/slice.ts21/// const plugin = (ctx: Ctx) => {COMMENT
LOWpackages/crepe/src/llm-providers/shared.ts41 /// Model identifier (e.g. `gpt-4o-mini`, `claude-sonnet-4-5`).COMMENT
LOWpackages/crepe/src/feature/toolbar/config.ts41import { aiProviderConfig } from '../ai/commands'COMMENT
LOWpackages/crepe/src/feature/toolbar/config.ts61 /// because a display glyph such as `⌘B` and the abbreviation `Ctrl` areCOMMENT
LOWpackages/crepe/src/feature/ai/commands.ts21// Context slicesCOMMENT
LOWpackages/crepe/src/feature/ai/commands.ts61///COMMENT
LOWpackages/crepe/src/feature/ai/commands.ts181// CommandsCOMMENT
LOWpackages/crepe/src/feature/ai/types.ts101 /// Called when an error occurs during AI processing.COMMENT
LOWpackages/crepe/src/feature/ai/types.ts121 sendAsPromptHeaderLabel?: stringCOMMENT
LOWpackages/crepe/src/feature/ai/ai.spec.ts821 })COMMENT
LOW…kages/crepe/src/feature/ai/instruction-tooltip/view.ts21 chrome: AIInstructionTooltipChromeCOMMENT
LOW…ages/crepe/src/feature/ai/instruction-tooltip/index.ts41/// at click time, not at the time the toolbar is built.COMMENT
LOW.github/FUNDING.yml1# These are supported funding model platformsCOMMENT
Hyper-Verbose Identifiers21 hits · 21 pts
SeverityFileLineSnippetContext
LOWpackages/plugins/plugin-streaming/src/flush.ts79function stripTrailingEmptyParagraph(content: Fragment): Fragment {CODE
LOWpackages/plugins/preset-commonmark/src/node/heading.ts23function defaultHeadingIdGenerator(node: Node) {CODE
LOWpackages/plugins/plugin-collab/src/shim.d.ts54 export function yXmlFragmentToProseMirrorRootNode(CODE
LOWpackages/components/src/link-tooltip/utils.ts34export function shouldShowPreviewWhenHover(CODE
LOW…mponents/src/link-tooltip/preview/preview-configure.ts12export function configureLinkPreviewTooltip(ctx: Ctx) {CODE
LOWpackages/components/src/diff/doc-utils.ts55export function coversOnlyTrailingEmptyParagraphs(CODE
LOWpackages/components/src/diff/doc-utils.ts77export function trailingEmptyParagraphStart(doc: Node): number {CODE
LOWpackages/components/src/diff/doc-utils.ts105export function forEachTopLevelNodeInRange(CODE
LOWpackages/components/src/diff/doc-utils.ts125export function addBlockDeletionDecorations(CODE
LOWpackages/components/src/diff/merge-changes.ts250export function anchorTrailingInsertsBeforeEmptyParagraph(CODE
LOWpackages/components/src/diff/diff-decoration-plugin.ts93function addCrossBoundaryDecorations({CODE
LOW…-block/__tests__/list-item.marker-pointerdown.spec.tsx43function pressAndReportCancellation(target: Element) {CODE
LOWpackages/components/src/table-block/view/pointer.ts136function createPointerLeaveHandler(refs: Refs): () => void {CODE
LOWpackages/components/src/table-block/view/utils.ts84export function recoveryStateBetweenUpdate(CODE
LOWpackages/components/src/table-block/view/utils.ts140export function computeColHandlePositionByIndex({CODE
LOWpackages/components/src/table-block/view/utils.ts167export function computeRowHandlePositionByIndex({CODE
LOWpackages/prose/src/toolkit/prose/selection.ts15export function findParentNodeClosestToPos(predicate: Predicate) {CODE
LOWpackages/exception/src/index.ts149export function callCommandBeforeEditorView() {CODE
LOW…ages/crepe/src/feature/ai/instruction-tooltip/index.ts53export function useAIInstructionTooltipAPI(ctx: Ctx) {CODE
LOW…ages/crepe/src/feature/ai/instruction-tooltip/index.ts107export function configureAIInstructionTooltip(config?: AIFeatureConfig) {CODE
LOWpackages/crepe/src/feature/placeholder/index.ts19function createPlaceholderDecoration(CODE
Decorative Section Separators4 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM⚡docs/api/crepe.md762 // ── Instruction palette strings ───────────────────────────────────COMMENT
MEDIUM⚡docs/api/crepe.md770 // ── Icon overrides ────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/api/crepe.md778 // ── Streaming indicator ───────────────────────────────────────────COMMENT
MEDIUM⚡docs/api/crepe.md784 // ── Diff actions panel ────────────────────────────────────────────COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/api/plugin-streaming.md3Streaming input plugin for [milkdown](https://milkdown.dev/). Streams markdown content token by token into the editor wiCODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…components/src/__internal__/components/image-input.tsx144 <div class="placeholder">CODE
LOWpackages/crepe/rollup.config.js25 'placeholder',CODE
LOWpackages/crepe/src/feature/index.ts45 Placeholder = 'placeholder',CODE