원클릭으로
gen-test
Generate a Vitest + Testing Library test file for a given source file. Use when the user runs /gen-test <file-path>.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate a Vitest + Testing Library test file for a given source file. Use when the user runs /gen-test <file-path>.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Reference for adding AI generation features using the Gemini pipeline. Covers field generation, article generation, and how to create new AI actions. Use when the user wants to add AI-powered functionality.
Reference for auth tokens, cookies, JWE decoding, max-age strategy, and the cookie-deletion pitfalls specific to this project. Apply whenever editing src/proxy.ts, src/proxy/*, src/utils/services/fetcher.ts, src/stores/{permission,user}-store.ts, login or logout flows.
Trigger automatically when adding or removing a page under src/app/(baseLayout)/*. Forces Sidebar.tsx update in the same change so the menu and route stay in lockstep.
Tamamlanan bir geliştirmeyi veya değişikliği otomatik olarak dokümante eder. docs/CHANGELOG.md [Unreleased] bölümünü günceller, gerekirse yeni bir docs/{FEATURE}.md rehber dosyası oluşturur. Commit öncesi veya sonrası, her geliştirmede /doc-changes komutu ile çalıştır.
Systematic debugging and fix workflow. Use when the user runs /debug-fix <description-of-issue>.
Scaffold a complete CRUD module (service, hook, schema, types, pages). Use when the user runs /new-module <entity-name>.
| name | gen-test |
| description | Generate a Vitest + Testing Library test file for a given source file. Use when the user runs /gen-test <file-path>. |
| disable-model-invocation | true |
| allowed-tools | Read, Write, Grep, Glob |
Generate a comprehensive Vitest test for: $ARGUMENTS
$ARGUMENTStests/setup.ts for global test configurationtests/**/*.test.{ts,tsx} to find 2-3 similar existing tests as style referencesrc/components/Foo.tsx → tests/components/Foo.test.tsxsrc/lib/bar.ts → tests/lib/bar.test.tssrc/app/api/baz/route.ts → tests/api/baz.test.tssrc/services/foo.ts → tests/services/foo.test.tsimport ComponentOrFunction from '@/path/to/source'
import { render, screen, fireEvent, waitFor } from '@testing-library/react'
import { describe, expect, it, vi, beforeEach } from 'vitest'
vi.mock('module-name', () => ({
ExportName: () => <div>Mock</div>,
}))
Write the complete test file to the output path.