write-fixture

write-fixture is a skill for Claude Code from naver/fixture-monkey. It costs 42 tokens per session (7,735 once invoked), scanned A, original, Apache-2.0.

A testing guide for using Fixture Monkey to write Java and Kotlin tests. It explains how to choose meaningful cases and set only the fixture properties that force each expected outcome.

In plain words
What is it for?
Use it when adding or editing tests with Fixture Monkey. It helps enumerate cases, choose inputs, and construct fixtures without modifying production sources.
Why use it?
It keeps tests focused and less fragile by leaving unrelated values random and preventing production-code changes during test work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the fixture-monkey plugin — 1 skill shipped together

Good fit Use it when adding or editing tests with Fixture Monkey. It helps enumerate cases, choose inputs, and construct fixtures without modifying production sources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/naver/fixture-monkey/write-fixture
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 naver/fixture-monkey --skill write-fixture
Clone the repo
git clone --depth 1 https://github.com/naver/fixture-monkey

Made for: Claude Code.

Or install fixture-monkey, the plugin that ships this one along with the rest of its 1 skill.

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 write-fixture

README.md
[![agentmods](https://agentmods.dev/badge/skills/naver/fixture-monkey/write-fixture/github.svg)](https://agentmods.dev/skills/naver/fixture-monkey/write-fixture)
Your own site
<a href="https://agentmods.dev/skills/naver/fixture-monkey/write-fixture"><img src="https://agentmods.dev/badge/skills/naver/fixture-monkey/write-fixture/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 write-fixture

Your own site · 80×15
<a href="https://agentmods.dev/skills/naver/fixture-monkey/write-fixture"><img src="https://agentmods.dev/badge/skills/naver/fixture-monkey/write-fixture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,735 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 208
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.00042 $0.07735
Opus 5.5 $0.00017 $0.03094
Sonnet 5.5 $0.00008 $0.01547
Haiku 4.5 $0.00004 $0.00773

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

Security

Grade A, and why

write-fixture 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.

claude-plugins/fixture-monkey/skills/write-fixture/SKILL.md · 455 lines

How it starts

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

Writing tests with Fixture Monkey

Fixture Monkey generates test objects with random values. Two skills matter: choosing which cases to test, and knowing what not to set in each one.

Pin the properties that force the expected outcome. Leave everything else random.

A fixture that sets every field is a hand-rolled builder with extra ceremony — it breaks when an unrelated field is added, and it drags the test file into diffs it has nothing to do with.

Scope: tests only

Never modify production code. This work adds and edits tests. Production sources are read-only — read them to understand behaviour, never to change it.

That holds even when changing them would be easier:

Temptation Do instead
Add @ConstructorProperties, a no-arg constructor, or a setter so the type generates Choose a different introspector, or instantiate a specific constructor
Relax a validation annotation that keeps rejecting samples Pin the property to a valid value, or narrow the Arbitrary
Widen a field's visibility to reach it Reach it through the constructor or an existing accessor
Remove or weaken a @Nullable so defaultNotNull(true) reaches the field Leave the annotation alone: setNotNull the property, or empty the null-inject generator's nullable-annotation set — see Nullability comes first
"Fix" a bug the new test just exposed Report it and leave the failing test — see step 6

If a test genuinely cannot be written without a production change, stop and say so, naming the change and why it is needed. Let the user decide. A production edit smuggled in with a test is the one thing a reviewer will not be looking for.

Procedure

Steps 1–4 decide which tests to write. Steps 5–6 write each one.

1. Identify the method under test

Name the exact method. Read its body and the types it takes and returns. If the request is vague ("write tests for the order service"), narrow it to specific methods and say which ones you picked.

Read the full file on GitHub · 455 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 455 lines · 42 tokens per session scan A a27aa0ac08dc

Subscribe to this mod's changes

write-fixture is a skill published in the GitHub repository naver/fixture-monkey (700 stars, last pushed 20d ago), licensed Apache-2.0. It adds 42 tokens to every session and 7,735 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-08-30.

Related

Other skills, from other repositories

unit-testing

Guidance for unit tests, which check small pieces of code in isolation, in BK-CI. It covers JUnit 5, MockK, test organization, mocked dependencies, exception checks, and TDD, a method of writing tests before implementation.

TencentBlueKing/bk-ci · 56 tokens

java-affected-tests

Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and…

open-metadata/OpenMetadata · 120 tokens

parallelism

Run Ginkgo suites in parallel — ginkgo -p / --procs, the separate-process (not goroutine) model, SynchronizedBeforeSuite/SynchronizedAfterSuite vs BeforeSuite, GinkgoParallelProcess() for sharding ports/tmpdirs/databases, building a binary once via gexec, piping child-process output to GinkgoWriter, and what N…

onsi/ginkgo · 150 tokens

ordering-and-flakes

Control spec ordering and manage flaky specs — Serial, Ordered containers with BeforeAll/AfterAll/ContinueOnFailure, OncePerOrdered, SpecPriority, plus FlakeAttempts/--flake-attempts, MustPassRepeatedly, --repeat, and --until-it-fails. Use when specs must run in a fixed order, you need once-per-group setup, you're…

onsi/ginkgo · 111 tokens

running

Run Ginkgo suites with the ginkgo CLI — run, -r, -p, --dry-run, watch, build (precompiled .test binaries), generate, outline, unfocus, labels, version; spec randomization (--randomize-all/--randomize-suites/--seed); running multiple suites (--keep-going/--skip-package/--compilers); previewing (--dry-run…

onsi/ginkgo · 142 tokens

tables-and-dynamic-specs

Parameterize and generate Ginkgo specs — DescribeTable/Entry table-driven specs, Entry descriptions (string, nil, closure, EntryDescription), PEntry/FEntry and per-Entry decorators, DescribeTableSubtree, generating specs in a construction-time loop, loading fixtures in TestXxx before RunSpecs, and shared-behavior…

onsi/ginkgo · 103 tokens