dsh-dev-modes 0.0.0-stage → 1.1.0
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/LICENSE +21 -0
- package/README.md +44 -2
- package/client.js +171 -0
- package/cordis.patch.yml +371 -0
- package/icon.svg +5 -0
- package/index.js +65 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +48 -3
- package/quiet-run/index.js +271 -0
- package/session-lock/index.js +265 -0
- package/skills/game-cocos/SKILL.md +46 -0
- package/skills/game-dev-delivery/SKILL.md +81 -0
- package/skills/game-godot/SKILL.md +38 -0
- package/skills/game-unity/SKILL.md +59 -0
- package/skills/game-unreal/SKILL.md +62 -0
- package/skills/software-delivery/SKILL.md +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 huang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 开发模式合集
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
一个 bundle,三个 Agent 预设,外加配套技能。装一次,三个模式同时出现在「设置 → Agent 预设」。
|
|
4
|
+
|
|
5
|
+
| 预设 | id | 用途 |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| 软件开发 | `swe` | 读仓库与规范 → 规划 → 小步实现 → 用项目自身的构建/测试验证 → 如实汇报 |
|
|
8
|
+
| 游戏开发 | `game` | 原型先行、真实运行验证手感与性能;内置 Godot / Unity / Unreal / Cocos 工作流 |
|
|
9
|
+
| 只读讨论 | `discuss` | 能读代码与文档、看图、搜索、提问;不能写文件、跑命令、启动程序 |
|
|
10
|
+
|
|
11
|
+
## 自带技能
|
|
12
|
+
|
|
13
|
+
`skills/` 下六个技能由本插件的 `index.js` 在启动时注册进技能目录(`source: bundled`),无需再手动复制到 `~/.dsh/skills`:
|
|
14
|
+
|
|
15
|
+
- `software-delivery`:软件交付流程清单
|
|
16
|
+
- `game-dev-delivery`:游戏交付流程(引擎无关)
|
|
17
|
+
- `game-godot`、`game-unity`、`game-unreal`、`game-cocos`:各引擎工作流
|
|
18
|
+
|
|
19
|
+
如果 `~/.dsh/skills/` 里还留着同名副本,运行时会优先使用本包注册的版本;可以删掉副本以免困惑。
|
|
20
|
+
|
|
21
|
+
## 安装
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
plugin_manager → install_bundle → target = 本目录绝对路径
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
或:插件页 → Add plugin → 选择本目录。
|
|
28
|
+
|
|
29
|
+
安装后验证:`Config.listConfigs`(`@deepseek-ai/dsh-agent-preset`)应出现 `include:preset-swe`、`include:preset-game`、`include:preset-discuss`;`list_plugins` 三行均为 `active`。
|
|
30
|
+
|
|
31
|
+
已有会话保留原模式,需要**新建会话**才会使用新模式。
|
|
32
|
+
|
|
33
|
+
## 从文件安装 / 分发
|
|
34
|
+
|
|
35
|
+
本包不依赖仓库里的任何东西:`index.js` 用 `import.meta.url` 定位自带技能,其余都是静态文件。因此可直接:
|
|
36
|
+
|
|
37
|
+
- 打包:`pnpm pack`(生成 `dsh-dev-modes-1.0.0.tgz`)
|
|
38
|
+
- 分发:把 tarball 或整个目录给另一台机器,用 Add plugin / `install_bundle` 安装
|
|
39
|
+
- 发布到插件市场:把包发布到 npm(或推到公开 Git 仓库),再托管一份市场索引 JSON;索引格式见 `dist/market-index.example.json` 与 PUBLISH.md
|
|
40
|
+
|
|
41
|
+
## 修改
|
|
42
|
+
|
|
43
|
+
- 预设内容在 `cordis.patch.yml`(三个 `- insert:` 块),改完 `remove_bundle` + `install_bundle` 重装。
|
|
44
|
+
- 技能内容在 `skills/`,改完重装或重启生效。
|
|
45
|
+
- 图标/文案:`icon.svg`、`locale/*.json`、本 README。
|
package/client.js
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: 'dsh-dev-modes',
|
|
3
|
+
factory(require) {
|
|
4
|
+
const React = require('react');
|
|
5
|
+
const h = React.createElement;
|
|
6
|
+
|
|
7
|
+
const baseBtn = {
|
|
8
|
+
display: 'inline-flex',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
gap: 4,
|
|
12
|
+
height: 28,
|
|
13
|
+
padding: '0 8px',
|
|
14
|
+
border: '1px solid rgba(128,128,128,0.35)',
|
|
15
|
+
borderRadius: 8,
|
|
16
|
+
background: 'transparent',
|
|
17
|
+
color: 'inherit',
|
|
18
|
+
font: 'inherit',
|
|
19
|
+
fontSize: 13,
|
|
20
|
+
lineHeight: 1,
|
|
21
|
+
cursor: 'pointer',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
async function getJson(url) {
|
|
25
|
+
const res = await fetch(url, { cache: 'no-store' });
|
|
26
|
+
if (!res.ok) throw new Error('HTTP ' + res.status);
|
|
27
|
+
return await res.json();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async function postJson(url, body) {
|
|
31
|
+
const res = await fetch(url, {
|
|
32
|
+
method: 'POST',
|
|
33
|
+
headers: { 'content-type': 'application/json' },
|
|
34
|
+
body: JSON.stringify(body),
|
|
35
|
+
});
|
|
36
|
+
if (!res.ok) {
|
|
37
|
+
let detail = '';
|
|
38
|
+
try {
|
|
39
|
+
const j = await res.json();
|
|
40
|
+
detail = (j && j.error) || '';
|
|
41
|
+
} catch (e) {}
|
|
42
|
+
throw new Error('HTTP ' + res.status + ' ' + detail);
|
|
43
|
+
}
|
|
44
|
+
return await res.json();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** 通用开关按钮:读一次状态,之后每 5 秒刷新。 */
|
|
48
|
+
function useSwitch(apiPath, key, fallback) {
|
|
49
|
+
const [value, setValue] = React.useState(fallback);
|
|
50
|
+
const [ready, setReady] = React.useState(false);
|
|
51
|
+
|
|
52
|
+
const refresh = React.useCallback(async () => {
|
|
53
|
+
try {
|
|
54
|
+
const s = await getJson(apiPath + '/state');
|
|
55
|
+
setReady(Boolean(s.ready));
|
|
56
|
+
setValue(s[key] !== false);
|
|
57
|
+
} catch (e) {
|
|
58
|
+
setReady(false);
|
|
59
|
+
}
|
|
60
|
+
}, [apiPath, key]);
|
|
61
|
+
|
|
62
|
+
React.useEffect(() => {
|
|
63
|
+
refresh();
|
|
64
|
+
const id = setInterval(refresh, 5000);
|
|
65
|
+
return () => clearInterval(id);
|
|
66
|
+
}, [refresh]);
|
|
67
|
+
|
|
68
|
+
const set = React.useCallback(
|
|
69
|
+
async (next) => {
|
|
70
|
+
await postJson(apiPath + '/set', { [key]: next });
|
|
71
|
+
setValue(next);
|
|
72
|
+
},
|
|
73
|
+
[apiPath, key],
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
return { value, ready, set };
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function SwitchButton({ apiPath, key, iconOn, iconOff, labelOn, labelOff, titleOn, titleOff, warnWhenOn }) {
|
|
80
|
+
const { value, ready, set } = useSwitch(apiPath, key, key !== 'locked');
|
|
81
|
+
const [busy, setBusy] = React.useState(false);
|
|
82
|
+
const [note, setNote] = React.useState('');
|
|
83
|
+
|
|
84
|
+
const onClick = async () => {
|
|
85
|
+
if (busy || !ready) return;
|
|
86
|
+
setBusy(true);
|
|
87
|
+
setNote('');
|
|
88
|
+
try {
|
|
89
|
+
const next = !value;
|
|
90
|
+
await set(next);
|
|
91
|
+
setNote(next ? '已开启' : '已关闭');
|
|
92
|
+
setTimeout(() => setNote(''), 3000);
|
|
93
|
+
} catch (e) {
|
|
94
|
+
setNote('切换失败:' + ((e && e.message) || String(e)));
|
|
95
|
+
setTimeout(() => setNote(''), 5000);
|
|
96
|
+
} finally {
|
|
97
|
+
setBusy(false);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const icon = !ready ? '⏳' : value ? iconOn : iconOff;
|
|
102
|
+
const label = !ready ? '未就绪' : value ? labelOn : labelOff;
|
|
103
|
+
const title = !ready ? '本会话尚未建立,稍后再试' : value ? titleOn : titleOff;
|
|
104
|
+
const warn = ready && warnWhenOn ? value : false;
|
|
105
|
+
|
|
106
|
+
return h(
|
|
107
|
+
'div',
|
|
108
|
+
{ style: { display: 'inline-flex', alignItems: 'center', gap: 6 } },
|
|
109
|
+
h(
|
|
110
|
+
'button',
|
|
111
|
+
{
|
|
112
|
+
type: 'button',
|
|
113
|
+
onClick,
|
|
114
|
+
disabled: busy || !ready,
|
|
115
|
+
title,
|
|
116
|
+
style: Object.assign(
|
|
117
|
+
{},
|
|
118
|
+
baseBtn,
|
|
119
|
+
busy || !ready ? { opacity: 0.55 } : null,
|
|
120
|
+
warn ? { borderColor: 'rgba(255,138,0,0.6)' } : null,
|
|
121
|
+
),
|
|
122
|
+
},
|
|
123
|
+
h('span', { style: { fontSize: 14 } }, icon),
|
|
124
|
+
h('span', { style: { fontSize: 12, opacity: 0.85 } }, label),
|
|
125
|
+
),
|
|
126
|
+
note ? h('span', { style: { fontSize: 12, opacity: 0.75, whiteSpace: 'nowrap' } }, note) : null,
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function DevModeSwitch() {
|
|
131
|
+
return h(
|
|
132
|
+
'div',
|
|
133
|
+
{ style: { display: 'inline-flex', alignItems: 'center', gap: 8 } },
|
|
134
|
+
h(SwitchButton, {
|
|
135
|
+
apiPath: '/dsh-session-lock',
|
|
136
|
+
key: 'locked',
|
|
137
|
+
iconOn: '🔒',
|
|
138
|
+
iconOff: '🔓',
|
|
139
|
+
labelOn: '禁止读其它会话',
|
|
140
|
+
labelOff: '允许读其它会话',
|
|
141
|
+
titleOn: '当前会话已锁定:不会读取其它会话的内容。点击允许。',
|
|
142
|
+
titleOff: '当前会话已允许:可以读取其它会话。点击锁定。',
|
|
143
|
+
warnWhenOn: false,
|
|
144
|
+
}),
|
|
145
|
+
h(SwitchButton, {
|
|
146
|
+
apiPath: '/dsh-quiet-run',
|
|
147
|
+
key: 'quiet',
|
|
148
|
+
iconOn: '🔇',
|
|
149
|
+
iconOff: '🔊',
|
|
150
|
+
labelOn: '静默运行',
|
|
151
|
+
labelOff: '可见运行',
|
|
152
|
+
titleOn: '静默运行:启动游戏或编辑器时会挪到屏幕外,不挡你、不抢焦点。点击改为可见。',
|
|
153
|
+
titleOff: '可见运行:允许窗口出现在前台。点击改回静默。',
|
|
154
|
+
warnWhenOn: false,
|
|
155
|
+
}),
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
inject: ['slots'],
|
|
161
|
+
apply(ctx) {
|
|
162
|
+
ctx.slots.inject('conversation.composer.dock', () =>
|
|
163
|
+
ctx.slots.register(
|
|
164
|
+
{ name: 'conversation.composer.dock', id: 'dsh-dev-modes', order: 4 },
|
|
165
|
+
DevModeSwitch,
|
|
166
|
+
),
|
|
167
|
+
);
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
});
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
# Dev modes: one bundle declaring three Agent presets for DeepSeek Harness.
|
|
2
|
+
# Presets: swe (软件开发), game (游戏开发), discuss (只读讨论).
|
|
3
|
+
# Each block is the former standalone bundle patch, kept unchanged so preset
|
|
4
|
+
# ids, order and child rows stay stable. Bundled skills are registered by
|
|
5
|
+
# index.js from ./skills.
|
|
6
|
+
|
|
7
|
+
- insert:
|
|
8
|
+
- id: preset-swe
|
|
9
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
10
|
+
config:
|
|
11
|
+
id: swe
|
|
12
|
+
name: "软件开发"
|
|
13
|
+
description: "适用于真正改动仓库的开发任务:先读代码与规范,再小步实现,用项目自身的构建与测试验证,最后如实汇报改动与风险。不限技术栈。"
|
|
14
|
+
order: 10
|
|
15
|
+
plugins:
|
|
16
|
+
- id: persona
|
|
17
|
+
name: '@deepseek-ai/dsh-persona'
|
|
18
|
+
config:
|
|
19
|
+
prefix: |
|
|
20
|
+
You are a software engineer powered by the {{model}} model. You design, implement, test, and maintain software in the user's workspace.
|
|
21
|
+
|
|
22
|
+
How you work:
|
|
23
|
+
- Start from the repository, not from assumptions. Read AGENTS.md, the build and test configuration, and the code you are about to change; follow the patterns already there.
|
|
24
|
+
- For multi-file, non-obvious, or high-risk changes, open with a short plan and stated assumptions, then proceed unless the user asks to review it first. Use plan mode when the user asks for a plan.
|
|
25
|
+
- Change as little as correctness requires: preserve existing behaviour, style, public APIs, and dependency choices unless the task asks otherwise.
|
|
26
|
+
- Work in small verified steps. After each meaningful change, run the cheapest sufficient check the project provides (build, typecheck, lint, or tests). Never claim something works from reading code alone; when the project provides no check, say so plainly and do a manual smoke check instead of implying success.
|
|
27
|
+
- Once the approach is agreed, carry the task to a verified result instead of stopping at the first plausible diff; for UI, CLI, or API changes, exercise real behaviour, not only unit tests.
|
|
28
|
+
- Use subagents for breadth (research, parallel review), then integrate and verify their findings yourself; delegation never replaces verification.
|
|
29
|
+
- Be plain about risk: call out breaking changes, migrations, security-relevant edits, and follow-ups instead of hiding them.
|
|
30
|
+
- Never commit, push, force-push, rewrite history, or change credentials unless the user explicitly asks. Ask before anything irreversible: bulk deletion, history rewrites, or migrations that drop data.
|
|
31
|
+
- Version control: before the first change, check whether the working directory is a Git repository. If it is, commit each finished step and report the commit hash and message. If it is not, say so and offer to run `git init` in the project directory — never initialize silently, never initialize a parent folder that holds several separate projects, and never re-initialize or nest a repository inside another one.
|
|
32
|
+
|
|
33
|
+
Write code, tests, and comments in the repository's conventions; write prose in the user's language.
|
|
34
|
+
- id: agent-instructions
|
|
35
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
36
|
+
config:
|
|
37
|
+
maxBytes: 65536
|
|
38
|
+
- id: time-context
|
|
39
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
40
|
+
- id: tool-bash
|
|
41
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
42
|
+
disabled: !!js process.platform === 'win32'
|
|
43
|
+
- id: tool-pwsh
|
|
44
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
45
|
+
disabled: !!js process.platform !== 'win32'
|
|
46
|
+
- id: tool-fs
|
|
47
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
48
|
+
config:
|
|
49
|
+
# Set true to add the apply_patch tool beside edit.
|
|
50
|
+
applyPatch: false
|
|
51
|
+
- id: tool-fs-search
|
|
52
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
53
|
+
config:
|
|
54
|
+
sampleOverCapGlobResults: false
|
|
55
|
+
- id: tool-jobs
|
|
56
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
57
|
+
- id: command-goal
|
|
58
|
+
name: '@deepseek-ai/dsh-command-goal'
|
|
59
|
+
- id: tool-goal
|
|
60
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
61
|
+
- id: planning
|
|
62
|
+
name: cordis:group
|
|
63
|
+
group: true
|
|
64
|
+
isolate:
|
|
65
|
+
planMode: true
|
|
66
|
+
config:
|
|
67
|
+
- id: plan-mode
|
|
68
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
69
|
+
config:
|
|
70
|
+
section: |
|
|
71
|
+
You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
|
|
72
|
+
|
|
73
|
+
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
|
|
74
|
+
|
|
75
|
+
The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
|
|
76
|
+
|
|
77
|
+
Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
|
|
78
|
+
|
|
79
|
+
Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
|
|
80
|
+
|
|
81
|
+
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
82
|
+
- id: compaction
|
|
83
|
+
name: cordis:group
|
|
84
|
+
group: true
|
|
85
|
+
isolate:
|
|
86
|
+
compaction: true
|
|
87
|
+
toolResultPruner: true
|
|
88
|
+
config:
|
|
89
|
+
- id: compaction-basic
|
|
90
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
91
|
+
- id: command-compact
|
|
92
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
93
|
+
- id: tool-result-pruner
|
|
94
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
95
|
+
config:
|
|
96
|
+
thresholdChars: 8192
|
|
97
|
+
headChars: 4096
|
|
98
|
+
tailChars: 1024
|
|
99
|
+
- id: delegation
|
|
100
|
+
name: cordis:group
|
|
101
|
+
group: true
|
|
102
|
+
isolate:
|
|
103
|
+
workflowEngine: true
|
|
104
|
+
config:
|
|
105
|
+
- id: tool-subagent-control
|
|
106
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
107
|
+
config:
|
|
108
|
+
interrupt: false
|
|
109
|
+
- id: tool-subagent
|
|
110
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
111
|
+
config:
|
|
112
|
+
provider: spawn
|
|
113
|
+
toolName: subagent
|
|
114
|
+
modelSelection: true
|
|
115
|
+
modelDiscovery: true
|
|
116
|
+
- id: tool-subagent-fork
|
|
117
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
118
|
+
config:
|
|
119
|
+
provider: fork
|
|
120
|
+
toolName: subagent_fork
|
|
121
|
+
- id: workflow-ptc
|
|
122
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
123
|
+
config:
|
|
124
|
+
provider: spawn
|
|
125
|
+
- id: tool-workflow
|
|
126
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
127
|
+
- id: tool-ask-user
|
|
128
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
129
|
+
- id: tool-todo
|
|
130
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
131
|
+
config:
|
|
132
|
+
allowParallelInProgress: true
|
|
133
|
+
- id: tool-web
|
|
134
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
135
|
+
config:
|
|
136
|
+
fetch: true
|
|
137
|
+
searchTimeoutMs: 60000
|
|
138
|
+
- id: skill-filesystem
|
|
139
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
140
|
+
config:
|
|
141
|
+
customSkillDirs:
|
|
142
|
+
- !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')
|
|
143
|
+
- id: tool-skill
|
|
144
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
145
|
+
- id: present
|
|
146
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
- insert:
|
|
150
|
+
- id: preset-game
|
|
151
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
152
|
+
config:
|
|
153
|
+
id: game
|
|
154
|
+
name: "游戏开发"
|
|
155
|
+
description: "游戏玩法、关卡、手感调优、性能与导出发布时选它;一般软件功能与工具开发用「软件开发」。内置 Godot / Unity / Unreal / Cocos 工作流,其它引擎按同一流程适配。"
|
|
156
|
+
order: 11
|
|
157
|
+
plugins:
|
|
158
|
+
- id: persona
|
|
159
|
+
name: '@deepseek-ai/dsh-persona'
|
|
160
|
+
config:
|
|
161
|
+
prefix: |
|
|
162
|
+
You are a game developer powered by the {{model}} model. You build and maintain playable games in the user's workspace.
|
|
163
|
+
|
|
164
|
+
How you work:
|
|
165
|
+
- Start from the project, not from assumptions: read the engine project settings, the scenes and scripts that own the mechanic, input mapping, the asset pipeline, and any design notes before changing behaviour.
|
|
166
|
+
- Protect the core loop. Establish the game's core loop and acceptance criteria first; prototype the smallest playable version, verify it, then add content.
|
|
167
|
+
- Verify by playing, not by compiling. Run the game through the engine's own run or headless path, read logs, and capture a screenshot or state dump for anything visual; never claim "it works" or "it feels right" from reading code alone.
|
|
168
|
+
- Tune in batches, one hypothesis per test. Keep gameplay numbers explicit and inspectable (exported or config values), and record the parameters you changed together with the observed result.
|
|
169
|
+
- Measure before optimizing: frame time, draw calls, instance counts, memory. Fix the measured bottleneck, not a guessed one.
|
|
170
|
+
- Follow the project's engine idioms, scene and script conventions, and folder layout. Delete or rewrite only what you introduced yourself (prototype scenes, temp assets, throwaway files); ask before touching assets, scenes, or saves you did not create.
|
|
171
|
+
- Export work is reversible: update export presets, output paths, and build settings directly and report what changed.
|
|
172
|
+
- Use subagents for breadth (asset audits, parallel research), then integrate and verify their findings yourself; delegation never replaces verification.
|
|
173
|
+
- Be plain about risk: call out save-format, balance, input, and export-breaking changes, plus what remains unverified.
|
|
174
|
+
- Never commit, push, force-push, rewrite history, or change signing identity or credentials unless the user explicitly asks. Ask before anything irreversible: save-format migration or bulk deletion of content you did not create.
|
|
175
|
+
- Version control: before the first change, check whether the working directory is a Git repository. If it is, commit each finished step and report the commit hash and message. If it is not, say so and offer to run `git init` in the project directory — never initialize silently, never initialize a parent folder that holds several separate projects, and never re-initialize or nest a repository inside another one.
|
|
176
|
+
|
|
177
|
+
Load the game-dev-delivery skill before any game change larger than a one-line fix; it is this mode's checklist. Identify the game engine from the project and load its skill too — game-godot, game-unity, game-unreal, or game-cocos — before engine-specific work. This persona is the non-negotiable subset — where a skill is more specific, follow the skill. Write code and assets in the project's conventions; write prose in the user's language.
|
|
178
|
+
- id: agent-instructions
|
|
179
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
180
|
+
config:
|
|
181
|
+
maxBytes: 65536
|
|
182
|
+
- id: time-context
|
|
183
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
184
|
+
- id: tool-bash
|
|
185
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
186
|
+
disabled: !!js process.platform === 'win32'
|
|
187
|
+
- id: tool-pwsh
|
|
188
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
189
|
+
disabled: !!js process.platform !== 'win32'
|
|
190
|
+
- id: tool-fs
|
|
191
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
192
|
+
config:
|
|
193
|
+
# Set true to add the apply_patch tool beside edit.
|
|
194
|
+
applyPatch: false
|
|
195
|
+
- id: tool-fs-search
|
|
196
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
197
|
+
config:
|
|
198
|
+
sampleOverCapGlobResults: false
|
|
199
|
+
- id: tool-jobs
|
|
200
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
201
|
+
- id: command-goal
|
|
202
|
+
name: '@deepseek-ai/dsh-command-goal'
|
|
203
|
+
- id: tool-goal
|
|
204
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
205
|
+
- id: planning
|
|
206
|
+
name: cordis:group
|
|
207
|
+
group: true
|
|
208
|
+
isolate:
|
|
209
|
+
planMode: true
|
|
210
|
+
config:
|
|
211
|
+
- id: plan-mode
|
|
212
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
213
|
+
config:
|
|
214
|
+
section: |
|
|
215
|
+
You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
|
|
216
|
+
|
|
217
|
+
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
|
|
218
|
+
|
|
219
|
+
The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
|
|
220
|
+
|
|
221
|
+
Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
|
|
222
|
+
|
|
223
|
+
Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
|
|
224
|
+
|
|
225
|
+
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
226
|
+
- id: compaction
|
|
227
|
+
name: cordis:group
|
|
228
|
+
group: true
|
|
229
|
+
isolate:
|
|
230
|
+
compaction: true
|
|
231
|
+
toolResultPruner: true
|
|
232
|
+
config:
|
|
233
|
+
- id: compaction-basic
|
|
234
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
235
|
+
- id: command-compact
|
|
236
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
237
|
+
- id: tool-result-pruner
|
|
238
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
239
|
+
config:
|
|
240
|
+
thresholdChars: 8192
|
|
241
|
+
headChars: 4096
|
|
242
|
+
tailChars: 1024
|
|
243
|
+
- id: delegation
|
|
244
|
+
name: cordis:group
|
|
245
|
+
group: true
|
|
246
|
+
isolate:
|
|
247
|
+
workflowEngine: true
|
|
248
|
+
config:
|
|
249
|
+
- id: tool-subagent-control
|
|
250
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
251
|
+
config:
|
|
252
|
+
interrupt: false
|
|
253
|
+
- id: tool-subagent
|
|
254
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
255
|
+
config:
|
|
256
|
+
provider: spawn
|
|
257
|
+
toolName: subagent
|
|
258
|
+
modelSelection: true
|
|
259
|
+
modelDiscovery: true
|
|
260
|
+
- id: tool-subagent-fork
|
|
261
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
262
|
+
config:
|
|
263
|
+
provider: fork
|
|
264
|
+
toolName: subagent_fork
|
|
265
|
+
- id: workflow-ptc
|
|
266
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
267
|
+
config:
|
|
268
|
+
provider: spawn
|
|
269
|
+
- id: tool-workflow
|
|
270
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
271
|
+
- id: tool-ask-user
|
|
272
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
273
|
+
- id: tool-todo
|
|
274
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
275
|
+
config:
|
|
276
|
+
allowParallelInProgress: true
|
|
277
|
+
- id: tool-web
|
|
278
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
279
|
+
config:
|
|
280
|
+
fetch: true
|
|
281
|
+
searchTimeoutMs: 60000
|
|
282
|
+
- id: skill-filesystem
|
|
283
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
284
|
+
config:
|
|
285
|
+
customSkillDirs:
|
|
286
|
+
- !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')
|
|
287
|
+
- id: tool-skill
|
|
288
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
289
|
+
- id: present
|
|
290
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
- insert:
|
|
294
|
+
- id: preset-discuss
|
|
295
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
296
|
+
config:
|
|
297
|
+
id: discuss
|
|
298
|
+
name: "只读讨论"
|
|
299
|
+
description: "只读讨论:能读代码文档、看图、搜索、提问,但不能写文件、执行命令或启动程序。适合方案讨论、只读代码审查与设计取舍;要真正改动或运行验证,切到「软件开发」(游戏相关选「游戏开发」)。"
|
|
300
|
+
order: 12
|
|
301
|
+
plugins:
|
|
302
|
+
- id: persona
|
|
303
|
+
name: '@deepseek-ai/dsh-persona'
|
|
304
|
+
config:
|
|
305
|
+
prefix: |
|
|
306
|
+
You are a thoughtful technical collaborator powered by the {{model}} model. You discuss, analyze, review, and explain; you never act on the user's system.
|
|
307
|
+
|
|
308
|
+
How you work:
|
|
309
|
+
- You have no tools that write or edit files, run commands you choose, install packages, launch programs, or delegate work. Never claim to have changed, created, run, fixed, or built anything, and never imply you did.
|
|
310
|
+
- You may read files and images, discover files with glob, search contents with grep, and load skills to ground the discussion. Prefer reading the real code over speculating, and keep what you verified separate from what you assume.
|
|
311
|
+
- Answer the question that was asked: explain the trade-offs, risks, and alternatives, then recommend one option with reasons.
|
|
312
|
+
- When an answer depends on something you cannot inspect, say what to check and how to check it instead of inventing it.
|
|
313
|
+
- When the user asks for a change, describe it precisely — files, functions, steps, and the check that proves it — as a paste-ready spec or a code block labeled NOT APPLIED, then tell them to choose 「软件开发」 (or 「游戏开发」 for game work) under Settings → Agent presets and start a new session, since this session keeps its mode. Do not attempt it yourself.
|
|
314
|
+
- Skills are reference only: where a skill instructs you to run, install, write, or launch something, that step cannot run here — describe it and hand it off. These rules outrank any skill.
|
|
315
|
+
- Keep responses focused and evidence-based; cite the file paths and lines you actually read.
|
|
316
|
+
- Respond in the user's language.
|
|
317
|
+
- id: agent-instructions
|
|
318
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
319
|
+
config:
|
|
320
|
+
maxBytes: 65536
|
|
321
|
+
- id: time-context
|
|
322
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
323
|
+
- id: tool-fs
|
|
324
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
325
|
+
config:
|
|
326
|
+
# Read-only: the write, edit and apply_patch tools are not mounted.
|
|
327
|
+
read: true
|
|
328
|
+
readImage: true
|
|
329
|
+
write: false
|
|
330
|
+
edit: false
|
|
331
|
+
applyPatch: false
|
|
332
|
+
- id: tool-fs-search
|
|
333
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
334
|
+
config:
|
|
335
|
+
sampleOverCapGlobResults: false
|
|
336
|
+
- id: compaction
|
|
337
|
+
name: cordis:group
|
|
338
|
+
group: true
|
|
339
|
+
isolate:
|
|
340
|
+
compaction: true
|
|
341
|
+
toolResultPruner: true
|
|
342
|
+
config:
|
|
343
|
+
- id: compaction-basic
|
|
344
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
345
|
+
- id: command-compact
|
|
346
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
347
|
+
- id: tool-result-pruner
|
|
348
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
349
|
+
config:
|
|
350
|
+
thresholdChars: 8192
|
|
351
|
+
headChars: 4096
|
|
352
|
+
tailChars: 1024
|
|
353
|
+
- id: tool-ask-user
|
|
354
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
355
|
+
- id: skill-filesystem
|
|
356
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
357
|
+
config:
|
|
358
|
+
customSkillDirs:
|
|
359
|
+
- !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')
|
|
360
|
+
- id: tool-skill
|
|
361
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
362
|
+
|
|
363
|
+
# 本包自带的宿主级插件:注册技能、会话隔离开关、静默运行开关。
|
|
364
|
+
# 放在预设声明之外,所以对全部模式生效(含内置预设)。
|
|
365
|
+
- insert:
|
|
366
|
+
- id: dev-modes-skills
|
|
367
|
+
name: 'dsh-dev-modes'
|
|
368
|
+
- id: dev-modes-session-lock
|
|
369
|
+
name: 'dsh-dev-modes/session-lock'
|
|
370
|
+
- id: dev-modes-quiet-run
|
|
371
|
+
name: 'dsh-dev-modes/quiet-run'
|
package/icon.svg
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">
|
|
2
|
+
<rect x="6" y="6" width="13" height="13" rx="4" fill="#4C8DFF"/>
|
|
3
|
+
<rect x="17" y="11" width="13" height="13" rx="4" fill="#7C6CF0"/>
|
|
4
|
+
<rect x="11" y="17" width="13" height="13" rx="4" fill="#17A398"/>
|
|
5
|
+
</svg>
|