verify-changes
できること
このスキルは、AIが動くと言う前に、自分の変更を実行してテストするようにします。新しいまたは変更されたコードが機能することの、本物の証拠がほしい人向けです。
使う場面
- ✓AIがコードを書いたか修正したばかりで、機能する証拠がほしいとき。
- ✓バグ修正が本当にバグを止めたかを確認する必要があるとき。
- ✓ビルドや設定の変更を、実際に実行して確認しなければならないとき。
スキルのリンク
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/verify-changes/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“変更を加えてから実行し、出力を見せてください。本当に機能するとわかるようにしたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、バグの再現やビルドの実行など、変更の種類に応じて検証の方法を合わせます。AIがそれを実行し、証拠を報告します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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 |
よくある質問
実行による検証とは何を意味しますか?
コードを読んで動くと仮定するのではなく、コードを実行して何が起きたかを報告することです。
リファクタリングはどう確認しますか?
既存のテストを実行して、何も壊れていないことを確認します。
ユーザーインターフェースの変更にも使えますか?
はい。スキルは、コンポーネントを描画して視覚的な出力を確認することを提案します。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 8.2k
- ランキング
- #12543
- ライセンス
- MIT
- 更新日
- 2026/10/18
コメント
- …
このリポジトリの他のスキル
batch-operations
8.2k関数の名前変更や古いimportの置き換えなど、同じ変更を多くのファイルに一度に行うよう、エージェントを支援します。
brainstorming
8.2k何か新しいものや複雑なものを作る前に、エージェントが確認の質問をして、まず目標を理解するよう教えます。
code-review-checklist
8.2k正しさ、セキュリティ、性能、テスト、ドキュメントに加え、AI特有のリスクも含めて、コードをレビューするためのチェックリストをエージェントに与えます。
code-review-graph
8.2k大きなプロジェクトでは、構造のマップを使ってコードをレビューし、変更の影響を受けるファイルだけを読むよう、エージェントを支援します。
似ているスキル
test-driven-development
311k機能や修正を作る前に、まず失敗するテストを書き、それが失敗するのを確認してから、合格させる最小のコードを書くようエージェントに教えます。
verification-before-completion
311kタスク、修正、ビルドが完了した、または合格したと主張する前に、実際のチェックを実行し、その出力を読むようエージェントに教えます。
migrate-to-shoehorn
310kテストファイル内の危険な型キャストを、shoehornライブラリに置き換え、テストが部分的なデータを使いつつ型チェックを通るようにします。