원클릭으로
repro
Use when the user prompts "repro".
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when the user prompts "repro".
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when the user prompts "code doc" to create or update internal Orchid ORM code documentation from changes/ specs, short-code feature folders, or existing implementation code.
Use when the user prompts "implementation note" for an existing change idea.
Use when the user prompts "write spec" or "make spec".
Use when the user prompts "do task".
Use when the user prompts "changeset".
Use when the user prompts "write ideas" or "make ideas".
| name | repro |
| description | Use when the user prompts "repro". |
Automates the reproduction of reported issues by creating an isolated failing test case. This enforces test-driven validation before attempting any fixes. Violating the letter of these rules is violating the spirit of the command.
Input: A GitHub issue number or URL, or a description of the bug. (e.g. /repro #123 or /repro https://github.com/romeerez/orchid-orm/issues/123).
Steps:
Understand Context Use GitHub MCP to read the issue body and comments.
Review Template
ALWAYS read packages/repro/src/repro-orm.example.test.ts to see how ORM issues are reproduced. For non-ORM querying issues, use https://orchid-orm.netlify.app/llms.txt and adapt by analogy.
packages/repro/src/repro-orm.example.test.ts. Use it purely as a reference.Create Test File(s)
Create a NEW, failing, self-contained test file in packages/repro/src/. You MUST NOT use or edit the example file.
<issue-number>-<descriptive-name>.test.ts (e.g. 123-nested-select-bug.test.ts). Create multiple files if there are multiple problems.orchid-orm, pqb, rake-db, etc.).Verify Reproduction
pnpm repro check packages/repro/src/<your-file>.test.ts. It must fail at runtime.pnpm repro types. It must fail at type checking (runtime failure is not required).assertType from the test-utils package:
import { assertType } from 'test-utils';
// assert that a type extends another type:
assertType<typeof result, ExpectedType>();
Limits on Attempts Give up after a number of sincere attempts if it cannot be reproduced. Do not endlessly try to fix it.
| Excuse | Reality |
|---|---|
| "I'll just edit the example file" | Editing the example ruins it for future tests. Create a NEW file. |
| "I can fix it while I reproduce it" | Fixes without failing tests are blind guesses that miss edge cases. |
| "I'll group these bugs in one file" | Grouping bugs breaks isolation and makes fixes harder to verify. |
| "I'll test this related thing too" | Extraneous tests cause unrelated failures. Test EXACTLY the reported bug. |
Red Flags - STOP and Start Over
packages/repro/src/repro-orm.example.test.tspackages/repro/src/<issue-number>-<descriptive-name>.test.tsAny red flag means: Delete the test. Start over.