一键导入
android-logcat-triage
Systematically narrow down an Android app bug using adb logcat instead of guessing from the crash screenshot alone.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematically narrow down an Android app bug using adb logcat instead of guessing from the crash screenshot alone.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write a well-formed SKILL.md (agentskills.io format) so it imports cleanly and actually gets used.
Write small, scoped, well-explained git commits instead of one giant dump of unrelated changes.
Sanity-check a shell command for destructive or irreversible side effects before running it, especially in an autonomous/unattended run.
| name | android-logcat-triage |
| description | Systematically narrow down an Android app bug using adb logcat instead of guessing from the crash screenshot alone. |
When investigating an Android app bug (crash, hang, wrong behavior) that has an adb-connected device or emulator available, work outward from the narrowest useful signal instead of dumping the entire unfiltered log:
adb logcat -c (clear old buffer) then adb logcat -s <TAG1>:* <TAG2>:*.adb logcat *:E (errors
only) to find the crashing component/exception, then re-run with that
component's tag to see the surrounding context.adb logcat -b crash -d (crash buffer, dump-and-exit) or
adb shell dumpsys activity ondestroy for an ANR, rather than scrolling
a live-scrolling terminal.dumpsys package <pkg> | grep permission, dumpsys activity | grep -A5 <pkg>) — many "random" Android bugs are actually a permission silently
denied or a component in the wrong lifecycle state, which won't show up
as a stack trace at all.