본문으로 건너뛰기
Skillpedia
모바일 앱10k · #11926

anr-audit-and-fix

하는 일

이 스킬은 Android 코드에서 앱 응답 없음(ANR) 멈춤 위험을 확인하고, ANR 스택 덤프를 설명합니다. 앱이 멈추거나 ANR 보고를 받는 Android 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓메인 스레드를 막는 작업이 있는지 Android 코드를 점검하고 싶을 때.
  • ✓ANR 스택 덤프나 트레이스가 있고 원인을 알고 싶을 때.
  • ✓Google Play나 충돌 도구가 ANR 오류를 보고해서 가능한 해결책이 필요할 때.

스킬 링크

https://github.com/android/skills/blob/main/performance/anr-audit-and-fix/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/android/skills/blob/main/performance/anr-audit-and-fix/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 앱의 ANR 트레이스입니다. 무엇이 원인인지 알려 주고, 무엇을 고쳐야 할지 말해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

코드의 경우 이 스킬은 위험한 호출 목록을 만들고, 그 호출을 어느 스레드가 실행하는지와 실제로 막는지 증명한 뒤 각각을 등급으로 나눕니다. 트레이스의 경우 정해진 트레이스 분석 가이드를 따르고, 로그 증거만 바탕으로 보고서를 씁니다.

기술 내용 (원본 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:

자주 묻는 질문

느린 호출을 모두 나열하나요?

아니요. 증명할 수 있는 위험만 보고하며, 제외한 항목은 짧은 이유와 함께 따로 나열합니다.

모든 ANR에 수정안을 제시하나요?

앱 자체의 문제에 대해서만 제시합니다. 외부 병목처럼 앱 밖의 원인에는 앱 수정안을 주지 않습니다.

충돌이나 프레임 드롭도 다루나요?

아니요. ANR이 아닌 충돌, 떨어지는 프레임, 시스템 트레이스는 이 스킬 범위 밖입니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