dsh-repo-setup 0.1.0 → 0.1.2
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/README.en.md +77 -0
- package/README.md +20 -1
- package/dsh.plugin.json +15 -0
- package/lib/index.js +5 -3
- package/package.json +11 -1
package/README.en.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# dsh-repo-setup
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-repo-setup)
|
|
4
|
+
[](https://github.com/gongyijie85/dsh-repo-setup/releases)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://github.com/gongyijie85/dsh-repo-setup)
|
|
7
|
+
[]() []() []() []()
|
|
8
|
+
|
|
9
|
+
Repo bootstrap guidance for the **DeepSeek Harness (DSH)** — the counterpart of
|
|
10
|
+
Anthropic's **claude-code-setup**.
|
|
11
|
+
|
|
12
|
+
Registers one **read-only** tool, `repo_setup_scan`: it inspects a project
|
|
13
|
+
directory (language stack, test setup, docs, git, Docker and database hints)
|
|
14
|
+
and returns setup recommendations — which DSH skill plugins to install, which
|
|
15
|
+
MCP servers to mount, which hygiene files to create. **It never modifies
|
|
16
|
+
anything.**
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
# npm
|
|
22
|
+
dsh plugin --profile web add dsh-repo-setup
|
|
23
|
+
|
|
24
|
+
# GitHub
|
|
25
|
+
dsh plugin --profile web add github:gongyijie85/dsh-repo-setup
|
|
26
|
+
|
|
27
|
+
# Local folder (development)
|
|
28
|
+
dsh plugin --profile web add D:\plugins\dsh-repo-setup
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Restart the profile (`dsh web`). The model then calls `repo_setup_scan`
|
|
32
|
+
automatically when entering a new or unfamiliar repository (or just ask:
|
|
33
|
+
"scan this repo and tell me how to set it up").
|
|
34
|
+
|
|
35
|
+
## Tool: repo_setup_scan
|
|
36
|
+
|
|
37
|
+
| Parameter | Description |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `path` | Project directory to scan. Defaults to the current working directory. |
|
|
40
|
+
|
|
41
|
+
Outputs a Markdown report:
|
|
42
|
+
|
|
43
|
+
- **Detected stack** — stack markers (package.json / pyproject.toml /
|
|
44
|
+
Cargo.toml / go.mod / Dockerfile, ...) including frontend frameworks and
|
|
45
|
+
test runners
|
|
46
|
+
- **Repo hygiene** — missing AGENTS.md, git not initialized, no tests,
|
|
47
|
+
database hints
|
|
48
|
+
- **Recommended installs** — one-command installs:
|
|
49
|
+
- `mattpocock-skills-dsh` (grilling / to-spec / to-tickets / tdd /
|
|
50
|
+
code-review workflow)
|
|
51
|
+
- `superpowers-dsh` (planning → TDD → review methodology)
|
|
52
|
+
- `dsh-ponytail-skills` (anti-over-engineering)
|
|
53
|
+
- `dsh-claude-mem` (optional: cross-session memory)
|
|
54
|
+
- `dsh-mcp-manager` (to mount the MCP servers below)
|
|
55
|
+
- MCP servers: context7 (library docs), playwright (frontend), postgres,
|
|
56
|
+
github (depending on what the scan detects)
|
|
57
|
+
|
|
58
|
+
## How it works
|
|
59
|
+
|
|
60
|
+
- **Bundle layer** — `cordis.patch.yml` inserts a plugin row over the dsh-base
|
|
61
|
+
layer.
|
|
62
|
+
- **Tool** — `lib/index.js` registers `repo_setup_scan` with `defineTool`
|
|
63
|
+
from `@deepseek-ai/dsh-tools`; the scan is read-only (a bounded set of known
|
|
64
|
+
files + top-level directory listing), with no writes at all.
|
|
65
|
+
- **Zero runtime dependencies** — Node built-ins plus the harness-injected
|
|
66
|
+
`@deepseek-ai/dsh-tools` peer dependency.
|
|
67
|
+
|
|
68
|
+
## Development / verification
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
node --check lib/index.js
|
|
72
|
+
node scripts/verify-tool.mjs # fake-ctx registration + scan against real dirs
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
MIT. See [LICENSE](LICENSE).
|
package/README.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# dsh-repo-setup
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-repo-setup)
|
|
4
|
+
[](https://github.com/gongyijie85/dsh-repo-setup/releases)
|
|
5
|
+
[](https://github.com/gongyijie85/dsh-repo-setup/actions/workflows/ci.yml)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](https://github.com/gongyijie85/dsh-repo-setup)
|
|
8
|
+
[]() []() []() []()
|
|
9
|
+
|
|
10
|
+
<div align="center">
|
|
11
|
+
|
|
12
|
+
[English](README.en.md) | **简体中文**
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
3
16
|
仓库体检引导插件 —— Anthropic **claude-code-setup** 的 DeepSeek Harness 版。
|
|
4
17
|
|
|
5
18
|
注册一个**只读**工具 `repo_setup_scan`:扫描项目目录的语言栈、测试设置、
|
|
@@ -8,6 +21,8 @@
|
|
|
8
21
|
|
|
9
22
|
## 安装
|
|
10
23
|
|
|
24
|
+
**支持的 DSH 版本**:`>=0.1.1-rc.2`(已在上线版本验证,兼容更高版本)。
|
|
25
|
+
|
|
11
26
|
```sh
|
|
12
27
|
# npm
|
|
13
28
|
dsh plugin --profile web add dsh-repo-setup
|
|
@@ -35,8 +50,12 @@ dsh plugin --profile web add D:\plugins\dsh-repo-setup
|
|
|
35
50
|
- **Repo hygiene** — AGENTS.md 缺失、git 未初始化、无测试、数据库线索
|
|
36
51
|
- **Recommended installs** — 一键命令:
|
|
37
52
|
- `mattpocock-skills-dsh`(grilling/to-spec/to-tickets/tdd/code-review 工作流)
|
|
53
|
+
- `mattpocock-skills-dsh-zh`(中文技能版,与英文版二选一)
|
|
38
54
|
- `superpowers-dsh`(规划→TDD→评审方法论)
|
|
39
|
-
- `dsh-ponytail`(防过度工程)
|
|
55
|
+
- `dsh-ponytail-skills`(防过度工程)
|
|
56
|
+
- `dsh-ecc-skills`(ECC 273 技能:模式/编排/垂直领域)
|
|
57
|
+
- `dsh-claude-mem`(可选:跨会话记忆)
|
|
58
|
+
- `dsh-mcp-manager`(挂载下方 MCP 用)
|
|
40
59
|
- MCP:context7(库文档)、playwright(前端)、postgres、github(按检测结果)
|
|
41
60
|
|
|
42
61
|
## 工作原理
|
package/dsh.plugin.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "gongyijie85/dsh-repo-setup",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"description": "Repo bootstrap guidance for DeepSeek Harness: read-only repo_setup_scan tool that detects stack/tests/docs/git/db and recommends skill plugins, MCP servers and hygiene files to install (claude-code-setup counterpart)",
|
|
6
|
+
"engines": {
|
|
7
|
+
"dsh": ">=0.1.1-rc.2"
|
|
8
|
+
},
|
|
9
|
+
"contributes": {
|
|
10
|
+
"tools": [
|
|
11
|
+
"repo_setup_scan"
|
|
12
|
+
],
|
|
13
|
+
"skills": []
|
|
14
|
+
}
|
|
15
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -138,9 +138,11 @@ async function scanRepo(root) {
|
|
|
138
138
|
installs.push('superpowers-dsh — brainstorming → plans → TDD → review methodology')
|
|
139
139
|
installs.push('dsh-ponytail — lazy senior dev mode (anti-over-engineering)')
|
|
140
140
|
if (hasTests || stacks.some((s) => s.includes('test'))) installs.push('(tdd skill is included in both packs above)')
|
|
141
|
-
lines.push(`- \`dsh plugin --profile web add
|
|
142
|
-
lines.push(`- \`dsh plugin --profile web add
|
|
143
|
-
lines.push(`- \`dsh plugin --profile web add
|
|
141
|
+
lines.push(`- \`dsh plugin --profile web add mattpocock-skills-dsh\``)
|
|
142
|
+
lines.push(`- \`dsh plugin --profile web add superpowers-dsh\``)
|
|
143
|
+
lines.push(`- \`dsh plugin --profile web add dsh-ponytail-skills\``)
|
|
144
|
+
lines.push(`- \`dsh plugin --profile web add dsh-ecc-skills\` (ECC skills, 273 curated)`)
|
|
145
|
+
lines.push(`- \`dsh plugin --profile web add mattpocock-skills-dsh-zh\` (中文技能版,二选一 with the English pack)`)
|
|
144
146
|
lines.push(`- \`dsh plugin --profile web add github:Bleed00/dsh-claude-mem\` (optional: cross-session memory)`)
|
|
145
147
|
lines.push(`- \`dsh plugin --profile web add github:Nichts0v0/dsh-mcp-manager\` (to mount the MCP servers below)`)
|
|
146
148
|
if (stacks.some((s) => s.includes('Node') || s.includes('Rust') || s.includes('Python') || s.includes('Go'))) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-repo-setup",
|
|
3
3
|
"description": "Repo bootstrap guidance for DeepSeek Harness: read-only repo_setup_scan tool that detects stack/tests/docs/git/db and recommends skill plugins, MCP servers and hygiene files to install (claude-code-setup counterpart)",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"dsh": ">=0.1.1-rc.2"
|
|
9
|
+
},
|
|
7
10
|
"main": "lib/index.js",
|
|
8
11
|
"exports": {
|
|
9
12
|
".": "./lib/index.js",
|
|
@@ -11,8 +14,10 @@
|
|
|
11
14
|
},
|
|
12
15
|
"files": [
|
|
13
16
|
"lib",
|
|
17
|
+
"dsh.plugin.json",
|
|
14
18
|
"cordis.patch.yml",
|
|
15
19
|
"README.md",
|
|
20
|
+
"README.en.md",
|
|
16
21
|
"LICENSE"
|
|
17
22
|
],
|
|
18
23
|
"license": "MIT",
|
|
@@ -44,6 +49,11 @@
|
|
|
44
49
|
"dsh": {
|
|
45
50
|
"bundle": {
|
|
46
51
|
"patch": "./cordis.patch.yml"
|
|
52
|
+
},
|
|
53
|
+
"compatibility": {
|
|
54
|
+
"dshReleases": {
|
|
55
|
+
"0.1.1-rc.2": "compatible"
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
}
|
|
49
59
|
}
|