langfuse-prompt-view

Original🇺🇸 English
Translated
1 scripts

View Langfuse prompts. Use when checking prompt contents, comparing versions, or debugging prompt issues.

10installs
Added on

NPX Install

npx skill4agent add neuradex/langfuse-skills langfuse-prompt-view

Langfuse Prompt View

Display the content of a specific prompt.

Setup

Set the following environment variables before use:
VariableRequiredDescription
LANGFUSE_PUBLIC_KEY
YesLangfuse public key
LANGFUSE_SECRET_KEY
YesLangfuse secret key
LANGFUSE_HOST
or
LANGFUSE_BASE_URL
NoLangfuse host URL (default:
https://us.cloud.langfuse.com
)

When to Use

  • Checking prompt content
  • Verifying a specific label's version
  • Debugging prompts

Commands

1. Show Prompt Content

Get the latest version:
bash
npx tsx scripts/langfuse-prompt-view.ts <prompt-name>
Get a specific label's version:
bash
npx tsx scripts/langfuse-prompt-view.ts <prompt-name> --label=development
npx tsx scripts/langfuse-prompt-view.ts <prompt-name> --label=production

Output Example

============================================================
Prompt: librarian-system
Version: 3
Labels: development
============================================================

--- Content ---

You are an excellent librarian...

--- End ---

Notes

  • If no label is specified, the latest version is returned
  • Specifying a non-existent prompt name or label will result in an error