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.
curl -O https://raw.githubusercontent.com/osama-raddad/FireCrasher/master/.claude/skills/add-library-test/SKILL.mdgit clone --depth 1 https://github.com/osama-raddad/FireCrasherWrote 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.
[](https://agentmods.dev/skills/osama-raddad/firecrasher/add-library-test)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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 (likeRecoveryLevelEvaluationTest) need no runner — prefer that when possible. - Build activities with
Robolectric.buildActivity(...); drive lifecycle throughCrashHandler'slifecycleCallbacksrather than reaching into internals. - SDK-gated behavior: pin the API levels under test with
@Config(sdk = [30, 36])(seeExitInfoTest) so both the guarded and unguarded paths are exercised. - Reset global state:
FireCrasheris anobjectwith process-wide state (retryCount). Tests that call into it must clean up in@AfterviaFireCrasher.resetForTest()(seeGoBackDispatchTest) 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
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.
- 10d ago First seen · 54 lines · 51 tokens per session scan A 9ab23cbc5b1c
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.
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…
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.
ios-testing
Testing patterns for Swift and SwiftUI apps.
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…
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…
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".