Config Prompt Snippets
You're using a skill that will guide you through creating and managing prompt snippets in LaunchDarkly. Your job is to identify reusable text, create snippets, reference them in config variations, and verify everything is wired correctly.
Prerequisites
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
create-prompt-snippet-- create a new reusable text blocklist-prompt-snippets-- browse existing snippets in the projectget-prompt-snippet-- inspect a specific snippet's content
Optional MCP tools:
update-prompt-snippet-- edit a snippet's text, name, or tagsdelete-prompt-snippet-- permanently remove a snippetupdate-ai-config-variation-- update variation prompts to reference snippets
Core Concepts
What Are Prompt Snippets?
Prompt snippets are named, versioned text blocks stored at the project level. They contain reusable pieces of prompt text — personas, guardrails, output format instructions, domain knowledge — that can be shared across multiple config variations.
When a snippet is updated, a new version is created. Config variations that reference the snippet can pick up the latest version, keeping all your configs in sync.
When to Use Snippets
When NOT to Use Snippets
- Text that is unique to a single variation — just put it in the prompt directly
- Dynamic content that changes per-request — use template variables instead
- Entire prompts — snippets are building blocks, not complete prompts
Core Principles
- Reusability First: Only create a snippet if the text will be used in 2+ places
- Single Responsibility: Each snippet should cover one concern (persona OR guardrails, not both)
- Descriptive Keys: Use keys like
safety-guardrails,json-output-format,support-persona - Tag for Discovery: Add tags so teammates can find snippets by category
- Verify References: After creating a snippet, confirm it appears in the project
Workflow
Step 1: Identify Reusable Text
Before creating snippets, understand what's shared:
- List existing configs in the project using
get-ai-configfor each - Look for repeated text across variation prompts
- Identify text that should stay consistent (guardrails, personas, formats)
- Check existing snippets with
list-prompt-snippetsto avoid duplicates
Step 2: Create Snippets
Use create-prompt-snippet with:
key-- unique identifier (lowercase, hyphens, e.g.safety-guardrails)name-- human-readable display nametext-- the reusable prompt text contentdescription(optional) -- explain when/why to use this snippettags(optional) -- categorize for discovery (e.g.["guardrails", "safety"])
Step 3: Verify
- Use
get-prompt-snippetto confirm the snippet was created with the correct text - Use
list-prompt-snippetsto see it in the project listing - Check that version is 1 for newly created snippets
Report results:
- Snippet created with key, name, and text
- Version number confirmed
- Tags applied correctly
Step 4: Update Snippets (When Needed)
Use update-prompt-snippet to modify an existing snippet. Only pass the fields you want to change:
Each update creates a new version. Existing config variations referencing the snippet can pick up the new version.
Edge Cases
What NOT to Do
- Don't create snippets for text used in only one place
- Don't put an entire prompt in a single snippet — break it into focused pieces
- Don't delete snippets without checking which configs reference them
- Don't duplicate existing snippets — check
list-prompt-snippetsfirst
More resources
To learn more about setting up prompt snippets in the LaunchDarkly UI, read Prompt snippets.


