Agent skill

Add Library Test

by osama-raddad in osama-raddad/FireCrasher

Add or update a Robolectric JVM unit test for the FireCrasher library.

Apache-2.0Auto-check passedTesting & QA

Install Add Library Test

skills CLI
$ npx skills add osama-raddad/FireCrasher --skill add-library-test -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install osama-raddad/FireCrasher add-library-test --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/osama-raddad/FireCrasher.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-library-test .claude/skills/add-library-test && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-library-test
GitHub stars
147
Token cost
~612 tokens
SKILL.md length
245 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Apache-2.0

At a glance

Add or update a Robolectric JVM unit test for the FireCrasher library.

  • Changing recovery logic
  • SKILL.md covers Where behavior is tested today, Conventions to follow and Run
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Back-stack counting

What it does

Add Library Test is an agent skill from osama-raddad/FireCrasher. Add or update a Robolectric JVM unit test for the FireCrasher library. Use when changing recovery logic, crash handling, back-stack counting, exit-info reporting, or the recovery-state codec, and a test should cover it.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing. It works with Java and Android. The repository describes itself as: FireCrasher is a Uncaught Exceptions recovery library for android. The licence is Apache-2.0.

When your agent uses it

  • Changing recovery logic
  • Back-stack counting
  • Exit-info reporting
  • The recovery-state codec

Example prompts

  • “/add-library-test”

What it can do on your machine

Read from SKILL.md and the folder at commit 7a06228. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Library Test loads about 612 tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 245 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~612

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from osama-raddad/FireCrasher at commit 7a06228, republished under its Apache-2.0 licence (© osama-raddad). 245 words, ~612 tokens.

