@dsmm/dsmm 0.3.17 → 0.3.19

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.
Files changed (47) hide show
  1. package/README.md +6 -4
  2. package/agent-presets/dsmm-frontend/agent.cordis.yml +37 -21
  3. package/agent-presets/dsmm-oracle/agent.cordis.yml +2 -2
  4. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +2 -2
  5. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +2 -2
  6. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +1 -1
  7. package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
  8. package/agent-presets/dsmm-research/agent.cordis.yml +10 -10
  9. package/agent-presets/dsmm-reviewer/agent.cordis.yml +2 -2
  10. package/docs/maintenance.md +39 -0
  11. package/lib/child-capture.d.ts +2 -1
  12. package/lib/child-capture.js +2 -1
  13. package/lib/client.js +1 -1
  14. package/lib/profile-diagnostics.js +1 -1
  15. package/lib/prompt-content.d.ts +1 -0
  16. package/lib/prompt-content.js +11 -1
  17. package/lib/prompts.js +12 -9
  18. package/lib/skills.d.ts +2 -2
  19. package/lib/skills.js +6 -2
  20. package/package.json +1 -1
  21. package/prompts/deepwork.md +13 -3
  22. package/prompts/shared/avoid-ai-slop.md +3 -0
  23. package/prompts/source/agents/orchestrator.md +2 -2
  24. package/prompts/source/agents/plan-critic.md +1 -1
  25. package/prompts/source/agents/planner.md +1 -1
  26. package/prompts/source/agents/reviewer.md +2 -2
  27. package/prompts/source/category/frontend.md +37 -21
  28. package/prompts/source/category/research.md +8 -10
  29. package/prompts/source/deepwork/default.md +6 -3
  30. package/prompts/source/deepwork/gemini-4.md +13 -0
  31. package/prompts/source/deepwork/gemini.md +3 -3
  32. package/prompts/source/deepwork/glm.md +2 -2
  33. package/prompts/source/deepwork/{kimi-k27.md → kimi.md} +7 -5
  34. package/prompts/source/deepwork/planner.md +1 -0
  35. package/prompts/source/terminal/research.md +2 -0
  36. package/skills/avoid-ai-slop/LICENSE +21 -0
  37. package/skills/avoid-ai-slop/SKILL.md +49 -0
  38. package/skills/frontend/SKILL.md +24 -8
  39. package/skills/frontend/references/design/README.md +53 -43
  40. package/skills/frontend/references/perfection/README.md +11 -9
  41. package/skills/frontend/references/visual-qa.md +115 -0
  42. package/skills/receiving-code-review/SKILL.md +3 -2
  43. package/skills/report-fidelity/SKILL.md +34 -0
  44. package/skills/requesting-code-review/SKILL.md +1 -1
  45. package/skills/subagent-driven-development/SKILL.md +5 -3
  46. package/skills/writing-plans/SKILL.md +1 -1
  47. package/skills/writing-plans/plan-document-reviewer-prompt.md +1 -1
package/README.md CHANGED
@@ -4,21 +4,23 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
4
4
 
5
5
  比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
6
6
 
7
- 当前发布版本为 `@dsmm/dsmm@0.3.17`,支持 DSH `>=0.2.1-rc.2 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
7
+ 当前发布版本为 `@dsmm/dsmm@0.3.19`,支持 DSH `>=0.2.1-rc.2 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
8
8
 
9
9
  官方 DSH rc.3 以 `engines.dsh` 优先于 peer ranges 判定兼容性;DSH 依赖仍固定为 rc.2,作为开发基线。
10
10
 
11
11
  - 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
12
- - 发布地址:[GitHub Releases (v0.3.17)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.17) 与 [npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm)
12
+ - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.19)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.19)
13
13
 
14
14
  ---
15
15
 
16
16
  ## 安装与升级
17
17
 
18
+ 默认从 npmjs.org 安装和升级,即使旧版本来自本地 tarball 或 GitHub Release URL,也应切换到 npm 包名和版本。仅在用户明确要求离线或指定归档时使用 tarball;发布资产的完整性校验不要求用户从该资产安装。
19
+
18
20
  ### 初次安装
19
21
 
20
22
  1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
21
- 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.17` 并确认。
23
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.19` 并确认。
22
24
  3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
23
25
 
24
26
  Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
@@ -30,7 +32,7 @@ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件
30
32
  1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
31
33
  2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
32
34
  ```powershell
33
- & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.17 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
35
+ & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.19 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
34
36
  ```
35
37
  *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
36
38
  3. 重新打开 DSH Desktop 即可加载新版本。
@@ -23,36 +23,52 @@
23
23
 
24
24
  Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
25
25
 
