launchdarkly-snippets
Skill141 starsChanged 8 days agoApache-2.0View on GitHub
Create and manage prompt snippets — reusable text blocks referenced inside config variation prompts. Keeps common instructions, personas, and guardrails consistent across multiple configs.
In this repository102 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agentcore-observability-setupSkill
- agentcore-ops-reviewSkill
- aiml-access-diagnosticsSkill
- aiml-gpu-training-cluster-investigationSkill
- analytics-opensearch-expertiseSkill
- aws-backup-coverage-reviewSkill
- aws-eks-healthdashboardSkill
- aws-eks-operations-reviewSkill
- aws-fsxn-operations-reviewSkill
- aws-health-eventsSkill
- aws-natgw-traffic-analysisSkill
- aws-routingSkill
- aws-vpc-dns-investigationSkill
- bedrock-adoption-readinessSkill
- bedrock-operation-reviewSkill
- bluebox-observabilitySkill
- bronto-dataset-discoverySkill
- bronto-error-investigationSkill
- bronto-log-searchSkill
- clickstack-investigationSkill
- cloudtrail-cost-optimizationSkill
- config-cost-optimizationSkill
- coralogix-ai-centerSkill
- coralogix-alertsSkill
- coralogix-case-analyticsSkill
- coralogix-case-managementSkill
- coralogix-casesSkill
- coralogix-dashboardsSkill
- coralogix-dataprimeSkill
- coralogix-datasetsSkill
- coralogix-data-usageSkill
- coralogix-docsSkill
- coralogix-infrastructureSkill
- coralogix-logsSkill
- coralogix-metrics-querySkill
- coralogix-ollySkill
- coralogix-rumSkill
- coralogix-service-catalogSkill
- coralogix-single-caseSkill
- coralogix-spansSkill
- coralogix-viewsSkill
- cribl-investigationSkill
- crm-production-investigation-guidelinesSkill
- database-migration-service-expertiseSkill
- database-rds-devopsSkill
- devops-agent-cost-insightsSkill
- dx-vif-resilienceSkill
- ecs-operation-reviewSkill
- eks-upgrade-readinessSkill
- elastic-csp-investigationSkill
- elastic-k8s-investigationSkill
- elastic-llm-obsSkill
- elastic-onboardingSkill
- elastic-service-reliabilitySkill
- elastic-sre-triageSkill
- enrich-with-aws-security-agentSkill
- eos-cost-analysisSkill
- firehose-operation-reviewSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
When a snippet is updated, a new version is created.
- Distinctive: line 57
Reusability First: Only create a snippet if the text will be used in 2+ places
- Very specific: line 59
Descriptive Keys: Use keys like safety-guardrails, json-output-format, support-persona
- Distinctive: line 60
Tag for Discovery: Add tags so teammates can find snippets by category
- Distinctive: line 61
Verify References: After creating a snippet, confirm it appears in the project
- Distinctive: line 67
Before creating snippets, understand what's shared:
- Distinctive: line 70
Look for repeated text across variation prompts
- Very specific: line 72
Check existing snippets with get-prompt-snippets to avoid duplicates
- Very specific: line 96
Use get-prompt-snippets with the snippetKey to confirm the snippet was created with the correct text
- Very specific: line 97
Use get-prompt-snippets without snippetKey to see it in the project listing
- Distinctive: line 98
Check that version is 1 for newly created snippets
- Very specific: line 107
Use update-prompt-snippet to modify an existing snippet.
- Distinctive: line 130
Don't create snippets for text used in only one place
- Distinctive: line 131
Don't put an entire prompt in a single snippet — break it into focused pieces
- Distinctive: line 132
Don't delete snippets without checking which configs reference them
- Very specific: line 133
Don't duplicate existing snippets — check get-prompt-snippets first
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 blockget-prompt-snippets-- browse existing snippets in the project; withsnippetKey, inspect one snippet's content
Optional MCP tools:
update-prompt-snippet-- edit a snippet's text, name, or tagsdelete-prompt-snippet-- permanently remove a snippetupdate-agent-configwithresource: "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
| Scenario | Example |
| Shared persona | "You are a helpful customer support agent for Acme Corp..." used by 5 different configs |
| Safety guardrails | "Never reveal internal pricing. Never generate code that accesses production databases." |
| Output format | "Always respond in JSON with keys: answer, confidence, sources." |
| Domain knowledge | Company-specific terminology, product names, or process descriptions |
| Regulatory text | Compliance disclaimers that must appear in every response |
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 with
get-agent-configs, then read each one with itsconfigKey - Look for repeated text across variation prompts
- Identify text that should stay consistent (guardrails, personas, formats)
- Check existing snippets with
get-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"])
{
"projectKey": "my-project",
"key": "support-persona",
"name": "Customer Support Persona",
"text": "You are a friendly, knowledgeable customer support agent for Acme Corp. Always greet the customer by name when available. Be empathetic but concise. If you don't know the answer, say so honestly and offer to escalate.",
"description": "Standard persona for all customer-facing support configs",
"tags": ["persona", "support"]
}Step 3: Verify
- Use
get-prompt-snippetswith thesnippetKeyto confirm the snippet was created with the correct text - Use
get-prompt-snippetswithoutsnippetKeyto 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:
{
"projectKey": "my-project",
"snippetKey": "safety-guardrails",
"text": "Updated guardrail text with new compliance requirements..."
}Each update creates a new version. Existing config variations referencing the snippet can pick up the new version.
Edge Cases
| Situation | Action |
| Snippet key already exists | Use get-prompt-snippets with the snippetKey to check, then either update or choose a different key |
| Very long text | Snippets can hold large blocks — but consider splitting into multiple snippets for modularity |
| Snippet referenced by configs | Update carefully — changes propagate to all referencing configs |
| Deleting a referenced snippet | Warn the user that configs will lose the reference. Use delete-prompt-snippet with confirm: true |
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
get-prompt-snippetsfirst
More resources
To learn more about setting up prompt snippets in the LaunchDarkly UI, read Prompt snippets.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

