ワンクリックで
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.