managing-llm-prompts
Installation
SKILL.md
Managing LLM prompts
Prompt management stores prompts in PostHog as immutable versions. The application fetches a prompt at runtime, so a prompt change needs no deploy.
A prompt that exists in PostHog but that no code fetches changes nothing for the user. The job is complete only when the application fetches the prompt, or when the user has said they will connect it themselves. If you only create the prompt, say plainly that the application does not use it yet and offer to connect it.
Read the prompt management docs for SDK options, caching behavior, and limits. This skill covers the order of work and the checks.
Start from what the user has
- Prompts hardcoded in the code. Find the prompt strings the application sends to a model. Move the ones the user names. If the user names none, list what you found and ask which to move.
- A new prompt. Create it, then connect the code that will use it.
- A prompt that already exists in PostHog. Go to Change an existing prompt.