Our setup for observing, testing, and shipping the Langfuse skill
Distributed agent skills run on other people's machines, where you can't trace them. We closed the loop across 2,100+ daily clones with Halo, Skill Management, and sandboxed Harbor evals.
We started writing the Langfuse skill earlier this year as part of our mission of making Langfuse accessible to external coding agents.
I remember when this all started. skills.sh was big, and we were refreshing the page to see how many people had downloaded our skill, because that download counter was the full extent of the data we had on how users were interacting with it.
By now, a lot has changed, and our setup has matured significantly. We now have much more observability into how agents use it, plus a good setup for testing and measuring the skill's quality. And it's paying off: today, the langfuse/skills repository gets an average of 2,136 unique clones a day, with a steady upward trend, week over week.
Unique clones over 27 days
How do we, as an AI observability and evals company, measure and improve our agent skill? We introduced small improvements, then big ones, over the last months.
Following our own best practices, we wanted to get as close as possible to the AI engineering loop, which is not always as straightforward when you work with a skill setup. We combine different mechanisms to mimic this loop as closely as possible:
This post talks about our observability and experimentation setup. If you're interested in what kinds of evals you should prioritize, see How to evaluate an agent skill.
Skills for your own agent vs. someone else's
To understand why getting to this AI engineering loop was not straightforward, we should talk about the different kinds of skills, since this influences how you can evaluate them. We positioned the langfuse skill as a combination of both, see more on that below.
1. Skills for an agent you own
In this case, skills act like a more complex, modular system prompt for an agent you own.
Because you control the agent harness, tools, and environment, you can trace every run, so you have good observability into how the skill is used, and you can act on what you see. Your evals are informed by real usage, and you can reliably measure improvements with the exact harness the agent will use in production.
2. Distributed skills
Distributed skills are shipped for other people to install into their own coding agents. Every time someone says "use my skill to make your agent better at X", they are talking about this category.
Once a user clones the skill on their machine, you (as the builder) have no control over the harness and no direct observability into how the agent runs. Without this observability, you can only evaluate and improve the skill through the offline half of the loop: curating datasets of representative user tasks to the best of your abilities and running different coding agents against them.
One way to gather feedback on distributed skills is to expose an endpoint for agents to provide feedback, and explicitly add instructions to the skill to submit feedback that way.
We added both a submitFeedback MCP tool and an API endpoint to submit these. The feedback ends up in a Slack channel we monitor.
![]()
Be careful about users accidentally leaking information to you. We added instructions to ask the user for explicit permission before submitting feedback to us.
...
Show every submitted field exactly as it will be sent and ask for explicit
permission. Do not submit without approval.
...Bringing everything together in one loop
The Langfuse skill is used both as a skill for an agent we own (Halo, who lives in the langfuse app) and as a distributed skill for external coding agents. Because of this setup, we can actually complete the loop quite well.
Everything starts from a single source of truth in langfuse/skills on GitHub, which ships to both Halo and external coding agents:
Both contribute value to the overall loop: Halo feeds live production traces (tracing & monitoring), while external coding agents are used more broadly and can give feedback through the feedback endpoints, although this is less frequent. These then feed into the evals used for measuring experiment results.
Langfuse Skill Management connects both halves of this loop. Every merge to langfuse/skills on GitHub syncs an immutable skill bundle into Skill Management via the Langfuse CLI (langfuse skills push --label production). Halo fetches that production-labeled skill at runtime, so we can roll out or roll back changes without redeploying Langfuse. Before merging an edit to GitHub, we also push candidate versions under a staging label so our offline evaluation harness can test them first.
Online observability and choosing what to improve (tracing & monitoring)
Every time Halo uses the skill, traces will show skill interactions through tool observations like skill and skill_read.
- invoke-model
- getRequestContext
- invoke-model
- skill
- invoke-model
- skill_read
- invoke-model
- langfuse_queryMetrics
- invoke-model
- langfuse_listObservationsError
- langfuse_listObservations
On each generation, you see which skill versions were Available to the model and whether it Requested a skill.
![]()
![]()
Why is this distinction between available and loaded files important?
If an agent fails a task without a skill file in context, you need to know whether the skill was never offered, the model ignored its frontmatter description, or the file load itself errored out. See How we built cross-harness skill tracing for how we track Available, Requested, and Loaded across harnesses.
On the skill_read tool call, you see the skill version and which specific skill files were loaded into context.
![]()
Because Halo resolves its skill from Langfuse Skill Management, every trace links back to an immutable skill version. Skill Management's Usage tab aggregates available vs. loaded observation counts and per-file references/*.md loads per version, making it easy to spot reference files agents ignore or regressions after an edit.
To decide what to improve next, we combine these live traces with
- explicit feedback submitted through our feedback endpoints
- implicit conversation signals such as users correcting or rephrasing their request
Offline evaluation & experimentation setup (datasets, experiment, evaluate)
At a high level, our offline evaluation setup combines a Langfuse project, Harbor running coding agents on Modal sandboxes, and a GitHub repo for the task suites, starter codebases, and verifiers we use to simulate realistic scenarios. We published an example repository, langfuse/coding-agent-testing, to illustrate how this kind of setup works in practice.
Why Harbor for skill evaluation
We started with custom runner scripts on Modal and moved our skill suites onto Harbor, an open-source framework (from the creators of Terminal-Bench) for running and grading coding agents in isolated containers. Each Harbor task bundles a prompt, a container environment, and a verifier script.
Three properties make Harbor a strong fit for skill evaluation specifically:
- Cross-harness
--skillinjection: Every coding agent expects skills in a different directory ($CLAUDE_CONFIG_DIR/skillsfor Claude Code,$HOME/.agents/skillsfor Codex, and so on). Harbor's--skillflag wires a skill folder into each supported agent automatically, so we can run cleanno-skillvs. candidate-version jobs across Claude Code, Codex, and Cursor without maintaining custom wrappers per harness. - Separate verifiers and sidecar isolation: Harbor runs grading in a separate verifier container after the agent exits and supports multi-container sidecars. Test scripts, expected answers, judge keys, and real provider credentials never enter the agent's container.
- Standardized trajectories: Every trial records a standardized agent trajectory (
ATIF) alongside a SHA-256 content digest of the injected skill, so a single Langfuse plugin for Harbor can export traces, skill versions, and scores across every harness instead of maintaining per-agent hooks inside the sandbox.
1. Task suites, starter codebases, and candidate skills in Skill Management
We maintain our evaluation suites alongside versioned skills in Langfuse Skill Management. Before merging a skill change to GitHub, we push the candidate folder to Skill Management (for example under a staging label) so experiment jobs can pull an immutable version and compare it against production or a no-skill baseline.
Our skill tasks are split into use-case suites (for example, instrumentation, v4 API migration, or prompt migration) and two routing suites:
- One to test whether the Langfuse skill gets invoked at all.
- One that tests invocation of specific reference files, mainly checking whether reference file descriptions are competing for the same use cases.
Each task item follows the same structure:
- Input: the user prompt handed to the coding agent.
- Expected output: varies depending on what we are evaluating (for example, a reference file the agent should load or criteria for a workflow).
- Metadata / workspace: an optional
env_folderstarter codebase from our test repository when we want the agent to spin up inside a realistic existing project (see the example fixtures inlangfuse/coding-agent-testing).
"Add Langfuse tracing to this app so every LLM call and tool invocation is captured."
{
"invoked_reference_file": "references/instrumentation.md"
}{
"env_folder": "starter-app-python"
}Each Harbor task builds from these starter workspaces so every trial starts from an identical codebase.
2. Running baseline vs. candidate skill jobs with Harbor
To test a candidate change, we install the staged version from Langfuse Skill Management with the Langfuse CLI—which writes a langfuse-skills.lock file recording the exact version—and run Harbor on Modal sandboxes (--env modal) alongside a baseline job without --skill:
langfuse skills install langfuse --label staging
harbor run -p suites/skills \
-a claude-code -a codex \
--env modal \
--skill .agents/skills/langfuse \
--job-name langfuse-skill-staging \
--plugin langfuse3. Running agents in isolated Modal sandboxes with sidecars and verifiers
Harbor spins up an isolated Modal sandbox for each (task × coding agent) trial, paired with two proxy sidecars:
- A model proxy routes LLM calls so real provider keys never enter the agent container.
- Because many test prompts ask the coding agent to create prompts, datasets, or traces in Langfuse, a Langfuse proxy provisions a fresh scratch Langfuse project per trial and deletes it once the trial ends.
After the agent finishes, Harbor runs a separate verifier container that grades deterministic routing and API checks from the trajectory alongside LLM-as-a-judge checks over the final answer and workspace diff.
4. Collecting traces and comparing skill versions in Langfuse
The open-source Langfuse plugin for Harbor (--plugin langfuse) turns each Harbor job into a Langfuse experiment run. Each trial's trajectory becomes a trace with model generations and tool observations, the plugin reads langfuse-skills.lock to attach the exact Skill Management version (skills_available), and verifier rewards land on the trace as scores so we can compare no-skill, production, and staging runs task by task.
Putting the loop into practice
Combining the things above turns skill engineering back into standard AI engineering:
- Online tracing and monitoring of Halo traces show us how the agent uses (or doesn't use) the skill in real life, and how it impacts the outcome for our users (conversation signals). This step is rich in data, but does not cover our total audience.
- Offline dataset building and experimentation is inspired by what we learn from looking at Halo traces, and here we can stage candidate edits in Langfuse Skill Management and evaluate them across harnesses with Harbor before shipping.
- Deployment means publishing a verified change to
langfuse/skillson GitHub for external coding agents and promoting the new version toproductionin Langfuse Skill Management for Halo.
Ready to get started?
If you take anything away from this for engineering your skills, let it be this:
1. Manage skills as versioned artifacts and link them to traces. The single biggest unlock for reliable skill improvement is linking skill changes to trace data, so you can measure the impact of your change. This is why we built Skill Management and why it's so powerful. Once these are linked, you can apply many AI engineering best practices to get to a killer setup.
2. Test coding-agent workflows in isolated sandboxes. And test many variants. Coding agents from different providers behave very differently, so it's important to test across their actual harnesses—frameworks like Harbor paired with Langfuse make it straightforward to run those rollouts and compare skill versions side by side.
For a deeper look at what we actually evaluate and measure inside this harness, see How to evaluate an agent skill.