dsh-repo-setup 0.1.0 → 0.1.1

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