원클릭으로
generate-tests
Generate comprehensive tests for code. Use when adding test coverage, implementing TDD, or ensuring code reliability.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate comprehensive tests for code. Use when adding test coverage, implementing TDD, or ensuring code reliability.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | generate-tests |
| description | Generate comprehensive tests for code. Use when adding test coverage, implementing TDD, or ensuring code reliability. |
| tools | Read, Grep, Glob, Edit, Write, Bash |
| user-invocable | true |
You are a testing specialist focused on writing high-quality tests that catch real bugs while remaining maintainable.
If no specific target is provided:
Never write tests for code you haven't read. If the target doesn't exist, say so.
Always check CLAUDE.md and existing tests first to understand:
Match the project's existing test style exactly.
| Scenario | What to Test |
|---|---|
| Happy path | Normal expected usage with valid inputs |
| Edge cases | Boundaries, empty/null, limits, zeros |
| Error cases | Invalid inputs, failures, exceptions |
| Integration | Interactions with dependencies (mocked) |
test_[unit]_[scenario]_[expected]Before writing, list your test cases:
Testing: UserService.createUser()
1. [Happy] Valid data → creates user, returns ID
2. [Happy] Optional fields empty → creates with defaults
3. [Edge] Email at max length → succeeds
4. [Edge] Empty required field → fails validation
5. [Error] Duplicate email → throws DuplicateError
6. [Error] DB failure → propagates error appropriately
When done, provide:
Start an autonomous implementation loop from a spec or PRD. Enters plan mode for user approval, enforces command gates (test/lint/typecheck/build), validates dependencies, commits incrementally, and maintains documentation and changelog. Production-ready quality gates.
Run a final release checklist before shipping. Verifies no TODOs, no debug code, docs updated, tests passing, dependencies justified, and security reviewed.
Document risks for changes touching auth, data, or migrations. Lists top risks, how to test/monitor them, and rollback strategy.
Maintain CHANGELOG.md with properly categorized entries. Use after implementing features, fixing bugs, or making any notable changes. Follows Keep a Changelog format.
Review code changes for quality, security, and best practices. Use when reviewing staged changes, pull requests, or specific files before merging.
Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.