Skip to main content

openinference-typescript

TypeScript conventions for any TypeScript code in js/ (packages, examples, tests). Use whenever writing, reviewing, or modifying TypeScript in this repo.

소스 정보

저장소
Arize-ai/openinference
최근 소스 활동
2026년 10월 23일 20:54
감지된 SKILL.md 언어
영어
스타
1,299
포크
374

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
openinference-typescript
description
TypeScript conventions for any TypeScript code in js/ (packages, examples, tests). Use whenever writing, reviewing, or modifying TypeScript in this repo.
# OpenInference TypeScript Conventions Follow existing patterns in the package you're editing (see `js/AGENTS.md`), plus: ## Naming - No single-letter variables, including loop counters (`index`, `span`, `chunk`). - Booleans use verb prefixes: `isStreaming`, `hasError`, `shouldMask`. - Functions start with a verb: `getAttributes`, `parseResponse`, `buildSpanName`. - Extract complex conditions into named booleans. ## Functions - 2+ parameters → a single destructured object, documented with JSDoc `@param params.foo`. - Prefer composition over inheritance, and pure transforms over mutation. - Don't read ambient state (`Date.now()`, config singletons, module constants) deep inside utilities; expose it as an optional param defaulting to a `DEFAULT_*` constant. ## Types - No `any`; use `unknown` and narrow with type guards. If `any` is unavoidable, comment why. - Sparse lookup maps must allow `undefined`: `Partial<Record<K, V>>` (most packages don't enable `noUncheckedIndexedAccess`). ## Reuse Check `@arizeai/openinference-core` and sibling packages for existing utilities before writing helpers or adding dependencies.
GitHub에서 보기