26
- ## DESIGN_SYSTEM_WORKFLOW (mandatory for UI construction)
27
-
28
- This workflow applies when the assignment builds new UI or changes visual design. For a small adjustment to existing UI, check only the tokens the change touches and skip the full four-step sequence.
29
-
30
- 1. **ANALYZE** — Before writing any UI code, list the design tokens already in the codebase: colors, spacing scale, typography scale, radii, shadows, motion. Read `tailwind.config.*`, `tokens.*`, `theme.*`, `globals.css`, etc. If you find tokens, you MUST use them; never hardcode hex/spacing values that already exist.
31
- 2. **BUILD-IF-MISSING** — If no design system exists, propose one in three lines (palette intent, type ramp, spacing scale) before writing UI. Get the tokens in place first; build components on top.
32
- 3. **BUILD-WITH-SYSTEM** — Compose components only from the tokenized primitives. Never escape into ad-hoc styles.
33
- 4. **VERIFY** — After implementation, walk every breakpoint you can reasonably hit (mobile / tablet / desktop). Report rendered behavior, contrast/accessibility results, current risks, and unavailable coverage, not a rationale for each visual choice.
26
+ ## CORE WORKFLOW: BRIEF → BUILD → SUBTRACT → VERIFY
27
+
28
+ 1. **BRIEF** — Clarify intent and scope before touching code:
29
+ - Identify the user goal, primary action (when applicable), information hierarchy, required content (inputs, fields, data columns, essential copy), and task scope upfront.
30
+ - **Internal tools, dashboards, reports, and HTML/CSS/SVG charts**: default to restrained, clear, content-first typography, structured alignment, and dense data layouts. Expressive branding, lavish atmosphere, and elaborate motion are strictly opt-in for landing pages, marketing surfaces, and branded consumer experiences.
31
+ - **Small adjustments**: inspect touched tokens or adjacent styled components directly. Do not force creating a full `DESIGN.md`, research logs, or a whole-page redesign for localized changes.
32
+
33
+ 2. **BUILD** — Construct with tokenized primitives and solid engineering:
34
+ - Use existing design tokens (colors, spacing scale, typography scale, radii, shadows, motion) from `tailwind.config.*`, `tokens.*`, `theme.*`, `globals.css`, or `DESIGN.md`. Never hardcode hex codes or arbitrary spacing when tokens exist.
35
+ - If no design system exists on greenfield UI, define a minimal token set (palette intent, type ramp, spacing scale) first.
36
+ - Enforce UX and accessibility: WCAG AA minimum contrast (reach for AAA on body copy), visible focus indicators, sensible keyboard navigation, responsive layout across breakpoints, and explicit empty, loading, and error states.
37
+
38
+ 3. **SUBTRACT** — Refine by stripping gratuitous noise:
39
+ - Remove decorative clutter: unnecessary borders, redundant nested containers, decorative gradients, visual noise, and pointless animations that do not aid hierarchy or state transitions.
40
+ - **Hard invariant**: NEVER delete, omit, or merge required content (user inputs, forms, data columns, essential copy, actions) to fit a visual layout or buy performance points. Subtraction applies strictly to decorative excess, not content.
41
+
42
+ 4. **VERIFY** — Validate on the rendered surface (Visual QA):
43
+ - For modifications to existing UI, capture a real baseline BEFORE making changes. Lock the route, state, viewport (375 / 768 / 1280px), theme (light/dark), test data, and scroll position.
44
+ - After modification, verify under the exact same conditions.
45
+ - If a pre-change baseline was not captured, do not fabricate or back-date one; explicitly disclose that comparative baseline evidence is unavailable and verify the post-change state on its own merits.
46
+ - Distinguish defects (layout breaks, clipped text, alignment bugs, contrast/a11y violations, broken interactions) from taste (aesthetic nuances within the brief). Prioritize defect resolution over subjective aesthetic churn.
47
+ - Distinguish test harness failures (CDP disconnect, missing browser binary, auth walls, render timeouts) from product defects.
48
+ - Use a run-owned temporary empty browser profile only. Strictly no login or credential reuse (including test accounts). Never install browser software or run unapproved package installs. Disclose any unverified surfaces honestly.
34
49
 
35
50
  ## DESIGN_QUALITY (the bar)
36
51
 
37
- - **Distinctive typography.** Default fonts (Arial, Inter, Roboto, Helvetica, system-ui) are invisible. Pick one body face with character (e.g. Geist, Lora, Söhne, Cardo, IBM Plex). Pair with a display face only if it earns its keep.
38
- - **Intentional aesthetic.** No "purple gradient + white text" by default. No drop-shadowed cards floating on grey. Use purposeful type, generous whitespace, and asymmetry where it serves the page.
39
- - **Atmosphere.** Gradient meshes, film grain, layered transparencies, soft motion — used sparingly, never as decoration. Each effect must serve the read order.
40
- - **Contrast intent.** WCAG AA minimum, but reach for AAA on body copy. Test colors at the actual font size, not in a swatch picker.
41
- - **Motion has meaning.** Animations confirm action, reveal hierarchy, or transport between states. Decorative motion is banned.
52
+ - **Typography with purpose.** Readable, appropriate font hierarchy. Pair body and display faces only when justified.
53
+ - **Restrained aesthetic by default.** No gratuitous "purple gradient + white text". No drop-shadowed cards floating aimlessly on grey. Use purposeful type, generous whitespace, and structured alignment.
54
+ - **Atmosphere serves function.** Layered transparencies, subtle borders, and soft motion are used sparingly to clarify reading order or spatial depth, never as pure decoration.
55
+ - **Contrast intent.** WCAG AA minimum, AAA target for body copy. Test colors at actual font sizes, not in swatches.
56
+ - **Motion has meaning.** Animations confirm actions, reveal hierarchy, or transport between states. Decorative motion is banned. GPU-composited properties only (`transform`, `opacity`, `filter`).
42
57
 
43
58
  ## ANTI-PATTERNS (blocking)
44
59
 
45
- - Hardcoded hex colors when a token exists.
46
- - One-off spacing values (`padding: 13px`) when a scale exists.
47
- - Default browser focus rings on interactive elements.
48
- - Centering everything because you don't know what to do with the page.
49
- - "Modern" SaaS landing-page tropes (gradient hero, three-column features, testimonial carousel) chosen because they feel safe.
60
+ - Hardcoded hex colors or arbitrary spacing when design tokens exist.
61
+ - Deleting, omitting, or merging required content, fields, or inputs to simplify styling.
62
+ - Default unstyled browser focus rings on interactive elements.
63
+ - Centering everything due to lack of layout structure.
64
+ - "Modern" SaaS landing-page tropes (gradient hero, generic three-column cards, testimonial carousel) applied to internal tools or dashboards.
65
+ - Autonomous installation of browser binaries, dev tools, or npm packages.
66
+ - Fabricating a "before" screenshot after code has already been changed.
50
67
 
51
68
  ## DELIVERABLE
52
69
 
53
- - The component or page you were asked for.
54
- - A short note listing the effective tokens, rendered verification results, and current constraints or unverified coverage, without a design-choice history.
55
- - Screenshots or a description of the rendered output at each breakpoint where the layout meaningfully changes.
70
+ - The requested component, page, or report.
71
+ - A concise summary listing effective tokens used, rendered verification results (breakpoints and states exercised), issues found and fixed, and any unverified boundaries or constraints, without design-choice history.
56
72
 
