Logo Verify Before Done

Verify Before Done

Cộng đồng
andreaswasita
verify-before-done

Chứng minh công việc bằng các bài kiểm thử, bản diff và nhật ký trước khi phê duyệt.

Tổng quan

Nhà phát hànhandreaswasita
Kho mãcopilot-agents-dojo
Tên kỹ năngverify-before-done
Sao
54
Bản fork
15
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được andreaswasita công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Verify Before Done trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/verify-before-done
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/verify-before-done .claude/skills/verify-before-done
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Verify Before Done trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Verify Before Done ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Verify Before Done với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Verify Before Done Skill

Refuses to mark a task complete without concrete evidence from both automated checks and the real artifact or user-facing surface. Produces an explicit VERIFIED, NOT VERIFIED, or INCONCLUSIVE verdict. Does NOT replace scripts/verify.sh — it tells the agent when to run it and what evidence the gate cannot supply.

When to Use

  • Before flipping any step in tasks/todo.md from - [ ] to - [x].
  • Before opening a pull request.
  • After any fix or feature implementation.
  • After performance work, migrations, or changes whose success depends on runtime behavior.
  • Any time the agent is about to say "done" or "ready" without evidence.

Prerequisites

  • A test runner installed for the stack (pytest, vitest, go test, etc.).
  • scripts/verify.sh (or scripts/run-checks.ps1 on Windows) executable.
  • The powershell tool to invoke runners and git.
  • git available so diffs can be inspected.

How to Run

text
1. State the success predicate and capture a baseline when behavior is changing.
2. Run the project's tests and the dojo gate via the `powershell` tool.
3. Exercise the real artifact or user-facing surface.
4. Inspect the diff and working tree.
5. Record evidence and assign a verdict.
6. Mark the step complete only when the verdict is `VERIFIED`.

Quick Reference

CheckCommand (run via powershell)Pass criterion
Tests passpytest / npm test / go test ./... / dotnet test / mvn testexit 0, no failures reported
Dojo gatebash scripts/verify.sh --checkexit 0
Real artifactMatching browser, CLI, API, package, migration, or runtime checkobserved result satisfies the stated predicate
Baseline comparisonSame measurement before and after the changeresult moves from failing/old state to expected state
Diff summarygit diff main --statmatches plan in tasks/todo.md
No regressionsgit diff main -- <touched paths>only intended changes
Clean treegit status --porcelainempty output (or expected untracked)
Evidence capturededit tasks/todo.mdVerification Results block added
VerdictMeaningCompletion allowed?
VERIFIEDEvidence proves the success predicate on the real artifact.Yes
NOT VERIFIEDEvidence proves the result is wrong or regressed.No
INCONCLUSIVEThe check was unavailable, used the wrong surface, or could not distinguish success from failure.No

Procedure

Step 1: State the Predicate and Baseline

Write one falsifiable sentence describing success before running checks. For a bug, capture the failing behavior first. For performance work, record the original measurement. For a migration, record the pre-change state and the expected post-change invariant.

Examples:

  • "Submitting an expired token returns HTTP 401."
  • "The p95 latency for this fixture is below 200 ms."
  • "Running the migration twice leaves the schema and data unchanged."

If no meaningful baseline exists, state why. Do not invent one after seeing the result.

Step 2: Run the Full Test Suite

Run via the powershell tool — not "it compiles", not "the unit test I wrote". The full suite catches regressions in adjacent code.

If the area you changed has no tests, write one as part of the task. An untested change is unverified by definition.

Step 3: Run the Dojo Gate

bash
bash scripts/verify.sh --check

This wraps the spec/plan/actions/tests checks in CI parity mode. If it fails locally, it will fail in CI.

Step 4: Exercise the Real Artifact

Use the matching surface:

ChangeRequired runtime evidence
Browser or desktop UIDrive the affected flow and capture the observed state or screenshot.
CLI or TUIRun the command with representative inputs and inspect exit code and output.
APISend a representative request and inspect status, headers, and response body.
Package or libraryExercise the public entry point from a consumer-shaped test or example.
MigrationRun forward, validate invariants, and test the supported retry or rollback path.
PerformanceRepeat the same measurement method used for the baseline.

Tests prove code paths. The real-surface check proves the reported problem or requested outcome. A check on the wrong surface is INCONCLUSIVE, not a pass.

Step 5: Diff Against Main

bash
git diff main --stat
git diff main

The change set must match the plan in tasks/todo.md. Unexpected files in the diff are a red flag — either the plan is stale or you've leaked scope.

Step 6: Clean Tree Check

bash
git status --porcelain

Output must be empty (or contain only deliberately-untracked files). Debug prints, leftover scratch files, and stray .tmp artifacts all surface here.

Step 7: Record Evidence and Verdict

Append to tasks/todo.md under the current task:

markdown
### Verification Results
- Predicate: Expired tokens return HTTP 401.
- Verdict: VERIFIED
- Baseline: expired token returned HTTP 500 before the fix
- [x] Tests: 47 passed, 0 failed (`pytest tests/`)
- [x] Dojo gate: `verify.sh --check` PASS
- [x] Real artifact: API request returned HTTP 401 with expected body
- [x] Diff: 3 files changed, +84/-12 (matches plan)
- [x] Clean tree
- [x] Evidence: <paste relevant test output, log snippet, or screenshot ref>

Only a VERIFIED block permits flipping the step to - [x]. Record NOT VERIFIED and INCONCLUSIVE honestly, then keep working or report the blocker.

Step 8: Staff-Engineer Sniff Test

Final question: "Would a senior reviewer approve this on the evidence alone?" If no, add the missing evidence before claiming done.

Pitfalls

  • DO NOT say "done" without a Verification Results block. Verbal claims don't count.
  • DO NOT skip tests because "it's a small change." Small changes cause big outages.
  • DO NOT test only the happy path. Edge cases are where bugs live.
  • DO NOT ignore flaky tests. A flaky test is a test that sometimes catches bugs — fix it, don't ignore it.
  • DO NOT trust "it compiles." Compilation is the lowest possible bar.
  • DO NOT treat unit tests as proof that a user-visible or runtime problem is gone.
  • DO NOT convert an unavailable or wrong-surface check into a pass. Use INCONCLUSIVE.
  • DO NOT change the measurement method between baseline and result.
  • DO NOT mark a step done before scripts/verify.sh --check exits 0.

Verification

  • Test suite ran to completion with exit 0.
  • scripts/verify.sh --check (or run-checks.ps1 -Check) passed.
  • The real artifact or user-facing surface satisfies the stated predicate.
  • Baseline and result used the same measurement method when comparison applies.
  • git diff main --stat matches the plan.
  • git status --porcelain is empty.
  • tasks/todo.md has a Verification Results block with an explicit verdict.

Câu hỏi thường gặp

Kỹ năng AI Verify Before Done làm được gì?

Chứng minh công việc bằng các bài kiểm thử, bản diff và nhật ký trước khi phê duyệt.

Vì sao nên dùng Verify Before Done trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Verify Before Done là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Verify Before Done trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/verify-before-done. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Verify Before Done?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Verify Before Done với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Verify Before Done với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Verify Before Done có miễn phí không?

Có. Kỹ năng này được andreaswasita phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