Preface¶
When building sites, documentation, or external copy with DeepSeek Harness (DSH), the common problem isn’t “whether there’s a sensitive-word list”, but rather that nobody systematically reviews content before publishing: phrasing related to network tools, extreme advertising-law terms, absolute promises, map and territorial expressions, whether internal paths are publicly accessible, etc.—all of which can lead to ICP filing delays, page takedowns, or compliance risks. Relying solely on full-volume keyword scanning tends to flood the report with false positives, no one reads the report, and the review effectively never happens.
Below is an introduction to the community plugin @deepwhale-cn/dsh-cn-compliance (repo feely0208/dsh-cn-compliance). It performs compliance-red-line checks before content is published, ships with a scan script that can be wired into CI, and the skill becomes automatically available to the agent when needed.
What Is This¶
@deepwhale-cn/dsh-cn-compliance is a skill plugin for DeepSeek Harness, maintained by feely0208 and categorized under admin-security in the community catalog. The current package version is 0.1.1, licensed under MIT, and requires the dsh engine version >=0.1.0-rc.6.
It can be summarized as: Compliance red-line review for external content targeting mainland China—proactively detecting compliance risks before publication to avoid stalled filings, page takedowns, or administrative penalties. The plugin only performs checks locally and against specified sites; it does not fetch word lists from the internet, nor does it send content under review to third-party services.
Core Functions: What It Checks and How It Reduces False Positives¶
Check Categories (Grading in the README)¶
| Category | Content |
|---|---|
| A | Network-tool terminology (e.g., VPN, bypassing the firewall, science-based internet access, airport, clash, etc.)—absolute red line |
| A- | Borderline terms (e.g., intranet penetration, tunnel)—requires contextual judgment |
| B | Extreme advertising-law terms (e.g., national-level, only, exclusive, best, first, etc.) |
| C | Absolute promises (e.g., permanently free, zero risk, will never leak) |
| D | Maps and territory (Taiwan, Arunachal Pradesh/Southern Tibet, integrity of the South China Sea islands) |
| E | Data and privacy promises (privacy policies must be consistent with implementation) |
| F | AI-generated content labeling |
| G | Qualifications and filings (ICP filing number; must not claim qualifications the product does not hold) |
| H | Comparisons with and disparagement of competitors |
| I | Internal files exposed to the public internet (dual risk of information security and compliance) |
Contextual Judgment and Noise Exclusion¶
Compared with “listing a bunch of sensitive words”, the README emphasizes that the hard part is false positives. The plugin has two built-in contextual judgments:
| Word | False-positive scenario | Handling |
|---|---|---|
| penetration (穿透), tunnel | UI terminology like “click-through”, HTTP tunnel | Only flag as a risk when co-occurring with network context (intranet/network/port/proxy/routing/NAT) |
| 100% | CSS keyframes, width:100% | Only report when followed by a marketing adjective (e.g., 100% self-developed/safe/effective, etc.) |
At the same time, it excludes known noise sources: node_modules/, bundled runtime directories, build artifacts, binaries, third-party scraped news content, etc.
Design Trade-offs (Parts Requiring Manual Review or Separate Tools)¶
The plugin does not ship with a built-in political sensitive-word list—to avoid the plugin files themselves containing sensitive content, and because word lists need to continuously track regulatory guidance. The README states that Category C issues should be reviewed manually or handled with third-party tools.
Division of labor with other plugins: this plugin governs what must not be said in external copy; if you need to verify whether AI-generated-content labeling is actually implemented in code and exported artifacts, combine it with @deepwhale-cn/dsh-cn-ai-labeling. Development follows the composition-first, clear-declaration, and compatibility-first principles of the DSH plugin ecosystem initiative—no assumptions, no overriding other plugins’ internal implementations.
Installation and Activation¶
Taking the web profile as an example, the installation command from the README is:
dsh plugin --profile web add @deepwhale-cn/dsh-cn-compliance
If you use another profile, replace web with your profile name:
dsh plugin --profile <profile> add @deepwhale-cn/dsh-cn-compliance
After installation, restart dsh. The skill becomes automatically available when the agent needs it.
Note: the community catalog page is skillhub.cn/plugins/feely0208/dsh-cn-compliance; the DSH plugin ecosystem is oriented toward “everything is a plugin”, the community catalog is an independent site, and it has no official affiliation with DeepSeek / High-Flyer.
Typical Usage: The Bundled scan.sh¶
The plugin ships with scan.sh, and the skill’s body text provides its absolute path. The <scan.sh path> in the examples below should be replaced with the actual path.
Scan the current directory:
bash <scan.sh path>
Scan a specified directory:
bash <scan.sh path> --dir ./site
For public repo scenarios: scan only .md files to reduce false positives from technical terminology in the source code:
bash <scan.sh path> --docs-only
Scan live pages (the README emphasizes: clean locally does not mean clean in production):
SITE_HOST=https://your-domain.example bash <scan.sh path> --online
Run local, additional documentation, online, and internal-path-exposure detection all together:
SITE_HOST=https://your-domain.example DOCS_DIRS="./docs:./README.md" bash <scan.sh path> --all
Exit codes: 0 means no hits, 1 means hits were found, and can be used directly as a gate in CI or before publishing.
Environment Variables¶
| Variable | Description |
|---|---|
SITE_HOST |
Root URL of the live site (required for --online / --all) |
DOCS_DIRS |
Additional documentation directories to scan, colon-separated |
EXTRA_PATHS |
Additional internal paths to probe, space-separated (appended to the built-in list) |
Use Cases and Notes¶
Suitable for teams or individuals using the DSH workflow to write or publish external copy, documentation sites, or marketing pages targeting users in mainland China: let the agent call the compliance skill before publishing, or use scan.sh as a gate in the pipeline.
Before installing and running, please review the GitHub repo source code and the MIT license yourself; the plugin runs with the current dsh process’s permissions, and whether to include it in your security policy is up to your own assessment. Issue feedback in the README links to dsh-cn-skills issues.
Conclusion¶
@deepwhale-cn/dsh-cn-compliance turns pre-publication compliance red-line checking into a DSH skill, and uses contextual judgment and directory exclusion to reduce false positives, while scan.sh covers local, documentation, and live-site scenarios. For installation instructions and the check list, refer to the community catalog feely0208/dsh-cn-compliance and the GitHub README.