Home › Prompts › Any chat AI › Few-shot example generator

Few-shot example generator

Create diverse, high-quality input/output examples to embed in a prompt, including edge cases.

Any chat AIPrompt engineeringRuleStack original

Written for Any frontier chat model (GPT-6, Claude 5.5, Gemini 4 Argon, Grok 4.7) · Updated 2026-10-16

Note: Review and test before use. Provided as is, without warranty. See Terms.

Prompt

Download  
I'm writing a prompt for this task: [task]. Create [number, e.g. 5] input/output example pairs to include in the prompt. Requirements: cover the typical case, two hard cases, one case where the right answer is "not enough information", and one case with messy input. Keep outputs in exactly this format: [format]. Make the examples varied so the model doesn't copy surface patterns.

Replace everything in [square brackets] with your own details.

Settings & parameters

Variations

Tips

More: all Any chat AI prompts · all prompt engineering prompts · prompt library

Related prompts

Build an eval rubric for your prompt

Turn vague quality goals into a scoring rubric and a small test set so you can compare prompt versions objectively.

Any chat AIPrompt engineering

Act as an expert prompt engineer (prompt generator)

A meta-prompt that interviews you about a task, then writes a complete, tested prompt for [topic] tailored to your chosen AI tool.

Any chat AIPrompt engineering

Image prompt builder for any image model

Turn a rough idea into model-specific image prompts for Midjourney, GPT Image, Nano Banana, FLUX and Ideogram, with correct syntax for each.

Any chat AIPrompt engineering

Break a big task into a prompt chain

Design a multi-step prompt pipeline (research, draft, critique, revise) with inputs and outputs defined for each step.

Any chat AIPrompt engineering

Prompt critique and rewrite

Get a structured critique of an existing prompt (ambiguity, missing context, format) and a tightened rewrite.

Any chat AIPrompt engineering

21st.dev component prompt

21st.dev component prompt: given a task to integrate an existing React component in the codebase. The codebase should support: - shadcn project…

Any chat AIPrompt engineeringCommunity (CC0)

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.