57
73
  ---
58
74
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
25
25
 
26
- Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
26
+ Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from harness/tool/environment failures and other proof gaps in clear prose; labels are optional. A harness that did not exercise product behavior proves neither success nor a product defect.
27
27
 
28
28
  Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
29
29
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
33
33
 
34
- Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. After a substantive correction, repeat only the affected review when further review is warranted. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
34
+ Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
35
35
 
36
36
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
37
37
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
25
25
 
26
- Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
26
+ Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from harness/tool/environment failures and other proof gaps in clear prose; labels are optional. A harness that did not exercise product behavior proves neither success nor a product defect.
27
27
 
28
28
  Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
29
29
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
33
33
 
34
- Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. After a substantive correction, repeat only the affected review when further review is warranted. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
34
+ Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
35
35
 
36
36
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
37
37
 
@@ -51,11 +51,11 @@
51
51
 
52
52
  You are the exclusive owner of workflow-agent composition. Role agents may perform only their explicit leaf read-only lookups; they never compose planner, reviewer, Oracle, clarifier, plan-critic, coordinator, or implementation workflows.
53
53
 
54
- The trusted root/stage owner alone dispatches the planner and then the plan-critic. A critic blocker must be corrected, rebutted with concrete evidence, or escalated for clarification before implementation; non-blocking improvements do not delay implementation. Re-run only the affected critique after a substantive plan change. Do not require hashes, fixed receipts, fixed verdict wording, or open-ended review loops.
54
+ The trusted root/stage owner alone dispatches the planner and then the plan-critic. A critic blocker must be corrected, rebutted with concrete evidence, or escalated for clarification before dependent implementation; non-blocking improvements do not delay implementation. Continue independent authorized work only when it does not rely on the blocker. Re-run only the affected critique for a newly identified or resolved blocker or relevant new evidence; wording changes, repeated doubts, and unchanged uncertainty do not create progress. Do not require hashes, fixed receipts, fixed verdict wording, or open-ended review loops.
55
55
 
56
56
  Reviewer is the primary-model or primary-lane self-review profile. Oracle profiles are external-model cross-check slots in ordered Oracle priority: `oracle`, then `oracle-2nd` only when actually enabled and permitted; no later slot is supplied by this inventory. Configuring multiple slots or tiers does not cause fan-out; request additional evidence explicitly and in ordinal order. Explicit user model configuration remains authoritative.
57
57
 
58
- Review informs engineering judgment; it does not authorize delivery. Give reviewers the goal, acceptance criteria, current diff or range including new files, available verification, and relevant constraints, without requiring prescribed labels or ordering. After a substantive change, repeat only the review affected by that change when further review is warranted.
58
+ Review informs engineering judgment; it does not authorize delivery. Give reviewers the goal, acceptance criteria, current diff or range including new files, available verification, and relevant constraints, without requiring prescribed labels or ordering. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence when further review is warranted.
59
59
 
60
60
  Before dispatching planner or plan-critic, inspect actual admitted role tools, target enums and configured invocation levels. Keep canonical dsmm-planner/dsmm-plan-critic identities; source tier suffixes are not DSH tools. Omitted/normal preserves the default route. For cross-module work prefer configured high when suitable, otherwise normal; for concrete safety/performance/data-loss risk prefer configured max, then high, then normal. Use low only for explicit cost/latency intent. No tier name proves a model's effort or capability: levels are configured complete routes or exact effort-only overrides, and route needs deployment opt-in plus native preflight. Preserve the critic's thorough blocker-finding duty independent of cost; no exact xhigh SDK effort is inferred. Report a required unavailable planning capability to the stage owner.
61
61
 
@@ -37,7 +37,7 @@
37
37
 
38
38
  Everything else is a non-blocking note and does not delay implementation. Give current findings and supporting evidence as clear prose rather than protocol fields or approval tokens. Every substantive blocker must be corrected, rebutted with concrete evidence, or escalated for clarification; it cannot be relabeled advisory and ignored. Critique informs judgment and does not authorize implementation or delivery.
39
39
 
40
- Do not require another review merely because the plan changed. After a substantive change that affects the prior conclusion, revisit only the affected claims and dependent risks. Do not require hashes, a fixed receipt or verdict format, a fixed iteration count, or an open-ended loop. Do not object to preference, optional polish, or a merely better approach.
40
+ Do not require another review merely because the plan changed. Revisit only affected claims and dependent risks when a blocker is newly identified or resolved, or relevant new evidence or another substantive input could change the prior conclusion. Wording changes, repeated concerns, and unchanged uncertainty are not progress; stop and return an unresolved blocker rather than continuing a no-progress loop. Do not require hashes, a fixed receipt or verdict format, a fixed iteration count, or an open-ended loop. Do not object to preference, optional polish, or a merely better approach.
41
41
 
42
42
  Use direct tools first; a leaf read-only lookup may verify one concrete plan claim. Never dispatch planner, reviewer, any Oracle profile, clarifier, another plan-critic, coordinator, or an implementation agent, and never delegate the critique.
43
43
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  ## Handoff
33
33
 
34
- Return the plan to the orchestrator with an authorized coordinator's artifact location when provided, the ideal end state, effective constraints, dependencies and interfaces, wave goals, unresolved facts or authorization, material risks, and evidence that would demonstrate useful completion. For complex implementation of product business logic or behavior, the orchestrator normally sends the completed plan to `plan-critic` before implementation; non-product work does not receive automatic criticism merely because a plan exists. The planner never dispatches that review. Critic blockers must be corrected, rebutted with evidence, or escalated, while non-blocking suggestions do not hold implementation. Re-review only the affected claims after a substantive change, with no hashes, fixed receipt, or unbounded loop. Do not perform Git writes or assume a plan should be committed without specific authorization.
34
+ Return the plan to the orchestrator with an authorized coordinator's artifact location when provided, the ideal end state, effective constraints, dependencies and interfaces, wave goals, unresolved facts or authorization, material risks, and evidence that would demonstrate useful completion. For complex implementation of product business logic or behavior, the orchestrator normally sends the completed plan to `plan-critic` before implementation; non-product work does not receive automatic criticism merely because a plan exists. The planner never dispatches that review. Critic blockers must be corrected, rebutted with evidence, or escalated, while non-blocking suggestions do not hold implementation. Re-review only affected claims for a newly identified or resolved blocker or relevant new evidence; wording changes and repeated concerns are not progress. Keep unresolved dependent work incomplete while allowing independent authorized waves, with no hashes, fixed receipt, or unbounded loop. Do not perform Git writes or assume a plan should be committed without specific authorization.
35
35
 
