Development guide for the @arizeai/phoenix-client TypeScript SDK — run and resume experiments, manage OpenTelemetry tracer providers with stack-based attach/detach, and write vitest unit and integration tests. Use when adding features to phoenix-client, debugging experiment lifecycle or provider cleanup, modifying dataset/prompt/session/span APIs, or writing tests for the js/packages/phoenix-client/ directory.
75
76%
Does it follow best practices?
Impact
92%
1.21xAverage score across 2 eval scenarios
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./js/packages/phoenix-client/.agents/skills/phoenix-client-development/SKILL.mdVitest mock shape and lifecycle assertions for two-phase experiment tracing
Test file location
100%
100%
Vitest imports
100%
100%
register() mock return shape
100%
100%
attachGlobalTracerProvider() mock return shape
100%
100%
forceFlush and shutdown return Promises
100%
100%
register() called twice
100%
100%
Task-phase projectName
100%
100%
Eval-phase projectName
100%
100%
global: false on both calls
100%
100%
detach() called exactly once per handle
100%
100%
Integration test conventions for phoenix-client experiment lifecycle
integration- prefix
0%
100%
No vitest imports
100%
100%
Custom assert helper
70%
100%
No console.log
100%
100%
process.exit(1) in catch
100%
100%
trace.disable() called
0%
100%
context and propagation disable
0%
100%
Sentinel provider registered before
100%
100%
Sentinel asserted after experiment
100%
100%
attachGlobalTracerProvider used
0%
0%
detach() in finally
0%
0%
e127482
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.