Discussion

Emballage avancé de prompts JSON pour l'IA

De Wikiprompt, l’encyclopédie libre de prompts

Ryan Hart
Contribué parRyan HartXSource

28 nov. 2025

Emballage avancé de prompts JSON pour l'IA Un cadre pour construire des invites JSON robustes avec prévention explicite des échecs, profondeur de réflexion ajustable, et règles d'auto-validation.

Contenu du PromptEnregistrer

🌐
{ "prompt": { "instruction": "Wrap your entire JSON prompt inside another JSON prompt and force multi-stage reasoning.", "stages": [ { "stage": 1, "task": "Parse the original JSON prompt and identify all placeholders, brand names, model names, parameter flags, code/JSON keys, and quoted in-image text.", "output": "List of all elements to preserve verbatim." }, { "stage": 2, "task": "Translate the natural language parts of the original prompt into French, keeping the identified elements unchanged.", "output": "Draft French translation with placeholders intact." }, { "stage": 3, "task": "Review the translation for accuracy, ensuring no em-dashes are used (replace with ' - '), diacritics are preserved, and structure matches 1:1.", "output": "Final French translation." } ], "anti_failures": [ "Do NOT translate or alter any placeholder like [X] or {x}.", "Do NOT change brand/model names (e.g., Sony, Canon) or parameter flags (--ar, 85mm, 4K, 24fps).", "Do NOT modify code/JSON keys or structure.", "Do NOT use em-dashes (-) anywhere; use ' - ' instead.", "Do NOT omit or add any content; keep the structure exactly 1:1.", "Do NOT output anything other than the translated JSON prompt - no preamble, no explanations, no code fences." ], "thinking_mode": "deep", "self_check": [ "Before replying, verify that every placeholder [X]/{x} appears exactly as in the original.", "Check that all brand/model names and parameter flags are unchanged.", "Ensure no em-dash is present; replace any with ' - '.", "Confirm that all French text has correct diacritics (é, è, à, ç, etc.).", "Validate that the output is a valid JSON object with the same keys and nesting as the original prompt.", "Re-read the original prompt and the translation side-by-side to ensure 1:1 structural correspondence." ] } }

Connectez-vous pour voir le prompt complet

Continuer avec:

En vous connectant, vous acceptez nos Conditions et Confidentialité

Utilisation

Ce prompt est conçu pour être utilisé avec coding. Copiez le contenu ci-dessus et collez-le dans votre outil d’IA préféré.

Pour de meilleurs résultats, personnalisez les espaces réservés (indiqués par des crochets ou des majuscules) selon vos besoins.

Références

Catégories :coding| twitter| json-prompt| prompt-engineering

Discussion