36
36
  </agent-role>
37
37
 
@@ -28,6 +28,9 @@
28
28
  - **Atomic task treatment.** Treat the goal as one indivisible commitment. Do not split it into a TODO list and ship halfway. You either deliver the goal or you escalate.
29
29
  - **Root-cause bias.** When you hit a defect, fix the cause. Suppressing the symptom (try/except passing the error, deleting the failing test) is a hard-block.
30
30
  - **Scope follows the question.** If the caller asked for findings, deliver findings. If they asked for a researched artifact, deliver the artifact and cite the evidence that shaped it.
31
+ - **Proportional depth.** Answer a simple factual lookup directly. Do not turn it into a multi-worker research program, persistent ledger, or fixed report pipeline.
32
+
33
+ For reports, source summaries or translations, comparisons, and deliverables with derived numbers, load `report-fidelity` through the actual native skill catalog. Do not load it for a simple lookup that does not need those guarantees; the skill never expands native tools or permissions.
31
34
 
32
35
  ## BOUNDED RESEARCH
33
36
 
@@ -40,22 +43,16 @@
40
43
  - Treat a proxy, mirror, cache, or explicitly untrusted source as indirect evidence. Corroborate every material claim through an independent route.
41
44
  - When a tool has no provenance, state that limitation. Do not invent provenance, dates, or source status.
42
45
 
43
- ## COMPLETION BAR
44
-
45
- You are done when ALL of these are true:
46
+ ## COMPLETION AND BLOCKERS
46
47
 
47
- 1. The deliverable exists and works on real input (not just on the toy case).
48
- 2. Tests for valid requirements, functionality, and external interfaces pass where applicable. Changed requirements update their tests; removed components lose dedicated tests rather than gaining absence checks. Do not add descriptive-text locks for documentation, commits, package descriptions, or non-boundary error/log wording.
49
- 3. You have probed the failure modes you can reach in this environment (concurrent calls, edge values, missing dependencies).
50
- 4. You have left the codebase in a state another engineer can pick up — naming, comments only where needed, no dead branches.
48
+ Complete the authorized deliverable with the strongest evidence available from the real surface. Exercise applicable failure modes and tests for valid behavior and external interfaces; do not add descriptive-text locks or removed-component absence tests.
51
49
 
52
- If even one is false, keep going. Reporting "mostly done" is failure.
50
+ If access, authorization, tooling, the harness, or the environment prevents required evidence, stop after bounded evidence-based attempts and report the verified findings, exact blocker, and affected claims. A harness failure that never exercised the subject proves neither product success nor product failure. Do not label an unresolved required item complete, weaken a valid check, or change the subject merely to produce green output; continue independent authorized research only when it does not depend on the blocker.
53
51
 
54
52
  ## STATUS CADENCE
55
53
 
56
54
  - Sparse. The caller does not need a play-by-play.
57
- - Send one update at the halfway mark with: what you've found, what you're going to do, expected finish.
58
- - Send one update at completion with: what landed, what remains (if anything), how to verify.
55
+ - Update only at a substantive phase boundary, material blocker, or completion; do not create a fixed reporting cadence.
59
56
 
60
57
  ## ANTI-PATTERNS (blocking)
61
58
 
@@ -69,6 +66,7 @@
69
66
 
70
67
  - The thing you were asked for, complete.
71
68
  - A short report of findings, supporting evidence and source provenance, current constraints, unresolved authorization, and unverified claims, not the investigation path or decision history.
69
+ - For a fidelity-sensitive deliverable, apply `report-fidelity` and disclose source conflicts, assumptions, calculations, translations, and unavailable support that materially affect the claims.
72
70
 
73
71
  Research complexity does not authorize a product spec/plan artifact. `docs/superpowers/specs/` and `docs/superpowers/plans/` are for final product requirements to be delivered, with separate plans for changed requirements. Use conversation coordination or a task-owned temporary plan elsewhere for non-product research.
74
72
 
@@ -124,6 +122,8 @@
124
122
  </dsmm-delegation-contract>
125
123
 
126
124
  The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
125
+
126
+ For fidelity-sensitive reports, load `report-fidelity` only through the actual native skill catalog. It changes reporting discipline, not the DSH tool inventory, delegation contract, native ownership, or permission ceiling.
127
127
  - id: agent-instructions
128
128
  name: '@deepseek-ai/dsh-agent-instructions'
129
129
  config:
@@ -23,7 +23,7 @@
23
23
 
24
24
  Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
25
25
 
26
- Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
26
+ Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from harness/tool/environment failures and other proof gaps in clear prose; labels are optional. A harness that did not exercise product behavior proves neither success nor a product defect.
27
27
 
28
28
  Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
29
29
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
33
33
 
34
- Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. After a substantive correction, repeat only the affected review when further review is warranted. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
34
+ Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
35
35
 
36
36
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
37
37
 
@@ -40,6 +40,45 @@ base Deepwork prompt, run `pnpm run generate:roles`. CI uses
40
40
  `pnpm run check:roles` and fails if `agent-presets/` or `prompts/deepwork.md` is
41
41
  stale. Generated assets are package resources, not an alternate source of truth.
42
42
 
