FireCrasher: Skill for Claude Code

.claude/skills/add-library-test/SKILL.md

add-library-test is a skill for Claude Code from osama-raddad/FireCrasher. It costs 51 tokens per session (622 once invoked), scanned A, original, Apache-2.0.

A guide for adding or updating Robolectric JVM tests for the FireCrasher Android library. Robolectric runs many Android tests on a computer without a physical device or emulator.

In plain words
What is it for?
Use it when changing recovery logic, crash handling, back-stack counting, exit-information reporting, or recovery-state encoding and decoding.
Why use it?
It helps ensure changes to crash recovery and related behavior are covered by tests in the library's existing test structure. It also points changes to the matching test suites and conventions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is osama-raddad/FireCrasher's own configuration. It tells Claude Code how to work on FireCrasher itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything FireCrasher configures →

Reuse

Borrowing it

Nothing to install: this file belongs to osama-raddad/FireCrasher. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/osama-raddad/FireCrasher/master/.claude/skills/add-library-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/osama-raddad/FireCrasher

Made for: Claude Code.

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 add-library-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/osama-raddad/firecrasher/add-library-test/github.svg)](https://agentmods.dev/skills/osama-raddad/firecrasher/add-library-test)
Your own site
<a href="https://agentmods.dev/skills/osama-raddad/firecrasher/add-library-test"><img src="https://agentmods.dev/badge/skills/osama-raddad/firecrasher/add-library-test/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 add-library-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/osama-raddad/firecrasher/add-library-test"><img src="https://agentmods.dev/badge/skills/osama-raddad/firecrasher/add-library-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 622 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00051 $0.00622
Opus 5 $0.00026 $0.00311
Sonnet 5 $0.00010 $0.00124
Haiku 4.5 $0.00005 $0.00062

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

Security

Grade A, and why

add-library-test 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 10d 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.

.claude/skills/add-library-test/SKILL.md · 54 lines

How it starts

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

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

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

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

./gradlew :firecrasher:test

Read the full file on GitHub · 54 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. 10d ago First seen · 54 lines · 51 tokens per session scan A 9ab23cbc5b1c

Subscribe to this mod's changes

add-library-test is a skill published in the GitHub repository osama-raddad/FireCrasher (148 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 622 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

maui-unit-testing

Add MAUI app tests around ViewModels, services, platform abstractions, and unit/integration/device boundaries. USE FOR: xUnit, avoiding MauiProgram.CreateMauiApp in unit tests, fakes/mocks, injectable Essentials interfaces, PlatformNotSupportedException, navigation/data services, AppProjectReference, device-test…

dotnet/maui-labs · 84 tokens

flutter-bloc-state-management

Implement BLoC/Cubit state, events, transitions, and async concurrency in Flutter. Use for BLoC/Cubit feature logic, debounced/cancellable events, state rendering, or bloc tests—not generic widget-only work.

HoangNguyen0403/agent-skills-standard · 52 tokens

ios-testing

Testing patterns for Swift and SwiftUI apps.

TalissonVitorino/kmp-ios-skills · 69 tokens

mobile-testing

Android and JVM testing - JUnit5, MockK, Turbine for Flow, and Compose UI testing for unit, integration, and UI tests; also applies to KMP commonTest running on the JVM/Android target. For iOS/Swift tests (XCTest, Swift Testing, XCUITest) use ios-testing. For TDD methodology and the three-tier test model (fake-first…

TalissonVitorino/kmp-ios-skills · 102 tokens

testing-expert

Ultimate Kotlin testing skill. Use this whenever writing, reviewing, or debugging ANY Kotlin test — unit, integration, property-based, or coroutine. Covers TDD (RED/GREEN/REFACTOR), Kotest + MockK + Kover, anti-pattern detection, and four-pillar quality framework. Triggers on: write a test, add coverage, why is this…

JosephSanjaya/skills · 115 tokens

android-kotlin-testing

Android testing patterns — ViewModel unit tests with Turbine, Compose UI semantics, Hilt TestInstallIn fakes, coroutine test dispatchers, and release quality gates. Use when writing tests, setting up CI, mocking repositories, or asking "how to test ViewModel", "Compose UI test", "Turbine StateFlow".

haidrrrry/compose-kotlin-agent-skills · 72 tokens