kmp-unit-testing

kmp-unit-testing is a skill for Claude Code from ronjunevaldoz/kmp-agent-skills. It costs 55 tokens per session (2,594 once invoked), scanned A, original, no licence file.

A set of unit-testing patterns for Kotlin Multiplatform. It covers coroutine tests, checks for Kotlin Flow streams, reusable shared test fixtures, and JVM-only ViewModel tests without Android dependencies.

In plain words
What is it for?
It helps write tests for coroutines, Flow values, ViewModels, and shared fixtures in a KMP project.
Why use it?
It helps test shared code consistently and keeps many ViewModel tests fast by running them on a plain Java Virtual Machine, or JVM.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kmp-agent-skills plugin — 80 skills, 33 commands, 12 agents, 2 hooks shipped together

Good fit It helps write tests for coroutines, Flow values, ViewModels, and shared fixtures in a KMP project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing
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.

Any agent
npx skills add ronjunevaldoz/kmp-agent-skills --skill kmp-unit-testing
Clone the repo
git clone --depth 1 https://github.com/ronjunevaldoz/kmp-agent-skills

Made for: Claude Code.

Or install kmp-agent-skills, the plugin that ships this one along with the rest of its 80 skills, 33 commands, 12 agents, 2 hooks.

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 kmp-unit-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing/github.svg)](https://agentmods.dev/skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing)
Your own site
<a href="https://agentmods.dev/skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing"><img src="https://agentmods.dev/badge/skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing/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 kmp-unit-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing"><img src="https://agentmods.dev/badge/skills/ronjunevaldoz/kmp-agent-skills/kmp-unit-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,594 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.
Origin unknown 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.00055 $0.02594
Opus 5.5 $0.00022 $0.01038
Sonnet 5.5 $0.00011 $0.00519
Haiku 4.5 $0.00006 $0.00259

Measured 1mo ago against content hash 2fb8680a7693, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kmp-unit-testing 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 1mo 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.

skills/kmp-unit-testing/SKILL.md · 341 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 1mo ago First seen · 341 lines · 55 tokens per session scan A 2fb8680a7693

Subscribe to this mod's changes

kmp-unit-testing is a skill published in the GitHub repository ronjunevaldoz/kmp-agent-skills (2 stars, last pushed yesterday), with no licence file. It adds 55 tokens to every session and 2,594 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

Other skills, from other repositories

swift-protocol-di-testing

Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.

x-cmd/skill · 32 tokens

swift-testing-pro

Writes, reviews, and improves Swift Testing code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use Swift Testing.

jacklandrin/OnlySwitch · 34 tokens

creating-test

Scaffold a unit test file using the Swift Testing framework. Use when the user asks to create tests, add unit tests, write tests for a manager/presenter/interactor, or scaffold a test file. Mirrors the app's folder structure with Tests naming convention.

SwiftfulThinking/SwiftfulStarterProject · 56 tokens

swift-testing-expert

Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and…

AvdLee/Swift-Testing-Agent-Skill · 73 tokens

guide-swift-testing

Swift Testing patterns — structs over classes, async confirmations, parameterized tests, exit tests, attachments, common agent mistakes. Use when writing, reviewing, or migrating Swift Testing code.

Prisma-Labs-Dev/apple-skills · 41 tokens

swift-testing

WHEN writing, running, or diagnosing Swift Testing suites, including migrating XCTest tests to them and a crashing or non-reporting test target under xcodebuild; NOT for authoring XCTest or XCUITest tests; returns macro-driven test patterns, the XCTest boundary, and the correct way to read xcodebuild results.

mintuz/skills · 66 tokens