Skip to main content
ClaudeWave
EN, English
Skill12k repo starsupdated 4d ago

phoenix-frontend

Phoenix Frontend Development skill provides guidelines for building React components and TypeScript code within the Phoenix AI observability platform's app directory. Use this skill when creating or refactoring components, handling forms, implementing accessibility fixes, managing styling, or asking about frontend conventions and component patterns. Consult specialized rule files for Relay usage, accessibility requirements, test IDs, and SVG logo assets. Always verify visual changes with browser testing and update route metadata when page content materially changes.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/Arize-ai/phoenix /tmp/phoenix-frontend && cp -r /tmp/phoenix-frontend/.agents/skills/phoenix-frontend ~/.claude/skills/phoenix-frontend
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Phoenix Frontend Development

Composable rules for building UI in the Phoenix app. Before starting work, explore `js/app/src/components/` and `js/app/package.json` to understand existing patterns, packages, and conventions — then follow these rules.

## Reference Files

Read the relevant file(s) based on the task:

| Reference | When to read |
|-----------|-------------|
| `references/components.md` | Creating, composing, or refactoring components |
| `references/relay.md` | Using Relay |
| `references/accessibility.md` | Any interactive element, form, overlay, or semantic markup |
| `references/test-ids.md` | Adding or changing `data-testid` attributes for E2E tests |
| `references/resize-svg-logo-assets.md` | Adding or updating provider/integration logo icons |

## Verification

After visual changes, use `agent-browser` to verify the UI looks correct. When modifying a shared component, check its usages across the app.

## Route Metadata

When adding, removing, renaming, or materially changing what a page contains, update the route's `handle.agentRoute` metadata in `js/app/src/Routes.tsx` if an assistant agent should be able to link users to that destination. Keep metadata small and search-oriented:

- `label`: human page name.
- `description`: concise page purpose based on what the page now contains, including user phrases PXI might hear when looking for that page.

If a content change makes an existing route easier or harder to find by natural language, adjust `description` in the same change.

## URL State

Significant view state must be recreatable from the URL. If a user can select a tab, sub-view, or detail state that should survive reloads, sharing, or adjacent-record pagination, encode it in route params or search params and preserve the relevant URL state during navigation.