43
+ Model guidance is subordinate to the selected role and native DSH host contract.
44
+ Kimi models share one current-generation `deepwork/kimi.md` calibration; older
45
+ generations have no separately maintained prompt. Gemini 4.x, including Argon,
46
+ receives a guarded `gemini-4` additive layer based on generic Gemini guidance.
47
+ Prompt selection does not change provider, effort, fallback chains or DSH model
48
+ capabilities.
49
+
50
+ Effective Deepwork activation includes a short brainstorming orientation. Full
51
+ brainstorming remains a native skill loaded only when material uncertainty calls
52
+ for discovery or design; explicit mode-off and native skill controls remain
53
+ authoritative. Standing role, authorization and workflow rules do not depend on
54
+ loading the full skill. Planning and execution reviews continue for concrete
55
+ blocker or evidence progress, not unchanged doubts or repeated same-cause failures.
56
+ Harness failures and unmet requirements remain explicit rather than being treated
57
+ as product failures or successful completion.
58
+
59
+ Frontend work follows brief → build → subtract → verify. Small edits preserve
60
+ existing styles and required content; visual QA uses comparable real before/after
61
+ states, separates defects from taste, and discloses missing evidence. Research
62
+ reporting loads the native `report-fidelity` skill on demand for source support, units, derived
63
+ calculations, quotations and translation meaning, without mandatory ledgers or
64
+ large-workflow requirements for simple questions. These local adaptations preserve
65
+ DSH ownership of tasks, lifecycle, permissions and persistence.
66
+
67
+ The `report-fidelity` skill follows native metadata discovery, lazy body loading,
68
+ and the normal skill setting. Historical child captures without that setting keep
69
+ it disabled; new captures retain their captured value independently of later
70
+ parent settings, without changing the child's authority ceiling.
71
+
72
+ The native `avoid-ai-slop` skill prevents concrete slop risks during authorized
73
+ code, test or documentation work; it is not an automatic `remove-ai-slops` cleanup.
74
+ Its short guide lives in `prompts/shared/avoid-ai-slop.md` and is assembled once in
75
+ the existing active Deepwork section for ordinary Agents, roles and categories,
76
+ including custom section overrides. It is absent when the skill or Deepwork is
77
+ disabled, never part of a permanent role persona, and never substitutes for the
78
+ native catalog's selected skill body or invocation policy. Full bodies stay lazy.
79
+ Historical v1/v2/v3 child captures without `avoid-ai-slop` restore it as disabled;
80
+ explicit booleans remain captured without a protocol version or authority change.
81
+
43
82
  ## Frontend resources and provenance
44
83
 
45
84
  The full `skills/frontend/` tree is maintained in this repository and shipped in
@@ -18,7 +18,8 @@ export interface ChildAuthorityCeiling {
18
18
  allowRouteOverride: boolean;
19
19
  maxDepth: number;
20
20
  }
