agentleFS
WenaixiWenaixi/dsh-superpower/skills/verification-before-completion/SKILL.md

verification-before-completion

Skill19 starsChanged 2 months agoMITView on GitHub

Superpower Skill:在声称完成、修复或通过前强制执行校验,用于提交或创建 PR 前必须运行验证命令并确认输出,始终以证据为准而非断言。

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • c-reichertSkill

    finishing-a-branch

    Use when implementation is complete and all tests pass — guides branch completion by presenting structured options for merge, PR, or cleanup.

    Also in 3 projects that use this

  • MicrosoftSkill

    testing-anti-patterns

    Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies

    Also in 4 projects that use this

  • MorningStar0709Skill

    workflow-runner

    Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.

    Also in 4 projects that use this

  • +1 more from shibit-net

The file

Files
SKILL.md

完成前的校验

概述

核心原则: 始终以证据为先,再作断言。

违背规则的字面,即是违背规则的精神。

铁律

未经全新的校验证据,不得声称完成

若在本条消息中未运行校验命令,则不得声称其已通过。

门禁流程

在声称任何状态或表达满意之前:

1. 识别:哪条命令能证明该断言?
2. 执行:完整执行该命令(全新、完整)
3. 读取:完整输出,检查退出码,统计失败数
4. 核验:输出是否印证该断言?
   - 若否:如实陈述实际状态并附上证据
   - 若是:附证据再作断言
5. 仅在此之后:方可提出断言

跳过任何一步即等同于撒谎,而非校验

常见失效场景

断言所需证据不充分的依据
测试通过测试命令输出:0 失败历史运行结果、“应该能过”
Lint 干净Linter 输出:0 错误局部检查、推断外延
构建成功构建命令:exit 0Linter 通过、日志看起来正常
缺陷已修复复现原症状的测试:通过已改代码、想当然认为已修
回归测试有效红绿循环已验证仅通过一次
agent 已完成VCS diff 显示有变更agent 报告“成功”
需求已满足逐项核对清单测试通过

危险信号 - 立即停止

  • 使用“应该”“大概”“似乎”等不确定表述
  • 校验前就表达满意(“太好了!”“完美!”“搞定了!”等)
  • 未经校验就准备 commit / push / 提 PR
  • 轻信 agent 的成功报告
  • 依赖局部校验
  • 心存“就这一次”的侥幸
  • 因疲惫而想草草收工
  • 任何未运行校验就暗示成功的措辞

防止自我合理化

借口事实
“现在应该能行了”去运行校验
“我很有把握”把握 ≠ 证据
“就这一次”没有例外
“Linter 过了”Linter ≠ 编译器
“agent 说成功了”需独立核验
“我太累了”疲惫不是理由
“局部检查就够了”局部证明不了任何事
“换个说法就不算违规”重精神而非抠字眼

关键模式

测试:

[OK] [执行测试命令] [看到:34/34 通过] “所有测试通过”
[FAIL] “现在应该能过了” / “看起来是对的”

回归测试(TDD 红绿循环):

[OK] 编写 → 运行(通过)→ 回退修复 → 运行(必须失败)→ 恢复 → 运行(通过)
[FAIL] “我已写好回归测试”(未经红绿验证)

构建:

[OK] [执行构建] [看到:exit 0] “构建通过”
[FAIL] “Linter 过了”(Linter 不检查编译)

需求:

[OK] 重读方案 → 创建核对清单 → 逐项核验 → 报告缺口或完成情况
[FAIL] “测试通过,阶段完成”

agent 委派:

[OK] agent 报告成功 → 检查 VCS diff → 核验变更 → 报告实际状态
[FAIL] 轻信 agent 报告

适用时机

始终在以下动作之前:

  • 任何形式的成功/完成断言
  • 任何满意度的表达
  • 任何关于工作状态的肯定性陈述
  • 提交、创建 PR、任务收尾
  • 进入下一项任务
  • 委派给 agent

规则适用于:

  • 准确措辞
  • 改写与同义词
  • 暗示成功
  • 任何暗示完成/正确的沟通

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.