rafaeltonholo/svg-to-compose/unit-test-author

Claude Code and agent skill by rafaeltonholo/svg-to-compose

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create and update Kotlin unit tests for this repository with Kotlin Multiplatform conventions. Use when requests involve adding tests, fixing failing tests, improving coverage, or validating behavior in `svg-to-compose` and `svg-to-compose-gradle-plugin`, especially for `commonTest`, parameterized scenarios with Burst, and targeted Gradle test execution.

Install

npx vskill@latest install rafaeltonholo/svg-to-compose/unit-test-author

SKILL.md

Unit Test Author

Overview

Create focused, behavior-driven tests that follow this repository's testing conventions. Prefer commonTest and kotlin.test assertions, use Burst for parameterized cases, and run the smallest relevant test command first.

Workflow

  1. Read .ai/guidelines.md and the target module AGENTS.md before writing

tests.

  1. Locate the production code and existing nearby tests.
  2. Mirror the package and source-set conventions:
  • svg-to-compose: place tests in src/commonTest/kotlin/... unless

platform APIs are required.

  • svg-to-compose-gradle-plugin: place tests in the module test source

sets (src/test or src/functionalTest) based on scope.

  1. Write tests that verify observable behavior, not implementation details.
  2. Prefer table-driven tests for many similar cases. Use Burst when it improves

readability.

  1. Run narrow test commands first, then broader checks if requested.
  2. Keep assertions explicit and deterministic.

Test Style Rules

  • Use kotlin.test APIs (@Test, assertEquals, assertContentEquals,

assertTrue, assertNull, assertFailsWith).

  • Use descriptive backtick test names that state behavior and condition.
  • Follow Arrange/Act/Assert structure with minimal setup.
  • Keep one primary behavior per test.
  • Avoid flaky inputs (time, random, unordered collections) unless explicitly

controlled.

  • Reuse existing helper methods/builders when available; avoid adding

unnecessary abstractions.

  • Prefer fakes over mocks unless the behavior is platform-specific.

Parameterized Testing

  • Use Burst for repeated input/output validation.
  • Prefer compact datasets that still cover edge cases.
  • Include boundary and malformed inputs when behavior defines fallbacks or

errors.

See references/kotlin-kmp-testing.md for patterns and command examples.

Execution Commands

Use the smallest useful command first:

bash
./gradlew :svg-to-compose:allTests --tests "<FQN>"
./gradlew :svg-to-compose-gradle-plugin:test --tests "<FQN>"
./gradlew allTests
./gradlew cleanAllTests allTests

Completion Criteria

  • New/changed behavior is covered by tests.
  • Tests are deterministic and readable.
  • Targeted test task passes.
  • If broad verification is requested, run the broader test task and report

results.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
210
Repository forks
11
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rafaeltonholo/svg-to-compose/unit-test-author/badge)](https://verified-skill.com/skills/rafaeltonholo/svg-to-compose/unit-test-author)

Something wrong with this skill or its page? Tell us.