Oma frontend

From first-fluke/oh-my-agent · View interactive version

Oma frontend is an AI agent skill from the GitHub repository first-fluke/oh-my-agent. Implement or modify web UI in React, Next.js, or Angular. Use for components, pages, styles, forms, and frontend state or data flows.

How to use this skill

Skill file

Frontend Agent - UI/UX Specialist

Scheduling

Goal

Build, modify, and verify React/Next.js or Angular TypeScript user interfaces that follow project architecture, design-system constraints, accessibility expectations, and existing frontend conventions.

Intent signature

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Structural Flow

Transitions

Failure and recovery

Exit

Logical Operations

Canonical workflow path

  1. Identify the target route, component, state boundary, design-system constraints, UI requirements, and acceptance criteria. State assumptions where design tokens, i18n sources, or API contracts are unavailable.
  2. Locate files and inspect symbols or content with the configured code-intelligence provider. For Serena, use find_file, search_for_pattern, get_symbols_overview, and find_symbol. Native search is limited to the provider exclusions and non-code paths permitted by the project's search policy.
  3. Read the existing components, routes, hooks, styles, tokens, i18n keys, APIs, and shadcn availability before adding components or utilities.
  4. Decide whether the work belongs in Server Components, Client Components, wrappers, hooks, or styles.
  5. For a specialized visual capability, use resources/specialized-visual-implementation.md. For affected motion, touch, component feedback, or interaction performance, use ../_shared/ui-interaction-quality.md. Ordinary UI work does not preload these paths.
  6. Implement the UI, state, styles, validation (form and data contracts through zod, form, and API schemas), and integration.
  7. Select the project's relevant frontend checks (typically lint, typecheck, tests, and browser/responsive checks of desktop and mobile behavior when the UI changes). Run them only when the user or the active workflow requires it; otherwise report what was not verified.
  8. Check the applicable checklist items and summarize the changed UI behavior, what was verified, and what was not.

Resource scope and effects

Reads and edits frontend routes, components, styles, hooks, and tests, and possibly i18n keys; reads design tokens, i18n files, and resource references. Adds a dependency or shadcn component only when project conventions justify it. Lint, typecheck, test, and browser commands run only when the user or the active workflow requires them; builds run only on explicit user request. Backend APIs and registry tools are called only when the task requires them.

Guardrails

Apply framework, library, architecture, and data-model defaults only when the target project has no established choice. Scoped edits do not authorize a stack migration or unrelated infrastructure.

../../rules/frontend.md is the source for the React/Next.js core rules (component reuse, design fidelity, rendering strategy, accessibility, request proxy convention, prop drilling, auth boundary, animation library, framework version), the FSD-lite architecture, and naming. The guardrails below add what it does not state.

  1. Treat components/ui/* as read-only; customize through wrappers or cva composition.
  2. Use project sources of truth for design tokens, i18n strings, and shared utilities before adding local alternatives.
  3. Check the applicable checklist items before handoff and report what was verified and what was not.
  4. Self-describing file names: every new file follows the File Naming convention in ../../rules/frontend.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.
  5. Use the project's Link prefetch policy; adjust specific routes only when measured behavior or the task requires it.
  6. Angular projects follow resources/angular-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/testing) — a stream without a marble test fails review. React/Next.js-specific rules (shadcn workflow, proxy.ts, Libraries table below) do not apply in Angular projects.
  7. No prop drilling: before adding or extending a prop, trace its chain to the owning component (for example with find_referencing_symbols). A chain that crosses 3 or more component boundaries through forward-only intermediates is resolved by composition, then TanStack Query / nuqs, then the project's Jotai or Zustand state (added if the project has neither) — never by deepening the chain. Full rule: ../../rules/frontend.md §Core Rules 7.

Libraries

React/Next.js projects only — Angular projects use the Angular-native equivalents in resources/angular-rules.md (signals, typed Reactive Forms, HttpClient/httpResource, RxJS with mandatory marble tests).

| Category | Library |

|----------|---------|

| Framework | New-project default: next@16+ (App Router) + react@19+ |

| Date | luxon |

| Styling | TailwindCSS v4 + shadcn/ui (Base UI engine; see resources/tech-stack.md) |

| Hooks | ahooks (default) or @mantine/hooks (standalone, SSR-safe; no Mantine UI required); pre-made hooks preferred; pick one per project, don't mix |

| Utils | es-toolkit (first choice) |

| Types | type-fest (TS type utilities not in the standard lib: SetRequired, Merge, JsonValue, Promisable, etc.; built-in Partial/Pick/Omit stay first choice) |

| State (URL) | nuqs |

| 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/tech-stack.md §Server State) |

| State (Client) | Jotai or Zustand (intent-based, no default; minimize use — see resources/tech-stack.md) |

| Forms | @tanstack/react-form (v1+; pass zod schemas directly via Standard Schema; do not add the v0-only @tanstack/zod-form-adapter to v1 projects) + zod (v4) |

| Auth | better-auth (client SDK only in client code) |

| Animation | New-project default: motion with imports from motion/react |

Shadcn Workflow

reasoned fallback for existing Radix codebases only; no big-bang migration. Details in

resources/tech-stack.md §shadcn/ui Primitive Engine.

  1. Search: npx shadcn@latest search <@registry> -q "<query>"
  2. Review: npx shadcn@latest view <item> (registry source) or npx shadcn@latest docs <component> (docs and examples)
  3. Install: npx shadcn@latest add <item>; preview with --dry-run or --diff before overwriting

When a shadcn MCP server is connected, its registry search, example, and add-command tools cover the same three steps; discover the actual tool names before calling them.

Server vs Client Components

UI Implementation (Shadcn/UI)

<!-- oma-docs:ignore-start -->

<!-- oma-docs:ignore-end -->

Sources of Truth

Stack Reference

Project stack conventions live in dedicated files. Load a file when its trigger applies.

| File | Load when |

|---|---|

| resources/tech-stack.md | Choosing or checking framework versions, the shadcn primitive engine, Next.js 16 proxy.ts or React Compiler conventions, mutation ownership (Server Actions vs TanStack Query), the client-state library, or the browser-verification MCP selection |

| resources/tailwind-rules.md | Writing or reviewing Tailwind classes, design tokens, focus states, or Tailwind v4 @theme config |

| resources/snippets.md | A starting pattern is needed: Next.js canonicals, accessible card, React 19 hooks, TanStack Query/Form, i18n |

| resources/angular-rules.md | The target project is Angular (standalone/OnPush/signals conventions, RxJS marble-test policy) |

To extend: add resources/<name>.md and append a row above.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.