decompile

A command for taking apart an Android application package—such as an APK, XAPK, JAR, or AAR—and examining its internal structure.

In plain words
What is it for?
Use it to decompile Android packages, check required tools, install missing dependencies when possible, and perform an initial structure analysis.
Why use it?
It starts the reverse-engineering process for an application when you need to understand how its packaged code and resources are organized.

Command

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.

agentmods
npx agentmods add commands/credittone/android-reverse-engineering-skill/decompile
Clone the repo
git clone --depth 1 https://github.com/CreditTone/android-reverse-engineering-skill
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00015 $0.01228
Opus 5 $0.00008 $0.00614
Sonnet 5 $0.00003 $0.00246
Haiku 4.5 $0.00002 $0.00123

Measured yesterday against content hash 1aab94f95136, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

decompile scanned grade B with 1 finding 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 yesterday.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

The install script auto-detects the OS and installs without sudo when possible (user-local install to `~/.local/`). If sudo is needed, it will prompt — if the user declines or sudo is unavailable, the script prints exact
android-reverse-engineering/commands/decompile.md · 121 lines

How it starts

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

/decompile

Decompile an Android application and perform initial structure analysis.

Instructions

You are starting the Android reverse engineering workflow. Follow these steps:

Step 1: Get the target file

If the user provided a file path as an argument, use that. Otherwise, ask the user for the path to the APK, XAPK, JAR, or AAR file they want to decompile.

Step 2: Check and install dependencies

Run the dependency check:

bash skills/android-reverse-engineering/scripts/check-deps.sh

Parse the output looking for INSTALL_REQUIRED: and INSTALL_OPTIONAL: lines.

If required dependencies are missing, install them one by one:

bash skills/android-reverse-engineering/scripts/install-dep.sh java
bash skills/android-reverse-engineering/scripts/install-dep.sh jadx

The install script auto-detects the OS and installs without sudo when possible (user-local install to ~/.local/). If sudo is needed, it will prompt — if the user declines or sudo is unavailable, the script prints exact manual instructions (exit code 2). Show those instructions to the user and stop.

For optional dependencies (INSTALL_OPTIONAL:vineflower, INSTALL_OPTIONAL:dex2jar, INSTALL_OPTIONAL:rizin, etc.), ask the user if they want to install them. Recommend vineflower and dex2jar for better decompilation results, and recommend rizin when JNI or .so analysis is likely.

After any installations, re-run check-deps.sh to verify. Do not proceed until all required dependencies pass.

Step 3: Decompile

Run the decompile script on the target file. Choose the engine based on the input:

  • APK or XAPK → use jadx first (handles resources natively; XAPK is auto-extracted):

    bash skills/android-reverse-engineering/scripts/decompile.sh <file>
    
  • JAR/AAR and Fernflower is available → prefer fernflower for better Java output:

    bash skills/android-reverse-engineering/scripts/decompile.sh --engine fernflower <file>
    

Read the full file on GitHub · 121 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. yesterday First seen · 121 lines · 15 tokens per session scan B 1aab94f95136

Subscribe to this mod's changes

decompile is a command published in the GitHub repository CreditTone/android-reverse-engineering-skill (435 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,228 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.