pre-modification-check
यह क्या करती है
यह स्किल आपके AI को किसी फ़ाइल को बदलने से पहले उसका जोखिम आँकने देती है। यह Repowise से इंडेक्स किए गए प्रोजेक्ट के उन डेवलपर्स के लिए है जो साझा या नाज़ुक कोड को तोड़ने से बचना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपका AI किसी साझा यूटिलिटी या मुख्य मॉड्यूल को एडिट करने वाला हो।
- ✓जब कोई फ़ाइल, जिसका आपने ज़िक्र नहीं किया, साइड इफ़ेक्ट के रूप में बदलने वाली हो।
- ✓जब आप कई फ़ाइलें एक साथ बदलना या मिटाना चाहें और पहले असर जानना चाहें।
Skill का लिंक
https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/pre-modification/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पेमेंट हेल्पर बदलने से पहले जाँचिए कि उस पर क्या निर्भर है, और क्या वह अक्सर टूटता रहा है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल फ़ाइल पर जोखिम जाँच चलाती है, जो उसकी फ़िक्स का इतिहास, निर्भर फ़ाइलें, वे फ़ाइलें जो उसके साथ आमतौर पर बदलती हैं, उसका मालिक, टेस्ट की कमियाँ और सुरक्षा संकेत बताती है। AI एडिट करने से पहले ये नतीजे पढ़ता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Pre-Modification Check with Repowise
Before modifying files in a Repowise-indexed codebase, assess the impact.
Before editing a file
Call get_risk(targets=["path/to/file.py"]). Per file it returns
hotspot_score, trend, risk_type, impact_surface (top 3),
dependents_count, co_change_partners, primary_owner,
test_gap, and security_signals. Read it for:
- Bug-fix history (
defect_profile) — present only on files with counted fixes:fix_countover the trailing 6 months,last_fix_days_ago, abug_magnetflag for sustained recent fix pressure, andtop_symbols(the per-symbol counts are approximate — read them as "mostly here"). A file that keeps getting fixed is the strongest single signal that the next edit breaks something; lead with it. - Hotspot status (
hotspot_score,trend) — high-churn × complex? Extra care needed. - Dependents (
dependents_count,impact_surface) — how wide is the blast radius? - Co-change partners — files that change together with this one (often without an import link); you may need to update them too.
- Ownership / bus factor — who owns it, and whether a single author maintains it.
- Test gap & security signals — flag untested or security-sensitive files before touching them.
When modifying multiple files
Batch all targets into one call: get_risk(targets=["file1.py", "file2.py", "module/"]).
When to warn the user
If get_risk shows:
- A
defect_profilewithbug_magnetset — say so plainly: this file has been fixed repeatedly and recently - Hotspot score above 90th percentile — mention this is a frequently-changed, high-risk file
- More than 10 dependents — list the top dependents; API changes here will break consumers
- Bus factor of 1 — note that a single person maintains this code
- Risk type is "bug-prone" or "high-coupling" — flag explicitly before making changes
Before refactoring or moving code
Call get_context(targets=["file.py"]) first to understand the full context: what uses this file, what decisions govern it, and why it's structured this way. This prevents accidentally violating architectural decisions.
For a heavy refactor, also call get_health(targets=["file.py"]) — the
marker findings (complexity, deep nesting, low cohesion, duplication) tell
you what to improve while you're in there, and give you a before/after score.
Error handling
If get_risk returns a tool error, the MCP server may not be running. Proceed with the modification but note that risk assessment was unavailable.
अक्सर पूछे जाने वाले सवाल
यह जाँच मुझे क्या बताती है?
बग-फ़िक्स का इतिहास, कितनी फ़ाइलें इस पर निर्भर हैं, साथ बदलने वाली फ़ाइलें, मुख्य मालिक, और टेस्ट गायब हैं या नहीं।
क्या यह एक साथ कई फ़ाइलें जाँच सकती है?
हाँ। स्किल कहती है कि सभी लक्ष्य फ़ाइलों को एक ही जाँच में बैच करें।
क्या यह एडिट होने से रोक देती है?
यह बदलाव को रोकती नहीं, बल्कि उसकी जानकारी देती है, ताकि AI अतिरिक्त सावधानी की योजना बना सके या संबंधित फ़ाइलें अपडेट कर सके।
जानकारी
लेखक का मूल विवरण
Use before modifying, refactoring, or deleting files in a codebase that has Repowise indexed (indicated by a .repowise/ directory). Activates when Claude is about to edit code, especially shared utilities, core modules, or files the user didn't explicitly mention. Helps assess impact and avoid breaking things.
repo: repowise-dev/repowise
लोकप्रियता
- GitHub स्टार
- 8.1k
- रैंकिंग में स्थान
- #12569
- लाइसेंस
- AGPL-3.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
architectural-decisions
8.1kयह आपके एजेंट को किसी आर्किटेक्चर को बदलने से पहले दर्ज किए गए फ़ैसलों और इतिहास से यह जानने में मदद करती है कि कोड ऐसे क्यों बना है।
change-review
8.1kयह आपके एजेंट को मर्ज से पहले pull request या बदलावों के समूह की समीक्षा करने में मदद करती है, जोखिम, प्रभावित फ़ाइलें और बाकी क्या बदलना चाहिए, यह दिखाते हुए।
code-health
8.1kयह आपके एजेंट को फ़ाइल-दर-फ़ाइल कोड स्वास्थ्य का स्कोर देने, सबसे जोखिम भरी फ़ाइलें ढूँढने और अगले रीफ़ैक्टर के लिए चुनने में मदद करती है, Repowise विश्लेषण से।
codebase-exploration
8.1kयह आपके एजेंट को यह बताकर कि कोड कैसे काम करता है, कौन क्या कॉल करता है और चीज़ें कहाँ बनी हैं, किसी अनजान प्रोजेक्ट को जल्दी समझने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।