Passer au contenu principal
Z

dsh-programming-mode

ziduup/dsh-programming-mode

Ensemble prédéfini d'agent en mode de programmation : l'agent de codage standard avec son personnage exigeant la discipline des super pouvoirs (compétences d'abord, brainstorming avant la construction, plans avant le code, TDD, débogage systématique, vérification avant l'achèvement) plus une discipline de volume de code Ponytail toujours active (échelle de code minimale à 7 échelons, complète par défaut) ; expédie les vingt compétences regroupées (14 super pouvoirs + 6 queues de cheval) et injecte mécaniquement la compétence complète d'utilisation des super pouvoirs dans la première demande de chaque nouvelle session.

Installer

dsh plugin --profile web add github:ziduup/dsh-programming-mode

README

dsh-programming-mode

Listed on dsh-plugin.org Version License: MIT

English · 中文

编程模式:一个 DeepSeek Harness 组合包(bundle),在标准模式的全部能力之上强制执行 Superpowers 工程纪律。一条命令即可安装。

目录

这是什么

编程模式 = 部署自带 standard 模式的全部能力 + 强制 Superpowers 工程纪律的人设:

  1. 行动前先查技能(using-superpowers)
  2. 创作前先头脑风暴(brainstorming),设计批准后才实现
  3. 多步任务先写计划(writing-plans → executing-plans)
  4. 实现走 TDD 红绿重构(test-driven-development)
  5. 调试先找根因(systematic-debugging)
  6. 完成前必须跑验证(verification-before-completion)
  7. 重要工作请求代码审查(requesting / receiving-code-review)
  8. 需求文档与开发计划一律用中文撰写
  9. 首条消息强制注入 using-superpowers:新会话的第一条请求前自动注入技能全文,纪律从第一句就生效
  10. 代码量纪律(Ponytail)常驻:默认 full 强度,7 级阶梯(YAGNI → 复用 → stdlib → 原生 → 已有依赖 → 一行 → 最少可用)始终生效;只管实现代码量,不触碰上面的流程规则(测试 / 计划 / 验证 / 审查归 Superpowers),用户可说 "ponytail lite/ultra" 或 "停止 ponytail" 调整

本包捆绑了全部 20 个所需技能,安装即用、无需自备技能。

技能归属:捆绑的 20 个技能中,14 个源自 Superpowers 方法论(MIT),6 个源自 Ponytail(MIT),署名声明见 preset/programming/skills/SKILLS-LICENSE.md

安装

# 从 npm(推荐,registry 通道更稳)
dsh plugin --profile web add @ziduup/dsh-programming-mode

# 从 GitHub(git 直装)
dsh plugin --profile web add github:ziduup/dsh-programming-mode

# 从本地目录 / tarball
dsh plugin --profile web add ./dsh-programming-mode
dsh plugin --profile web add ./dsh-programming-mode-<版本>.tgz

安装后重启该 profile,模式选择器里即出现 编程模式

升级行为

安装后在 profile 启动时,本包将捆绑的 preset 目录植入 roster 的第一个用户根(默认 $DSH_HOME/.agent-presets/)。升级按版本戳判断:

目标目录状态行为
不存在全新植入,写入版本戳
版本戳 == 本包版本无操作(保留你的本地修改
版本戳 != 本包版本覆盖文件并刷新版本戳(升级)
存在但无版本戳拒绝触碰(不是我们植入的,可能是你手写的同名 preset)

卸载

dsh plugin --profile web remove @ziduup/dsh-programming-mode

卸载组合包不会删除已植入的 preset——它已属于你的用户目录、可能含你的修改。不需要时手动删除 $DSH_HOME/.agent-presets/programming/ 即可。

安全与信任

  • agent preset 与 shell 访问权限同级:安装本 preset 即表示信任它引用的全部插件行。
  • 若从 GitHub 安装,pnpm 会要求你在 pnpm-workspace.yamlallowBuilds 授权构建脚本——这等于允许包代码在安装时于本机执行;建议锁定 commit(github:ziduup/dsh-programming-mode#<sha>)。从 npm 或 tarball 安装的是预构建产物,无此门槛。

自行构建

pnpm pack   # 产出 tarball,可用 dsh plugin add ./dsh-programming-mode-<版本>.tgz 安装

作者与许可

子都(ziduup)· 仓库:ziduup/dsh-programming-mode · MIT

Plugins associés