Preface¶
When developing applications that provide large model dialogue capabilities within the DeepSeek Harness (DSH) ecosystem, it is often necessary to verify each item before going live: whether safety checks are enabled, whether generated content contains AI labels, whether the registration and filing of large models and privacy disclosures are in place, and whether there is a refusal handling mechanism when risks are triggered. These checks are scattered across announcements, regulations, and project configurations, making it easy to miss items when relying on manual document review.
@deepwhale-cn/dsh-cn-genai-preflight is a skill-type DSH plugin designed to perform rule-based preflight checks on project directories. It consolidates common compliance requirements into executable CLI commands and skill descriptions, facilitating a run-through before release or joint debugging.
What is this¶
- Positioning: A preflight tool for GenAI services (Deep Whale Guardian series, based on
@deepwhale-cn/dsh-guard-core). - Maintainer: feely0208 (Repository: feely0208/dsh-cn-genai-preflight).
- Form: Skill-type plugin · No dashboard; after installation, the DSH agent calls the CLI based on the built-in skill descriptions; no independent dashboard interface.
- Version: The package version in the documentation is
0.1.0, license MIT; requiresnode >= 18,dshversion>=0.1.0-rc.6 <0.3.0.
Visit the plugin directory page on SkillHub. The community directory is an independent site and has no official affiliation with DeepSeek or Hanxin.
Core Functions¶
According to the README, the preflight covers five categories and includes 6 rules internally. The basis for these rules includes: the original list of obligations from the DeepSeek Official Announcement (2026-11-13), Article 17 of the Interim Measures for the Administration of Generative AI Services, the Measures for the Identification of AI-Generated Synthetic Content, GB 45438—2025, and Article 17 of the Personal Information Protection Law.
| Direction | Description |
|---|---|
| Safety Check Parameters | Check whether project configurations related to safety checks comply with requirements |
| AI Content Labeling | Self-checks related to labeling obligations; the README suggests using dsh-cn-ai-labeling in conjunction with manual item-by-item self-checks for AI labels |
| Model Registration and Filing | Check items related to registration and filing |
| Privacy Disclosure | Check items related to personal information processing notifications |
| Refusal Handling | Agreements related to safety refusals and client-side display |
The README provides an example configuration for safety checks: enable safety_check with level set to high; when a risk is triggered, the response can return stop_reason: "refusal", allowing the client to replace the displayed answer with refusal text. Specific rule details can be viewed via the CLI’s --list-rules.
The applicable targets include: applications providing large model dialogue services to the outside world, as well as wrapper applications based on the DeepSeek family of APIs.
Installation and Activation¶
Install in DSH (command from official README, do not manually concatenate the github:owner/repo format):
dsh plugin --profile web add @deepwhale-cn/dsh-cn-genai-preflight
After installation, the agent calls the CLI according to the built-in skill of the plugin; locally, the same package can also be run directly via npx.
Typical Usage¶
Execute preflight on a specified project root directory:
npx @deepwhale-cn/dsh-cn-genai-preflight --root <project directory>
The README also mentions optional parameters: --demo, --list-rules, and --html. Perform directory scanning and rule matching first, then rectify issues item by item according to the output; when the full text of rules is needed, run --list-rules first; when a demo or HTML report is needed, select the corresponding switch.
Example configuration for safety checks (official README):
{ "safety_check": { "level": "high" } }
Refusal behavior agreement (conceptual level, implementation takes precedence): when a risk is triggered, stop_reason: "refusal", and the client replaces the displayed content.
Applicable Scenarios and Notes¶
Suitable for: Teams preparing to provide generative AI dialogue capabilities to the outside world in China or in compliance scenarios, or those who wish to perform static/config-based self-checks before going live; developers already using DSH for agents or Web profiles can include this plugin in their pre-release checklist.
Execution Permissions: The plugin accesses project directories and related files with the permissions of the current DSH process. Before installation, read the repository source code and the MIT license to confirm that the preflight scope is consistent with local security policies; star counts and community display data are based on the directory page (the GitHub star count in the documentation is 0).
Boundaries: Preflight is an auxiliary self-check tool and cannot replace legal review or regulatory reporting; for details on AI labeling, it is recommended to use it in conjunction with dsh-cn-ai-labeling.
Summary¶
dsh-cn-genai-preflight consolidates obligations related to GenAI launch, such as safety checks, labeling, registration, privacy, and refusal handling, into 6 executable rules. It is suitable for running once on a project directory in the DSH workflow or before CI. For more information, see the SkillHub directory page and the GitHub repository.