@dsmm/dsmm 0.3.18 → 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.
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 即可加载新版本。
@@ -69,6 +69,16 @@ and the normal skill setting. Historical child captures without that setting kee
69
69
  it disabled; new captures retain their captured value independently of later
70
70
  parent settings, without changing the child's authority ceiling.
71
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
+
72
82
  ## Frontend resources and provenance
73
83
 
74
84
  The full `skills/frontend/` tree is maintained in this repository and shipped in
@@ -19,7 +19,7 @@ export interface ChildAuthorityCeiling {
19
19
  maxDepth: number;
20
20
  }
21
21
  export type ChildRuntimePolicyCapture = Pick<DsmmSettings, "modules" | "roleRouting" | "runtimePolicy" | "workflow" | "guards" | "runtimeRecovery" | "defaultActive"> & {
22
- skills: Omit<DsmmSettings["skills"], "report-fidelity"> & Partial<Pick<DsmmSettings["skills"], "report-fidelity">>;
22
+ skills: Omit<DsmmSettings["skills"], "report-fidelity" | "avoid-ai-slop"> & Partial<Pick<DsmmSettings["skills"], "report-fidelity" | "avoid-ai-slop">>;
23
23
  subagents: Pick<DsmmSettings["subagents"], "enableRunInBackground" | "backgroundMode">;
24
24
  };
25
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, ["report-fidelity"]);
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,7 +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, ...capture.runtimePolicyCapture.skills },
242
+ skills: { "report-fidelity": false, "avoid-ai-slop": false, ...capture.runtimePolicyCapture.skills },
243
243
  modelParameters: { passthrough: capture.version === 1 || capture.modelParameterPolicy.mode !== "native-defaults" },
244
244
  roles: Object.fromEntries(DSMM_ROLE_IDS.map(role => [role, capture.authorityCeiling.roles.includes(role)])),
245
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|report-fidelity)$/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|report-fidelity)$/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,4 +1,4 @@
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.
@@ -6,7 +6,8 @@ Use this workflow only while the \`{{modeName}}\` mode is effectively active. Th
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
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.
8
8
  </dsmm-deepwork-mode>`;
9
- 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
+ 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");
10
11
  // Prompt-only matching is independent of model-family routing and effort parameters.
11
12
  function modelName(fullId) {
12
13
  const name = fullId.slice(fullId.lastIndexOf("/") + 1).toLowerCase();
@@ -129,9 +130,9 @@ Native capacity/depth, provider support, direct-parent ownership, captured permi
129
130
  }
