> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindgard.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamically Compile System Prompt

> Break the system prompt into distinct components to enhance security.

export const what_0 = "Divide the system prompt into multiple components that can be dynamically combined as needed. This reduces the chances of exposing the full prompt at once."

export const how_0 = "Identify key sections of the prompt (e.g., instructions, context, and guidance). Separate these into individual strings or blocks that are stored securely. Use variables or placeholder text where sensitive information is required, only filling these in during runtime."

export const implement_0 = "Break the prompt into components like Context, Task, and Guidance, marked by placeholders (e.g., {{CONTEXT}}). Store these securely, encrypt if needed, and combine only at runtime."

Break the system prompt into distinct components, enabling selective use and minimizing exposure of sensitive content to unauthorized users or parts of the application.

## Explanation

{what_0} 

## How it works

{how_0} 

## How to implement

{implement_0} 
