skills/create-unit-test-ask/create-unit-test/SKILL.md
Create and run unit tests following the project's architecture and guidelines (Robolectric, naming, location).
npx skillsauth add aiagentskills/skills create-unit-testInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill guides the creation of unit tests to ensuring consistency and correctness.
Analyze and Plan:
Setup Test File:
[OriginalClassName]Test.kt.[module]/src/test/java/[package/path]/.Implement Tests:
Run Tests:
./gradlew :[module]:testDebugUnitTest./gradlew :database:testDebugUnitTest./gradlew testDebugUnitTest to ensure everything passes.Handle Failures:
[module]/build/test-results/testDebugUnitTest/TEST-[package.name.TestClassName].xml.app/build/test-results/testDebugUnitTest/TEST-com.anysoftkeyboard.janus.app.MainActivityTest.xml.test source set, not androidTest (unless specifically writing instrumentation tests, which is rare for this skill).documentation
Guides using bun.sys for system calls and file I/O in Zig. Use when implementing file operations instead of std.fs or std.posix.
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
Guides writing HMR/Dev Server tests in test/bake/. Use when creating or modifying dev server, hot reloading, or bundling tests.