130
131
  export function buildDeepworkPrompt(settings, options = {}) {
131
132
  const role = SOURCE_ROLE_CATALOG.find((role) => role.id === (options.roleId === undefined ? options.selectedPreset : options.roleId));
132
- 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");
133
134
  const family = roleModelCalibration(role, options.route?.model ?? "");
134
- 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);
135
136
  const workflowPolicy = settings.workflow.policy === "legacy" ? `<dsmm-workflow-policy>
136
137
  policy: legacy
137
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", "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", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees", "report-fidelity"];
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",
@@ -30,6 +31,7 @@ export const DSMM_SKILL_DESCRIPTIONS = {
30
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",
31
32
  "subagent-driven-development": "Use when executing implementation plans with independent tasks in the current session",
32
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.",
33
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.",
34
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'.",
35
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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmm/dsmm",
3
- "version": "0.3.18",
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",
@@ -179,3 +179,9 @@ The native main model picker, explicit user route and catalog are authoritative.
179
179
  Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
180
180
  Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
181
181
  </dsmm-host-contract>
182
+
183
+ ---
184
+
185
+ <avoid-ai-slop-guidance>
186
+ Before continuing code, test, or documentation work with a concrete risk of speculative abstractions, redundant defenses or fallbacks, filler explanations, or checks that prove no required behavior, load `avoid-ai-slop` through the host's native skill mechanism. Also load it when the user explicitly asks to avoid AI slop. Reuse an already-loaded skill in the current context; do not load it for every message or ordinary factual question. Respect the actual skill catalog, disabled settings, role permissions, and applicable Deepwork gating; do not bypass an unavailable or disabled skill. Apply it only to the current authorized work, not an automatic `remove-ai-slops` cleanup.
187
+ </avoid-ai-slop-guidance>
@@ -0,0 +1,3 @@
1
+ <avoid-ai-slop-guidance>
2
+ Before continuing code, test, or documentation work with a concrete risk of speculative abstractions, redundant defenses or fallbacks, filler explanations, or checks that prove no required behavior, load `avoid-ai-slop` through the host's native skill mechanism. Also load it when the user explicitly asks to avoid AI slop. Reuse an already-loaded skill in the current context; do not load it for every message or ordinary factual question. Respect the actual skill catalog, disabled settings, role permissions, and applicable Deepwork gating; do not bypass an unavailable or disabled skill. Apply it only to the current authorized work, not an automatic `remove-ai-slops` cleanup.
3
+ </avoid-ai-slop-guidance>
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Stop That Shit contributors
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.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: avoid-ai-slop
3
+ description: 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.
4
+ license: MIT
5
+ ---
6
+
7
+ # Avoid AI Slop
8
+
9
+ Prevent unnecessary machinery and unsupported claims in the current deliverable. This is generation-time guidance, not permission to clean unrelated code or start another workflow. Keep the active role, authorization, planning, review, safety, and verification requirements.
10
+
11
+ ## Start with the actual obligation
12
+
13
+ Identify the requested behavior, its consumers, affected failure paths, and existing guarantees. Prefer the direct solution that fulfills those obligations. Extend it only for a concrete supported input, consumer, failure case, or compatibility requirement that the direct solution cannot handle.
14
+
15
+ Future flexibility alone is not a requirement. Do not add configuration switches, generic frameworks, pass-through wrappers, compatibility shims, or extra copies without a current responsibility. A helper is useful when it clarifies a real responsibility, not merely because code can be extracted.
16
+
17
+ ## Judge defenses by their effect
18
+
19
+ For a proposed validation, retry, fallback, exception handler, or recovery layer, identify what it detects and how it changes rejection, recovery, or diagnosis. Validate at genuine trust boundaries; use established internal guarantees instead of repeatedly defending against impossible states.
20
+
21
+ Preserve authentication, authorization, input handling, data integrity, protocol checks, supported compatibility, accessibility, and necessary recovery. Simplicity is not permission to remove them. Keep valid safeguards even when their code is longer.
22
+
23
+ Do not turn a failed read into a successful empty result, swallow an error behind a plausible default, or retry a side effect without the required safety guarantees. Propagate failures or handle them according to the existing contract. Fix incorrect types rather than suppressing them with `as any`, `@ts-ignore`, or `@ts-expect-error`.
24
+
25
+ ## Make explanations useful to their reader
26
+
27
+ Write comments for non-obvious intent, constraints, or invariants, not a narration of the next line. Documentation and reports describe the effective behavior and the facts needed to use or assess it. Omit hollow claims, repetitive summaries, defensive filler, and unrequested process histories.
28
+
29
+ Ask whether a sentence changes the reader's understanding or decision, and whether removing it would mislead. Preserve qualifications that change scope, evidence strength, attribution, uncertainty, or legal and safety obligations. Do not invent specificity, measurements, citations, causal claims, or certainty to make prose sound authoritative. Use the applicable source-fidelity guidance for sourced reports.
30
+
31
+ ## Verify the obligation, not the appearance of effort
32
+
33
+ Choose checks that can expose a failure of the required behavior or external interface. Preserve meaningful safety and regression coverage. Do not add tautological assertions, snapshots of incidental prose, tests for an intermediate implementation, or tests whose only purpose is to fill a quota. Mock interactions can be valid interface checks; they do not prove product behavior they never exercise.
34
+
35
+ A new optional artifact does not automatically justify a verifier for that artifact. A check needs a concrete requirement it can falsify. Reuse passing evidence when it still covers the current behavior; supplement affected or missing coverage instead of repeating unchanged checks for reassurance.
36
+
37
+ Distinguish compilation, a harness result, and an exercised product surface. Report checks that failed, were blocked, or were not run without claiming completion from an unrelated success. Keep required checks and disclose missing evidence rather than weakening them to get green output.
38
+
39
+ ## Stay within the current task
40
+
41
+ Apply this guidance before introducing the questionable structure or text. Correct the current authorized change without scanning or rewriting the rest of the repository. Read-only roles remain read-only; report unrelated findings to the task owner.
42
+
43
+ Do not launch agents, add approval gates, or create audit records because this skill was loaded. If the user explicitly requests systematic cleanup of existing AI-generated changes, use `remove-ai-slops` through the applicable workflow; this skill does not start it automatically. Once the requested outcome and necessary evidence are satisfied, stop.
44
+
45
+ ## Sources and license
46
+
47
+ Adapted from [Stop That Shit's engineering skill](https://github.com/lennney/stop-that-shit/blob/main/skills/stop-that-shit/SKILL.md) and the reader-focused principles in its [STSS skill](https://github.com/lennney/stop-that-shit/blob/main/skills/stss/SKILL.md). Local comment, test, and workflow guidance follows this project's existing boundaries. No upstream Guard tooling or enforcement workflow is included.
48
+
49
+ The upstream MIT copyright and permission notice are retained in [LICENSE](./LICENSE).