# Sparkle Pills

DevFeed: [Sparkle Pills](<https://devfeed.tech/articles/sparkle-pills-67135.md>)

Original publisher: [Read original article](<https://githubnext.com/posts/sparkle-pills/>)

Published: 2026-09-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [GitHub Next](<https://devfeed.tech/sources/github-next.md>)

Topics: [AI Prompt Templates](<https://devfeed.tech/topics/ai-prompt-templates.md>), [coding assistant](<https://devfeed.tech/topics/coding-assistant.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [templating](<https://devfeed.tech/tags/templating.md>)

## AI overview

The article describes "sparkle pills," a templating convention that marks slots for an AI model to fill while preserving surrounding text verbatim. It explains using deterministic code to request slot values, constraints and structured output, parallel generation, and write-time, compile-time, and run-time filling. It also shows examples for document templates, website updates, and pseudocode.

## Source excerpt

A flexible templating convention for contextual inference