Loading...
Loading...
Create and manage prompt snippets — reusable text blocks referenced inside AI Config variation prompts. Keeps common instructions, personas, and guardrails consistent across multiple configs.
npx skill4agent add launchdarkly/agent-skills snippetscreate-prompt-snippetlist-prompt-snippetsget-prompt-snippetupdate-prompt-snippetdelete-prompt-snippetupdate-ai-config-variation| 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 |
safety-guardrailsjson-output-formatsupport-personaget-ai-configlist-prompt-snippetscreate-prompt-snippetkeysafety-guardrailsnametextdescriptiontags["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"]
}get-prompt-snippetlist-prompt-snippetsupdate-prompt-snippet{
"projectKey": "my-project",
"snippetKey": "safety-guardrails",
"text": "Updated guardrail text with new compliance requirements..."
}| Situation | Action |
|---|---|
| Snippet key already exists | Use |
| 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 |
list-prompt-snippets