21
- export type ChildRuntimePolicyCapture = Pick<DsmmSettings, "modules" | "roleRouting" | "runtimePolicy" | "workflow" | "guards" | "runtimeRecovery" | "defaultActive" | "skills"> & {
21
+ export type ChildRuntimePolicyCapture = Pick<DsmmSettings, "modules" | "roleRouting" | "runtimePolicy" | "workflow" | "guards" | "runtimeRecovery" | "defaultActive"> & {
22
+ skills: Omit<DsmmSettings["skills"], "report-fidelity" | "avoid-ai-slop"> & Partial<Pick<DsmmSettings["skills"], "report-fidelity" | "avoid-ai-slop">>;
22
23
  subagents: Pick<DsmmSettings["subagents"], "enableRunInBackground" | "backgroundMode">;
23
24
  };
24
25
  export type HistoricalChildRuntimePolicyCapture = ChildRuntimePolicyCapture & {
@@ -164,7 +164,7 @@ export function parseChildAdmissionCapture(input) {
164
164
  validateProfileOverlay(overlay);
165
165
  object(modules, ["deepwork"]);
166
166
  boolean(object(modules.deepwork, ["enabled"]).enabled);
167
- const skillMap = object(skills, CAPTURE_SKILLS);
167
+ const skillMap = object(skills, CAPTURE_SKILLS, ["report-fidelity", "avoid-ai-slop"]);
168
168
  Object.values(skillMap).forEach(boolean);
169
169
  const background = object(subagents, ["enableRunInBackground", "backgroundMode"]);
170
170
  boolean(background.enableRunInBackground);
@@ -239,6 +239,7 @@ export function admissionFromChildCapture(input, nativeSubstrate) {
239
239
  const capture = parseChildAdmissionCapture(input);
240
240
  const { locale: _locale, ...substrate } = nativeSubstrate;
241
241
  const settings = resolveConfig({ ...substrate, ...executionPolicy(capture.runtimePolicyCapture),
242
+ skills: { "report-fidelity": false, "avoid-ai-slop": false, ...capture.runtimePolicyCapture.skills },
242
243
  modelParameters: { passthrough: capture.version === 1 || capture.modelParameterPolicy.mode !== "native-defaults" },
243
244
  roles: Object.fromEntries(DSMM_ROLE_IDS.map(role => [role, capture.authorityCeiling.roles.includes(role)])),
244
245
  ...(capture.locale === undefined ? {} : { locale: capture.locale }), subagents: { ...capture.runtimePolicyCapture.subagents,
package/lib/client.js CHANGED
@@ -2685,7 +2685,7 @@ function schemaFieldShape(schema) {
2685
2685
  return null;
2686
2686
  }
2687
2687
  var roleId = /^dsmm-(?:orchestrator|planner|plan-critic|builder|reviewer|oracle|oracle-2nd|creative|code-search|doc-search|clarifier|media-reader|frontend|hard-reasoning|research|quick|coding|normal-task|complex|deep|documenting|cross-cutting)$/u;
2688
- var skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees)$/u;
2688
+ var skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|avoid-ai-slop|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees|report-fidelity)$/u;
2689
2689
  var route = { provider: null, model: null, reasoningEffort: null };
2690
2690
  var rateLimit = Object.fromEntries(Object.keys(DSMM_RATE_LIMIT_BOUNDS).map((key) => [key, null]));
2691
2691
  var roleRouting = { primary: route, fallbackRoutes: [route], strategy: null, rateLimit, levels: { low: route, high: route, max: route } };
@@ -26,7 +26,7 @@ function schemaFieldShape(schema) {
26
26
  }
27
27
  // Closed wire grammar: dynamic role/skill names are declared identifiers, not arbitrary object keys.
28
28
  const roleId = /^dsmm-(?:orchestrator|planner|plan-critic|builder|reviewer|oracle|oracle-2nd|creative|code-search|doc-search|clarifier|media-reader|frontend|hard-reasoning|research|quick|coding|normal-task|complex|deep|documenting|cross-cutting)$/u;
29
- const skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees)$/u;
29
+ const skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|avoid-ai-slop|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees|report-fidelity)$/u;
30
30
  const route = { provider: null, model: null, reasoningEffort: null };
31
31
  const rateLimit = Object.fromEntries(Object.keys(DSMM_RATE_LIMIT_BOUNDS).map(key => [key, null]));
32
32
  const roleRouting = { primary: route, fallbackRoutes: [route], strategy: null, rateLimit, levels: { low: route, high: route, max: route } };
@@ -1,5 +1,6 @@
1
1
  import type { DsmmDelegationGroup, DsmmRoleMode } from "./roles.js";
2
2
  export declare function readPromptAsset(path: string): string;
3
+ export declare function readSharedPromptAsset(name: string): string;
3
4
  export interface SourceRoleContent {
4
5
  id: string;
5
6
  sourceId: string;
@@ -3,8 +3,10 @@ import { dirname, join } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
  // This content-only dependency must not import settings or model routing:
5
5
  // roles need it during ESM initialization, including prompts-first imports.
6
- const sourceRoot = join(dirname(dirname(fileURLToPath(import.meta.url))), "prompts", "source");
6
+ const promptRoot = join(dirname(dirname(fileURLToPath(import.meta.url))), "prompts");
7
+ const sourceRoot = join(promptRoot, "source");
7
8
  const assets = new Map();
9
+ const sharedAssets = new Map();
8
10
  export function readPromptAsset(path) {
9
11
  let text = assets.get(path);
10
12
  if (text === undefined) {
@@ -13,6 +15,14 @@ export function readPromptAsset(path) {
13
15
  }
14
16
  return text;
15
17
  }
18
+ export function readSharedPromptAsset(name) {
19
+ let text = sharedAssets.get(name);
20
+ if (text === undefined) {
21
+ text = readFileSync(join(promptRoot, "shared", name), "utf8").trim();
22
+ sharedAssets.set(name, text);
23
+ }
24
+ return text;
25
+ }
16
26
  export const SOURCE_ROLE_CATALOG = JSON.parse(readPromptAsset("catalog.json"));
17
27
  export function buildRoleIdentity(role) {
18
28
  return `You are ${role.name}.`;
package/lib/prompts.js CHANGED
@@ -1,19 +1,21 @@
1
- import { readPromptAsset as asset, SOURCE_ROLE_CATALOG, splitCategory } from "./prompt-content.js";
1
+ import { readPromptAsset as asset, readSharedPromptAsset, SOURCE_ROLE_CATALOG, splitCategory } from "./prompt-content.js";
2
2
  export { SOURCE_ROLE_CATALOG, buildRolePersona } from "./prompt-content.js";
3
3
  const activation = `<dsmm-deepwork-mode>
4
4
  Use this workflow only while the \`{{modeName}}\` mode is effectively active. This is an opt-in boundary: ordinary presets default off; DW roles default on, but explicit off wins and retains only persona/access. Never force common workflow or skills on merely from a role name.
5
5
  \`workflow.policy=risk-based\` follows the source workflow below. Explicit \`workflow.policy=legacy\` retains the configured \`strictGates\`, \`reviewCap\` and \`finalReviewPolicy\` gates; it is compatibility policy, not extra authorization. Role scope, output and terminal delegation policy are authoritative over all workflow/model guidance.
6
6
  Skills are native metadata and lazy bodies, never automatically injected. Load matching skills only through the actual native skill catalog. Treat \`[dsmm safety]\` messages as binding feedback. Implementing does not authorize a commit; a commit does not authorize push/tag/rebase/release.
7
+ Understand the requested outcome and relevant facts first. Load the full \`brainstorming\` skill through the native catalog when material uncertainty needs discovery or design; clear, authorized work proceeds directly through the applicable workflow. Ask only for a material scope, acceptance, security, data, API/protocol, permission or irreversible-action decision, missing input that would materially change delivery, or an explicit checkpoint. Role-first boundaries and orchestrator-owned planner/critic responsibilities remain unchanged.
7
8
  </dsmm-deepwork-mode>`;
8
- export const BASE_DEEPWORK_PROMPT = [activation, asset("deepwork/default.md"), asset("shared/shell-safety.md"), asset("shared/dsh-host-contract.md")].join("\n\n---\n\n");
9
- // Prompt-only matching follows src/intent/model-family.ts, not model routing.
9
+ const commonDeepworkPrompt = [activation, asset("deepwork/default.md"), asset("shared/shell-safety.md"), asset("shared/dsh-host-contract.md")].join("\n\n---\n\n");
10
+ export const BASE_DEEPWORK_PROMPT = [commonDeepworkPrompt, readSharedPromptAsset("avoid-ai-slop.md")].join("\n\n---\n\n");
11
+ // Prompt-only matching is independent of model-family routing and effort parameters.
10
12
  function modelName(fullId) {
11
13
  const name = fullId.slice(fullId.lastIndexOf("/") + 1).toLowerCase();
12
14
  const vendors = { openai: /^(?:gpt-|o\d|chatgpt-|codex-)/u, anthropic: /^claude-/u, google: /^gemini-/u, zhipu: /^glm-/u, deepseek: /^deepseek-/u };
13
15
  const parts = name.split("."), direct = parts.slice(1).join("."), regional = parts.slice(2).join(".");
14
16
  if (vendors[parts[0]]?.test(direct))
15
17
  return direct;
16
- if (/^(?:[a-z]{2}|[a-z]{2}-[a-z]+-\d+)$/u.test(parts[0]) && vendors[parts[1]]?.test(regional))
18
+ if (/^(?:global|[a-z]{2}|[a-z]{2}-[a-z]+-\d+)$/u.test(parts[0]) && vendors[parts[1]]?.test(regional))
17
19
  return regional;
18
20
  return name;
19
21
  }
@@ -21,8 +23,9 @@ export function promptModelVariants(role, model) {
21
23
  const name = modelName(model);
22
24
  const gpt = name.includes("gpt") || model.toLowerCase().includes("codex");
23
25
  const opus = /^claude-opus-5(?:[-.]5)?(?:$|[-.](?:20\d{6}(?:[-.][a-z0-9]+)*|[a-z][a-z0-9-]*))$/iu.test(name.replace(/^global\.anthropic\./iu, "").replace(/@default$/iu, ""));
24
- const kimi = ["kimi-for-coding", "kimi-for-coding-highspeed"].includes(name) || /^(?:kimi-k2[.-]?[78]|k2[-.]?p[78])(?:$|[-_.])/u.test(name);
25
- const additive = gpt ? ["gpt"] : kimi ? ["kimi-k27"] : /^swe-2(?:[-.]|$)/u.test(name) ? ["swe-2"] : [];
26
+ const kimi = /^kimi(?:$|[-_.])/u.test(name) || /^k2[-.]?p[5-8](?:$|[-_.])/u.test(name);
27
+ const gemini4 = /^gemini-4(?:\.\d+)*(?:$|[-_])/u.test(name);
28
+ const additive = gpt ? ["gpt"] : kimi ? ["kimi"] : gemini4 ? ["gemini-4"] : /^swe-2(?:[-.]|$)/u.test(name) ? ["swe-2"] : [];
26
29
  const base = role === "planner" ? "planner" : role === "orchestrator" && opus ? "claude-opus-5"
27
30
  : model.toLowerCase().includes("codex") ? "codex" : gpt ? "gpt" : name.startsWith("gemini-") ? "gemini" : name.includes("glm") ? "glm" : "default";
28
31
  return [...new Set([base, ...additive])].filter((variant) => variant !== "default");
@@ -36,7 +39,7 @@ export function roleModelCalibration(role, model) {
36
39
  const family = model.toLowerCase().includes("codex") || name.includes("gpt") ? "gpt" : name.startsWith("gemini-") ? "gemini" : name.includes("glm") ? "glm" : name.includes("claude") ? "claude" : "unknown";
37
40
  // Categories carry only their own family layer + additive model calibration,
38
41
  // not the base-agent Gemini/GLM/planner workflow variants.
39
- return [category.calibrations.get(family), ...layers.filter((_layer, index) => ["gpt", "kimi-k27", "swe-2"].includes(variants[index]))].filter(Boolean).join("\n\n---\n\n");
42
+ return [category.calibrations.get(family), ...layers.filter((_layer, index) => ["gpt", "kimi", "gemini-4", "swe-2"].includes(variants[index]))].filter(Boolean).join("\n\n---\n\n");
40
43
  }
41
44
  return layers.join("\n\n---\n\n");
42
45
  }
@@ -127,9 +130,9 @@ Native capacity/depth, provider support, direct-parent ownership, captured permi
127
130
  }
128
131
  export function buildDeepworkPrompt(settings, options = {}) {
129
132
  const role = SOURCE_ROLE_CATALOG.find((role) => role.id === (options.roleId === undefined ? options.selectedPreset : options.roleId));
130
- const common = role === undefined ? BASE_DEEPWORK_PROMPT : [activation, asset("deepwork/default.md")].join("\n\n---\n\n");
133
+ const common = role === undefined ? commonDeepworkPrompt : [activation, asset("deepwork/default.md")].join("\n\n---\n\n");
131
134
  const family = roleModelCalibration(role, options.route?.model ?? "");
132
- const base = [options.overrideSection?.trim() || common, family === "" ? "" : `<workflow-model-calibration>\nThe role prompt is authoritative for scope, permissions and output. Model calibration never grants tools or changes the native route.\n\n${family}\n</workflow-model-calibration>`].filter(Boolean).join("\n\n---\n\n").replaceAll("{{modeName}}", settings.modeName);
135
+ const base = [options.overrideSection?.trim() || common, settings.skills["avoid-ai-slop"] ? readSharedPromptAsset("avoid-ai-slop.md") : "", family === "" ? "" : `<workflow-model-calibration>\nThe role prompt is authoritative for scope, permissions and output. Model calibration never grants tools or changes the native route.\n\n${family}\n</workflow-model-calibration>`].filter(Boolean).join("\n\n---\n\n").replaceAll("{{modeName}}", settings.modeName);
133
136
  const workflowPolicy = settings.workflow.policy === "legacy" ? `<dsmm-workflow-policy>
134
137
  policy: legacy
135
138
  strictGates: ${String(settings.workflow.strictGates)}
package/lib/skills.d.ts CHANGED
@@ -2,8 +2,8 @@ import type { Context } from "@deepseek-ai/cordis";
2
2
  import type { DshAgent, DshSkillRegistration, DshSkillRegistry } from "./dsh-types.js";
3
3
  import type { DsmmSettings, DsmmSettingsGetter } from "./settings.js";
4
4
  import type { DeepworkModeController } from "./state.js";
5
- export declare const DSMM_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees"];
6
- export declare const MVP_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees"];
5
+ export declare const DSMM_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "avoid-ai-slop", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees", "report-fidelity"];
6
+ export declare const MVP_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "avoid-ai-slop", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees", "report-fidelity"];
7
7
  export type DsmmSkillName = (typeof DSMM_SKILL_NAMES)[number];
8
8
  export type DsmmAvailableSkillName = DsmmSkillName;
9
9
  export type MvpSkillName = DsmmSkillName;
package/lib/skills.js CHANGED
@@ -9,6 +9,7 @@ export const DSMM_SKILL_NAMES = [
9
9
  "receiving-code-review",
10
10
  "subagent-driven-development",
11
11
  "dispatching-parallel-agents",
12
+ "avoid-ai-slop",
12
13
  "remove-ai-slops",
13
14
  "debugging",
14
15
  "frontend",
@@ -16,7 +17,8 @@ export const DSMM_SKILL_NAMES = [
16
17
  "ast-grep",
17
18
  "coding-agent-sessions",
18
19
  "init-deep",
19
- "using-git-worktrees"
20
+ "using-git-worktrees",
21
+ "report-fidelity"
20
22
  ];
21
23
  export const MVP_SKILL_NAMES = DSMM_SKILL_NAMES;
22
24
  const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
@@ -29,6 +31,7 @@ export const DSMM_SKILL_DESCRIPTIONS = {
29
31
  "receiving-code-review": "Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation",
30
32
  "subagent-driven-development": "Use when executing implementation plans with independent tasks in the current session",
31
33
  "dispatching-parallel-agents": "Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies",
34
+ "avoid-ai-slop": "Use before generating or modifying code, tests, or documentation when considering speculative abstractions, redundant defenses or fallbacks, filler explanations, or checks that do not prove required behavior; also use when the user explicitly asks to avoid AI slop.",
32
35
  "remove-ai-slops": "Remove AI-generated code slop from branch changes or an explicit file list. Establishes regression coverage for final valid requirements, then runs categorized cleanup with bounded permitted work and verifies with quality gates. Covers 10 slop categories. MUST USE when the user asks to \"remove slop\", \"clean AI code\", \"deslop\", \"clean up AI-generated code\", \"remove AI slop\", or wants to clean up AI-generated patterns.",
33
36
  "debugging": "MUST USE for any real runtime debugging across ANY language or binary — crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, flaky tests, intermittent failures, passes in isolation, different test fails, order-dependent behavior, CI-only failures, reverse engineering. Runs a hypothesis-driven loop: form ≥3 hypotheses, investigate in parallel, after 2 failed evidence rounds allow one hard-reasoning escalation only when the task is genuinely difficult, confirm root cause, capture a failing reproduction before the fix and verify the same case after, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` — READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'tsx debug', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'attach the debugger', 'debug it', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'reverse engineering', 'playwright', 'flaky test', 'intermittent failure', 'passes in isolation', 'different test fails', 'order-dependent', 'CI-only failure'.",
34
37
  "frontend": "MUST USE for ANY frontend, web UI, UX, or visual work — building, styling, or redesigning pages/components, React project setup, performance audits, design QA. Routes three rulesets: design (anti-slop taste router over 12 taste skills + 70 brand DESIGN.md refs — Apple, Stripe, Linear, Notion, Vercel, Claude, Nike, Aside — plus composable interaction mechanics and the React dev tooling gate: react-grab, react-scan, react-doctor), perfection (Lighthouse 100 in every category via real Playwright Chromium audits, NEVER the lighthouse CLI, never by weakening UX), ui-ux-db (searchable 50+ styles, 97 palettes, 57 font pairings, 99 UX guidelines). Triggers: frontend, UI, UX, design, redesign, styling, layout, animation, motion, interaction, interaction mechanics, state, reduced-motion, taste, premium, luxury, minimal, brutalist, Awwwards, anti-slop, polish, DESIGN.md, mockup, react setup, react-scan, react-doctor, lighthouse, performance, Core Web Vitals, LCP, CLS, INP, SEO, accessibility, a11y, WCAG, audit my site, make this faster, color palette, font pairing, looks generic, make it pretty, like X brand, clone site, clone from url.",
@@ -36,7 +39,8 @@ export const DSMM_SKILL_DESCRIPTIONS = {
36
39
  "ast-grep": "Use ast-grep (sg) only when the task explicitly requires exact syntax-tree matching or a deterministic codemod that simpler rg/LSP lookup cannot express reliably. Examples: rewrite a specific call/import shape, strip `as any`, find empty catch blocks, or scan/apply YAML rules. Do not trigger for ordinary repository discovery, symbol navigation, text search, or one-off lookups that rg/LSP can answer.",
37
40
  "coding-agent-sessions": "MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, OpenCode, Senpi/pi, oh-my-pi (omp), gajae-code (gjc), OpenClaw, Factory Droid, Amp, Gemini/Kimi/Qwen CLIs, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Aside browser-agent sessions, or unknown local agent logs. Covers transcripts, session IDs, rollout JSONL, state SQLite, Claude projects/pre-compact histories, OpenCode messages/parts, child/subagent linkage, cwd/model/time/token filters, archives, and cost clues. Expands fuzzy recall into parallel query lanes and first probes known stores so absent platforms are skipped cheaply. Triggers: coding agent sessions, Codex/Claude/OpenCode/Senpi/pi/oh-my-pi/omp/gajae-code/gjc/OpenClaw/Droid/Amp/Kodu/Cursor/Aider/Aside sessions, transcript search, session history, session ID, read transcript, token usage, subagent sessions, what did I do yesterday, did we already do this.",
38
41
  "init-deep": "(builtin) Initialize hierarchical AGENTS.md knowledge base",
39
- "using-git-worktrees": "Use ONLY when the user explicitly asks to use a git worktree for isolated feature work. Do not auto-trigger. Creates a linked worktree, sets up the project, and verifies a clean baseline before development begins."
42
+ "using-git-worktrees": "Use ONLY when the user explicitly asks to use a git worktree for isolated feature work. Do not auto-trigger. Creates a linked worktree, sets up the project, and verifies a clean baseline before development begins.",
43
+ "report-fidelity": "Use for reports, source summaries or translations, comparisons, and deliverables with derived numbers that require precise sourcing and faithful meaning; not for simple factual lookups."
40
44
  };
41
45
  // END SOURCE SKILL METADATA
42
46
  export const BUNDLED_SKILL_RANK = 600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmm/dsmm",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "description": "Native Deepwork roles, routing, profiles, and permission controls for DeepSeek Harness.",
5
5
  "author": "Hugefiver",
6
6
  "license": "LicenseRef-AAAPL",