Prompt Patterns Cheatsheet — AI Builders Network ================================================= SYSTEM PROMPT TEMPLATE: --- You are [role]. Context: [project/stack/user situation] Constraints: - [must do] - [must not do] Output: [format — JSON keys, markdown sections, etc.] --- FEW-SHOT TEMPLATE: --- Example 1: Input: [real input] Output: [ideal output] Example 2: Input: [edge case input] Output: [ideal output] --- STRUCTURED OUTPUT (JSON): { "result": "...", "confidence": "high|medium|low", "unable_to_complete": false, "reason": null } CHAIN OF THOUGHT: "Think step by step. Show your reasoning before the final answer." DELIMITERS: Use ### or triple quotes to separate user content from instructions. TESTING: - 10–20 real inputs in a fixture file - Re-run on every prompt change - Version prompts in git (prompts/v1.2.md)