verification-loop
यह क्या करती है
यह स्किल code बदलाव साझा करने से पहले गुणवत्ता की कई जाँचें चलाती है। यह उन डेवलपर के लिए है जो pull request से पहले build, type, lint, test और सुरक्षा की समस्याएँ पकड़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपने कोई feature या बड़ा code बदलाव पूरा कर लिया हो और उसकी जाँच चाहते हों।
- ✓जब आप pull request खोलने वाले हों।
- ✓जब आपने code को refactor किया हो और पक्का करना हो कि कुछ टूटा नहीं।
Skill का लिंक
https://github.com/Galaxy-Dawn/claude-scholar/blob/main/skills/verification-loop/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे pull request खोलने से पहले मेरे बदलावों पर सभी गुणवत्ता जाँचें चलाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके प्रोजेक्ट के लिए सही commands चुनता है, build, type check, lint और tests क्रम से चलाता है, परिणाम बताता है, और किसी build विफलता को पहले ठीक करने के लिए रुक जाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Verification Loop Skill
A comprehensive verification system for Claude Code sessions.
When to Use
Invoke this skill:
- After completing a feature or significant code change
- Before creating a PR
- When you want to ensure quality gates pass
- After refactoring
Verification Phases
Choose the commands adaptively for the current project instead of running every example blindly. Use the stack-appropriate command from references/STACK-DETECTION.md when the repo does not match the default examples below.
Phase 1: Build Verification
# Python projects (uv)
uv build 2>&1 | tail -20
# OR
python -m build 2>&1 | tail -20
# Node.js projects
npm run build 2>&1 | tail -20
# OR
pnpm build 2>&1 | tail -20
If build fails, STOP and fix before continuing.
Phase 2: Type Check
# TypeScript projects
npx tsc --noEmit 2>&1 | head -30
# Python projects
pyright . 2>&1 | head -30
Report all type errors. Fix critical ones before continuing.
Phase 3: Lint Check
# JavaScript/TypeScript
npm run lint 2>&1 | head -30
# Python
ruff check . 2>&1 | head -30
Phase 4: Test Suite
# Python projects
pytest --cov=src --cov-report=term-missing 2>&1 | tail -50
# Node.js projects
npm run test -- --coverage 2>&1 | tail -50
Report:
- Total tests: X
- Passed: X
- Failed: X
- Coverage: X%
Phase 5: Security Scan
# Python: Check for secrets
grep -rn "sk-" --include="*.py" . 2>/dev/null | head -10
grep -rn "api_key" --include="*.py" . 2>/dev/null | head -10
pip-audit
# Node.js: Check for secrets
grep -rn "sk-" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
grep -rn "api_key" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
# Check for debug statements
grep -rn "print(" --include="*.py" src/ 2>/dev/null | head -10
grep -rn "console.log" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | head -10
Phase 6: Diff Review
# Show what changed
git diff --stat
git diff HEAD~1 --name-only
Review each changed file for:
- Unintended changes
- Missing error handling
- Potential edge cases
Output Format
After running all phases, produce a verification report:
VERIFICATION REPORT
==================
Build: [PASS/FAIL]
Types: [PASS/FAIL] (X errors)
Lint: [PASS/FAIL] (X warnings)
Tests: [PASS/FAIL] (X/Y passed, Z% coverage)
Security: [PASS/FAIL] (X issues)
Diff: [X files changed]
Overall: [READY/NOT READY] for PR
Issues to Fix:
1. ...
2. ...
Continuous Mode
For long sessions, run verification every 15 minutes or after major changes:
Set a mental checkpoint:
- After completing each function
- After finishing a component
- Before moving to next task
Run: /verify
Integration with Hooks
This skill complements PostToolUse hooks but provides deeper verification. Hooks catch issues immediately; this skill provides comprehensive review.
Reference Files
Load only what is needed:
references/STACK-DETECTION.md- how to choose the right verification command set for the current reporeferences/REPORT-TEMPLATE.md- report structure for final verification outputexamples/example-verification-report.md- example final report
अक्सर पूछे जाने वाले सवाल
क्या यह हर प्रोजेक्ट के लिए एक ही commands चलाती है?
नहीं। यह प्रोजेक्ट के stack, जैसे Python या Node.js, के हिसाब से commands चुनती है।
अगर build विफल हो जाए तो?
एजेंट रुक जाता है और आगे बढ़ने से पहले build ठीक करता है।
क्या इसमें security scan शामिल है?
हाँ। एक चरण security scan है, साथ में diff की समीक्षा भी।
जानकारी
लेखक का मूल विवरण
This skill should be used when the user asks to "verify code", "run verification", "check quality", "validate changes", or before creating a PR. Provides comprehensive verification including build, type check, lint, tests, security scan, and diff review.
लोकप्रियता
- GitHub स्टार
- 6.0k
- रैंकिंग में स्थान
- #14511
- लाइसेंस
- MIT
- अपडेट की गई
- 19/10/2026
कमेंट
- …
इस repository की और skills
agent-identifier
6.0kयह आपके एजेंट को Claude Code agents बनाना सिखाती है, उनका नाम, trigger विवरण, system prompt और settings सही ढंग से लिखकर।
architecture-design
6.0kयह आपके एजेंट को machine learning प्रोजेक्ट के कोड का मानक ढाँचा सिखाती है, और registrable हिस्से जोड़ते समय factory व registry पैटर्न का उपयोग करती है।
bug-detective
6.0kयह आपके एजेंट को कोड की गलतियाँ ढूँढने और ठीक करने में मदद करती है, एक साफ़ तरीके से: समस्या समझना, सबूत जुटाना, विचार जाँचना और सुधार को परखना।
citation-verification
6.0kयह आपके एजेंट को शैक्षणिक पेपर के हर citation को भरोसेमंद स्रोतों से मिलाना सिखाती है, ताकि नकली या गलत संदर्भ पकड़े जाएँ।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।