dshbase

插件目录 / Developer / ds-spec-loop

ds-spec-loop

已验证 · 实测可装 songyang0603

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

41Stars
1Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

可移植技能,仓库原生Spec编程

✅
我们的评价
可用 — 实测通过,社区增长中

可移植技能,仓库原生Spec编程 实测能干净安装、正常启动。社区在增长,是个稳妥选择。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

ds-spec-loop

English | 简体中文

A general Spec programming Skill for coding agents.

ds-spec-loop helps coding agents keep requirements, decisions, implementation, tests, and documentation consistent while building features, fixing bugs, changing architecture or interfaces, improving tests and development processes, or removing code.

Here, Spec programming does not mean writing a long plan before coding. It means using the repository itself as the source of truth: instructions describe constraints, current documentation describes the system as it exists, decision records preserve why choices were made, and code plus tests provide executable evidence.

Method origin

This independent community project was developed from analysis of Spec and decision practices visible in the public DeepSeek Harness repository and Git history.

The runtime Skill uses general terms and does not require that repository's directories, framework, or test commands. This project is not official, is not affiliated with or endorsed by DeepSeek, and does not redistribute DeepSeek Harness source code. See NOTICE.

🚀 Install and use

Community Skills CLI

The community-maintained skills installer requires Node.js and lets you choose the target coding agent and installation scope:

npx skills add songyang0603/ds-spec-loop

GitHub CLI

gh skill install songyang0603/ds-spec-loop ds-spec-loop --agent codex --scope user

Replace codex with claude-code or github-copilot when appropriate.

Manual installation

Clone or download this repository, then copy the entire skills/ds-spec-loop directory:

Host User scope Repository scope
Codex ~/.agents/skills/ds-spec-loop .agents/skills/ds-spec-loop
Claude Code ~/.claude/skills/ds-spec-loop .claude/skills/ds-spec-loop
GitHub Copilot ~/.copilot/skills/ds-spec-loop or ~/.agents/skills/ds-spec-loop .github/skills/ds-spec-loop, .claude/skills/ds-spec-loop, or .agents/skills/ds-spec-loop

See the current official documentation for Codex, Claude Code, and GitHub Copilot.

Invoke the Skill

Host Command
Codex $ds-spec-loop
Claude Code /ds-spec-loop
GitHub Copilot CLI /ds-spec-loop

Examples below use Codex syntax. Replace $ds-spec-loop with /ds-spec-loop in Claude Code or GitHub Copilot CLI.

Implement a change:

Use $ds-spec-loop to implement this change. Reuse the repository's existing
decision, documentation, test, and CI conventions, and keep them consistent.

Write a proposal without implementing it:

Use $ds-spec-loop to investigate this change and write its proposal.
Do not implement it. Compare real alternatives and define direct checks.

Review without modifying:

Use $ds-spec-loop to check whether proposals, decisions, code, tests,
generated files, and current documentation agree. Do not modify files.

The requested task boundary remains binding: review-only stays read-only, and proposal-only does not silently become implementation.

✨ What it does

Feature What the agent does
Understand existing conventions Reads applicable instructions, proposals, decisions, current docs, source, tests, generated files, CI, and relevant Git history
Reuse one decision record Updates the record already responsible for the change; creates a narrowly scoped record when none exists
Write testable acceptance criteria States what should be observable, where it can fail, and which direct check can disprove completion
Trace the affected integration path Checks the layers that actually connect the change to its caller, runtime, persistence, or visible result
Handle changed requirements Revises an unfinished proposal in place; creates a replacement record only after a delivered decision is reversed
Keep the repository consistent Updates affected decisions, code, tests, generated files, public contracts, and current docs in the same pull request or linked changes
Remove code completely Checks real consumers and removes obsolete code, registration, exports, config, tests, docs, and compatibility behavior

The core rule is:

Every non-mechanical change creates or updates one decision record responsible for that change.

A spelling correction, formatting-only edit, or other local mechanical change is exempt only when it changes no behavior, contract, structure, process, test strategy, stored-data format, or rationale.

🧭 How it works

The Skill does not impose one directory layout. It first finds which existing files already perform each job.

Responsibility Common repository forms
Working rules AGENTS.md, CLAUDE.md, Copilot instructions
Unfinished decision Spec, RFC, proposal, design doc, draft ADR
Current decision ADR, decision record, implemented design, shipped RFC
Current system description architecture docs, README, API or package docs
Focused checks pytest, cargo test, go test, pnpm test, real CLI/UI/API checks
Full checks GitHub Actions, Makefile, pre-commit, repository scripts

A Python project is not told to run pnpm test. A repository that already uses ADRs is not told to create another decision directory.

If no equivalent convention exists, the Skill proposes only a small fallback: repository instructions, current architecture documentation, and a directory such as docs/decisions/. It does not create class folders, archives, indexes, validators, translations, or checksum files without a demonstrated need.

Decision lifecycle

The method preserves three meanings without forcing particular status words:

Stage Meaning
Working not delivered yet, partly implemented, or still changing
Current implementation, direct checks, and current documentation agree
Declined considered but not adopted; retained only while the reason remains useful

An accepted ADR does not always mean the code has shipped. A decision becomes Current only when implementation, direct checks, and current documentation agree.

Replacement is a relationship between decisions:

  • change an unfinished proposal directly;
  • create a new cross-linked record when a delivered decision is reversed;
  • keep both decisions Current when only part of the earlier decision was replaced;
  • consolidate an old decision only after the new record preserves its unique rationale, consequences, verification requirements, and reintroduction conditions.

Repository contents

skills/ds-spec-loop/
├── SKILL.md
├── agents/openai.yaml
└── references/
    ├── acceptance-and-evidence.md
    ├── adoption.md
    ├── decision-classes.md
    ├── decision-record-lifecycle.md
    ├── documentation-discipline.md
    ├── requirement-change.md
    ├── simplification.md
    ├── system-of-authority.md
    └── templates.md

SKILL.md contains the portable core. References load only when the task needs them. agents/openai.yaml contains optional Codex-specific metadata, including the default invocation prompt.

📝 Update log

v0.2 — 2026-08-17

Further generalized the Spec programming loop so it can be used in projects with different conventions. The Skill reuses each project's existing Specs, RFCs, ADRs, documentation, testing, and CI conventions, while strengthening rules for mid-development requirement changes, decision ownership, lifecycle transitions, partial replacement, and verification evidence. This update has passed cross-language scenario tests, structural validation, and independent review.

v0.1 — 2026-08-15

Published the first open-source version, based on Spec programming patterns observed in the public DeepSeek Harness repository. It included the reusable Skill, English and Chinese documentation, and installation instructions for Codex, Claude Code, and GitHub Copilot.

Contributing

Contributions are welcome. If you find a problem or have a suggestion, please open an Issue with enough context to understand or reproduce it; documentation improvements, usage examples, and focused pull requests are also appreciated.

See LICENSE for the project license.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 ds-spec-loop」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:songyang0603/ds-spec-loop

Headless(CLI)profile:

dsh plugin --profile headless add github:songyang0603/ds-spec-loop

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →