phoenix-typescript
Installation
SKILL.md
Phoenix TypeScript Conventions
These conventions apply to all TypeScript in the Phoenix monorepo — the app/ frontend, the js/packages/ libraries (phoenix-client, phoenix-cli, phoenix-evals, phoenix-mcp, phoenix-otel, phoenix-config), examples, and benchmarks.
Before writing new code, explore the directory you're working in to understand existing patterns — then follow these rules.
Naming
Self-documenting names eliminate mental parsing for the next reader.
- Variables must not use single letters — even loop counters benefit from
index,row,char. - Complex conditions should be extracted into named booleans so code reads as prose.
- Booleans must use verb prefixes:
isAllowed,hasError,canSubmit— notallowed,error. - Function names must start with an action verb that describes what the function does:
getUser,normalizeTimestamp,logEvent,parseResponse,buildQuery— notuser(),timestamp(),event().