Agent skill · Audited from source
Langfuse Upgrade Migration
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 9 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Upgrade Langfuse SDK versions and migrate between API changes.
Cite
Cite this page
ModelsAtlas. “Langfuse Upgrade Migration (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/langfuse-upgrade-migration
Trust audit
Audit 0.4.1 · source read 9 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 9 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/langfuse-pack/skills/langfuse-upgrade-migrationThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Upgrade Langfuse SDK versions and migrate between API changes.
--- name: langfuse-upgrade-migration description: 'Upgrade Langfuse SDK versions and migrate between API changes. Use when upgrading Langfuse SDK, handling breaking changes, or migrating between Langfuse versions. Trigger with phrases like "upgrade langfuse", "langfuse migration", "update langfuse SDK", "langfuse breaking changes", "langfuse version". ' allowed-tools: Read, Write, Edit, Bash(npm:*), Bash(pip:*) version: 1.17.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - langfuse - api - migration compatibility: Designed for Claude Code --- # Langfuse Upgrade & Migration ## Current State !`npm list langfuse @langfuse/client @langfuse/tracing @langfuse/otel 2>/dev/null | head -10 || echo 'No langfuse packages found'` !`pip show langfuse 2>/dev/null | grep -E "Name|Version" || echo 'Python langfuse not installed'` ## Overview Step-by-step guide for upgrading the Langfuse SDK across major versions. Covers v3 to v4 (OTel rewrite), v4 to v5, breaking changes, and automated codemods. ## Prerequisites - Existing Langfuse integration - Test suite covering traced operations - Git branch for the upgrade ## Version Roadmap | SDK | Package | Architecture | Status | |-----|---------|-------------|--------| | v3 | `langfuse` (single) | Custom, `Langfuse` class | Legacy | | v4 | `@langfuse/client`, `@langfuse/tracing`, `@langfuse/otel` | OpenTelemetry-based | Stable | | v5 | `@langfuse/client`, `@langfuse/tracing`, `@langfuse/otel` | OpenTelemetry + improvements | Latest | ## Instructions ### Step 1: Check Current Version and Plan ```bash set -euo pipefail # Check what you have npm list langfuse @langfuse/client @langfuse/tracing 2>/dev/null # Check latest available npm info @langfuse/client version npm info @langfuse/tracing version npm info langfuse version # Python pip show langfuse 2>/dev/null | grep Version pip index versions langfuse 2>/dev/null | head -3 ``` ### Step 2: v3 to v4 Migration (TypeScript) This is the biggest migration -- v4 rewrites tracing on OpenTelemetry. **2a. Install new packages:** ```bash set -euo pipefail # Install v4+ packages npm install @langfuse/client @langfuse/tracing @langfuse/otel @opentelemetry/sdk-node # Keep langfuse v3 temporarily for comparison # Remove after migration: npm uninstall langfuse ``` **2b. Update initialization:** ```typescript // BEFORE (v3): import { Langfuse } from "langfuse"; const langfuse = new Langfuse({ publicKey: process.env.LANGFUSE_PUBLIC_KEY, secretKey: process.env.LANGFUSE_SECRET_KEY, baseUrl: process.env.LANGFUSE_HOST, }); // AFTER (v4+): import { LangfuseClient } from "@langfuse/client"; import { LangfuseSpanProcessor } from "@langfuse/otel"; import { NodeSDK } from "@opentelemetry/sdk-node"; // OTel setup (once at entry point) const sdk = new NodeSDK({ spanProcessors: [new LangfuseSpanProcessor()], }); sdk.start(); // Client for prompts, datasets, scores const langfuse = new LangfuseClient(); ``` **2c. Update tracing calls:** ```typescript // BEFORE (v3): Manual trace/span/generation const trace = langfuse.trace({ name: "my-op", input: data }); const span = trace.span({ name: "step-1", input: data }); await doWork(); span.end({ output: result }); const gen = trace.generation({ name: "llm", model: "gpt-4o" }); gen.end({ output: response, usage: { promptTokens: 10 } }); await langfuse.flushAsync(); // AFTER (v4+): startActiveObservation with auto-nesting import { startActiveObservation, updateActiveObservation } from "@langfuse/tracing"; await startActiveObservation("my-op", async () => { updateActiveObservation({ input: data }); await startActiveObservation("step-1", async () => { updateActiveObservation({ input: data }); const result = await doWork(); updateActiveObservation({ output: result }); }); await startActiveObservation({ name: "llm", asType: "generation" }, async () => { updateActiveObservation({ model: "gpt-4o" }); const response = await callLLM(); updateActiveObservation({ output: response, usage: { promptTokens: 10 } }); }); }); ``` **2d. Update OpenAI wrapper:** ```typescript // BEFORE (v3): import { observeOpenAI } from "langfuse"; // AFTER (v4+): import { observeOpenAI } from "@langfuse/openai"; // npm install @langfuse/openai ``` **2e. Update environment variable:** ```bash # BEFORE: LANGFUSE_HOST or LANGFUSE_BASEURL # AFTER: LANGFUSE_BASE_URL (LANGFUSE_BASEURL still works in v4 but not v5) ``` **2f. Update prompt management:** ```typescript // BEFORE (v3): const prompt = await langfuse.getPrompt("my-prompt", 2); // version as positional arg // AFTER (v4+): const prompt = await langfuse.prompt.get("my-prompt", { version: 2, // version in options object type: "text", // explicit type }); ``` **2g. Update shutdown:** ```typescript // BEFORE (v3): await langfuse.shutdownAsync(); // AFTER (v4+): await sdk.shutdown(); // Shuts down OTel SDK + flushes spans ``` ### Step 3: Python SDK Migration (v2 to v3) ```python # BEFORE (v2): from langfuse import Langfuse langfuse = Langfuse() @langfuse.observe() def my_function(): pass # AFTER (v3): from langfuse.decorators import observe, langfuse_context @observe() def my_function(): langfuse_context.update_current_observation( metadata={"key": "value"} ) ``` ### Step 4: Run Tests and Verify ```bash set -euo pipefail # Run existing test suite npm test # Verify traces appear in dashboard node -e " const { startActiveObservation, updateActiveObservation } = require('@langfuse/tracing'); startActiveObservation('upgrade-verify', async () => { updateActiveObservation({ input: { test: true }, output: { migrated: true } }); }).then(() => console.log('Migration verified')); " ``` ### Step 5: Remove Old Package ```bash set -euo pipefail # After all tests pass npm uninstall langfuse # Verify no lingering imports grep -rn "from ['\"]langfuse['\"]" src/ || echo "No old imports found" ``` ## Breaking Changes Quick Refere
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
npm info @langfuse/client version npm info @langfuse/tracing version npm info langfuse version npm install @langfuse/client @langfuse/tracing @langfuse/otel @opentelemetry/sdk-node npm install [email protected] # Previous version
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/langfuse-upgrade-migration/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/langfuse-upgrade-migration/)
<a href="https://modelsatlas.com/skills/jeremylongshore/langfuse-upgrade-migration/"><img src="https://modelsatlas.com/skills/jeremylongshore/langfuse-upgrade-migration/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Langfuse Upgrade Migration
What does the Langfuse Upgrade Migration skill do?
Is Langfuse Upgrade Migration safe to install?
What can Langfuse Upgrade Migration access on my machine?
Which assistants does Langfuse Upgrade Migration work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Langfuse Upgrade Migration skill do?
- Is Langfuse Upgrade Migration safe to install?
- What can Langfuse Upgrade Migration access on my machine?