Chuyển đến nội dung
Skillpedia
Kiểm thử8.2k · #12543

verify-changes

Skill này làm gì

Skill này khiến AI của bạn tự kiểm tra các thay đổi của chính nó bằng cách chạy chúng trước khi nói rằng chúng hoạt động. Dành cho bất kỳ ai muốn bằng chứng thật rằng mã mới hoặc đã thay đổi hoạt động.

Khi nào nên dùng

  • ✓Khi AI của bạn vừa viết hoặc sửa mã và bạn muốn bằng chứng nó hoạt động.
  • ✓Khi bạn cần xác nhận một bản sửa lỗi thực sự ngăn được lỗi.
  • ✓Khi một thay đổi build hoặc cấu hình phải được kiểm tra bằng cách chạy thật.

Liên kết skill

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/verify-changes/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/verify-changes/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thực hiện thay đổi, rồi chạy nó và cho tôi xem kết quả để tôi biết nó thực sự hoạt động.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill khớp phương pháp kiểm chứng với loại thay đổi, như tái hiện lỗi hoặc chạy build. AI chạy nó và báo cáo bằng chứng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Verify Changes — Prove Code Works

"Code that exists" ≠ "Code that works." This skill ensures changes are verified through execution.

Core Principle

❌ Verification by inspection:  "I can see the function exists, it should work"
❌ Verification by assumption:  "The types check out, so it's correct"
✅ Verification by execution:   "I ran it, here's the output, it works because [evidence]"

Verification Protocol

Step 1: Identify What Changed

- Which files were modified?
- What behavior should be different now?
- What was the original bug/requirement?

Step 2: Determine Verification Method

Change Type Verification Method
Bug fix Reproduce the original bug scenario → confirm it no longer occurs
New feature Run the feature → confirm expected output
Refactor Run existing tests → confirm nothing broke
API change Call the endpoint → confirm response shape
UI change Render the component → confirm visual output
Config change Load the config → confirm values applied
Build/infra Run build command → confirm success

Step 3: Execute Verification

# For Node.js projects
npm run build          # Does it compile?
npm run test           # Do tests pass?
npm run dev            # Does it start?

# For specific files
node -e "require('./path/to/module'); console.log('✅ Loads correctly')"

# For API endpoints
curl http://localhost:3000/api/endpoint

# For scripts
python script.py --test

Step 4: Report Evidence

## Verification Report

### What was changed
- [File list and summary]

### How it was verified
- [Exact commands run]

### Evidence
- Build: ✅ Compiled without errors
- Tests: ✅ 42/42 passing
- Runtime: ✅ Server starts, endpoint returns expected JSON
- Edge case: ✅ Empty input handled correctly

### Not yet verified
- [Anything that couldn't be tested automatically]

Verification Checklist by Project Type

Web Application

  • npm run build — compiles without errors
  • npm run lint — no linting errors
  • npm run test — all tests pass
  • Dev server starts successfully
  • Changed pages render correctly
  • No console errors in browser

API / Backend

  • Server starts without errors
  • Changed endpoints respond correctly
  • Error cases return appropriate status codes
  • Database queries execute successfully

CLI / Script

  • Script runs without errors
  • Expected output matches actual output
  • Error handling works (bad input test)
  • Help/usage text is correct

Anti-Patterns

Anti-Pattern Why It's Bad Fix
"It should work" No evidence Run it and show output
Only checking happy path Bugs hide in edge cases Test error paths too
Verifying only compilation Compiles ≠ correct Test runtime behavior
Skipping verification for "trivial" changes Trivial changes cause real bugs Verify everything

Integration with Other Skills

After Using Verify With
frontend-design → UI changes Render in browser, check console
backend-specialist → API changes curl endpoints, check responses
database-design → Schema changes Run migrations, query data
testing-patterns → New tests Run test suite, check coverage
Câu hỏi thường gặp

Kiểm chứng bằng thực thi nghĩa là gì?

Nghĩa là chạy mã và báo cáo điều gì đã xảy ra, thay vì chỉ đọc mã và cho rằng nó hoạt động.

Nó kiểm tra refactor thế nào?

Nó chạy các test hiện có để xác nhận không có gì bị hỏng.

Nó có dùng được cho thay đổi giao diện người dùng không?

Có. Skill gợi ý render component để xác nhận kết quả hiển thị.

Chi tiết

Mô tả gốc của tác giả

Prove code works by running it, not just checking it exists. Verification through execution rather than inspection. Use after writing or modifying code to ensure it actually functions correctly.

repo: vudovn/ag-kit

Độ phổ biến

Sao GitHub
8.2k
Vị trí xếp hạng
#12543
Giấy phép
MIT
Cập nhật
18/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự