Meta-Prompting: Prompts That Write Prompts
One of the most powerful patterns in Kai is meta-prompting—using templates and data to programmatically compose prompts instead of writing them by hand. The problem with handwritten prompts: Every time you need a slightly different version, you copy-paste and modify. Soon you have 47 variations of the same prompt scattered across your system, and maintaining them is a nightmare. The meta-prompting solution: You define prompt templates with variables, then feed in data to generate exactly the pro