Introduction¶
When enabling agents in DeepSeek Harness (DSH) to output Vietnamese technical documentation, common issues are not just “translation that doesn’t sound human”: literal translation of English, stacking empty adverbs before verbs, arbitrarily renaming API and configuration identifiers, and writing unverified content as conclusions, all of which repeatedly appear in long conversations. If you stuff dozens of rules and glossaries into every system prompt, token costs will rise quickly.
The community plugin dsh-tvkt-vi (maintainer Hieupt1904, classified as Workflow in the community directory) breaks down TVKT-100 into composable layers: a short language contract per request, full rules and terms loaded on demand via a skill, a local linter for scriptable checks, and a dedicated agent mode for drafting, reviewing, and rewriting. Below explains how to enable it in a profile, following installation, mechanism, and usage.
What is this¶
dsh-tvkt-vi targets DeepSeek Harness, implementing the Vietnamese technical writing standard TVKT-100 (containing a skill body of 30 rules and 70 terms, as well as executable linter rules L001–L007). The README states that the plugin intercepts the aforementioned three types of style issues at the prompt layer and puts large blocks of rules into a skill to avoid paying for full rules in every request.
The current version number in package.json is 0.5.1; the latest release on GitHub is v0.4.0, and on npm it was 0.5.0—if you install using the release tarball URL, you will get an older package; when you need a newer version, install from npm or Git (refer to the README for details).
Core Capabilities (Four-Layer Division)¶
The README summarizes the four mechanisms in a table, deliberately separating them:
| Component | Mechanism | Effect |
|---|---|---|
| Language Contract | ctx.systemPrompt.section(), order 10150 (after tool descriptions, before persona) |
About 1.7 KB/request; applies to all modes, including custom modes |
Skill tvkt-vi |
ctx.skills.registerProvider(), reads SKILL.md on load, does not copy to ~/.dsh/skills |
0 tokens when not loaded; loads about 6 KB |
Agent mode tvkt-vi |
preset in cordis.patch.yml, persona dsh-persona + toolset similar to standard |
Only effective in sessions where this mode is selected |
| Linter | Bundled vendor/tvkt/ (TVKT-100 v1.0) + skills/tvkt-vi/scripts/lint-text.py |
Runs locally, no network calls |
Tool tvkt_lint |
ctx.tools.register() when profile contains tools service |
Available for model to call; includes path traversal protection, timeout, and exec.signal cancellation |
Under the preset Tiếng Việt chuẩn (TVKT-100), document work is divided into three sub-modes: DRAFT (new writing, can mark as unverified), REVIEW (only report issues, do not modify files), REWRITE (backup → segment suggestions → diff → apply after approval).
Installation and Enablement¶
- Add the plugin to the target profile (example is
web), use the Git address from the README, do not concatenate other add syntax yourself:
dsh plugin --profile web add https://github.com/Hieupt1904/dsh-tvkt-vi.git
You can also mount the local development directory directly (replace the path with your clone directory):
dsh plugin --profile web add /duong/dan/dsh-tvkt-vi
-
If the profile does not have
patchReload: liveenabled, you need to restartdsh web. -
After installation, three changes described in the README: the Chuẩn tiếng Việt (TVKT-100) section appears in the system prompts of each agent; skill
tvkt-viappears in the catalog (loaded by agents on demand when writing/reviewing Vietnamese); Tiếng Việt chuẩn (TVKT-100) mode is added to Settings → Agent presets.
The plugin itself has no independent configuration items. Edit lib/contract.js to change the language contract; edit skills/tvkt-vi/SKILL.md to change the skill body (the provider will read the new content on the next get()). If you have a complete TVKT-100 tree locally, use the environment variable to point the linter to that directory instead of vendor/tvkt/:
TVKT_HOME=/duong/dan/TVKT-100-v1.0 python3 skills/tvkt-vi/scripts/lint-text.py bai.md
Typical Usage¶
Pipe check a draft (README example, without creating temporary files):
printf 'Hệ thống tiến hành kiểm tra dữ liệu một cách nhanh chóng.\n' \
| python3 skills/tvkt-vi/scripts/lint-text.py
The output will show TVKT-LINTER summary and suggestions corresponding to L001 and other TVKT-002 rules.
Conversation instruction examples (excerpted from README):
REWRITE theo TVKT: chuẩn hóa tài liệu api/readme.md, chỉ sửa hình thức.
REVIEW phần 3 giúp tôi, nêu mã TVKT cho từng chỗ.
Dịch đoạn này sang tiếng Việt kỹ thuật, giữ nguyên tên endpoint.
Markdown file gate in CI (built-in entry in vendor/tvkt):
python3 vendor/tvkt/tools/tvkt_lint.py docs/api.md --format json --fail-on WARNING
The maintainer also provides npm run check-drift, which checks if cordis.patch.yml has drifted from the standard mode (document baseline is DSH 0.2.2-rc.2) after upgrading DSH.
Applicable Scenarios and Limitations¶
Who is it for: Teams or individuals who need to stably produce Vietnamese technical documentation, API docs, or READMEs in the DSH workflow, and wish to control token usage and modification boundaries through skill + linter + dedicated mode.
Permissions and Security: The plugin runs with the same privileges as the DSH process; before installing, check the source code and MIT license on the GitHub repository, and evaluate whether to include it in a production profile yourself.
Limitations to accept before use (summary of “Giới hạn” in README):
- Linter only covers 7/30 TVKT rules (L001–L007 correspond to a subset); PASS does not prove technical content correctness (e.g., TVKT-029).
- Sentence length is counted by space tokenization; Vietnamese compound words may be overestimated; the 30/40 word threshold is a suggested value.
- L006 may produce INFO-level hints for words like “phải” (must) or “nên” (should), not representing hard errors.
- Language contract is about 1.7 KB/request; if you already hand-wrote a TVKT block in
~/.dsh/AGENTS.md, you should remove this one to avoid double billing. - Skill with the same name: plugin provider priority is 300, which overrides
~/.dsh/skills(400), but is lower than.dsh/skillsinside the project (100/200); it is advisable to keep only one definition. - CI is only verified on Ubuntu; the README states there is no evidence of Windows running yet, see
docs/compatibility.md.
mode tvkt-vi and PTC: The preset adds tool-executor-ptc and tool-tvkt on top of standard; PTC makes run_code the main path for direct model calls, which then calls other tools. If you want to call tools directly like standard, the README suggests deleting the tool-executor-ptc line from cordis.patch.yml and synchronizing INTENTIONAL_DIFFS in scripts/check-drift.mjs.
Conclusion¶
dsh-tvkt-vi breaks TVKT-100 into “short contract + on-demand skill + local linter + DRAFT/REVIEW/REWRITE mode”, suitable for Vietnamese technical writing workflows in the DSH “everything is a plugin” ecosystem, rather than stuffing the full text of rules into every message repeatedly.
- Community directory: https://www.skillhub.cn/plugins/Hieupt1904/dsh-tvkt-vi
- Source code and docs: https://github.com/Hieupt1904/dsh-tvkt-vi