본문으로 건너뛰기
cccskills
무료GitHub에 공개

kta-unit-test

Smart Kotlin unit testing with auto-detection, coverage analysis, and AI edge cases. Use when generating tests for biz/ layer classes, analyzing test coverage gaps, or discovering edge cases.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(5)

  • SKILL.md1.6 KB
  • references/edge-case-discovery.md2.0 KB
  • references/test-patterns.md2.2 KB
  • scripts/__pycache__/analyze_kotlin.cpython-314.pyc13.1 KB
  • scripts/analyze_kotlin.py9.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Kotlin Unit Test

Project-specific skill for intelligent Kotlin unit testing.

When to Use

  • Generating tests for business logic classes (biz/ layer)
  • Analyzing test coverage gaps
  • Discovering edge cases for existing code
  • Before writing new tests to understand what's missing

Workflow

  1. Analyze class: python scripts/analyze_kotlin.py units <file.kt>
  2. Check coverage: python scripts/analyze_kotlin.py coverage <source_dir> <test_dir>
  3. Discover edge cases: Load references/edge-case-discovery.md
  4. Write tests: Follow patterns in references/test-patterns.md

Script Commands

# Analyze single file - extract testable units
python scripts/analyze_kotlin.py units app/src/main/.../SomeClass.kt

# Analyze coverage gaps between source and test directories
python scripts/analyze_kotlin.py coverage app/src/main/java/.../biz app/src/test/java/.../biz

Output Format

JSON structured output for parsing:

{
  "class_name": "SomeClass",
  "methods": [...],
  "dependencies": [...],
  "coverage": {"tested": [], "missing": []}
}

References

FilePurpose
references/test-patterns.mdJUnit4 + MockK + Turbine patterns
references/edge-case-discovery.mdAI prompts for finding edge cases

Integration

Works with .claude/agents/unit-test-agent.md for test generation workflow.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Senior Kotlin specialist code review — framework-agnostic. Use whenever the user asks to review, audit, critique, or get feedback on Kotlin code, a file, a class, a function, a module, a diff, a branch, a commit, or a pull request. Judges Kotlin language idioms, logic correctness, architecture and layering, concurrency (coroutines, Flow, structured concurrency, cancellation, race conditions), null safety, exception safety, testability, performance, and security. Detects force-unwraps, unchecked casts, GlobalScope, leaked mutability, broken structured concurrency, hidden side effects, weak abstractions, untestable seams, allocation hot spots, weak crypto, input-validation gaps, and PII logging. Outputs prioritized findings with file:line anchors and minimal-diff fixes. No assumptions about DI framework, UI framework, or build system.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Create Kotlin Compose design tokens from one of three supported sources — Google Stitch (MCP), Figma (MCP or JSON), or Claude Design (kta-design-spec output, Claude HTML/markdown artifacts). Three-layer architecture (Primitive/Semantic/Component) with code generation. Use when user asks to "generate design tokens", "create theme from Figma/Stitch/Claude design", "build Compose tokens from design spec", or "convert design source to tokens". Refuses any other input source and asks user for correct seed data.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Create Kotlin Compose design tokens from one of three supported sources — Google Stitch (MCP), Figma (MCP or JSON), or Codex Design (kta-design-spec output, Codex HTML/markdown artifacts). Three-layer architecture (Primitive/Semantic/Component) with code generation. Use when user asks to "generate design tokens", "create theme from Figma/Stitch/Codex design", "build Compose tokens from design spec", or "convert design source to tokens". Refuses any other input source and asks user for correct seed data.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Optimize a single Jetpack Compose @Composable function. Use when the user wants to improve, polish, animate, or refactor ONE Composable — keywords like "optimize this composable", "make this smoother", "add animation to this", "split this composable", "fix recomposition", "this composable is laggy", "polish this UI", or when user pastes/points to a single @Composable function. Analyzes the target for recomposition issues, missing animations, size/concern splits, and stability problems, then iterates with the user via AskUserQuestion to pick which optimizations to apply, then delegates implementation to the kta-compose-developer agent and summarizes changes. Input MUST be exactly one Composable (file path + function name, or function name alone).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Per-screen design spec generator for AI design tools (Stitch / Figma AI / Codex artifacts). Consumes per-feature PRDs from kta-prd-pipeline. Emits tool-agnostic markdown specs. Triggers — design spec, AI design prompt, screen mockup brief, Figma AI input, Stitch prompt, design system tokens, post-PRD design phase, generate design specs, design brief, mockup spec. DOES NOT generate Compose code, Kotlin code, or @Preview stubs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

Per-screen design spec generator for AI design tools (Stitch / Figma AI / Claude artifacts). Consumes per-feature PRDs from kta-prd-pipeline. Emits tool-agnostic markdown specs. Triggers — design spec, AI design prompt, screen mockup brief, Figma AI input, Stitch prompt, design system tokens, post-PRD design phase, generate design specs, design brief, mockup spec. DOES NOT generate Compose code, Kotlin code, or @Preview stubs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

dantech0xff/dreams62026년 9월 21일 업데이트

dantech0xff의 스킬 모두 보기

이 스킬의 문제 신고