AI CLI
AI prompting — the five patterns every professional needs
From "Prompt to Product" Chapter 5. The five patterns: ## 1. The role + task + audience + constraints + format "You are a [role]. [Task]. The audience is [audience]. Constraints: [list]. Format: [exact spec]." ## 2. The few-shot "Here are three examples of how I want this done: [Ex1] [Ex2] [Ex3]. Now do the same for [new input]." ## 3. The chain-of-thought "Think step by step. First [X]. Then [Y]. Then [Z]. After each step, show your work. Then give the final answer." ## 4. The persona + context "You are [persona] with [specific background]. You know [specific knowledge]. You have access to [these inputs]. Your goal is [exact goal]. Begin." ## 5. The iterate + critique "Here is a draft I wrote: [draft]. The audience is [audience]. Critique it for [specific dimensions]. Then rewrite it to address each critique." Full depth at [Prompt to Product](https://a.co/d/07QoNWBN).