anr-audit-and-fix
यह क्या करती है
यह स्किल Android कोड में Application Not Responding जमाव के जोखिम जाँचती है, और ANR stack dumps समझाती है। यह उन Android डेवलपरों के लिए है जिनके ऐप में जमाव या ANR रिपोर्ट दिखती है।
कब इस्तेमाल करें
- ✓जब आप Android कोड में ऐसा काम खोजना चाहते हैं जो main thread को रोकता है।
- ✓जब आपके पास ANR stack dump या trace है और आप जानना चाहते हैं कि उसका कारण क्या था।
- ✓जब Google Play या आपका crash टूल ANR त्रुटियाँ बताए और आपको संभावित सुधार चाहिए।
Skill का लिंक
https://github.com/android/skills/blob/main/performance/anr-audit-and-fix/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह हमारे ऐप का ANR trace है। बताइए कि इसका कारण क्या था और क्या ठीक करना है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
कोड के लिए स्किल जोखिम वाली कॉल की सूची बनाती है, साबित करती है कि वे किस thread पर चलती हैं और क्या सच में रोकती हैं, फिर हर एक को श्रेणी देती है। trace के लिए वह एक तय trace विश्लेषण गाइड का पालन करती है और सिर्फ़ log के सबूतों पर रिपोर्ट लिखती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Select the execution path matching the user's request:
1. Path A: Static codebase ANR risk audit
When auditing source files or scanning for thread-blocking operations:
- Follow references/risk_analysis_guide.md step by step: list candidates, prove the executing thread (trace callers when the thread depends on them), prove the call blocks, then attribute and grade. Report only candidates that pass these checks; list the dismissed ones separately with a one-line reason.
- Evaluate off-main-thread mutations of attached Views not merely as crash risks (
CalledFromWrongThreadException), but as Sync Barrier Leak ANR risks with their own proof (off-main execution plus an attached View).
2. Path B: Trace-driven diagnosis and remediation
When analyzing ANR traces or stack dumps:
- Diagnose systematically using references/trace_analysis_guide.md and format the report with references/anr_trace_report_template.md.
- Base findings strictly on log evidence. Propose application fixes only for
APP_DEFECTorAPP_RESOURCE_OVERLOAD(never forEXTERNAL_BOTTLENECK).
अक्सर पूछे जाने वाले सवाल
क्या यह हर धीमी कॉल की सूची देती है?
नहीं। यह सिर्फ़ वे जोखिम बताती है जिन्हें वह साबित कर सके, और खारिज किए गए जोखिम छोटे कारण के साथ अलग सूची में रखती है।
क्या यह हर ANR के लिए सुधार सुझाएगी?
सिर्फ़ ऐप के अपने कोड की समस्याओं के लिए। ऐप के बाहर के कारण, जैसे बाहरी बाधाएँ, के लिए ऐप में सुधार नहीं दिए जाते।
क्या यह crashes और frame drops कवर करती है?
नहीं। ANR के अलावा crashes, छूटे फ़्रेम और सिस्टम trace इस स्किल के बाहर हैं।
जानकारी
लेखक का मूल विवरण
Audits Android codebases for ANR risks and diagnoses ANR stack dumps. Use this skill when scanning Android code for ANR risks or triaging ANR stack dumps. Don't use for non-ANR crashes, dropped frames, general CPU profiling, or Perfetto system traces.
repo: android/skills
लोकप्रियता
- GitHub स्टार
- 10k
- रैंकिंग में स्थान
- #11926
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 29/10/2026
कमेंट
- …
इस repository की और skills
agp-9-upgrade
10kआपके एजेंट को Android ऐप को Android Gradle Plugin 9 पर ले जाने और उसके breaking changes सुधारने में मदद करती है। मल्टीप्लेटफ़ॉर्म प्रोजेक्ट के लिए नहीं।
camerax
10kआपके एजेंट को CameraX से Android कैमरा फ़ीचर बनाने में मदद करती है, जिसमें वीडियो रिकॉर्डिंग, हार्डवेयर कंट्रोल, ML Kit और Media3 इफ़ेक्ट शामिल हैं।
android-for-cars-parked-apps
10kआपके एजेंट को Android वीडियो, गेम या ब्राउज़र ऐप को Android Auto और Android Automotive पर parked ऐप के रूप में चलाने के लिए ढालने में मदद करती है।
appfunctions
10kआपके एजेंट को Android ऐप के मुख्य काम ढूँढकर उन्हें AppFunctions के रूप में देने में मदद करती है, ताकि AI एजेंट और वॉइस कमांड उन्हें चला सकें।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।