dsh-specify

by 904915452

0 技能包github 检测到 manifest package.json#dsh收录于 08-17

DeepSeek Harness 插件:Spec-Kit 规范驱动开发技能套件,提供 /speckit-* 斜杠命令。

DeepSeek Harness 插件:Spec-Kit 规范驱动开发技能套件(/speckit-* 斜杠命令)

安装

dsh plugin --profile web add github:904915452/dsh-specify

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DeepSeek Harness 插件:Spec-Kit spec-driven 开发,以一组可主动调用的斜杠命令暴露。

移植自本机 Claude Code 的 sdd skill,拆成 granular 命令,让你在 Harness 里用 /speckit-* 逐步控制整个 spec-driven 流程。

可用命令

命令 产物 作用
/speckit — hub:安装、greenfield/brownfield 决策、分支约定、摘要/状态模板
/speckit-constitution .speckit/constitution.md 项目原则
/speckit-specify …/specify.md 定义需求(WHAT/WHY)
/speckit-clarify 修订 specify.md 澄清歧义
/speckit-plan …/plan.md 技术方案
/speckit-tasks …/tasks.md 任务拆解
/speckit-analyze 一致性报告 需求/验收/边界覆盖检查
/speckit-implement 代码 按任务实现
/speckit-checklist …/checklist.md 质量门禁
/speckit-status 仪表盘 进度/依赖/下一步

命令名用连字符(speckit-implement),因为 DSH 的斜杠命令识别只接受 kebab-case。

分支控制

/speckit-specify 开始一个 feature 前会按「分支约定」决定是否新建分支:

  • 默认:从干净的 main/master 建 feat/<feature-slug> 分支;
  • 说「不建分支」或在命令后加 --no-branch:留在当前分支;
  • 在命令后加 --branch <name>:用指定分支名。

决策会写进摘要,/speckit-implement 会据此在正确分支上实现。

结构

dsh-specify/
├── cordis.patch.yml
├── lib/index.js                # host 插件:扫描 skills/ 注册所有命令
└── skills/
    ├── speckit/SKILL.md        # hub
    ├── speckit-*/SKILL.md      # 9 个 granular 命令
    ├── references/             # greenfield / brownfield / feature_management / install
    └── scripts/                # 4 个分析脚本

lib/index.js 把每个 <name>/SKILL.md 注册为 runtime skill,resourceBase 统一指向 skills/ 根目录,所以所有命令正文里的 references/…、scripts/… 相对路径都能解析。ctx.skills.register 默认 userInvocable: true,因此这些名字会作为 /speckit-* 斜杠命令暴露。

安装

# 任选一个镜像仓库克隆
git clone https://gitee.com/zqy-904915452/dsh-specify.git
# git clone https://github.com/904915452/dsh-specify.git
cd dsh-specify
dsh plugin --profile web add "file:$(pwd)"

file: 后要写 clone 下来的绝对路径;如果你用的是自定义 profile,把 web 换成你的 profile 名。 也可以直接用仓库地址装:dsh plugin --profile web add git+https://gitee.com/zqy-904915452/dsh-specify.git (或 GitHub 镜像 git+https://github.com/904915452/dsh-specify.git)。

安装后重启会话。之后直接输入 /speckit-specify … 即可主动触发对应步骤。

前置

Spec-Kit 流程依赖 specify CLI:

uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
specify check

排障见 skills/references/sdd_install.md。

原始 README: https://github.com/904915452/dsh-specify/blob/main/README.md ↗