verify-changes
ما الذي تفعله
تجعل هذه المهارة ذكاءك يختبر تغييراته بنفسه قبل أن يقول إنها تعمل. وهي لكل من يريد دليلًا حقيقيًا على أن الكود الجديد أو المعدَّل يعمل.
متى تستخدمها
- ✓عندما يكون ذكاؤك قد كتب كودًا للتو أو عدّله، وتريد دليلًا على أنه يعمل.
- ✓عندما تحتاج إلى التأكد من أن إصلاح خطأ يوقفه فعلًا.
- ✓عندما يجب فحص تغيير في البناء أو الإعدادات بتشغيله فعلًا.
رابط المهارة
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/verify-changes/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“نفّذ التغيير، ثم شغّله وأرني المخرجات حتى أعرف أنه يعمل فعلًا.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تطابق المهارة طريقة التحقق مع نوع التغيير، مثل إعادة إنتاج الخطأ أو تشغيل البناء. يشغّل الذكاء ما يلزم ويعرض الدليل.
المحتوى التقني (ملف 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
- آخر تحديث
- 18/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
batch-operations
8.2kيساعد وكيلك على إجراء التغيير نفسه على ملفات كثيرة دفعة واحدة، مثل إعادة تسمية دالة أو استبدال استيراد قديم في كل مكان.
brainstorming
8.2kيعلّم وكيلك أن يطرح أسئلة توضيحية قبل بناء أي شيء جديد أو معقد، حتى يفهم هدفك أولًا.
code-review-checklist
8.2kيعطي وكيلك قائمة تحقق لمراجعة الكود من ناحية الصحة والأمان والأداء والاختبارات والتوثيق، بما في ذلك مخاطر الذكاء الاصطناعي.
code-review-graph
8.2kيساعد وكيلك على مراجعة الكود في المشاريع الكبيرة باستخدام خريطة بنيوية، فيقرأ الملفات المتأثرة بالتغيير فقط.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.