Zum Hauptinhalt springen
Z

dsh-skill-dev-delivery-rules

zmd12345/dsh-skill-dev-delivery-rules

Registers a battle-tested development delivery rulebook as a skill family - one core skill (clarification, delivery checklist, navigation) plus nine focused skills (layered architecture, evidence-driven debugging, minimal changes, impact-graded verification, migration feature parity, async UI feedback, sizing rules, CLI safety and cleanup, project notes). Only the skills matching the current task are loaded, trivial tasks (small reversible single-file edits) are exempted outright, so each session pays tokens just for the rules it actually uses.

Installation

dsh plugin --profile web add github:zmd12345/dsh-skill-dev-delivery-rules

README

dsh-skill-dev-delivery-rules

把《开发交付规则》注册为 DeepSeek Harness 的技能家族:1 个核心技能 + 9 个专项技能,按任务场景自动加载对应规则。

工作原理

DSH 的技能目录只常驻每个技能的一行摘要(约 40 token/行)。模型在任务与某技能的场景描述匹配时,才通过 skill 工具加载其完整正文——因此每个会话只为真正用到的规则付 token:

会话类型加载内容进入上下文的规则文本
闲聊 / 非开发无0
琐碎任务(单文件、≤10 行、可回滚、不涉删除/迁移/公共代码)整体豁免,不加载0
小修小改(不满足豁免条件)核心 + 命中的专项~2.7K 字符
典型开发核心 + 2~3 个专项~3K 字符(细则完整)

对比:规则全文常驻(如写进 AGENTS.md)是 5.4K 字符 × 每一步。

v2.1 起内置任务分级豁免:琐碎小任务直接执行,不提问、不声明验证分级、不输出自检(仅保留删除确认与临时文件清理两条底线);交付自检为静默执行,只报告未通过项。

技能清单

  • dev-delivery-rules 核心:总则、任务分级豁免、需求澄清、规则导航、交付前静默自检
  • dev-architecture-layers 分层架构
  • dev-evidence-debug 证据驱动调试
  • dev-minimal-changes 最小变更
  • dev-verify-grading 验证范围 L1~L4 分级
  • dev-migration-parity 迁移功能对等
  • dev-ui-feedback GUI 异步交互四项要求
  • dev-style-sizing 样式尺寸规范
  • dev-cli-safety 命令行与仓库操作安全
  • dev-project-notes 项目节点记录

文件结构与数据流

rules-source.md ──(node build.js)──▶ skills.json ──▶ index.js 循环 ctx.skills.register()

修改规则的工作流

  1. 只编辑 rules-source.md(结构约定:frontmatter 含 name/description;条款标题 ## N. 标题 编号连续且共 10 节;文末保留 ## 交付前自检);
  2. node build.js —— 校验结构并做内容对等(生成物拼回必须与原文逐行一致),失败时不写任何文件;增删条款节时同步 build.js 的 SKILL_DEFS 映射表;
  3. 在 Harness 里对该 bundle 执行 remove + install(或重启应用)生效。

安装

在 DeepSeek Harness 的插件市场中搜索 开发交付规则(Dev delivery rules)安装;或手动安装:

  • 从 Releases 下载 dsh-skill-dev-delivery-rules.tgz,在插件管理中安装该包;
  • 或克隆本仓库后,在插件管理中安装本地目录。

安装后新会话的技能目录即出现 dev-delivery-rules。需要 profile 组合中存在技能注册表(@deepseek-ai/dsh-skill,标准 preset 已包含),否则插件行自动跳过、不影响其他功能。

License

MIT

Ähnliche Plugins