Download SKILL.mdSave it as .claude/skills/add-library-test/SKILL.md (or your agent's skills folder).
name
add-library-test
description
Add or update a Robolectric JVM unit test for the FireCrasher library. Use when changing recovery logic, crash handling, back-stack counting, exit-info reporting, or the recovery-state codec, and a test should cover it.

Add a library unit test

The library's tests run on the JVM under Robolectric — no device or emulator needed. They live in firecrasher/src/test/java/com/osama/firecrasher/ and use JUnit 4. Every behavior change to the library should come with a test.

Where behavior is tested today

ConcernTest
Recovery level selection (evaluate)RecoveryLevelEvaluationTest (pure, no Robolectric)
Activity counting / back-stack depthBackStackCountTest
Crash delivered to the onCrash hook on the main threadCrashHandlerTest
Install DSL: scope population, auto-recover default, forced-level recoverFireCrasherDslTest
GO_BACK back dispatch (dispatcher vs. legacy onBackPressed)GoBackDispatchTest
ApplicationExitInfo querying (API 30+)ExitInfoTest (@Config(sdk = [30, 36]))
Recovery-state encode/decode + 128-byte limitRecoveryStateCodecTest

Extend the matching suite when your change fits one; add a new *Test.kt in the same package otherwise.

Conventions to follow

  • Runner: annotate device-dependent tests with @RunWith(RobolectricTestRunner::class). Pure-logic tests (like RecoveryLevelEvaluationTest) need no runner — prefer that when possible.
  • Build activities with Robolectric.buildActivity(...); drive lifecycle through CrashHandler's lifecycleCallbacks rather than reaching into internals.
  • SDK-gated behavior: pin the API levels under test with @Config(sdk = [30, 36]) (see ExitInfoTest) so both the guarded and unguarded paths are exercised.
  • Reset global state: FireCrasher is an object with process-wide state (retryCount). Tests that call into it must clean up in @After via FireCrasher.resetForTest() (see GoBackDispatchTest) so tests don't leak into each other.
  • Name tests with backtick sentences describing the behavior, matching the existing style (e.g. `first crash restarts the activity`).

Run

bash
./gradlew :firecrasher:test

Test reports land in firecrasher/build/reports/tests/. Before finishing, run the run-checks skill so lint and the ABI baseline are covered too.

© osama-raddad, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/add-library-test of osama-raddad/FireCrasher.

Open the folder on GitHubat commit 7a06228

Compare with similar skills

Add Library Test next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Library Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Library Test this skillosama-raddad/FireCrasher147—~612Automated safety check: PassApache-2.0
Android Unit Testnwjs/chromium.src160—~1.8kAutomated safety check: PassBSD-3-Clause
Testing SkillTypeCellOS/BlockNote10k—~2.6kAutomated safety check: PassCustom licence
Mesh Labpermissionlesstech/bitchat-android7.8k—~2.9kAutomated safety check: PassGPL-3.0
Ha Android Testinghome-assistant/android4k—~2kAutomated safety check: PassApache-2.0
Teswiz Projectznsio/teswiz105—~977Automated safety check: PassMIT

Similar skills

  • Android Unit Test

    nwjs/chromium.src

    Guide for writing and converting Chromium Android unit tests across host Robolectric (chromejunittests) and on-device (chromepublicunittestapk) suites.

    160 GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Testing Skill

    TypeCellOS/BlockNote

    Instructions for writing, running, and updating unit/end-to-end tests.

    10k GitHub stars~2.6k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Mesh Lab

    permissionlesstech/bitchat-android

    Run, diagnose, and extend bitchat Android Mesh Lab physical-device tests.

    7.8k GitHub stars~2.9k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Ha Android Testing

    home-assistant/android

    Home Assistant Android testing guidance. An agent skill from home-assistant/android.

    4k GitHub stars~2k tokensUpdated today
    Testing & QAAuto-check passed
  • Teswiz Project

    znsio/teswiz

    A skill your agent uses when working in the znsio/teswiz repository to modify framework code, Cucumber/TestNG hooks, Applitools visual testing flows, configs/caps, or related docs/tests.

    105 GitHub stars~977 tokensUpdated today
    Testing & QAAuto-check passed
  • Edt MCP Build Test

    DitriXNew/EDT-MCP

    How to build the EDT-MCP Eclipse plugin (Tycho/Maven) and run its unit and e2e tests, plus the test conventions for this repo.

    296 GitHub stars~1.4k tokensUpdated 3 days ago
    Testing & QAAuto-check passed

More from osama-raddad/FireCrasher

All 8 skills in this repo
  • Customize Recovery

    osama-raddad/FireCrasher

    Inspect FireCrasher's recovery level and show custom recovery UX (loading dialog, toast, snackbar) or force a specific recovery level.

    147 GitHub stars~624 tokensUpdated 3 mo ago
    Auto-check passed
  • Detect Native Crashes And Anrs

    osama-raddad/FireCrasher

    Report native crashes, ANRs, and low-memory kills that FireCrasher's in-process handler cannot catch, using ApplicationExitInfo on API 30+.

    147 GitHub stars~662 tokensUpdated 3 mo ago
    Auto-check passed
  • Install Firecrasher

    osama-raddad/FireCrasher

    Add the FireCrasher crash-recovery library to an Android app and install it in the Application class.

    147 GitHub stars~562 tokensUpdated 3 mo ago
    Auto-check passed
  • Release

    osama-raddad/FireCrasher

    Cut a new FireCrasher library release — bump the version, sync the README and ABI baseline, verify, and tag for JitPack.

    147 GitHub stars~649 tokensUpdated 3 mo ago
    Auto-check passed
  • Update Abi Baseline

    osama-raddad/FireCrasher

    Regenerate and review FireCrasher's committed public ABI baseline (firecrasher/api/firecrasher.api) after an intentional public API change.

    147 GitHub stars~508 tokensUpdated 3 mo ago
    Auto-check passed
  • Report Crashes

    osama-raddad/FireCrasher

    Forward FireCrasher-caught exceptions to a crash reporter (Crashlytics, Sentry, etc.) while still recovering the app.

    147 GitHub stars~410 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Add Library Test

What does Add Library Test do?

Add or update a Robolectric JVM unit test for the FireCrasher library. Add Library Test is an agent skill from osama-raddad/FireCrasher. Add or update a Robolectric JVM unit test for the FireCrasher library.

When should I use Add Library Test?

Add Library Test fits situations like: changing recovery logic; back-stack counting; exit-info reporting; the recovery-state codec.

How do I install Add Library Test in Claude Code?

Run `npx skills add osama-raddad/FireCrasher --skill add-library-test -a claude-code`. Or copy the skill folder (.claude/skills/add-library-test in osama-raddad/FireCrasher) into .claude/skills/add-library-test in your project. Claude Code loads it when a task matches its description.

How do I install Add Library Test in Codex?

Run `npx skills add osama-raddad/FireCrasher --skill add-library-test -a codex`. Or copy the skill folder (.claude/skills/add-library-test in osama-raddad/FireCrasher) into .agents/skills/add-library-test in your project. Codex loads it when a task matches its description.

Can I use Add Library Test in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add osama-raddad/FireCrasher --skill add-library-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-library-test, .gemini/skills/add-library-test, .github/skills/add-library-test and .opencode/skills/add-library-test in your project.

What does Add Library Test need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Library Test is instructions for the agent only.

Does Add Library Test access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Library Test safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Library Test use?

Add Library Test is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Library Test use?

About 612 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Library Test?

Skills that share tags, products or a category with Add Library Test: Android Unit Test (nwjs/chromium.src, 160 stars), Testing Skill (TypeCellOS/BlockNote, 10k stars), Mesh Lab (permissionlesstech/bitchat-android, 7.8k stars) and Ha Android Testing (home-assistant/android, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Library Test?

osama-raddad (a GitHub user) maintains it in osama-raddad/FireCrasher, which has 147 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on July 3, 2026.

Source: osama-raddad/FireCrasher on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.