一键导入
ds-quality-gate
Run the review pipeline against the current branch or feature as a finite quality gate — a sequenced set of strict review passes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the review pipeline against the current branch or feature as a finite quality gate — a sequenced set of strict review passes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Design a target architecture for a new system — module boundaries, dependency rules, seams, and build order — from its requirements. Reports a blueprint; changes nothing.
Analyze an existing codebase's architecture and produce a sequenced refactoring plan — assess module boundaries, dependency structure, and layering, then lay out ordered, risk-tagged steps. Language-agnostic. Reports a plan; changes nothing.
Turn a goal or another command's output into an ordered task roadmap.
Find the root cause of a failure with the scientific method — reproduce, isolate, fix, then prove it.
Interview the user relentlessly about a plan or design until reaching shared understanding.
Run an extremely strict maintainability + single-source-of-truth review of code changes — abstraction quality, file sprawl, spaghetti-condition growth, and duplicate/competing implementations. Reports findings by default; `--fix` applies the mechanical, unambiguous ones — structural/code-judo restructurings rest on judgment and stay reported.
| name | ds-quality-gate |
| description | Run the review pipeline against the current branch or feature as a finite quality gate — a sequenced set of strict review passes. |
| disable-model-invocation | true |
When invoked, run the quality gate: six strict review passes in sequence, bookended by /ds-deslop — run first to clean the incoming diff, and again last to strip any slop the between-pass fixes introduced. Each pass surfaces findings, you accept or reject them, the agent implements the accepted ones, then the next pass runs. The gate is finite — it runs once through the passes and finishes, not a standing mode. Say "stop" or "skip the rest" at any point to end it early.
Scope: the changed files on the current branch (same as /ds-code-quality-review with no argument). Narrow it by passing a path — /ds-quality-gate src/handlers/ limits every pass to that path.
1. /ds-deslop — strip narrating comments, defensive overkill, type escape hatches (clean the incoming diff)
2. /ds-code-quality-review — single source of truth + structure: delete duplicates, competing implementations, and dead abstractions, then is the diff making the codebase worse? (run early, so later passes don't audit code that should have been deleted)
3. /ds-test-quality-review — is the risky logic covered with real, non-trivial tests?
4. /ds-security-review — exploitability: input, auth, secrets, I/O, injection
5. /ds-bug-review — correctness: real bugs, not style
6. /ds-data-review — data correctness: schema, queries, transactions, migrations. Only when the change touches one of those; otherwise skip with a note
7. /ds-doc-quality-review — is the public API, config, and non-obvious behavior documented?
8. /ds-deslop — final cleanup: re-run to strip any slop the between-pass fixes introduced
Each pass answers a different question. They do not overlap. The order matters: strip noise first so the structural and correctness passes see signal, not slop — and strip it again last, because this gate implements accepted fixes between passes, and those fixes are themselves freshly-generated code that can carry slop.
After each pass:
If a pass finds nothing: say so in one line and move on. Do not pad.
/ds-quality-gate # run the full pipeline on branch changes
/ds-quality-gate src/api/ # scope every pass to a path
Say "stop" or "skip the rest" at any point to end the gate early. After the final pass, report a one-paragraph summary: what was fixed, what was skipped, and whether the branch is ready for /ds-verify-this.
/ds-security-review on a pure-data-model change with no I/O, or /ds-data-review on a change that touches no schema, queries, transactions, or migrations), say so and move on./ds-deslop bookends the pipeline: first so reviewers (and the later passes) see clean code, and last so slop introduced by the gate's own between-pass fixes doesn't survive. The final deslop is the closing step — nothing runs after it.