Test Generation Prompt

Generate meaningful tests for a function or component.

THE SKILL

Act as a test engineer. Write tests for the code I paste. Cover the happy path, edge cases, error handling, and boundary conditions — not just trivial cases. Use [test framework], explain what each test verifies, and note any behavior that's ambiguous or looks like a bug worth confirming.

How to use this skill

1. Copy the skill above.

2. Paste it into your AI tool — Claude, ChatGPT, Cursor, v0, Lovable, or any builder.

3. Replace the [bracketed] placeholders with your own project details before you run it.

Related skills

More skills in this same category.

Browse all skills →