Preface¶
AI products targeting mainland China need to verify the implementation of AI-generated synthetic content labeling before design and release. Regulations are scattered across departmental rules, normative documents, and mandatory national standards; relying on memory alone often leads to missing items or misinterpreting the nature of appendices. DeepSeek Harness (DSH) separates “how to do it” from “whether it has been done” via skill plugins: the skill guides the verification approach, while the rule engine performs static forensics on the code and outputs.
Below is an introduction to @deepwhale-cn/dsh-cn-ai-labeling published by maintainer feely0208 (GitHub: feely0208/dsh-cn-ai-labeling, Category: Model Inference). The current plugin version is 0.2.0, licensed under MIT, requiring DSH >=0.1.0-rc.6 <0.3.0 and Node >=18.
What is this¶
In one sentence: AI-generated synthetic content labeling compliance self-check — a skill plugin for DeepSeek Harness. Aligning with the Measures for the Labeling of AI-Generated Synthetic Content and the mandatory national standard GB 45438—2025, it verifies item-by-item locally whether explicit/implicit labels are written into the implementation and exported artifacts, and clearly marks which requirements are not applicable to avoid false positives.
The plugin does not connect to the internet and performs read-only operations on the scanned project; the report serves as prompts and evidence, not legal advice. The determination of violations must be made by humans.
What the Rule Engine Scans¶
The same CLI can scan projects, view demos, and list rule bases:
dsh-ai-labeling --root <project_path> # Scan
dsh-ai-labeling --demo # View built-in demo samples
dsh-ai-labeling --list-rules # List rules and bases
The five rule examples listed in the README are as follows (each with a when guard: projects not using AI are marked as “Not Applicable,” and the report will state “N rules were not run due to being inapplicable to this project,” avoiding the conflation of “Not Applicable” with “Passed”):
| Rule | What it checks | Level |
|---|---|---|
AILABEL-NO-DISCLOSURE |
No “AI-generated” explicit label exists in files returned directly to users | High |
AILABEL-MISSING-TEXT |
No labeling text such as “AI-generated / Generated by AI / AI-generated” found in the entire project | High |
AILABEL-NO-REVIEW |
User-facing output lacks “Manual Verification / For Reference Only” prompts | Medium |
AILABEL-NO-IMPLICIT-META |
Generated output files lack implicit labeling metadata such as generated_by / ai_generated |
Medium |
AILABEL-VAGUE-GENERATED |
Text says “Automatically generated / System generated” but lacks the AI term | Low |
Boundary: Only static checks are performed; implicit labels (such as digital watermarks) within images/audio/video are not detected.
The bases are cited in the skill body according to official documents, mainly including: Provisions on the Management of Deep Synthesis of Internet Information Services (Order No. 12, effective 2023-01-10), Measures for the Labeling of AI-Generated Synthetic Content (Guoxinbantongzi [2025] No. 2, effective 2025-09-01), GB 45438—2025 Cybersecurity Technology — Labeling Method for AI-Generated Synthetic Content (effective 2025-09-01, Appendix E is normative).
Check Surfaces Covered by the Skill¶
In addition to the rules above, the skill body organizes verification items by groups to facilitate answering questions regarding obligors, explicit/implicit labels, agreements, and store listing materials item-by-item during agent conversations:
| Group | Content |
|---|---|
| Step 0 | Obligor determination (Self-built service / Tool / On-device model) |
| A. Explicit Labels | Text, Image, Audio, Video, Virtual Scene, Interactive Scene Interfaces + Download/Copy/Export chains |
| B. Implicit Labels | Five elements complete, Appendix E format, Label values, Character sets, One file one label |
| C. Agreements & Flows | User service agreements, Unlabeled versions and log retention, Prohibition of deletion/tampering |
| D. Distribution & Filing | App store listing inquiries, Algorithm filing and security assessment materials |
| E. False Positive Prevention | Explicitly list items that do not constitute mandatory requirements and their bases |
Three key judgments emphasized in the README (excerpt): The obligation for implicit labeling may apply from Article 16 of the Deep Synthesis Provisions, while explicit labeling requires looking at the five scenarios in Paragraph 1 of Article 17; the obligor is the “Service Provider” rather than the product form, meaning pure tool providers are not equivalent to obligors but should still provide labeling capabilities in the export chain; GB 45438 only has Appendix E as normative, Appendix A.2 states “no requirements in this document” for digital watermarks, avoiding misinterpretations like the “5% font height” rule for non-image text.
Installation and Enablement¶
Refer to the repository README for installation commands:
dsh plugin --profile <profile> add @deepwhale-cn/dsh-cn-ai-labeling
Restart dsh after completion. The skill is automatically available when the agent needs it; the package provides the dsh-ai-labeling command (bin/cli.mjs).
It is recommended to review the GitHub repository source code and MIT license before installation. The plugin runs with the permissions of the current DSH process and only reads local paths and specified files.
Forensics Scripts and CI Usage¶
The plugin distributes labeling-check.sh with the package, and the skill body provides its absolute path. It is used to collect evidence of code implementation or verify metadata of real output files:
# Scan the codebase to collect evidence and gaps of labeling implementation
bash <path_to_labeling-check.sh> --code --dir .
# Verify metadata of a real output file (Exported artifact / Image / Document)
bash <path_to_labeling-check.sh> --meta ./export_sample.docx
bash <path_to_labeling-check.sh> --meta ./generated_image.png
# Run together
bash <path_to_labeling-check.sh> --all --dir .
Exit codes: 0 indicates no problems found, 1 indicates findings, which can be used as a gate in CI or before release. --meta parses the AIGC JSON in the file, verifying the 7 elements, Label values, string types, and character sets.
Relationship with Other Plugins¶
It complements @deepwhale-cn/dsh-cn-compliance: the latter focuses on scanning external copy before release (Advertising Law superlative words, network tool red lines, filing display); this plugin focuses on checking product implementation during the development phase (whether labels are written into code and exported artifacts). They can be used together following the DSH plugin ecosystem’s “Composition First” principle.
Applicable Scenarios and Notes¶
Suitable for: Generative/deep synthesis capabilities targeting domestic release, teams needing to align with GB 45438 and supporting measures during the design phase; engineering workflows hoping to produce evidence with the same set of rules before release to reduce false positives.
Notes: The plugin does not contain a built-in “compliance conclusion library” that will expire; regulations are subject to the latest official text; static scanning cannot replace legal conclusions. Community directories can be viewed at the SkillHub Plugin Page and DSH Plugin Hub; it has no official affiliation with DeepSeek / High-Flyer.
More instructions and issues: https://github.com/feely0208/dsh-cn-ai-labeling.