types-and-constants
Installation
SKILL.md
Types and Constants
Shared types belong in types/, not in lib/, API routes, or component files.
Domain constants (labels, colors, option lists, enum arrays) belong in lib/, not in types/.
Import paths
// ✅ GOOD — types from @/types, constants from @/lib
import type { JobApplication, ApplicationStatus } from '@/types/services/jobs'
import { STATUS_LABELS, APPLICATION_STATUSES } from '@/lib/jobs'
// ❌ BAD — types from lib
import type { ApplicationStatus } from '@/lib/jobs-import'
// ❌ BAD — constants in types/
// types/services/jobs/constants.ts with STATUS_LABELS