Prompt Snippet Library

Snippets/building blocks for system prompts

About This Project

Prompt-Snippet-Library is a GitHub repository that collects reusable building blocks for writing system prompts and configuring AI agents. Each snippet is stored as a Markdown file and includes three parts: a ready-to-use text version, a JSON integration example showing how to embed it in JSON-based systems, and usage notes describing context and best practices. The collection is organized into categories including model identification, workflow control, formatting instructions (raw Markdown, Gmail-safe HTML, CSV, and SQL output), source handling, and output structure such as summaries, verbatim prompt reproduction, and timestamps.

The repository is written primarily in Python and uses Markdown files with JSON examples as its core format, with the README documenting an alphabetical index, a system prompt integration pattern, and a method for chaining multiple snippets into a single workflow. Contributors are asked to place new snippets in appropriately named category folders, include both text and JSON examples, add usage notes, and update the README index.

The library may be useful to developers building LLM-powered applications, prompt engineers who need consistent formatting or response behavior, and teams running batch processing or API-based workflows that require predictable model output. It may also suit those who need auditable prompt handling, such as logging or debugging pipelines, or who generate email templates, documentation, or database-oriented output from language models.

Project Details

Categories

Explore More Projects