dsh-plugin-dev-kb 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.8] - 2026-08-29
4
+
5
+ - 文档:首屏数字带(168 页 · 52 篇 · 223 索引 · 0 依赖);安装 yaml 标注「唯一的一步,复制即用」;新增「5 分钟验证」节;
6
+ - 元数据:description/keywords 搜索工程(keywords 10 → 17);
7
+ - 新增英文版 README.en.md 与双语切换行。
8
+ ## [1.0.7] - 2026-08-25
9
+
10
+ - 相关插件段新增 dsh-plugin-windows-guard(Windows 环境防坑守则 skill 插件,互相引流)。
11
+
12
+
3
13
  ## [1.0.6] - 2026-08-21
4
14
 
5
15
  - 整理:package.json 补 `selfcheck` / `rebuild-index` npm 脚本(发布前可一键自检);
package/README.en.md ADDED
@@ -0,0 +1,144 @@
1
+ [中文](./README.md) | **English**
2
+
3
+ # dsh-plugin-dev-kb
4
+
5
+ ![npm version](https://img.shields.io/npm/v/dsh-plugin-dev-kb)
6
+ ![License](https://img.shields.io/github/license/Pasumao/dsh-plugin-dev-kb)
7
+ ![AI Assisted](https://img.shields.io/badge/AI-Assisted-8A2BE2)
8
+
9
+ > **168-page official mirror · 52 supplementary docs · 223-file search index · 0 runtime dependencies**
10
+
11
+ **The official docs at your side whenever you write dsh plugins**: the entire content of the DeepSeek Harness official documentation site
12
+ <https://deepseek-harness.github.io/deepseek-harness/> is organized into a form natively usable by dsh —
13
+ once this plugin is installed, the agent automatically loads the knowledge base when writing plugins and locates docs by task scenario, so you never have to dig through web pages again.
14
+
15
+ ## What is this
16
+
17
+ - **Complete site mirror**: the official docs (VitePress) are generated as a projection of the raw Markdown in
18
+ `docs/` of the `deepseek-ai/deepseek-harness` repository (links rewritten to site routes, verbatim identical to the live site). 168 pages in both Chinese and English.
19
+ - **Supplementary docs**: 52 development references from the repo's `docs/` that were not published to the site (glossary, defensive patterns, module graph, testing strategy, incident postmortems, i18n specs, etc.).
20
+ - **Agent-friendly**: the `skills/dsh-plugin-dev-kb.md` skill lets dsh auto-load it during plugin development tasks, providing the knowledge base location,
21
+ topic navigation, and search strategy; `kb/meta/topics.md` maps task scenarios to the files to read; `kb/meta/search-index.json` provides full search coverage.
22
+
23
+ ## Features
24
+
25
+ - **Complete mirror of the official docs**: the entire content of the deepseek-ai/deepseek-harness official documentation site, organized into a form natively usable by dsh,
26
+ 168 pages in both Chinese and English, links rewritten to site routes, verbatim identical to the live site;
27
+ - **Repo supplementary docs**: 52 development references not published to the site (glossary, defensive patterns, module graph, testing strategy, incident postmortems, i18n specs, etc.);
28
+ - **Agent-friendly**: the `dsh-plugin-dev-kb` skill lets dsh auto-load the knowledge base during plugin development tasks;
29
+ `kb/meta/topics.md` maps task scenarios to the files to read, and `kb/meta/search-index.json` provides full search coverage;
30
+ - **Human-usable**: browse the `kb/` directory directly, or open `kb/INDEX.md` to look things up by URL mapping;
31
+ - Pure data plugin, zero runtime dependencies, registers no tools.
32
+
33
+ ## Configuration
34
+
35
+ No configuration required — it works right after installation:
36
+
37
+ - Reads no environment variables, needs no API key / token, writes no config files;
38
+ - After mounting, the `skills/dsh-plugin-dev-kb.md` skill enters the available skills list at session startup and takes effect automatically;
39
+ - Knowledge base updates go through `npm run rebuild-index` (see "Updating the knowledge base"); there are no manual configuration items.
40
+
41
+ ## Install / Mount
42
+
43
+ ```powershell
44
+ # npm (recommended)
45
+ dsh plugin --profile web add dsh-plugin-dev-kb
46
+ # or GitHub
47
+ dsh plugin --profile web add github:Pasumao/dsh-plugin-dev-kb
48
+ ```
49
+
50
+ Install from source (local development / debugging):
51
+
52
+ ```bash
53
+ git clone https://github.com/Pasumao/dsh-plugin-dev-kb.git
54
+ cd dsh-plugin-dev-kb
55
+ npm install
56
+ # mount into the profile as a link: dependency
57
+ ```
58
+
59
+ This plugin is a "pure data + skill" plugin and does not ship with automatic bundle mounting. After installation, add one line at the end of the profile's
60
+ `cordis.patch.yml` to mount it manually (**the only one-time step, just copy it**;
61
+ it mounts as a plugin row in the profile root layer, and its `skills/` skill enters the global layer):
62
+
63
+ ```yaml
64
+ - insert:
65
+ - id: dsh-plugin-dev-kb
66
+ name: dsh-plugin-dev-kb
67
+ ```
68
+
69
+ > Only after restarting / creating a new dsh session will the `dsh-plugin-dev-kb` skill appear in the available skills list (the skill catalog is snapshotted at session startup).
70
+
71
+ ## 5-minute verification
72
+
73
+ After restarting, open a new session and simply ask:
74
+
75
+ > Help me write a minimal dsh plugin
76
+
77
+ The agent will automatically load the `dsh-plugin-dev-kb` skill (visible in the skill catalog), locate the docs via `kb/meta/topics.md`,
78
+ and only then start working — if you see it referencing `kb/site/...` paths, the verification has passed.
79
+
80
+ ## Directory structure
81
+
82
+ ```
83
+ dsh-plugin-dev-kb/
84
+ ├── cordis.patch.yml mount declaration
85
+ ├── package.json plugin metadata
86
+ ├── skills/
87
+ │ └── dsh-plugin-dev-kb.md ★ knowledge base usage guide (the skill the agent loads)
88
+ ├── kb/
89
+ │ ├── site/ site mirror: guide/ develop/ reference/ (+ en/ English site)
90
+ │ ├── extra/ repo supplementary docs: glossary, defensive-patterns, module-graph, postmortem/, i18n/ …
91
+ │ ├── meta/
92
+ │ │ ├── topics.md ★ topic navigation: task scenario → files
93
+ │ │ ├── search-index.json full index (223 files)
94
+ │ │ ├── source.json source commit / time / stats
95
+ │ │ └── site-pages.txt list of live site pages
96
+ │ ├── INDEX.md site URL ↔ local file mapping
97
+ │ └── README.md knowledge base overview and update instructions
98
+ └── LICENSE
99
+ ```
100
+
101
+ ## Usage
102
+
103
+ - **Agent side**: when writing plugins / Tools / config / services / events / packaging / LLM adapters, load
104
+ the `dsh-plugin-dev-kb` skill → read `kb/meta/topics.md` to locate → read/grep as needed.
105
+ - **Human side**: browse the `kb/` directory directly, or open `kb/INDEX.md` to look things up by URL mapping.
106
+
107
+ ## Self-check
108
+
109
+ Run the structural self-check before publishing (offline, zero dependencies):
110
+
111
+ ```powershell
112
+ npm run selfcheck # structural integrity + entry / bundle patch existence
113
+ ```
114
+
115
+ ## Updating the knowledge base
116
+
117
+ See `kb/README.md`: re-clone `deepseek-ai/deepseek-harness` (master branch), install the projection dependencies, then
118
+ call `projectDocs()` from `scripts/project-doc-site.ts` inside the repo to generate `website/.generated/`,
119
+ overwrite this plugin's `kb/site/` (and sync `kb/extra/` according to the publishing checklist), then run
120
+ `node scripts/rebuild-index.mjs` in this plugin's root directory to rebuild the index and INDEX.md.
121
+
122
+ ## Related plugins
123
+
124
+ This plugin is part of **Pasumao's dsh plugin ecosystem**; other published plugins in the same series can be used alongside it:
125
+
126
+ | Plugin (npm) | GitHub | Description |
127
+ |---|---|---|
128
+ | [dsh-notify](https://www.npmjs.com/package/dsh-notify) | [GitHub repo](https://github.com/Pasumao/dsh-plugin-notify) | Native Windows notifications + system tray |
129
+ | [dsh-plugin-choice-refresh](https://www.npmjs.com/package/dsh-plugin-choice-refresh) | [GitHub repo](https://github.com/Pasumao/dsh-plugin-choice-refresh) | Choice enhancement: regenerate options / more options |
130
+ | [dsh-plugin-image-tools](https://www.npmjs.com/package/dsh-plugin-image-tools) | [GitHub repo](https://github.com/Pasumao/dsh-plugin-image-tools) | Image choice cards + inline images in replies + image handoff for blind models |
131
+ | [dsh-plugin-table-zoom](https://www.npmjs.com/package/dsh-plugin-table-zoom) | [GitHub repo](https://github.com/Pasumao/dsh-plugin-table-zoom) | Floating viewer for long chat tables + one-click copy as Markdown |
132
+ | [dsh-plugin-windows-guard](https://www.npmjs.com/package/dsh-plugin-windows-guard) | [GitHub repo](https://github.com/Pasumao/dsh-plugin-windows-guard) | Windows environment pitfall prevention: rule skills + mojibake detection / dangerous-write interception / encoding diagnosis & repair |
133
+ | [dsh-plugin-workbench](https://www.npmjs.com/package/dsh-plugin-workbench) | [GitHub repo](https://github.com/Pasumao/dsh-plugin-workbench) | VS Code-style file explorer + editable preview |
134
+
135
+ > See [Pasumao · dsh plugins](https://github.com/Pasumao) for the rest of the series; if you find them useful, a ⭐ on GitHub is much appreciated.
136
+
137
+ ## AI-generated content statement
138
+
139
+ The knowledge base content is an organized mirror of the official documentation (sources noted in `kb/meta/source.json`); the index and
140
+ navigation were AI-assisted (DeepSeek Harness), and all of it has been manually verified.
141
+
142
+ ## License
143
+
144
+ MIT
package/README.md CHANGED
@@ -4,6 +4,10 @@
4
4
  ![License](https://img.shields.io/github/license/Pasumao/dsh-plugin-dev-kb)
5
5
  ![AI Assisted](https://img.shields.io/badge/AI-Assisted-8A2BE2)
6
6
 
7
+ [**中文**](./README.md) | [English](./README.en.md)
8
+
9
+ > **168 页官方镜像 · 52 篇补充文档 · 223 文件搜索索引 · 0 运行时依赖**
10
+
7
11
  **写 dsh 插件时的随身官方文档**:把 DeepSeek Harness 官方文档站点
8
12
  <https://deepseek-harness.github.io/deepseek-harness/> 的全部内容整理为 dsh 原生可用的形态——
9
13
  装了这个插件,agent 写插件时自动加载知识库,按任务场景定位文档,不用再翻网页。
@@ -53,7 +57,8 @@ npm install
53
57
  ```
54
58
 
55
59
  本插件是「纯数据 + 技能」插件,不自带 bundle 自动挂载,装完后在 profile 的
56
- `cordis.patch.yml` 末尾加一行手动挂载(挂载为 profile 根层插件行,其 `skills/` 技能进入全局层):
60
+ `cordis.patch.yml` 末尾加一行手动挂载(**唯一的一次性步骤,复制即用**;
61
+ 挂载为 profile 根层插件行,其 `skills/` 技能进入全局层):
57
62
 
58
63
  ```yaml
59
64
  - insert:
@@ -63,6 +68,15 @@ npm install
63
68
 
64
69
  > 重新启动 / 新建 dsh 会话后,`dsh-plugin-dev-kb` 技能才会出现在可用技能列表中(技能清单在会话启动时快照)。
65
70
 
71
+ ## 5 分钟验证
72
+
73
+ 重启后开一个新会话,直接问:
74
+
75
+ > 帮我写一个最小的 dsh 插件
76
+
77
+ agent 会自动加载 `dsh-plugin-dev-kb` 技能(技能清单里可见),按 `kb/meta/topics.md`
78
+ 定位文档后再动手——看到它引用 `kb/site/...` 路径即验证通过。
79
+
66
80
  ## 目录结构
67
81
 
68
82
  ```
@@ -115,6 +129,7 @@ npm run selfcheck # 结构完整 + 入口 / bundle patch 存在性
115
129
  | [dsh-plugin-choice-refresh](https://www.npmjs.com/package/dsh-plugin-choice-refresh) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-choice-refresh) | 选择增强:重新生成选项 / 更多选项 |
116
130
  | [dsh-plugin-image-tools](https://www.npmjs.com/package/dsh-plugin-image-tools) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-image-tools) | 图片选择卡 + 回复内嵌图片 + 盲模型收图 |
117
131
  | [dsh-plugin-table-zoom](https://www.npmjs.com/package/dsh-plugin-table-zoom) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-table-zoom) | 聊天长表格浮窗查看 + 一键复制 Markdown |
132
+ | [dsh-plugin-windows-guard](https://www.npmjs.com/package/dsh-plugin-windows-guard) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-windows-guard) | Windows 环境防坑:守则技能 + 乱码检测 / 危险写拦截 / 编码诊断修复 |
118
133
  | [dsh-plugin-workbench](https://www.npmjs.com/package/dsh-plugin-workbench) | [GitHub 仓库](https://github.com/Pasumao/dsh-plugin-workbench) | VS Code 风格文件浏览器 + 可编辑预览 |
119
134
 
120
135
  > 本系列其余插件见 [Pasumao · dsh 插件](https://github.com/Pasumao);觉得好用欢迎到 GitHub 点 ⭐。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-plugin-dev-kb",
3
- "description": "DeepSeek Harness (dsh) 插件开发知识库:官方文档站点的完整 Markdown 镜像(中英双语 168 页)+ 仓库补充文档(52 篇)+ 主题导航与搜索索引,以 dsh-plugin-dev-kb 技能形式让 agent 在插件开发任务中自动加载定位文档。纯数据插件,无运行时依赖。",
4
- "version": "1.0.6",
3
+ "description": "dsh 插件开发知识库:DeepSeek Harness 官方文档站完整 Markdown 镜像(中英双语 168 页)+ 52 篇仓库补充开发参考 + 主题导航与 223 文件全量搜索索引;以 dsh-plugin-dev-kb 技能让 agent 在插件开发任务中自动加载定位文档。纯数据插件,零运行时依赖。",
4
+ "version": "1.0.8",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -15,6 +15,7 @@
15
15
  "scripts",
16
16
  "cordis.patch.yml",
17
17
  "README.md",
18
+ "README.en.md",
18
19
  "CHANGELOG.md",
19
20
  "LICENSE"
20
21
  ],
@@ -30,9 +31,16 @@
30
31
  "cordis",
31
32
  "plugin",
32
33
  "knowledge",
34
+ "knowledge-base",
33
35
  "documentation",
36
+ "official-docs",
37
+ "documentation-mirror",
34
38
  "kb",
35
- "plugin-development"
39
+ "plugin-development",
40
+ "agent-skills",
41
+ "skills",
42
+ "retrieval",
43
+ "rag"
36
44
  ],
37
45
  "repository": {
38
46
  "type": "git",