TypeScript SDK patterns for Opik. Use when working in sdks/typescript.
56
63%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/typescript-sdk/SKILL.mdPublic API → OpikClient → Domain (Trace/Span) → BatchQueues → REST Client → BackendREADME.md and integration README files in the same PR.// ✅ REQUIRED - especially in CLI/tests
await client.flush();
// or globally:
await flushAll();// ✅ GOOD - domain objects enqueue, not HTTP
trace.update({ metadata: { key: 'value' } }); // Enqueues update
trace.end(); // Enqueues update
// ❌ BAD - don't call REST directly from domain// ✅ GOOD - export from public API
export { Opik, track, flushAll } from 'opik';
// ❌ BAD - don't expose generated clients
import { TracesApi } from 'opik/rest_api'; // Internal!flush() flushes all queues in orderOpikConfigOpikApiError, OpikApiTimeoutErrorDatasetNotFoundError, ExperimentNotFoundErrorflush() escape hatch if neededaae4650
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.