jeff-permissions
Jeff's permission-gating conventions using useCan(action, subject). Use when adding or changing conditional actions and protected UI flows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Jeff's permission-gating conventions using useCan(action, subject). Use when adding or changing conditional actions and protected UI flows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Jeff's design language for react-app. Includes the full component-level conventions from the original linear-design skill plus Jeff's-specific direction (typography-first, subtle separators, and strict light/dark parity). Use when building or styling frontend
Jeff's route prefetch conventions for TanStack Router + React Query. Use when implementing or refactoring any data-fetching route, loader, or hooks.
Jeff's layout-stability conventions to prevent cumulative layout shift (CLS). Use when building loading states, image-heavy UIs, cards, tables, maps, and media containers.
Jeff's display-formatting conventions for money, numbers, dates, and date visuals. Use whenever rendering API values in UI.
Jeff's conventions for TanStack Form and overlay UX (Dialog, Sheet, route-driven state). Use for add/edit flows and modal/sheet interactions.
Jeff's cross-module implementation patterns for filter panels, table cells, status display, and employee-linked rows. Use for module-level route work across employees, leaves, dashboard, attendance, and similar list pages.
| name | jeff-permissions |
| description | Jeff's permission-gating conventions using useCan(action, subject). Use when adding or changing conditional actions and protected UI flows. |
Use authorization checks consistently across routes and actions.
useCan(action, subject) from @/lib/permissions.Common actions:
createread (view alias where applicable)updatedelete