datagsm-server: Skill for Claude Code

.agents/skills/kotest-guide/SKILL.md

kotest-guide is a skill for Claude Code, Codex from themoment-team/datagsm-server. It costs 46 tokens per session (726 once invoked), scanned A, original, MIT.

A testing guide for Kotlin projects using Kotest and MockK. It covers arranging a test, running the operation, checking the result, and replacing dependencies with controlled test doubles called mocks.

In plain words
What is it for?
Use it to write or review service tests, mock repositories, stub results, capture arguments, and verify behaviour.
Why use it?
It gives tests a consistent structure and shows how to check calls, arguments, exceptions, and coroutine-based code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is themoment-team/datagsm-server's own configuration. It tells Claude Code and Codex how to work on datagsm-server 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 datagsm-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to themoment-team/datagsm-server. 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/themoment-team/datagsm-server/master/.agents/skills/kotest-guide/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/themoment-team/datagsm-server

Made for: Claude Code, Codex.

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 kotest-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/themoment-team/datagsm-server/kotest-guide/github.svg)](https://agentmods.dev/skills/themoment-team/datagsm-server/kotest-guide)
Your own site
<a href="https://agentmods.dev/skills/themoment-team/datagsm-server/kotest-guide"><img src="https://agentmods.dev/badge/skills/themoment-team/datagsm-server/kotest-guide/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 kotest-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/themoment-team/datagsm-server/kotest-guide"><img src="https://agentmods.dev/badge/skills/themoment-team/datagsm-server/kotest-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 726 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 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.00046 $0.00726
Opus 5.5 $0.00018 $0.00290
Sonnet 5.5 $0.00009 $0.00145
Haiku 4.5 $0.00005 $0.00073

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

Security

Grade A, and why

kotest-guide 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 29d 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.

.agents/skills/kotest-guide/SKILL.md · 130 lines

How it starts

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

Kotest + MockK Testing Guide

Given-When-Then Pattern

Use Kotest DescribeSpec with describe / context / it blocks.

class CreateApiKeyServiceTest : DescribeSpec({
    lateinit var repository: ApiKeyRepository
    lateinit var service: CreateApiKeyService

    beforeEach {
        repository = mockk()
        service = CreateApiKeyServiceImpl(repository)
    }

    describe("CreateApiKeyService 클래스의") {
        describe("execute 메서드는") {
            context("유효한 요청인 경우") {
                it("API 키를 생성하고 반환한다") {
                    // Given
                    val reqDto = CreateApiKeyReqDto(clientId = "test-client")
                    val apiKey = ApiKey(id = 1L, key = "generated-key")
                    every { repository.save(any()) } returns apiKey

                    // When
                    val result = service.execute(reqDto)

                    // Then
                    result shouldNotBe null
                    result.apiKey shouldBe "generated-key"
                    verify(exactly = 1) { repository.save(any()) }
                }
            }
        }
    }
})

MockK Patterns

Mock Creation

private val repository: ApiKeyRepository = mockk()
private val service = ApiKeyService(repository)

Stubbing

// Regular function
every { repository.findById(1L) } returns Optional.of(apiKey)

// Coroutine
coEvery { repository.save(any()) } returns apiKey

// Any matcher
every { repository.save(any()) } returns apiKey

Verification

// Verify call count
verify(exactly = 1) { repository.save(any()) }
verify(atLeast = 1) { repository.findAll() }

// Verify not called
verify(exactly = 0) { repository.delete(any()) }

// Coroutine
coVerify(exactly = 1) { repository.save(any()) }

Argument Capture

val slot = slot<ApiKey>()
every { repository.save(capture(slot)) } returns apiKey

service.execute(reqDto)

slot.captured.key shouldBe "expected-key"

Coroutine Testing

Read the full file on GitHub · 130 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. 29d ago First seen · 130 lines · 46 tokens per session scan A 2fd00d5bd756

Subscribe to this mod's changes

kotest-guide is a skill published in the GitHub repository themoment-team/datagsm-server (29 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 726 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-10-08.

Related

kotest-guide compared with skills from other repositories

kotest-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kotest-guidethemoment-team/datagsm-serverSkill29yesterdayMITA46Claude Code, Codex
write-fixturenaver/fixture-monkeySkill6995d agoApache-2.0A42Claude Code
test-triageniki914/zafiroSkill3404d agoMITA71Claude Code, Codex
test-hang-watchdogniki914/zafiroSkill3404d agoMITA66Claude Code, Codex
coding-guardexplyt/spring-pluginSkill167yesterdayApache-2.0A67Claude Code, Codex
review-core-correctnessexplyt/spring-pluginSkill167yesterdayApache-2.0A67Claude Code, Codex
develop-gutter-navigation-featureexplyt/spring-pluginSkill167yesterdayApache-2.0A142Claude Code, Codex