Repository Analysis

xpzouying/xiaohongshu-mcp

MCP for xiaohongshu.com

9.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of xpzouying/xiaohongshu-mcp, a Go project with 15,019 GitHub stars. SynthScan v2.0 examined 16,826 lines of code across 89 source files, recording 91 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 9.5 places this repository in the Low 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).

9.5
Adjusted Score
9.5
Raw Score
100%
Time Factor
2026-08-01
Last Push
15.0K
Stars
Go
Language
16.8K
Lines of Code
89
Files
91
Pattern Hits
2026-08-02
Scan Date
0.04
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 4MEDIUM 39LOW 48

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 91 distinct pattern matches across 10 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 Separators18 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUMskills/post-to-xhs/scripts/account_manager.py219# ---------------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/account_manager.py221# ---------------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py119 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py121 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py815# ---------------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py817# ---------------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py180 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py182 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py225 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py227 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py292 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py294 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py763 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py765 # ------------------------------------------------------------------COMMENT
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py465 # ------------------------------------------------------------------STRING
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py467 # ------------------------------------------------------------------STRING
Excessive Try-Catch Wrapping30 hits · 48 pts
SeverityFileLineSnippetContext
LOWskills/post-to-xhs/scripts/chrome_launcher.py175 except Exception:CODE
LOWskills/post-to-xhs/scripts/chrome_launcher.py179 except Exception:CODE
LOWskills/post-to-xhs/scripts/chrome_launcher.py191 except Exception:CODE
LOWskills/post-to-xhs/scripts/chrome_launcher.py194 except Exception:CODE
LOWskills/post-to-xhs/scripts/chrome_launcher.py214 except Exception:CODE
LOWskills/post-to-xhs/scripts/image_downloader.py104 except Exception as e:CODE
LOWskills/post-to-xhs/scripts/account_manager.py196 except Exception:CODE
MEDIUMskills/post-to-xhs/scripts/account_manager.py275 print(f"Error: Account '{args.name}' already exists.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/account_manager.py282 print(f"Error: Cannot remove account '{args.name}'.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/account_manager.py294 print(f"Error: Account '{args.name}' not found.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/account_manager.py301 print(f"Error: Account '{args.name}' not found.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py920 print(f"Error: Account '{args.name}' already exists.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py929 print(f"Error: Cannot remove account '{args.name}'.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py938 print(f"Error: Account '{args.name}' not found.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py968 print("Error: --content or --content-file required.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py985 print("Error: --title or --title-file required.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py993 print("Error: --content or --content-file required.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py1009 print(f"Error: Template '{args.name}' not found.", file=sys.stderr)CODE
LOWskills/post-to-xhs/scripts/cdp_publish.py51 except Exception:CODE
LOWskills/post-to-xhs/scripts/cdp_publish.py131 except Exception as e:CODE
LOWskills/post-to-xhs/scripts/publish_pipeline.py44 except Exception:CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py131 print("Error: title is empty.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py142 print("Error: content is empty.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py150 print("Error: Failed to start Chrome.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py170 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py182 print("Error: All image downloads failed.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py189 print(f"Error: Image file not found: {p}", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py193 print("Error: Images are required for image-text mode. Use --image-urls or --images.", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py212 print(f"Error during form fill: {e}", file=sys.stderr)CODE
MEDIUMskills/post-to-xhs/scripts/publish_pipeline.py224 print(f"Error clicking publish: {e}", file=sys.stderr)CODE
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHskills/post-to-xhs/scripts/cdp_publish.py411 html.push('<p>' + paragraphs[i] + '</p>');CODE
HIGHskills/post-to-xhs/scripts/cdp_publish.py413 html.push('<p><br></p>');CODE
HIGHskills/post-to-xhs/scripts/cdp_publish.py611 names.push(title ? title.textContent.trim() : 'Template ' + i);CODE
HIGHskills/post-to-xhs/scripts/cdp_publish.py628 if (title && title.textContent.trim() === {json.dumps(name)}) {{CODE
Structural Annotation Overuse17 hits · 15 pts
SeverityFileLineSnippetContext
LOWskills/post-to-xhs/SKILL.md34## Step 1: 判断输入类型COMMENT
LOWskills/post-to-xhs/SKILL.md43## Step 2: 处理内容COMMENT
LOWskills/post-to-xhs/SKILL.md81## Step 3: 内容检查COMMENT
LOWskills/post-to-xhs/SKILL.md97## Step 4: 发布到小红书COMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py792 # Step 1: Navigate to publish pageCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py796 # Step 2: Click '上传图文' tabCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py799 # Step 3: Upload images (editor appears after upload)COMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py802 # Step 4: Fill titleCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py805 # Step 5: Fill contentCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py702 # Step 1: Navigate to publish pageSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py706 # Step 2: Click '写长文' tabSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py709 # Step 3: Click '新的创作'STRING
LOWskills/post-to-xhs/scripts/cdp_publish.py712 # Step 4: Fill titleSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py715 # Step 5: Fill contentSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py718 # Step 6: Upload images into editor (if provided)STRING
LOWskills/post-to-xhs/scripts/cdp_publish.py736 # Step 7: Click '一键排版'STRING
LOWskills/post-to-xhs/scripts/cdp_publish.py739 # Step 8: Wait for templates and return namesSTRING
Verbosity Indicators13 hits · 9 pts
SeverityFileLineSnippetContext
LOWskills/post-to-xhs/scripts/cdp_publish.py792 # Step 1: Navigate to publish pageCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py796 # Step 2: Click '上传图文' tabCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py799 # Step 3: Upload images (editor appears after upload)COMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py802 # Step 4: Fill titleCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py805 # Step 5: Fill contentCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py702 # Step 1: Navigate to publish pageSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py706 # Step 2: Click '写长文' tabSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py709 # Step 3: Click '新的创作'STRING
LOWskills/post-to-xhs/scripts/cdp_publish.py712 # Step 4: Fill titleSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py715 # Step 5: Fill contentSTRING
LOWskills/post-to-xhs/scripts/cdp_publish.py718 # Step 6: Upload images into editor (if provided)STRING
LOWskills/post-to-xhs/scripts/cdp_publish.py736 # Step 7: Click '一键排版'STRING
LOWskills/post-to-xhs/scripts/cdp_publish.py739 # Step 8: Wait for templates and return namesSTRING
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWskills/post-to-xhs/scripts/chrome_launcher.py152CODE
LOWskills/post-to-xhs/scripts/account_manager.py223CODE
LOWskills/post-to-xhs/scripts/cdp_publish.py819CODE
LOWskills/post-to-xhs/scripts/publish_pipeline.py57CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMskills/post-to-xhs/scripts/cdp_publish.py150 # Create a new tabCOMMENT
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/tag-release.yml53 # Check if tag already existsCOMMENT
LOWskills/post-to-xhs/scripts/cdp_publish.py239 # Check if we got redirected to a login pageCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWskills/post-to-xhs/scripts/chrome_launcher.py19CODE
Hyper-Verbose Identifiers1 hit · 0 pts
SeverityFileLineSnippetContext
LOWskills/post-to-xhs/scripts/cdp_publish.py749 def click_next_and_prepare_publish(self, content: str = ""):STRING