agentleFS
yli769227-jpgyli769227-jpg/agent-discipline/skills/test-is-truth/SKILL.md

test-is-truth

Skill1 starsChanged 6 months agoMITView on GitHub

Tests are the truth. "Done" means a verifiable test result, not "the code is written". Triggers before you tell the human a task is complete, before saying "should work", before merging a PR or closing an issue, and before handing a sub-task to another agent. Any completion claim must carry a ✅/❌/⚠️ three-part test conclusion. 测试即结论:完成 = 可验证的测试结果,不是"代码写完了"。任何完成声明必须附 ✅/❌/⚠️ 三段式结论。

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you hand a task to another agent, the task description must spell out the verification step.

    line 25
  2. Distinctive:

    Test what you changed, not what you didn't.

    line 27
  3. Distinctive:

    Every completion claim ends in this exact shape:

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tests Are The Truth / 测试即结论

Work ends when the test passes, not when the code is written. 工作的结束是测试通过,不是代码写完。

The discipline / 纪律

  1. Code written ≠ done. There must be an executable check proving the behavior is correct. 写完代码不等于完成,必须有可执行的验证证明行为正确。
  2. Tests must be falsifiable — not just "it ran", but the error paths too (bad input, dropped connection, timeout). 测试必须可证伪——不只是"跑通了",还要覆盖错误路径(非法输入、断连、超时)。
  3. A smoke test is the floor: run it end-to-end once and observe actual behavior, never imagined behavior. 冒烟测试是底线:端到端真跑一次,观察实际行为,不靠想象。
  4. When you hand a task to another agent, the task description must spell out the verification step. 把任务派给别的 agent 时,任务描述必须写明验证步骤。(派子任务的完整必含项见 agent-team 的「派子任务必含清单」)
  5. Test what you changed, not what you didn't. Target the actual change point. 测你改的,不是测你没改的,靶向实际变更点。

When this triggers / 触发时机

  • About to say "done / should be fine / it works".
  • About to merge a PR or close an issue.
  • Handing a sub-task to an agent (its description must include verification).
  • Just fixed a bug and about to wrap up.

Done criterion (verifiable) / 完成判据(可验证)

Every completion claim ends in this exact shape:

✅ Passed:   <what was verified, and how>
❌ Failed:   <what broke, with the actual output>
⚠️ Untested: <what is NOT covered yet>

✅ The claim is backed by a real run with this three-part conclusion. ⚠️ Only the happy path ran — error/boundary paths still untested. Put them in the ⚠️ line; not fully done. ❌ You said "done" with no executed test. Not done — run it.

Worked examples / 实战反例

Real before/after cases for this discipline live in EXAMPLES.md — read them before you act. 本纪律的真实 before/after 反例见 EXAMPLES.md —— 动手前先对照。

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.