fixture-monkey CLAUDE.md

A Korean-language guide for working on Fixture Monkey, a Java and Kotlin library for generating test data. It describes project rules, folder roles, build commands, and testing requirements.

In plain words
What is it for?
Understanding the project layout, building modules with Gradle, running selected tests, and checking adapter changes for regressions—failures caused by a code change.
Why use it?
It prevents changes that could damage existing tests or protected modules and gives contributors a consistent way to check their work.

Instructions file

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.

agentmods
npx agentmods add instructions/naver/fixture-monkey/claude-md
Clone the repo
git clone --depth 1 https://github.com/naver/fixture-monkey
Per session 1,379 This file is loaded in full into every session.
When invoked 1,379 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01379 $0.01379
Opus 5 $0.00690 $0.00690
Sonnet 5 $0.00276 $0.00276
Haiku 4.5 $0.00138 $0.00138

Measured 2d ago against content hash 103fc2a9b32a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fixture-monkey CLAUDE.md 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 2d 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.md · 124 lines

How it starts

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

Fixture Monkey - Claude Code 가이드

절대 규칙

  • 기존 테스트는 삭제/수정/주석 처리 금지
  • 테스트 실패 시 바로 롤백 (개선 가능하다고 판단되면 사용자에게 롤백 여부 확인)
  • Adapter 작업 시 fixture-monkey, fixture-monkey-api 모듈 코드 수정 금지 (필요 시 사용자에게 확인)
  • 커밋은 사용자가 명시적으로 요청할 때만 (메시지는 영어)
  • 데드 코드는 제거한다
  • [작업 흐름] 을 보고 작업을 한다

프로젝트 구조

모듈/폴더 역할
fixture-monkey/ 메인 모듈 (ArbitraryBuilder, FixtureMonkey 등)
fixture-monkey-api/ 공용 API 인터페이스
object-farm-api/ JvmNodeTree, PathExpression 등 구조 관련 API
fixture-monkey-tests/ 통합 테스트
history/ 벤치마크 결과 + 작업 히스토리
guide/ 프로파일링 가이드 등 참고 문서

빌드 및 테스트

./gradlew build                        # 전체 빌드
./gradlew :fixture-monkey:test         # 특정 모듈 테스트
./gradlew :fixture-monkey:test --tests "com.navercorp.fixturemonkey.test.FixtureMonkeyAdapterTest"

Adapter 작업 시 회귀 테스트:

./gradlew clean \
  :fixture-monkey:test --tests "com.navercorp.fixturemonkey.adapter.*" \
  :fixture-monkey-tests:java-tests:test --tests "com.navercorp.fixturemonkey.tests.java.adapter.*" \
  :fixture-monkey-tests:java-17-tests:test --tests "com.navercorp.fixturemonkey.tests.java17.adapter.*" \
  :fixture-monkey-tests:kotlin-tests:test --tests "com.navercorp.fixturemonkey.tests.kotlin.adapter.*"

코드 스타일

  • 탭 들여쓰기 (스페이스 아님)
  • 주석은 // given, // when, // then만 허용 (예외 시 사용자 확인)
  • Javadoc은 public API에만 작성
  • @API 어노테이션으로 API 안정성 표시 (EXPERIMENTAL, MAINTAINED 등)

디버깅 절차

테스트 실패 시 아래 순서를 따른다:

  1. 코드 분석 우선 - 코드를 읽고 원인 추론
  2. 런타임 확인 - 분석만으로 부족하면 디버그 로그 추가 후 --info 플래그로 실행
  3. 문제 격리 - 반복 실패 시 최소 재현 테스트 작성 (sample() → adapt → 특정 Phase 순으로 좁힘)
  4. 수정 및 검증 - 원인 부분만 수정, 기존 테스트 전체 통과 확인

tracer 활성화:

FixtureMonkey fm = FixtureMonkey.builder()
    .plugin(new JavaNodeTreeAdapterPlugin()
        .tracer(AdapterTracer.console()))
    .build();

테스트 케이스 관리

테스트 작성/발견 시 해당 경우의 수가 기존 테스트에서 커버하지 못하는 새로운 경우의 수라고 판단되면:

  1. test-case/ 폴더의 해당 카테고리 마크다운 파일에 경우의 수를 추가
  2. 카테고리가 없으면 새 마크다운 파일 생성
  3. 각 경우의 수는 원자적 단위(하나의 독립된 동작/조건)로 기록
  4. 타입 변형(String→Int, List→Set→Array)은 같은 경우의 수로 취급 — 동작이 다른 경우만 별도

Read the full file on GitHub · 124 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. 2d ago First seen · 124 lines · 1,379 tokens per session scan A 103fc2a9b32a

Subscribe to this mod's changes

fixture-monkey CLAUDE.md is an instructions file published in the GitHub repository naver/fixture-monkey (697 stars, last pushed 9d ago), licensed Apache-2.0. It adds 1,379 tokens to every session, about $0.0069 per session on Opus 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.