Personal React/TypeScript development standards and AI skills, extracted from a production Next.js dashboard template.
PHILOSOPHY.md Core beliefs — every other doc inherits from this
skills/ Claude Code skills (deploy to ~/.claude/skills/)
writing-react-ts-code/ Core TS/React: typing, errors, components, style, security
setting-up-nextjs-projects/ New project bootstrap and configuration
testing-react-ts/ Vitest, Playwright, test infrastructure
managing-state/ Zustand, Context, URL state, form state
building-api-clients/ HTTP client, Zod validation, Orval codegen
building-ui-components/ shadcn/ui, component patterns, variants
Deploy skills from skills/ to ~/.claude/skills/. The top-level writing-react-ts-code skill covers core standards; other skills cover specific domains.
- Read
PHILOSOPHY.mdfor the mindset - Use the
setting-up-nextjs-projectsskill for project bootstrap - Copy
PHILOSOPHY.mdintodocs/(referenced by AGENTS.md)
- What tools? pnpm, TypeScript strict, ESLint (typescript-eslint strict), Prettier, Vitest, Playwright
- Error handling?
Result<T, E>pattern. Exceptions = bugs only. - Data validation? Zod for all external data (APIs, forms, env vars). Validates at runtime.
- State? Zustand for business logic. React Hook Form + Zod for forms. nuqs for URL state.
- UI? shadcn/ui (Radix + Tailwind + CVA)
- API? Typed fetch client + Zod validation. Orval for Swagger codegen.
- Tests? E2e > component. Real > mocked. Trustworthiness > coverage.