[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718V63BRR6G3CY671FDF0GW":3,"skill-same:01M718V63BRR6G3CY671FDF0GW":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M718V63BRR6G3CY671FDF0GW","oma-frontend",null,"Frontend specialist for React, Next.js, Angular, TypeScript with FSD-lite architecture, shadcn\u002Fui, and design system alignment. Use for UI, component, page, layout, CSS, Tailwind, shadcn, Angular, and RxJS work.","vasceannie\u002Fslopgate","vasceannie","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20271133?v=4","01M718RGA8VV2EF22XJEMXVQ0Q","Travis Vasceannie","01M718RGB0GWSXBBZBN67Q6NHQ",1,"MIT","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"oma frontend","frontend","page","for","shadcn","ui","design system","typescript","layout","next","component","work","react","frontend specialist","architecture","angular","design","Tailwind","css","alignment","2026-11-10 10:12:30",false,"---\nname: oma-frontend\ndescription: Frontend specialist for React, Next.js, Angular, TypeScript with\n  FSD-lite architecture, shadcn\u002Fui, and design system alignment. Use for UI,\n  component, page, layout, CSS, Tailwind, shadcn, Angular, and RxJS work.\n---\n\n# Frontend Agent - UI\u002FUX Specialist\n\n## Scheduling\n\n### Goal\nBuild, modify, and verify React\u002FNext.js or Angular TypeScript user interfaces that follow project architecture, design-system constraints, accessibility expectations, and existing frontend conventions.\n\n### Intent signature\n- User asks for UI, component, page, layout, CSS, Tailwind, shadcn, form, interaction, client state, or frontend API integration work.\n- User needs browser-facing implementation in a React\u002FNext.js or Angular TypeScript codebase.\n- User asks for Angular component, directive, service, route, signal, or RxJS stream work.\n\n### When to use\n- Building user interfaces and components\n- Client-side logic and state management\n- Styling and responsive design\n- Form validation and user interactions\n- Integrating with backend APIs\n\n### When NOT to use\n- Backend API implementation → use Backend Agent\n- Database access, migrations, or ORM setup → use Backend Agent\n- Auth server setup (better-auth server library, DB adapters) → use Backend Agent\n- Native mobile development → use Mobile Agent\n\n### Expected inputs\n- Target page, component, flow, or UI behavior\n- Existing app structure, design tokens, component library, i18n files, and API contracts\n- Acceptance criteria and target responsive states\n\n### Expected outputs\n- Frontend code changes in pages, components, hooks, styles, tests, or wrappers\n- UI that respects project tokens, i18n, server\u002Fclient boundaries, and accessibility expectations\n- Verification results from relevant lint, typecheck, tests, or browser checks\n\n### Dependencies\n- React, Next.js, TypeScript, TailwindCSS v4, and `shadcn\u002Fui` — or Angular + signals + RxJS in Angular projects (`resources\u002Fangular-rules.md`)\n- Project sources of truth such as `packages\u002Fdesign-tokens`, `packages\u002Fi18n`, and shared utilities\n- `resources\u002Fexecution-protocol.md`, `resources\u002Fchecklist.md`, snippets, and Tailwind rules\n\n### Control-flow features\n- Branches by server\u002Fclient component boundary, responsive state, component library availability, and i18n\u002Ftoken requirements\n- Reads and writes frontend codebase files\n- May call shadcn registry tools or local verification commands\n\n## Structural Flow\n\n### Entry\n1. Identify target route, component, state boundary, and design-system constraints.\n2. Read existing patterns before adding components or utilities.\n3. Determine whether work belongs in Server Components, Client Components, wrappers, hooks, or styles.\n\n### Scenes\n1. **PREPARE**: Load relevant project conventions, UI requirements, and acceptance criteria.\n2. **ACQUIRE**: Inspect existing components, tokens, i18n keys, APIs, and shadcn availability.\n3. **ACT**: Implement UI, state, styles, validation, and integration.\n4. **VERIFY**: Run checklist, automated checks, and browser\u002Fresponsive validation when applicable.\n5. **FINALIZE**: Summarize changed UI behavior and verification.\n\n### Transitions\n- If a strict shadcn primitive exists, use or wrap it before creating generic markup.\n- If UI text is user-facing and i18n exists, add strings through the i18n source of truth.\n- If interaction or hooks are needed, mark the boundary as Client Component.\n- If backend contracts are missing, coordinate with backend\u002FAPI planning.\n\n### Failure and recovery\n- If design tokens or i18n sources are missing, state assumptions and follow existing local patterns.\n- If verification fails, fix before handoff or report the blocker.\n- If required shadcn registry access fails, use existing local components or document fallback.\n\n### Exit\n- Success: UI works across target responsive states and passes relevant checks.\n- Partial success: missing assets, backend contracts, or verification gaps are explicit.\n\n## Logical Operations\n\n### Actions\n| Action | SSL primitive | Evidence |\n|--------|---------------|----------|\n| Inspect existing frontend patterns | `READ` | Components, routes, hooks, styles |\n| Select component and state approach | `SELECT` | Server\u002Fclient and shadcn workflow |\n| Implement UI code | `WRITE` | TSX, CSS, hooks, wrappers |\n| Validate form\u002Fdata contracts | `VALIDATE` | Zod\u002Fforms\u002FAPI schemas |\n| Call shadcn or verification tools | `CALL_TOOL` | Registry, lint, typecheck, tests |\n| Compare responsive states | `COMPARE` | Desktop\u002Fmobile behavior |\n| Report result | `NOTIFY` | Final summary |\n\n### Tools and instruments\n- React, Next.js, TypeScript, TailwindCSS v4, shadcn\u002Fui\n- `ahooks` or `@mantine\u002Fhooks`, `es-toolkit`, `nuqs`, TanStack Query, Jotai\u002FZustand, TanStack React Form, `zod`\n- Angular (standalone + signals), RxJS + `rxjs\u002Ftesting` (`TestScheduler` marble tests) in Angular projects\n- Lint, typecheck, tests, and browser inspection when applicable\n\n### Canonical workflow path\n```bash\nrg --files\nrg \"components\u002Fui|shadcn|use client|generateMetadata|useQuery|i18n|design-tokens\" .\n```\n\nThen run the project's frontend verification commands, typically lint, typecheck, tests, and browser\u002Fresponsive checks when the UI changes.\n\n### Resource scope\n| Scope | Resource target |\n|-------|-----------------|\n| `CODEBASE` | Frontend routes, components, styles, hooks, tests |\n| `LOCAL_FS` | Design tokens, i18n files, resource references |\n| `PROCESS` | Build, lint, typecheck, test, browser commands |\n| `NETWORK` | Backend APIs or registry tools when required |\n\n### Preconditions\n- Target UI behavior and affected frontend area are identifiable.\n- Required design tokens, i18n, and API contracts are available or assumptions are stated.\n\n### Effects and side effects\n- Mutates frontend source, styles, tests, and possibly i18n keys.\n- May add dependencies or shadcn components only when justified by project conventions.\n- Does not edit `components\u002Fui\u002F*` directly.\n\n### Guardrails\n1. Follow the existing React, Next.js, TypeScript, and FSD-lite architecture in the target project.\n2. Use `shadcn\u002Fui` primitives and wrappers for UI work; treat `components\u002Fui\u002F*` as read-only.\n3. Keep server\u002Fclient boundaries explicit: Server Components for static\u002Flayout work, Client Components for interaction and hooks.\n4. Use project sources of truth for design tokens, i18n strings, and shared utilities before adding local alternatives.\n5. Run the execution checklist before handoff and include relevant verification results.\n6. **Self-describing file names**: every new file follows the File Naming convention in `..\u002F..\u002Frules\u002Ffrontend.md` §Naming Conventions — domain + role readable from the basename alone (`order-summary-card.tsx`, `use-order-polling.ts`, `cart.atoms.ts`). Grab-bag names (`utils.ts`, `helpers.ts`, `misc.ts`) and version suffixes (`*-v2`, `*-final`) are banned.\n7. **Next.js 16 `proxy.ts` is mandatory; `middleware.ts` is BANNED**: this project is Next.js 16+. `middleware.ts` is NOT \"deprecated\"; it is forbidden, touch it and you die. The canonical request-proxy \u002F auth-gate file is `proxy.ts` (root or `src\u002F`) exporting a `proxy` function. NEVER create, recommend, suggest, or \"restore\" `middleware.ts`. NEVER flag `proxy.ts` as dead code, unused, or not-wired. Any such finding is a fatal self-error: retract it immediately and write `proxy.ts`.\n8. **`next\u002Flink` defaults to `prefetch={false}`**: every `\u003CLink>` MUST pass `prefetch={false}` unless there is a stated reason not to. Next.js's default prefetching fires a request per link entering the viewport, which hammers container CPU\u002Fmemory and origin bandwidth on list-heavy or nav-heavy pages. Opt back in (`prefetch` omitted, or `prefetch` \u002F `prefetch=\"unstable_forceStale\"`) ONLY for a small, deliberate set of high-intent targets (primary CTA, next step in a funnel), and note the reason inline. A `\u003CLink>` without an explicit prefetch decision fails review.\n9. **Angular projects follow `resources\u002Fangular-rules.md`**: standalone components + `OnPush` + signals-first, `inject()` DI, lazy routes, new control flow. **Any non-trivial RxJS pipeline MUST ship with a marble test (`TestScheduler` from `rxjs\u002Ftesting`)** — a stream without a marble test fails review. React\u002FNext.js-specific rules (shadcn workflow, `proxy.ts`, Libraries table below) do not apply in Angular projects.\n\n### Libraries\n\nReact\u002FNext.js projects only — Angular projects use the Angular-native equivalents in `resources\u002Fangular-rules.md` (signals, typed Reactive Forms, `HttpClient`\u002F`httpResource`, RxJS with mandatory marble tests).\n\n| Category | Library |\n|----------|---------|\n| Framework | `next@16+` (App Router) + `react@19+`; `next \u003C 16` is BANNED |\n| Date | `luxon` |\n| Styling | `TailwindCSS v4` + `shadcn\u002Fui` (Base UI engine; see `resources\u002Ftech-stack.md`) |\n| Hooks | `ahooks` (default) or `@mantine\u002Fhooks` (standalone, SSR-safe; no Mantine UI required); pre-made hooks preferred; pick one per project, don't mix |\n| Utils | `es-toolkit` (first choice) |\n| Types | `type-fest` (TS type utilities not in the standard lib: `SetRequired`, `Merge`, `JsonValue`, `Promisable`, etc.; built-in `Partial`\u002F`Pick`\u002F`Omit` stay first choice) |\n| State (URL) | `nuqs` |\n| State (Server) | `TanStack Query`; default is `orval`-generated hooks from the OpenAPI spec (`client: react-query`); hand-write hooks only for spec-less endpoints (see `resources\u002Ftech-stack.md` §Server State) |\n| State (Client) | `Jotai` or `Zustand` (intent-based, no default; minimize use — see `resources\u002Ftech-stack.md`) |\n| Forms | `@tanstack\u002Freact-form` (v1+; pass zod schemas directly via Standard Schema; `@tanstack\u002Fzod-form-adapter` is v0-only and BANNED) + `zod` (v4) |\n| Auth | `better-auth` (client SDK only; never import server library or database adapters) |\n| Animation | `motion`; import from `motion\u002Freact`. `framer-motion` (legacy package name) is BANNED. |\n\n### Shadcn Workflow\n\n- **Engine default: Base UI** (`components.json` → `style: \"base-*\"`). Radix (`radix-*`) is a\n  reasoned fallback for existing Radix codebases only; no big-bang migration. Details in\n  `resources\u002Ftech-stack.md` §shadcn\u002Fui Primitive Engine.\n\n1. Search: `shadcn_search_items_in_registries`\n2. Review: `shadcn_get_item_examples_from_registries`\n3. Install: `shadcn_get_add_command_for_items`\n\n### Server vs Client Components\n\n- **Server Components**: Layouts, marketing pages, SEO metadata (`generateMetadata`, `sitemap`)\n- **Client Components**: Interactive features and `useQuery` hooks\n- **Mutations**: one owner per write. Server Actions for form-shaped, revalidate-only flows; TanStack Query for cache-coupled or non-form writes (`resources\u002Ftech-stack.md` §Mutations)\n\n### UI Implementation (Shadcn\u002FUI)\n\n- **Usage**: Prefer strict shadcn primitives (`Card`, `Sheet`, `Typography`, `Table`) over `div` or generic classes.\n- **Responsiveness**: Use `Drawer` (mobile) vs `Dialog` (desktop) via `useResponsive`.\n\u003C!-- oma-docs:ignore-start -->\n- **Customization**: Treat `components\u002Fui\u002F*` as read-only. Create wrappers (e.g., `components\u002Fcommon\u002FProductButton.tsx`) or use `cva` composition. Never edit `components\u002Fui\u002Fbutton.tsx` directly.\n\u003C!-- oma-docs:ignore-end -->\n\n### Sources of Truth\n\n- **DESIGN.md** (project root): visual system source of truth; read Section 9 (Agent Prompt Guide) verbatim for component prompts when present\n- **Design Tokens**: `packages\u002Fdesign-tokens` (OKLCH); never hardcode colors\n- **i18n strings**: `packages\u002Fi18n`; never hardcode UI text\n- **Custom utilities**: check `es-toolkit` first; if implementing custom logic, >90% unit test coverage is mandatory\n\n### Designer Collaboration\n\n- **Sync**: Map code variables to Figma layer names\n- **UX**: Ensure key actions are visible \"Above the Fold\"\n\n### Stack Reference\n\nProject stack conventions live in dedicated files. **Read these before coding**; they are not optional appendix material.\n\n| File | Owns |\n|---|---|\n| `resources\u002Ftech-stack.md` | Framework versions, Next.js 16 `proxy.ts` + React Compiler conventions, Server Actions vs TanStack Query mutation policy, optional provider examples |\n| `resources\u002Ftailwind-rules.md` | Design tokens, focus states, Tailwind v4 `@theme` syntax |\n| `resources\u002Fsnippets.md` | React 19 hook patterns, TanStack Query\u002FForm, a11y card |\n| `resources\u002Fangular-rules.md` | Angular standalone\u002FOnPush\u002Fsignals conventions, RxJS marble-test policy (MANDATORY for streams) |\n\nTo extend: add `resources\u002F\u003Cname>.md` and append a row above.\n\n## References\n- Local code tools: `..\u002F_shared\u002Fcore\u002Fcode-intelligence.md` (code search\u002Fnavigation)\n\n- Project frontend rules (MUST load before review\u002Fimplementation): `..\u002F..\u002Frules\u002Ffrontend.md`\n- Execution steps (follow for the selected task): `resources\u002Fexecution-protocol.md`\n- Checklist (run before handoff): `resources\u002Fchecklist.md`\n- Error recovery: `resources\u002Ferror-playbook.md`\n- Context loading: `..\u002F_shared\u002Fcore\u002Fcontext-loading.md`\n- Clarification: `..\u002F_shared\u002Fcore\u002Fclarification-protocol.md`\n- Context budget: `..\u002F_shared\u002Fcore\u002Fcontext-budget.md`\n- Lessons learned: `..\u002F_shared\u002Fcore\u002Flessons-learned.md`\n- Observability handoff: `..\u002Foma-observability\u002FSKILL.md` §Integrations — Core Web Vitals, SSR→client trace propagation, INP profiling","# Frontend Agent - UI\u002FUX Specialist\n\n## Scheduling\n\n### Goal\nBuild, modify, and verify React\u002FNext.js or Angular TypeScript user interfaces that follow project architecture, design-system constraints, accessibility expectations, and existing frontend conventions.\n\n### Intent signature\n- User asks for UI, component, page, layout, CSS, Tailwind, shadcn, form, interaction, client state, or frontend API integration work.\n- User needs browser-facing implementation in a React\u002FNext.js or Angular TypeScript codebase.\n- User asks for Angular component, directive, service, route, signal, or RxJS stream work.\n\n### When to use\n- Building user interfaces and components\n- Client-side logic and state management\n- Styling and responsive design\n- Form validation and user interactions\n- Integrating with backend APIs\n\n### When NOT to use\n- Backend API implementation → use Backend Agent\n- Database access, migrations, or ORM setup → use Backend Agent\n- Auth server setup (better-auth server library, DB adapters) → use Backend Agent\n- Native mobile development → use Mobile Agent\n\n### Expected inputs\n- Target page, component, flow, or UI behavior\n- Existing app structure, design tokens, component library, i18n files, and API contracts\n- Acceptance criteria and target responsive states\n\n### Expected outputs\n- Frontend code changes in pages, components, hooks, styles, tests, or wrappers\n- UI that respects project tokens, i18n, server\u002Fclient boundaries, and accessibility expectations\n- Verification results from relevant lint, typecheck, tests, or browser checks\n\n### Dependencies\n- React, Next.js, TypeScript, TailwindCSS v4, and `shadcn\u002Fui` — or Angular + signals + RxJS in Angular projects (`resources\u002Fangular-rules.md`)\n- Project sources of truth such as `packages\u002Fdesign-tokens`, `packages\u002Fi18n`, and shared utilities\n- `resources\u002Fexecution-protocol.md`, `resources\u002Fchecklist.md`, snippets, and Tailwind rules\n\n### Control-flow features\n- Branches by server\u002Fclient component boundary, responsive state, component library availability, and i18n\u002Ftoken requirements\n- Reads and writes frontend codebase files\n- May call shadcn registry tools or local verification commands\n\n## Structural Flow\n\n### Entry\n1. Identify target route, component, state boundary, and design-system constraints.\n2. Read existing patterns before adding components or utilities.\n3. Determine whether work belongs in Server Components, Client Components, wrappers, hooks, or styles.\n\n### Scenes\n1. **PREPARE**: Load relevant project conventions, UI requirements, and acceptance criteria.\n2. **ACQUIRE**: Inspect existing components, tokens, i18n keys, APIs, and shadcn availability.\n3. **ACT**: Implement UI, state, styles, validation, and integration.\n4. **VERIFY**: Run checklist, automated checks, and browser\u002Fresponsive validation when applicable.\n5. **FINALIZE**: Summarize changed UI behavior and verification.\n\n### Transitions\n- If a strict shadcn primitive exists, use or wrap it before creating generic markup.\n- If UI text is user-facing and i18n exists, add strings through the i18n source of truth.\n- If interaction or hooks are needed, mark the boundary as Client Component.\n- If backend contracts are missing, coordinate with backend\u002FAPI planning.\n\n### Failure and recovery\n- If design tokens or i18n sources are missing, state assumptions and follow existing local patterns.\n- If verification fails, fix before handoff or report the blocker.\n- If required shadcn registry access fails, use existing local components or document fallback.\n\n### Exit\n- Success: UI works across target responsive states and passes relevant checks.\n- Partial success: missing assets, backend contracts, or verification gaps are explicit.\n\n## Logical Operations\n\n### Actions\n| Action | SSL primitive | Evidence |\n|--------|---------------|----------|\n| Inspect existing frontend patterns | `READ` | Components, routes, hooks, styles |\n| Select component and state approach | `SELECT` | Server\u002Fclient and shadcn workflow |\n| Implement UI code | `WRITE` | TSX, CSS, hooks, wrappers |\n| Validate form\u002Fdata contracts | `VALIDATE` | Zod\u002Fforms\u002FAPI schemas |\n| Call shadcn or verification tools | `CALL_TOOL` | Registry, lint, typecheck, tests |\n| Compare responsive states | `COMPARE` | Desktop\u002Fmobile behavior |\n| Report result | `NOTIFY` | Final summary |\n\n### Tools and instruments\n- React, Next.js, TypeScript, TailwindCSS v4, shadcn\u002Fui\n- `ahooks` or `@mantine\u002Fhooks`, `es-toolkit`, `nuqs`, TanStack Query, Jotai\u002FZustand, TanStack React Form, `zod`\n- Angular (standalone + signals), RxJS + `rxjs\u002Ftesting` (`TestScheduler` marble tests) in Angular projects\n- Lint, typecheck, tests, and browser inspection when applicable\n\n### Canonical workflow path\n```bash\nrg --files\nrg \"components\u002Fui|shadcn|use client|generateMetadata|useQuery|i18n|design-tokens\" .\n```\n\nThen run the project's frontend verification commands, typically lint, typecheck, tests, and browser\u002Fresponsive checks when the UI changes.\n\n### Resource scope\n| Scope | Resource target |\n|-------|-----------------|\n| `CODEBASE` | Frontend routes, components, styles, hooks, tests |\n| `LOCAL_FS` | Design tokens, i18n files, resource references |\n| `PROCESS` | Build, lint, typecheck, test, browser commands |\n| `NETWORK` | Backend APIs or registry tools when required |\n\n### Preconditions\n- Target UI behavior and affected frontend area are identifiable.\n- Required design tokens, i18n, and API contracts are available or assumptions are stated.\n\n### Effects and side effects\n- Mutates frontend source, styles, tests, and possibly i18n keys.\n- May add dependencies or shadcn components only when justified by project conventions.\n- Does not edit `components\u002Fui\u002F*` directly.\n\n### Guardrails\n1. Follow the existing React, Next.js, TypeScript, and FSD-lite architecture in the target project.\n2. Use `shadcn\u002Fui` primitives and wrappers for UI work; treat `components\u002Fui\u002F*` as read-only.\n3. Keep server\u002Fclient boundaries explicit: Server Components for static\u002Flayout work, Client Components for interaction and hooks.\n4. Use project sources of truth for design tokens, i18n strings, and shared utilities before adding local alternatives.\n5. Run the execution checklist before handoff and include relevant verification results.\n6. **Self-describing file names**: every new file follows the File Naming convention in `..\u002F..\u002Frules\u002Ffrontend.md` §Naming Conventions — domain + role readable from the basename alone (`order-summary-card.tsx`, `use-order-polling.ts`, `cart.atoms.ts`). Grab-bag names (`utils.ts`, `helpers.ts`, `misc.ts`) and version suffixes (`*-v2`, `*-final`) are banned.\n7. **Next.js 16 `proxy.ts` is mandatory; `middleware.ts` is BANNED**: this project is Next.js 16+. `middleware.ts` is NOT \"deprecated\"; it is forbidden, touch it and you die. The canonical request-proxy \u002F auth-gate file is `proxy.ts` (root or `src\u002F`) exporting a `proxy` function. NEVER create, recommend, suggest, or \"restore\" `middleware.ts`. NEVER flag `proxy.ts` as dead code, unused, or not-wired. Any such finding is a fatal self-error: retract it immediately and write `proxy.ts`.\n8. **`next\u002Flink` defaults to `prefetch={false}`**: every `\u003CLink>` MUST pass `prefetch={false}` unless there is a stated reason not to. Next.js's default prefetching fires a request per link entering the viewport, which hammers container CPU\u002Fmemory and origin bandwidth on list-heavy or nav-heavy pages. Opt back in (`prefetch` omitted, or `prefetch` \u002F `prefetch=\"unstable_forceStale\"`) ONLY for a small, deliberate set of high-intent targets (primary CTA, next step in a funnel), and note the reason inline. A `\u003CLink>` without an explicit prefetch decision fails review.\n9. **Angular projects follow `resources\u002Fangular-rules.md`**: standalone components + `OnPush` + signals-first, `inject()` DI, lazy routes, new control flow. **Any non-trivial RxJS pipeline MUST ship with a marble test (`TestScheduler` from `rxjs\u002Ftesting`)** — a stream without a marble test fails review. React\u002FNext.js-specific rules (shadcn workflow, `proxy.ts`, Libraries table below) do not apply in Angular projects.\n\n### Libraries\n\nReact\u002FNext.js projects only — Angular projects use the Angular-native equivalents in `resources\u002Fangular-rules.md` (signals, typed Reactive Forms, `HttpClient`\u002F`httpResource`, RxJS with mandatory marble tests).\n\n| Category | Library |\n|----------|---------|\n| Framework | `next@16+` (App Router) + `react@19+`; `next \u003C 16` is BANNED |\n| Date | `luxon` |\n| Styling | `TailwindCSS v4` + `shadcn\u002Fui` (Base UI engine; see `resources\u002Ftech-stack.md`) |\n| Hooks | `ahooks` (default) or `@mantine\u002Fhooks` (standalone, SSR-safe; no Mantine UI required); pre-made hooks preferred; pick one per project, don't mix |\n| Utils | `es-toolkit` (first choice) |\n| Types | `type-fest` (TS type utilities not in the standard lib: `SetRequired`, `Merge`, `JsonValue`, `Promisable`, etc.; built-in `Partial`\u002F`Pick`\u002F`Omit` stay first choice) |\n| State (URL) | `nuqs` |\n| State (Server) | `TanStack Query`; default is `orval`-generated hooks from the OpenAPI spec (`client: react-query`); hand-write hooks only for spec-less endpoints (see `resources\u002Ftech-stack.md` §Server State) |\n| State (Client) | `Jotai` or `Zustand` (intent-based, no default; minimize use — see `resources\u002Ftech-stack.md`) |\n| Forms | `@tanstack\u002Freact-form` (v1+; pass zod schemas directly via Standard Schema; `@tanstack\u002Fzod-form-adapter` is v0-only and BANNED) + `zod` (v4) |\n| Auth | `better-auth` (client SDK only; never import server library or database adapters) |\n| Animation | `motion`; import from `motion\u002Freact`. `framer-motion` (legacy package name) is BANNED. |\n\n### Shadcn Workflow\n\n- **Engine default: Base UI** (`components.json` → `style: \"base-*\"`). Radix (`radix-*`) is a\n  reasoned fallback for existing Radix codebases only; no big-bang migration. Details in\n  `resources\u002Ftech-stack.md` §shadcn\u002Fui Primitive Engine.\n\n1. Search: `shadcn_search_items_in_registries`\n2. Review: `shadcn_get_item_examples_from_registries`\n3. Install: `shadcn_get_add_command_for_items`\n\n### Server vs Client Components\n\n- **Server Components**: Layouts, marketing pages, SEO metadata (`generateMetadata`, `sitemap`)\n- **Client Components**: Interactive features and `useQuery` hooks\n- **Mutations**: one owner per write. Server Actions for form-shaped, revalidate-only flows; TanStack Query for cache-coupled or non-form writes (`resources\u002Ftech-stack.md` §Mutations)\n\n### UI Implementation (Shadcn\u002FUI)\n\n- **Usage**: Prefer strict shadcn primitives (`Card`, `Sheet`, `Typography`, `Table`) over `div` or generic classes.\n- **Responsiveness**: Use `Drawer` (mobile) vs `Dialog` (desktop) via `useResponsive`.\n\u003C!-- oma-docs:ignore-start -->\n- **Customization**: Treat `components\u002Fui\u002F*` as read-only. Create wrappers (e.g., `components\u002Fcommon\u002FProductButton.tsx`) or use `cva` composition. Never edit `components\u002Fui\u002Fbutton.tsx` directly.\n\u003C!-- oma-docs:ignore-end -->\n\n### Sources of Truth\n\n- **DESIGN.md** (project root): visual system source of truth; read Section 9 (Agent Prompt Guide) verbatim for component prompts when present\n- **Design Tokens**: `packages\u002Fdesign-tokens` (OKLCH); never hardcode colors\n- **i18n strings**: `packages\u002Fi18n`; never hardcode UI text\n- **Custom utilities**: check `es-toolkit` first; if implementing custom logic, >90% unit test coverage is mandatory\n\n### Designer Collaboration\n\n- **Sync**: Map code variables to Figma layer names\n- **UX**: Ensure key actions are visible \"Above the Fold\"\n\n### Stack Reference\n\nProject stack conventions live in dedicated files. **Read these before coding**; they are not optional appendix material.\n\n| File | Owns |\n|---|---|\n| `resources\u002Ftech-stack.md` | Framework versions, Next.js 16 `proxy.ts` + React Compiler conventions, Server Actions vs TanStack Query mutation policy, optional provider examples |\n| `resources\u002Ftailwind-rules.md` | Design tokens, focus states, Tailwind v4 `@theme` syntax |\n| `resources\u002Fsnippets.md` | React 19 hook patterns, TanStack Query\u002FForm, a11y card |\n| `resources\u002Fangular-rules.md` | Angular standalone\u002FOnPush\u002Fsignals conventions, RxJS marble-test policy (MANDATORY for streams) |\n\nTo extend: add `resources\u002F\u003Cname>.md` and append a row above.\n\n## References\n- Local code tools: `..\u002F_shared\u002Fcore\u002Fcode-intelligence.md` (code search\u002Fnavigation)\n\n- Project frontend rules (MUST load before review\u002Fimplementation): `..\u002F..\u002Frules\u002Ffrontend.md`\n- Execution steps (follow for the selected task): `resources\u002Fexecution-protocol.md`\n- Checklist (run before handoff): `resources\u002Fchecklist.md`\n- Error recovery: `resources\u002Ferror-playbook.md`\n- Context loading: `..\u002F_shared\u002Fcore\u002Fcontext-loading.md`\n- Clarification: `..\u002F_shared\u002Fcore\u002Fclarification-protocol.md`\n- Context budget: `..\u002F_shared\u002Fcore\u002Fcontext-budget.md`\n- Lessons learned: `..\u002F_shared\u002Fcore\u002Flessons-learned.md`\n- Observability handoff: `..\u002Foma-observability\u002FSKILL.md` §Integrations — Core Web Vitals, SSR→client trace propagation, INP profiling",{"name":5,"description":7},"master","5fab8004af1390aa17b3447f2780766c8bf2482c",".agents\u002Fskills\u002Foma-frontend",0,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate","https:\u002F\u002Fgithub.com\u002Fvasceannie","thingswithstuff.io","2026-11-12 20:22:46",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add vasceannie\u002Fslopgate --skill oma-frontend",{"tool":58,"command":59},"bunx","bunx skills add vasceannie\u002Fslopgate --skill oma-frontend",{"tool":61,"command":62},"pnpm","pnpm dlx skills add vasceannie\u002Fslopgate --skill oma-frontend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002FSKILL.md",true,[66,72,76,80,84,88,92],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"resources\u002Fangular-rules.md","REFERENCE","参考文档",5052,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Fangular-rules.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"resources\u002Fchecklist.md",4772,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Fchecklist.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"resources\u002Ferror-playbook.md",5188,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Ferror-playbook.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"resources\u002Fexecution-protocol.md",2974,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Fexecution-protocol.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"resources\u002Fsnippets.md",11847,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Fsnippets.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"resources\u002Ftailwind-rules.md",2719,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Ftailwind-rules.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"resources\u002Ftech-stack.md",8410,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-frontend\u002Fresources\u002Ftech-stack.md",[97,124,147,168,190,209],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":39},"01M71951JDWCYMS8GDC2C7395D","type-strictness","Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when:\n(1) Editing code that contains `Any` as a type annotation\n(2) Code has `# type: ignore` or `# pyright: ignore` comments\n(3) User requests type fixes or type strictness enforcement\n(4) Importing from untyped third-party libraries\n(5) User asks to \"fix types\", \"remove Any\", or \"add proper typing\"\n(6) Pyrefly or mypy reports type errors that need resolution\n(7) Code review reveals weak typing patterns\nFollows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Ftype-strictness\u002FSKILL.md",[],[104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123],"type","type strictness","typing","types","remove","code review","fix","errors","inspection","when","code","review","reports","libraries","casting","pyrefly","mypy","pyright","library","patterns",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"01M7194XGBQXSE7Y5BZ4K5CSTK","slopgate-test-extender","Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like \"add tests for X\", \"extend these tests\", \"parametrize tests\", \"consolidate tests\", \"fix test quality\", \"improve test coverage\", \"write tests for this function\", \"test this module\", \"behavior tests\", \"integration tests\", \"missing tests\", \"coverage holes\", \"untested code\", or when a hook denies with test-related findings.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-test-extender\u002FSKILL.md",[],[131,132,133,134,135,110,136,137,138,139,140,141,113,114,142,143,116,144,145,146],"slopgate test extender","test","coverage","fixture","testing","issues","write tests","improve","only","cleanup","loop","candidate","consolidate","references","opencode","orchestrator",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":39},"01M7194RMVQS5YJJ4ZEFXX20VS","slopgate-intelligent-coding-patterns","Pattern-selection playbook for agents editing code with complex branching, stateful parsers\u002Fworkflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if\u002Felif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider\u002Flanguage implementations, or regex\u002Fcontent transformation pipelines. Also load when asked to \"apply a design pattern\", \"which pattern should I use here\", \"refactor this switch statement\", \"replace if-elif chain\", \"state machine pattern\", \"strategy pattern\", \"template method\", \"pipeline pattern\", \"specification pattern\", \"dispatch table\", \"guard clause refactor\", \"reduce cyclomatic complexity\", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-intelligent-coding-patterns\u002FSKILL.md",[],[154,155,123,156,157,158,159,160,161,162,163,164,35,139,140,165,166,113,167,114],"coding patterns","slopgate intelligent coding patterns","coding","stateful","complexity","branch","which","chain","parsers","pipeline","selection","utility","workflows","reduce",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":39},"01M7194KTXBM85GB0W7JKFQD55","slopgate-hygiene-orchestrator","Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to \"clean up lints\", \"fix all warnings\", \"run hygiene\", \"eliminate type errors\", \"orchestrate code quality fixes\", \"fix lint errors\", \"resolve quality gate failures\", \"pass CI checks\", \"reduce tech debt\", \"refactor to pass hooks\", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-hygiene-orchestrator\u002FSKILL.md",[],[175,176,146,177,110,178,179,180,181,182,140,167,183,184,185,186,26,187,188,189],"slopgate hygiene orchestrator","hygiene","project","ci","local","clean","never run","files","run","lint check","systematic","config","debt","quality-gates","hook",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":39},"01M7194G50FZYXXT8VNK360RPA","slopgate-code-smell-utility-locator","Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code,\nscattered helpers, builders\u002Ffactories\u002Fconfig\u002Fconstants\u002Fdataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001,\nor repeated slopgate code-quality denials. Also load when asked to \"find existing helpers\", \"consolidate utilities\",\n\"search for duplicate code\", \"where is this already implemented\", \"reuse existing logic\", \"don't duplicate this\",\n\"find similar functions\", \"utility inventory\", \"code smell radar\", or before adding new helpers\u002Fwrappers so agents can\nfind existing shared utilities and consolidate instead of duplicating.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-code-smell-utility-locator\u002FSKILL.md",[],[165,197,114,198,133,199,200,201,202,139,203,113,204,143,145,205,206,186,207,208],"slopgate code smell utility locator","shared","reviews","inventory","search","hooks","new","coordination","radar","code-quality","Utilities","dataclass",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":39},"01M7194AWG1Q37F9756H4SFDH9","slopgate-code-hygiene-refactor","Recovery playbook for Slopgate and project quality failures. Load after hook\u002Flint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers \u002F repeated literals, PY-CODE-012\u002FPY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to \"refactor this module\", \"split this file\", \"extract a class\", \"reduce complexity\", \"fix god class\", \"flatten module hierarchy\", \"move code to a package\", \"extract helpers\", \"consolidate duplicates\", \"replace magic numbers with constants\", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-code-hygiene-refactor\u002FSKILL.md",[],[216,217,114,218,176,219,158,220,221,177,222,200,223,110,139,165,113,167,204,143],"code hygiene","slopgate code hygiene refactor","refactor","modules","duplicates","retry","move","structural"]