feely0208/archive-ai-labeling-dup: Static checking for AI-generated content labeling

Preface

After connecting models like OpenAI, Anthropic, and DeepSeek in DSH, the generated results are often shown directly to users or written to external APIs. Relevant regulations in China require explicit and implicit labeling of generated content, and prompts that encourage users to verify. Checking each item manually at runtime is costly and easy to miss certain pages or exported files.

Below is an introduction to the plugin lead feely0208/archive-ai-labeling-dup under the SkillHub category “Online Tools,” maintained by feely0208. The directory page and GitHub repository note: the capability has been merged into dsh-cn-ai-labeling v0.2.0, and this repository is deprecated (renamed to remove it from market scanning). For installation commands, CLI usage, and rule descriptions in this article, refer to @deepwhale-cn/dsh-ai-labeling as documented in the repository README; when using it, use the merged official package and current documentation as the source of truth—do not treat the archived repository as the sole installation source.

What this is

@deepwhale-cn/dsh-ai-labeling (per the README title) scans project code at the static level to find places where “model-generated content is used but may not be labeled as required by regulations.” It does not determine whether a given piece of text is AI-generated, nor does it perform fact-checking or content-safety review, and it does not directly issue “compliant / non-compliant” verdicts; hits are prompts for confirmation, and the judgment is left to developers.

The division of labor with dsh-ai-output-trust is clearly stated in the README: the former focuses on injection risks when AI output is fed into downstream components; this plugin focuses on labeling obligations (explicit / implicit / verification prompts) when AI output is shown to humans.

Maintainer: feely0208. License: MIT (README). Version in package.json is 0.1.0, engine requirement: dsh >=0.1.0-rc.6 <0.3.0, Node >=18.

Core functionality: five rules and guard conditions

Scanning is rule-based (rules/), with each rule carrying a source field that maps to regulatory clauses. The README lists five rules:

Rule ID What it checks Level
AILABEL-NO-DISCLOSURE In files returned to users containing generated results, no explicit “AI-generated” label is visible High
AILABEL-MISSING-TEXT The project has AI generation calls, but no label text such as “AI-generated / Generated by AI / AI-generated” is found anywhere in the project High
AILABEL-NO-REVIEW User-facing output lacks prompts such as “manual verification / for reference only” Medium
AILABEL-NO-IMPLICIT-META Generated outputs lack implicit labeling fields such as generated_by / ai_generated Medium
AILABEL-VAGUE-GENERATED User-visible text says “auto-generated / system-generated” without mentioning AI Low

The report provides file paths, line numbers, code snippets, and the regulatory basis. All five rules include when guards: if the project has no traces of openai / anthropic / deepseek / generateText, the rules are marked not applicable rather than “passed,” to avoid “false green” for projects that don’t use AI; the report will state, for example, “5 rules were not run because they are not applicable to this project.”

The basis is listed in the README, including Article 12 of the “Interim Measures for the Management of Generative Artificial Intelligence Services,” Article 17 of the “Provisions on the Administration of Deep Synthesis in Internet Information Services,” and Articles 4 and 5 of the “Measures for Labeling AI-Generated Synthetic Content,” etc.

Installation and enabling

Use the installation command exactly as in the README (--profile web):

dsh plugin --profile web add @deepwhale-cn/dsh-ai-labeling

The plugin runs with the permissions of the current DSH process; review the source code and the MIT license before installing. The SkillHub entry archive-ai-labeling-dup is only an archived lead; the actual capability is in the merged dsh-cn-ai-labeling and the npm package @deepwhale-cn/dsh-ai-labeling.

Typical usage

The CLI entry point is dsh-ai-labeling (the bin field in package.json).

Scan a specified project root directory:

dsh-ai-labeling --root /path/to/your-project

View the built-in demo (a sample project that connects to OpenAI, displays summaries directly, and has no labeling):

dsh-ai-labeling --demo

List rules and their basis:

dsh-ai-labeling --list-rules

Export HTML or JSON for CI use:

dsh-ai-labeling --root . --html ai-labeling.html
dsh-ai-labeling --root . --json

Exit code is 1 when there are high/critical hits, so it can be used as a CI gate.

Recommended remediation directions in the report

The remediation approach in the README can be summarized as four points:

  1. Reference a unified constant for explicit labeling in user-visible pages, API responses, and message bodies; placing it only in the README, comments, or backend logs does not count.
  2. Add prompts for manual verification or “for reference only.”
  3. When persisting to databases or disks, add implicit fields such as generated_by, ai_generated, model_name, service_provider, content_id.
  4. Avoid vague wording like “auto-generated” or “system-generated” alone; use descriptions that include “AI,” and do not use natural-person identities such as “author” or “editor” to evade labeling.

Applicable scenarios and known boundaries

Suitable for: Teams that have already integrated mainstream model SDKs or generation APIs in code and need to quickly discover “possibly missing labels” in static locations during releases or CI.

Not suitable for: Scenarios that require runtime determination of whether content is AI-generated, or that require replacing legal conclusions.

Boundaries (README “Known Boundaries”):

  • Static analysis cannot see labels assembled at runtime (e.g., text pulled from a configuration center), which may cause false negatives and require manual confirmation.
  • Labeling is judged at the file level: if the output file actually seen by the user lacks a label, it will be reported, even if the project has unified labeling elsewhere.
  • Implicit labeling only matches a limited set of keywords; custom field names may prompt you to confirm whether that field carries source-labeling semantics.

Closing

feely0208/archive-ai-labeling-dup is marked as archived on SkillHub; the functionality has been merged into dsh-cn-ai-labeling v0.2.0. For ongoing use, follow the official package @deepwhale-cn/dsh-ai-labeling and its documentation. Its value is turning “did you tell the user this is AI-generated, and whether verification is needed” from a manual checklist into repeatable static scanning and CI gates.

  • Directory page: https://www.skillhub.cn/plugins/feely0208/archive-ai-labeling-dup
  • GitHub (archived repository): https://github.com/feely0208/archive-ai-labeling-dup

The DSH ecosystem emphasizes “everything is a plugin”; SkillHub is a community directory site and is not officially affiliated with DeepSeek / Hithink.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye