debugging-and-error-recovery

debugging-and-error-recovery is a skill for Claude Code from GuillemRoca/agent-skills-android. It costs 43 tokens per session (1,880 once invoked), scanned A, original, MIT.

A six-step process for finding and fixing unexpected Android behavior, such as crashes, failed tests, slow startup, or build failures.

In plain words
What is it for?
Use it to investigate Android bugs with device details, Logcat, Android Studio debugging, profiling, and tests that guard against the problem returning.
Why use it?
It replaces guesswork with reproduction, cause isolation, a root fix, regression protection, and verification.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills-android plugin — 29 skills, 7 commands, 3 agents, 1 hook shipped together

Good fit Use it to investigate Android bugs with device details, Logcat, Android Studio debugging, profiling, and tests that guard against the problem returning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guillemroca/agent-skills-android/debugging-and-error-recovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GuillemRoca/agent-skills-android --skill debugging-and-error-recovery
Clone the repo
git clone --depth 1 https://github.com/GuillemRoca/agent-skills-android

Made for: Claude Code.

Or install agent-skills-android, the plugin that ships this one along with the rest of its 29 skills, 7 commands, 3 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debugging-and-error-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/guillemroca/agent-skills-android/debugging-and-error-recovery/github.svg)](https://agentmods.dev/skills/guillemroca/agent-skills-android/debugging-and-error-recovery)
Your own site
<a href="https://agentmods.dev/skills/guillemroca/agent-skills-android/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/guillemroca/agent-skills-android/debugging-and-error-recovery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debugging-and-error-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/guillemroca/agent-skills-android/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/guillemroca/agent-skills-android/debugging-and-error-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,880 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01880
Opus 5 $0.00022 $0.00940
Sonnet 5 $0.00009 $0.00376
Haiku 4.5 $0.00004 $0.00188

Measured 9d ago against content hash d90c2bd71c06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

debugging-and-error-recovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/debugging-and-error-recovery/SKILL.md · 213 lines

How it starts

The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debugging and Error Recovery

Overview

"Stop-the-Line Rule: when unexpected behavior occurs, halt feature work." Debugging is systematic, not guesswork. Reproduce the bug, localize the cause, reduce to the simplest case, fix the root cause (not the symptom), guard against regression, and verify the fix.

When to Use

  • Unexpected crash or exception
  • Test failure (unit or instrumented)
  • Behavior that doesn't match the spec
  • Performance regression (jank, slow startup)
  • Build failure after seemingly unrelated changes

Stop-the-Line: When you encounter unexpected behavior, stop feature work. Errors compound — a bug in step 3 makes steps 4–10 wrong.

Core Process

Step 1: Reproduce

  1. Reproduce the bug reliably:

    • Same device/emulator? Same API level? Same data?
    • What sequence of actions triggers it?
    • Does it happen every time or intermittently?
  2. Capture the environment:

    Device: Pixel 7 (API 35) / Emulator (API 26)
    Build: debug / release
    Steps: Open app → Navigate to Tasks → Tap "Add" → Crash
    Frequency: Every time / ~30% of the time
    

    When the android CLI is available, use it for the fastest possible state capture before doing anything else:

    android info                                     # SDK location, JDK, env (rules out wrong-toolchain bugs)
    android screen capture -o repro.png              # what the user sees right now
    android layout --pretty --output=repro.json      # full UI tree (resource-ids, text, bounds, role)
    

    Three artifacts in <5 seconds, pre-debugger. Attach them to the bug report or commit them to a repro/ scratch dir before iterating. See references/android-cli-reference.md.

Step 2: Localize

  1. Read the error output carefully:

    Logcat:

    # Filter to your app
    adb logcat -s "YourApp:D" "AndroidRuntime:E"
    
    # Filter by tag
    adb logcat -s TaskViewModel:D
    
    # Search crash logs
    adb logcat "*:E" | grep -i "fatal\|crash\|exception"
    

Read the full file on GitHub · 213 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 213 lines · 43 tokens per session scan A d90c2bd71c06

Subscribe to this mod's changes

debugging-and-error-recovery is a skill published in the GitHub repository GuillemRoca/agent-skills-android (2 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 1,880 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

google-mobile-ads-validate

Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects. Use when conducting a full pre-launch audit of an app that integrates GMA SDK or when validating any individual GMA SDK integration checks, such as when validating ad unit IDs and ad formats, SKAdNetwork IDs, mediation…

google/skills · 84 tokens

r8-analyzer

Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. Use when developers want to optimize their app's size, remove redundant or overly broad keep rules, or troubleshoot Proguard configurations.

android/skills · 60 tokens

android-profiler

Manages Android performance profiling and debugging. Triggers when the user asks to record or analyze Android performance data, such as system traces, heap dumps, method recordings, callstack samples, memory allocations, or investigate bottlenecks, jank, memory leaks, and app startup issues on Android, or when the…

android/skills · 91 tokens

spm-build-analysis

Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode builds. Use when a developer suspects packages, plugins, or dependency graph shape are hurting clean or incremental build performance, mentions SPM slowness, package resolution time, build…

AvdLee/Xcode-Build-Optimization-Agent-Skill · 87 tokens

spk-admin-setup-doctor

Install, verify, and repair Spec Kitty commands, skills, agent paths, runtime prerequisites, and common setup failures.

Priivacy-ai/spec-kitty · 31 tokens

spk-run-blocked-recovery

Recover from Spec Kitty blocked runtime states, missing artifacts, failed guards, stale worktrees, and decision-required loops.

Priivacy-ai/spec-kitty · 31 tokens