This prompt engineering framework for ChatGPT acts as a guide for providing a structured set of instructions to the AI model in order to receive fuller, more accurate, and more desirable results.

I call this SPICIER because it is the best anagram I could think of, but it doesn't perfectly match the order of categories.

S.P.I.C.I.E.R.

ℹ️ This, especially Input, can and should be written for a computer, not a human.

  1. Role: Give ChatGPT a persona to give a response through the lens of
  2. Instruction: What you want to get out of ChatGPT
  3. Context: Help ChatGPT understand the context
  4. Input: The input data you want ChatGPT to respond to
  5. Source: Reference websites to help shape the input to results
  6. Exclusions: Further define parameters by omitting undesired results
  7. Parameters: Specify specific options or constraints, i.e. the tone of voice, formatting, length

Example

ROLE:

Act as a software engineer expert in the following:

INSTRUCTIONS:

CONTEXT:

CODE:

INSERT CODE

EXCLUSIONS: