Introduction¶
DeepSeek Harness (DSH) ecosystem adopts a plugin architecture designed to expand the capability boundaries of large models. In office scenario development, official document writing typically faces challenges such as numerous document types (more than 38), strict formatting requirements (GB/T 9704 standard), and accurate retrieval of content from a knowledge base. gongwen-dsh is a model inference plugin for this vertical domain, intended to assist in generating compliant official document drafts through structured guidance and online knowledge retrieval.
Core Features¶
This plugin mainly addresses structural and standardization issues in official document writing:
- Full coverage of 38 document types: supports requests, reports, summaries, speeches, minutes, notices, letters, opinions, approvals, duty reports, research reports, Party lectures, briefings, and other 38 common official document types. After identifying the document type, the system automatically matches the corresponding structural framework.
- Online knowledge base retrieval: adopts a zero-knowledge-base packaging model; 438,000 characters of structured official-document knowledge are retrieved through online APIs, covering structure, titles, key phrases, and sentence patterns.
- GB/T 9704 formatting standard: built-in official document layout standards ensure that generated documents comply with requirements for fonts, font sizes, line spacing, and page margins, and can integrate directly with OA systems.
- Anti-fabrication mechanism: when the knowledge base does not cover the information or information is missing, the system automatically labels numerical values, document numbers, names, and dates as [To Be Completed], avoiding fabricated content.
- Template-guided prompting and audience profiling: provides dedicated fill-in templates and supports customizing writing style based on the audience (e.g., group executives, responsible leaders, inspection teams).
Installation and Activation¶
The plugin source code is hosted on GitHub; users need to obtain the code themselves or manage it through the DSH directory.
- GitHub repository:
https://github.com/Yourtsao/gongwen-dsh - DSH directory:
https://www.skillhub.cn/plugins/Yourtsao/gongwen-dsh - Local structure: after installation, it typically includes
dsh/index.js(Host layer),skills/gongwen-writting/SKILL.md(skill body), andscripts/register.mjs(registration script).
Typical Usage¶
Before use, registration must be completed to obtain invocation permissions. The specific steps are as follows:
- Registration and verification
Users need to provide an email address, use the command-line script to complete registration, and receive the verification code.
node scripts/register.mjs register --email <邮箱>
node scripts/register.mjs verify --email <邮箱> --code <验证码>
After completing the above steps, 10 free usage credits are usually granted for 7 days.
-
Drafting an official document
Directly state the writing requirement in the conversation, for example, “Write a request” or “Write a notice.” The system automatically follows the/consumeand/searchflow, combines templates and online knowledge, and generates an initial draft. -
Billing model
- Free: 10 usage credits per 7 days are granted upon registration.
- Per-use: 2 yuan/use.
- Annual package: 399 yuan/year (unlimited uses across 38 document types).
Payment is via WeChat QR code scan; the QR code is generated in real time by the gateway.
Notes¶
- Knowledge base copyright: Knowledge base content is protected by copyright owned by the author. Only online retrieval is supported; reposting and redistribution are prohibited.
- Billing enforcement: Specific billing rules are enforced by the server side; the client is display-only.
- Environment adaptation: This plugin runs with the privileges of the current DSH process. It is recommended to review the source code and license (MIT License) before installation.
- Information completion: If input information is incomplete, the corresponding positions in the generated document will be marked as [To Be Completed] and require manual completion.