phoenix-typescript-package-docs
БесплатноБез исполняемых скриптовНе проверенMaintain the bundled TypeScript package docs that ship inside Phoenix npm packages. Use this skill whenever adding or updating docs for…
от Arize-ai★ 12 510 звёзд на GitHubОб этом скилле
Phoenix TypeScript Package Docs
Keep the curated TypeScript package docs aligned with the real npm package surface area and with the publish-time sync flow.
Quick Reference
| Task | What to inspect | What to update |
|---|---|---|
| Fix a stale example | js/packages/<pkg>/src/ exports and function signatures |
Canonical MDX under docs/phoenix/sdk-api-reference/typescript/packages/<pkg>/ |
| Add or remove a page | Existing package-doc folder and docs.json nav |
Canonical MDX, docs.json, and any landing-page links |
| Add a new package to the bundled-docs system | js/scripts/sync-package-docs.mjs and package package.json |
Sync map, package files, package prepack, and Mintlify nav |
| Verify publish output | node js/scripts/sync-package-docs.mjs and npm pack --dry-run |
Generated js/packages/<pkg>/docs/ contents and tarball entries |
Source Of Truth
The canonical authored docs live in Mintlify pages:
docs/phoenix/sdk-api-reference/typescript/packages/phoenix-client/
docs/phoenix/sdk-api-reference/typescript/packages/phoenix-evals/
docs/phoenix/sdk-api-reference/typescript/packages/phoenix-otel/
The package examples remain in the package source trees:
js/packages/phoenix-client/examples/
js/packages/phoenix-evals/examples/
js/packages/phoenix-otel/examples/
The published npm docs are staged copies:
js/packages/phoenix-client/docs/
js/packages/phoenix-evals/docs/
js/packages/phoenix-otel/docs/
Do not hand-edit js/packages/*/docs/. Treat those folders as generated publish artifacts.
Ground doc content in the real package src/ and examples/ directories, but keep the published package docs focused on curated MDX pages.
Current Packaging Flow
These files define the bundled-docs workflow:
js/scripts/sync-package-docs.mjsjs/packages/phoenix-client/package.jsonjs/packages/phoenix-evals/package.jsonjs/packages/phoenix-otel/package.jsondocs.jsondocs/phoenix/sdk-api-reference/typescript/overview.mdxdocs/phoenix/sdk-api-reference/typescript/arizeai-phoenix-client.mdxdocs/phoenix/sdk-api-reference/typescript/arizeai-phoenix-evals.mdxdocs/phoenix/sdk-api-reference/typescript/arizeai-phoenix-otel.mdx
Each supported package must have:
- a canonical Mintlify package-doc folder
- a
docsentry infiles - a
prepackhook that runs the sync script for that package - a
postpublishhook that removes staged package docs (notpostpack—pnpm publishstats the package files after the pack lifecycle, so apostpackclean deletes them mid-publish and fails with ENOENT) - visible navigation in
docs.json
Authoring Rules
1. Read code before editing docs
Always ground docs in the actual exported surface:
- root exports:
js/packages/<pkg>/src/index.ts - submodule exports:
js/packages/<pkg>/src/<module>/index.ts - implementation and parameter shapes: matching files in
src/** - real usage patterns:
js/packages/<pkg>/examples/**
Do not infer argument names or object shapes from older docs. Confirm them from code first.
2. Document exported entrypoints, not internals
Prefer pages and examples that match package entrypoints a developer imports:
@arizeai/phoenix-client@arizeai/phoenix-client/prompts@arizeai/phoenix-client/spans@arizeai/phoenix-client/sessions@arizeai/phoenix-client/experiments@arizeai/phoenix-evals@arizeai/phoenix-evals/llm@arizeai/phoenix-otel
Do not center docs around private helpers or internal-only module paths.
3. Keep the packaged docs flat
Inside each package docs/ folder, prefer a flat page layout such as:
overview.mdx
experiments.mdx
Top-level authored MDX pages should stay flat.
4. Keep website docs and packaged docs aligned
If you add, remove, or rename a package-doc page:
- update the canonical MDX file
- update
docs.json - update any package landing page links that point into the package-doc section
- rerun the sync script
5. Prefer examples that prove real shapes
When a function takes a wrapped object such as spanAnnotation, documentAnnotation, sessionAnnotation, spanNote, project, or dataset, the example must use the real wrapper shape from code.
Common failure mode: docs drift toward simplified pseudo-APIs that do not match actual exported parameter names.
6. Hide agent-only implementation context
When a page benefits from implementation breadcrumbs like internal src/** paths or a full source map, do not render them as visible Markdown headings, bullet lists, or fenced code blocks in Mintlify.
Use hidden semantic HTML instead:
<section
className="hidden"
data-agent-context="relevant-source-files"
aria-label="Relevant source files"
>
<h2>Relevant Source Files</h2>
<ul>
<li><code>src/example.ts</code> for the canonical implementation</li>
</ul>
</section>
<section
className="hidden"
data-agent-context="s
Установить phoenix-typescript-package-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл phoenix-typescript-package-docs?
Maintain the bundled TypeScript package docs that ship inside Phoenix npm packages. Use this skill whenever adding or updating docs for `@arizeai/phoenix-client`, `@arizeai/phoenix-evals`, or `@arizeai/phoenix-otel`, when changing the Mintlify package-doc pages, when keeping `node_modules/.../docs` content aligned with actual exports, or when modifying the sync and publish flow for packaged docs.
Как установить скилл phoenix-typescript-package-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phoenix-typescript-package-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic