prompts
Installation
SKILL.md
Version Your Prompts with LangWatch Prompts CLI
Determine Scope
If the user's request is general ("set up prompt versioning", "version my prompts"):
- Read the full codebase to find all hardcoded prompt strings
- Study git history to understand what changed and why — focus on agent behavior changes, prompt tweaks, bug fixes. Read commit messages for context.
- Set up the Prompts CLI and create managed prompts for each hardcoded prompt
- Update all application code to use
langwatch.prompts.get()
If the user's request is specific ("version this prompt", "create a new prompt version"):
- Focus on the specific prompt
- Create or update the managed prompt
- Update the relevant code to use
langwatch.prompts.get()
Detect Context
This skill is primarily code-path (CLI + SDK). Platform MCP tools exist for prompt management (platform_create_prompt, platform_update_prompt, etc.) but users typically manage prompts directly in the UI. If the user has no codebase and wants to create prompts on the platform, use the platform_create_prompt MCP tool instead.