AI Slop Code Risk Monitor

NapNeko/NapCatQQ

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

Modern protocol-side framework based on NTQQ

5.0 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for NapNeko/NapCatQQ, a TypeScript project with 12,095 GitHub stars. SynthScan examined 136,479 lines of code across 997 source files, recording 133 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 5.0 (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.

5.0
Adjusted Signal
5.0
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
12.1K
Stars
TypeScript
Language
136.5K
Lines of Code
997
Files
133
Pattern Hits
2026-10-31
Scan Date
0.05
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.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 17.4/100 · LOW

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

Agent Over-Engineering Ratio 5.0/100 · LOW

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

PR Review Velocity Impact 21.0/100 · LOW

Which changes need focused human review? 133 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 51HIGH 0MEDIUM 25LOW 57

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 133 distinct pattern matches across 6 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.

Hallucination Indicators51 hits · 520 pts
SeverityFileLineSnippetContext
CRITICAL…ckages/napcat-onebot/action/extends/GetAiCharacters.ts43 const rawList = await this.core.apis.PacketApi.pkt.operation.FetchAiVoiceList(+payload.group_id, chatTypeNum);CODE
CRITICAL…ckages/napcat-onebot/action/extends/RenameGroupFile.ts42 await this.core.apis.PacketApi.pkt.operation.RenameGroupFile(+payload.group_id, contextMsgFile.fileUUID, payload.cCODE
CRITICALpackages/napcat-onebot/action/extends/MoveGroupFile.ts42 await this.core.apis.PacketApi.pkt.operation.MoveGroupFile(+payload.group_id, contextMsgFile.fileUUID, payload.curCODE
CRITICALpackages/napcat-onebot/action/extends/SendPacket.ts35 const data = await this.core.apis.PacketApi.pkt.operation.sendPacket({ cmd: payload.cmd, data: packetData }, rsp);CODE
CRITICALpackages/napcat-onebot/action/extends/GetRkey.ts24 return await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-onebot/action/extends/GetUserStatus.ts34 const res = await this.core.apis.PacketApi.pkt.operation.GetStrangerStatus(+payload.user_id);CODE
CRITICAL…ckages/napcat-onebot/action/extends/SetSpecialTitle.ts32 await this.core.apis.PacketApi.pkt.operation.SetGroupSpecialTitle(+payload.group_id, uid, payload.special_title);CODE
CRITICALpackages/napcat-onebot/action/extends/SetGroupSign.ts27 return await this.core.apis.PacketApi.pkt.operation.GroupSign(+payload.group_id);CODE
CRITICALpackages/napcat-onebot/action/extends/GetMiniAppArk.ts97 const arkData = await this.core.apis.PacketApi.pkt.operation.GetMiniAppAdaptShareInfo(reqParam);CODE
CRITICAL…t-onebot/action/extends/GetUnidirectionalFriendList.ts55 const rsp_data = await this.core.apis.PacketApi.pkt.operation.sendPacket(rsq, true);CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts266 const transformedMsg = this.core.apis.PacketApi.pkt.msgConverter.rawMsgWithSendMsgToPacketMsg(packetMsgElements)CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts281 const transformedMsg = this.core.apis.PacketApi.pkt.msgConverter.rawMsgToPacketMsg(msg, msgPeer);CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts300 const rawActions = await this.core.apis.PacketApi.pkt.operation.FetchForwardMsgRaw(resId);CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts335 const resid = await this.core.apis.PacketApi.pkt.operation.UploadForwardMsgV2(uploadMsgData, msgPeer.chatType === ChCODE
CRITICALpackages/napcat-onebot/action/file/GetGroupFileUrl.ts35 url: await this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+payload.group_id, contextMsgFile.fileUUID),CODE
CRITICALpackages/napcat-onebot/action/file/GetPrivateFileUrl.ts39 url: await this.core.apis.PacketApi.pkt.operation.GetPrivateFileUrl(self_id, contextMsgFile.fileUUID, file_hasCODE
CRITICAL…ckages/napcat-onebot/action/group/SendGroupAiRecord.ts36 await this.core.apis.PacketApi.pkt.operation.GetAiVoice(+payload.group_id, payload.character, payload.text, AIVoiceCCODE
CRITICALpackages/napcat-onebot/action/group/GetAiRecord.ts34 const rawRsp = await this.core.apis.PacketApi.pkt.operation.GetAiVoice(+payload.group_id, payload.character, payloadCODE
CRITICALpackages/napcat-onebot/action/group/GetAiRecord.ts38 return await this.core.apis.PacketApi.pkt.operation.GetGroupPttUrl(+payload.group_id, rawRsp.msgInfoBody[0].index);CODE
CRITICALpackages/napcat-onebot/action/group/DelEssenceMsg.ts48 const data = this.core.apis.GroupApi.essenceLRU.getValue(+payload.message_id);CODE
CRITICAL…kages/napcat-onebot/action/group/SetGroupAddRequest.ts36 const invite_notify = this.obContext.apis.MsgApi.notifyGroupInvite.get(flag);CODE
CRITICALpackages/napcat-onebot/action/group/GetGroupEssence.ts100 this.core.apis.GroupApi.essenceLRU.set(shortId, msgTempData);CODE
CRITICALpackages/napcat-onebot/action/packet/SendPoke.ts33 await this.core.apis.PacketApi.pkt.operation.SendPoke(is_group, +peer_id, +target_id);CODE
CRITICALpackages/napcat-onebot/action/packet/GetRkeyServer.ts40 const rkeys = await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-onebot/action/packet/SetGroupTodo.ts12 await this.core.apis.PacketApi.pkt.operation.SetGroupTodo(groupId, msgSeq);CODE
CRITICAL…kages/napcat-onebot/action/packet/CompleteGroupTodo.ts13 await this.core.apis.PacketApi.pkt.operation.CompleteGroupTodo(groupId, msgSeq);CODE
CRITICALpackages/napcat-onebot/action/packet/CancelGroupTodo.ts13 await this.core.apis.PacketApi.pkt.operation.CancelGroupTodo(groupId, msgSeq);CODE
CRITICALpackages/napcat-onebot/action/packet/GetRkeyEx.ts31 const rkeys = await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-onebot/api/msg.ts187 return await this.core.apis.PacketApi.pkt.operation.FetchRkey().then(() => true).catch(() => false);CODE
CRITICALpackages/napcat-onebot/api/msg.ts417 ? await this.core.apis.PacketApi.pkt.operation.FetchGroupMessage(+msg.peerUin, msgSeq, msgSeq)CODE
CRITICALpackages/napcat-onebot/api/msg.ts418 : await this.core.apis.PacketApi.pkt.operation.FetchC2CMessage(msg.peerUid, msgSeq, msgSeq);CODE
CRITICALpackages/napcat-onebot/api/msg.ts489 return await this.core.apis.PacketApi.pkt.operation.FetchRkey().then(() => true).catch(() => false);CODE
CRITICALpackages/napcat-onebot/api/msg.ts532 return await this.core.apis.PacketApi.pkt.operation.FetchRkey().then(() => true).catch(() => false);CODE
CRITICALpackages/napcat-onebot/api/msg.ts578 multiMsgs = await this.core.apis.PacketApi.pkt.operation.FetchForwardMsg(element.resId);CODE
CRITICALpackages/napcat-onebot/api/msg.ts1414 const groupRole = this.core.apis.GroupApi.groupMemberCache.get(groupUin)?.get(this.core.selfInfo.uid.toString())?.roCODE
CRITICALpackages/napcat-onebot/api/msg.ts1496 this.core.apis.GroupApi.groupMemberCache.delete(groupChange.groupUin.toString());CODE
CRITICALpackages/napcat-onebot/api/msg.ts1671 // console.log(this.core.apis.GroupApi.groupMemberCache.get(group)?.get(uid)?.memberSpecialTitle, new_title)COMMENT
CRITICALpackages/napcat-onebot/api/msg.ts1672 // if (this.core.apis.GroupApi.groupMemberCache.get(group)?.get(uid)?.memberSpecialTitle == new_title) {COMMENT
CRITICALpackages/napcat-onebot/api/quick-action.ts94 const invite_notify = this.obContext.apis.MsgApi.notifyGroupInvite.get(request.flag);CODE
CRITICALpackages/napcat-onebot/api/group.ts142 this.obContext.core.context.packetHandler.onCmd('trpc.msg.olpush.OlPushService.MsgPush', async (packet) => {CODE
CRITICALpackages/napcat-onebot/api/group.ts355 const old_members = structuredClone(this.core.apis.GroupApi.groupMemberCache.get(msg.peerUid));CODE
CRITICALpackages/napcat-core/apis/file.ts45 const ret = await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-core/apis/file.ts59 return this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+peer, fileUUID, timeout);CODE
CRITICALpackages/napcat-core/apis/file.ts61 return this.core.apis.PacketApi.pkt.operation.GetPrivateFileUrl(peer, fileUUID, file10MMd5, timeout);CODE
CRITICALpackages/napcat-core/apis/file.ts75 return this.core.apis.PacketApi.pkt.operation.GetGroupPttUrl(+peer, {CODE
CRITICALpackages/napcat-core/apis/file.ts83 return this.core.apis.PacketApi.pkt.operation.GetPttUrl(peer, {CODE
CRITICALpackages/napcat-core/apis/file.ts103 return this.core.apis.PacketApi.pkt.operation.GetGroupVideoUrl(+peer, {CODE
CRITICALpackages/napcat-core/apis/file.ts111 return this.core.apis.PacketApi.pkt.operation.GetVideoUrl(peer, {CODE
CRITICALpackages/napcat-test/qzoneCompatibility.test.ts91 expect(core.apis.WebApi.uploadImageToQzone.mock.calls.map(args => args[0])).toEqual([CODE
CRITICALpackages/napcat-test/rpc.test.ts847 expect(await client.level1.level2.level3.level4.level5.getValue()).toBe('deep-value');CODE
CRITICALpackages/napcat-test/rpc.test.ts848 expect(await client.level1.level2.level3.level4.level5.getAsyncValue()).toBe('async-deep-value');CODE
Decorative Section Separators25 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUM⚡.github/workflows/build-pr.yml1# =============================================================================COMMENT
MEDIUM⚡.github/workflows/build-pr.yml3# =============================================================================COMMENT
MEDIUM⚡.github/workflows/build-pr.yml10# =============================================================================COMMENT
MEDIUM.github/workflows/build-pr.yml48 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml50 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml142 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml144 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml283 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml285 # ---------------------------------------------------------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml129 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml131 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml136 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml138 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml143 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml145 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml149 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml151 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml154 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml156 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml167 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml169 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml174 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml176 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml181 # -----------------------------COMMENT
MEDIUM⚡.github/workflows/release-publish.yml183 # -----------------------------COMMENT
Hyper-Verbose Identifiers37 hits · 37 pts
SeverityFileLineSnippetContext
LOW…pcat-onebot/action/extends/qzone-public/http-params.ts2export function decodeQzonePublicHttpParameters (parameters: unknown): Record<string, unknown> {CODE
LOW…/napcat-onebot/action/extends/qzone/common-snowluma.ts152export function normalizeQzoneFeedsPayload (value: unknown) {CODE
LOW…/napcat-onebot/action/extends/qzone/common-snowluma.ts172export function normalizeQzoneListPayload (value: unknown) {CODE
LOW…/napcat-onebot/action/extends/qzone/common-snowluma.ts191export function normalizeQzoneDetailPayload (value: unknown) {CODE
LOW…/napcat-onebot/action/extends/qzone/common-snowluma.ts207export function normalizeQzoneLikePayload (value: unknown) {CODE
LOW…/napcat-onebot/action/extends/qzone/common-snowluma.ts238export function normalizeQzoneCommentPayload (value: unknown) {CODE
LOW…s/napcat-onebot/action/extends/qzone/common-comment.ts76export function validateQzoneCommentReadPayload (payload: unknown, withParent: boolean): void {CODE
LOW…es/napcat-onebot/action/group/GroupOperationHelpers.ts3export function assertGroupManagementResults (CODE
LOWpackages/napcat-core/data/qzone-rpc.ts164export function normalizeQzoneRichContent (value: unknown): string | null {CODE
LOWpackages/napcat-core/data/qzone-rpc.ts202export function normalizeQzoneMediaImages (value: unknown): string[] | null {CODE
LOWpackages/napcat-core/data/qzone-rpc.ts242export function validateQzoneFeedReference (value: unknown): QzoneFeedReference {CODE
LOWpackages/napcat-core/data/group.ts14export function applyGroupManagementSettings (CODE
LOWpackages/napcat-core/data/group.ts72export function createGroupManagementRequests (CODE
LOWpackages/napcat-core/data/album.ts140export function createAlbumCommentRequest (CODE
LOWpackages/napcat-core/data/webapi.ts334export function qunAlbumVideoCoverControl ({CODE
LOWpackages/napcat-core/data/qzone-web.ts88function rejectDuplicateSuccessFields (text: string): void {CODE
LOWpackages/napcat-core/data/qzone-web.ts242function hasObservedEmptyForwardContent (detail: Record<string, unknown>): boolean {CODE
LOWpackages/napcat-core/data/qzone.ts18export function buildQzoneUploadImageBody (params: QzoneUploadImageParams): string {CODE
LOWpackages/napcat-core/data/qzone.ts66export function parseQzoneUploadImageResponseText (raw: string): QzoneUploadImageRawResponse {CODE
LOWpackages/napcat-core/data/qzone.ts159export function parseQzonePublishResponse (json: QzonePublishResponse): { tid: string; time: number; } {CODE
LOWpackages/napcat-core/helper/ffmpeg/download-ffmpeg.ts314export async function downloadFFmpegIfNotExists (log: LogWrapper) {CODE
LOWpackages/napcat-test/qzoneWebData.test.ts120function observedEmptyForwardFields (): Record<string, unknown> {CODE
LOWpackages/napcat-image-size/src/index.ts167export function detectImageTypeFromBuffer (buffer: Buffer): ImageType {CODE
LOWpackages/napcat-image-size/src/index.ts213export async function imageSizeFromBufferFallBack (CODE
LOWpackages/napcat-rpc/src/transport.ts154export function createMessageServerHandler (target: unknown, options: {CODE
LOWpackages/napcat-schema/index.ts114function isMeaninglessSuccessExampleData (value: unknown): boolean {CODE
LOWpackages/napcat-schema/index.ts118function resolveCommonErrorExampleKey (error: { code: number, description: string; }): string | null {CODE
LOWpackages/napcat-schema/index.ts150function collapseSingleValueEnumCombinator (items: unknown[]): Record<string, unknown> | null {CODE
LOWpackages/napcat-schema/index.ts336function registerSchemasFromModule (CODE
LOWpackages/napcat-schema/index.ts378function replaceComponentInlineSchemasWithRefs (openapi: JsonObject) {CODE
LOWpackages/napcat-schema/index.ts429function replacePathInlineSchemasWithRefs (openapi: JsonObject) {CODE
LOWpackages/napcat-common/src/helper.ts97export function getDefaultQQVersionConfigInfo (): QQVersionConfigType {CODE
LOWpackages/napcat-common/src/mirror.ts998async function getArtifactsFromNightlyLink (CODE
LOWpackages/napcat-framework/napcat.ts255function registerWebUiLoginCallbacks (CODE
LOWpackages/napcat-webui-frontend/src/utils/typebox.ts150export function generateDefaultFromTypeBox (CODE
LOW.github/scripts/lib/comment.ts286export function generateDockerBuildingComment (prNumber: string, prSha: string): string {CODE
LOW.github/scripts/lib/comment.ts325export function generateDockerResultComment (CODE
Over-Commented Block18 hits · 18 pts
SeverityFileLineSnippetContext
LOWpackages/napcat-webui-backend/src/router/Plugin.ts41// }COMMENT
LOWpackages/napcat-webui-backend/src/router/QQLogin.ts81router.post('/GetGUIDBackups', QQGetGUIDBackupsHandler);COMMENT
LOWpackages/napcat-webui-backend/src/router/QQLogin.ts101router.post('/GetLinuxMachineInfoBackups', QQGetLinuxMachineInfoBackupsHandler);COMMENT
LOWpackages/napcat-onebot/action/stream/Readme.txt1# Stream-ApiCOMMENT
LOWpackages/napcat-onebot/api/msg.ts921 [OB11MessageDataType.node]: async () => undefined,COMMENT
LOWpackages/napcat-onebot/api/msg.ts1661 // }).decode(SysMessage.body?.msgContent.slice(7));COMMENT
LOWpackages/napcat-onebot/api/msg.ts1681 // this.core,COMMENT
LOWpackages/napcat-onebot/api/group.ts381 // if (grayTipElement.xmlElement.busiId === '10145') {COMMENT
LOWpackages/napcat-core/adapters/NodeIDependsAdapter.ts21 // pbBuffer: Uint8Array,COMMENT
LOWpackages/napcat-core/services/NodeIKernelMSFService.ts21 getNetworkProxy (): Promise<{COMMENT
LOW…es/napcat-core/services/NodeIKernelRichMediaService.ts61 // public enum VideoRequestWay {COMMENT
LOW…napcat-core/services/NodeIKernelStorageCleanService.ts1import { NodeIKernelStorageCleanListener } from '@/napcat-core/listeners';COMMENT
LOWpackages/napcat-test/Readme.md1# NapCat-TestCOMMENT
LOWpackages/napcat-framework/napcat.ts181 if (!wrapperSession) throw new Error('QQ 未提供有效的 Framework Session');COMMENT
LOW…s/napcat-webui-frontend/src/pages/dashboard/plugin.tsx101COMMENT
LOW…s/napcat-webui-frontend/src/pages/dashboard/plugin.tsx121 // confirmText: '注册插件管理器',COMMENT
LOW…s/napcat-webui-frontend/src/pages/dashboard/plugin.tsx141 // const file = e.target.files?.[0];COMMENT
LOWpackages/napcat-shell/base.ts821 // const result = dbApi.readDatabase('nt_msg.db');COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ages/napcat-onebot/action/stream/test_upload_stream.py185 except Exception as e:CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ages/napcat-onebot/action/stream/test_upload_stream.py12CODE