Oma Frontend 标志

Oma Frontend

组织热门
first-fluke
oma-frontend

Implement or modify web UI in React, Next.js, or Angular. Use for components, pages, styles, forms, and frontend state or data flows.

Add to TypingMind

概览

发布者first-fluke
代码仓库oh-my-agent
技能名称oma-frontend
星标数
1.3K
复刻数
149
附带文件
7
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 7 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 first-fluke 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Oma Frontend AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-frontend
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/first-fluke/oh-my-agent.git /tmp/oh-my-agent
mkdir -p .claude/skills
cp -r /tmp/oh-my-agent/skills/oma-frontend .claude/skills/oma-frontend
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Oma Frontend,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Oma Frontend。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Oma Frontend 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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

  • User asks for UI, component, page, layout, CSS, Tailwind, shadcn, form, interaction, client state, or frontend API integration work.
  • User needs browser-facing implementation in a React/Next.js or Angular TypeScript codebase.
  • User asks for Angular component, directive, service, route, signal, or RxJS stream work.

When to use

  • Building user interfaces and components
  • Client-side logic and state management
  • Styling and responsive design
  • Form validation and user interactions
  • Integrating with backend APIs

When NOT to use

  • Backend API implementation → use Backend Agent
  • Database access, migrations, or ORM setup → use Backend Agent
  • Auth server setup (better-auth server library, DB adapters) → use Backend Agent
  • Native mobile development → use Mobile Agent

Expected inputs

  • Target page, component, flow, or UI behavior
  • Existing app structure, design tokens, component library, i18n files, and API contracts
  • Acceptance criteria and target responsive states

Expected outputs

  • Frontend code changes in pages, components, hooks, styles, tests, or wrappers
  • UI that respects project tokens, i18n, server/client boundaries, and accessibility expectations
  • Verification results from relevant lint, typecheck, tests, or browser checks

Dependencies

  • React, Next.js, TypeScript, TailwindCSS v4, and shadcn/ui — or Angular + signals + RxJS in Angular projects (resources/angular-rules.md)
  • Project sources of truth such as packages/design-tokens, packages/i18n, and shared utilities
  • resources/execution-protocol.md, resources/checklist.md, snippets, and Tailwind rules

Control-flow features

  • Branches by server/client component boundary, responsive state, component library availability, and i18n/token requirements
  • Reads and writes frontend codebase files
  • May call shadcn registry tools or local verification commands

Structural Flow

Entry

  1. Identify target route, component, state boundary, and design-system constraints.
  2. Read existing patterns before adding components or utilities.
  3. Determine whether work belongs in Server Components, Client Components, wrappers, hooks, or styles.

Scenes

  1. PREPARE: Load relevant project conventions, UI requirements, and acceptance criteria.
  2. ACQUIRE: Inspect existing components, tokens, i18n keys, APIs, and shadcn availability.
  3. ACT: Implement UI, state, styles, validation, and integration.
  4. VERIFY: Run checklist, automated checks, and browser/responsive validation when applicable.
  5. FINALIZE: Summarize changed UI behavior and verification.

Transitions

  • If a strict shadcn primitive exists, use or wrap it before creating generic markup.
  • If UI text is user-facing and i18n exists, add strings through the i18n source of truth.
  • If interaction or hooks are needed, mark the boundary as Client Component.
  • If backend contracts are missing, coordinate with backend/API planning.

Failure and recovery

  • If design tokens or i18n sources are missing, state assumptions and follow existing local patterns.
  • If verification fails, fix before handoff or report the blocker.
  • If required shadcn registry access fails, use existing local components or document fallback.

Exit

  • Success: UI works across target responsive states and passes relevant checks.
  • Partial success: missing assets, backend contracts, or verification gaps are explicit.

Logical Operations

Actions

ActionSSL primitiveEvidence
Inspect existing frontend patternsREADComponents, routes, hooks, styles
Select component and state approachSELECTServer/client and shadcn workflow
Implement UI codeWRITETSX, CSS, hooks, wrappers
Validate form/data contractsVALIDATEZod/forms/API schemas
Call shadcn or verification toolsCALL_TOOLRegistry, lint, typecheck, tests
Compare responsive statesCOMPAREDesktop/mobile behavior
Report resultNOTIFYFinal summary

Tools and instruments

  • React, Next.js, TypeScript, TailwindCSS v4, shadcn/ui
  • ahooks or @mantine/hooks, es-toolkit, nuqs, TanStack Query, Jotai/Zustand, TanStack React Form, zod
  • Angular (standalone + signals), RxJS + rxjs/testing (TestScheduler marble tests) in Angular projects
  • Lint, typecheck, tests, and browser inspection when applicable

Canonical workflow path

bash
rg --files
rg "components/ui|shadcn|use client|generateMetadata|useQuery|i18n|design-tokens" .

Then run the project's frontend verification commands, typically lint, typecheck, tests, and browser/responsive checks when the UI changes.

Resource scope

ScopeResource target
CODEBASEFrontend routes, components, styles, hooks, tests
LOCAL_FSDesign tokens, i18n files, resource references
PROCESSBuild, lint, typecheck, test, browser commands
NETWORKBackend APIs or registry tools when required

Preconditions

  • Target UI behavior and affected frontend area are identifiable.
  • Required design tokens, i18n, and API contracts are available or assumptions are stated.

Effects and side effects

  • Mutates frontend source, styles, tests, and possibly i18n keys.
  • May add dependencies or shadcn components only when justified by project conventions.
  • Does not edit components/ui/* directly.

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.

  1. Follow the existing React, Next.js, TypeScript, and FSD-lite architecture in the target project.
  2. Use shadcn/ui primitives and wrappers for UI work; treat components/ui/* as read-only.
  3. Keep server/client boundaries explicit: Server Components for static/layout work, Client Components for interaction and hooks.
  4. Use project sources of truth for design tokens, i18n strings, and shared utilities before adding local alternatives.
  5. Run the execution checklist before handoff and include relevant verification results.
  6. 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.
  7. Request proxy convention: when the target project uses Next.js 16+ with proxy.ts, preserve that convention. Check the installed framework version and routing before recommending a file rename. Diagnose wiring from code and tests.
  8. next/link defaults to prefetch={false}: every <Link> 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/memory and origin bandwidth on list-heavy or nav-heavy pages. Opt back in (prefetch omitted, or prefetch / 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 <Link> without an explicit prefetch decision fails review.
  9. 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.

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).

CategoryLibrary
FrameworkNew-project default: next@16+ (App Router) + react@19+; preserve existing project versions
Dateluxon
StylingTailwindCSS v4 + shadcn/ui (Base UI engine; see resources/tech-stack.md)
Hooksahooks (default) or @mantine/hooks (standalone, SSR-safe; no Mantine UI required); pre-made hooks preferred; pick one per project, don't mix
Utilses-toolkit (first choice)
Typestype-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)
Authbetter-auth; client code imports only the client SDK, never server libraries or database adapters
AnimationNew-project default: motion with imports from motion/react; preserve an existing animation library for scoped edits

Shadcn Workflow

  • Engine default: Base UI (components.json → style: "base-*"). Radix (radix-*) is a reasoned fallback for existing Radix codebases only; no big-bang migration. Details in resources/tech-stack.md §shadcn/ui Primitive Engine.
  1. Search: shadcn_search_items_in_registries
  2. Review: shadcn_get_item_examples_from_registries
  3. Install: shadcn_get_add_command_for_items

Server vs Client Components

  • Server Components: Layouts, marketing pages, SEO metadata (generateMetadata, sitemap)
  • Client Components: Interactive features and useQuery hooks
  • Mutations: one owner per write. Server Actions for form-shaped, revalidate-only flows; TanStack Query for cache-coupled or non-form writes (resources/tech-stack.md §Mutations)

UI Implementation (Shadcn/UI)

  • Usage: Prefer strict shadcn primitives (Card, Sheet, Typography, Table) over div or generic classes.
  • Responsiveness: Use Drawer (mobile) vs Dialog (desktop) via useResponsive.
  • Customization: Treat components/ui/* as read-only. Create wrappers (e.g., components/common/ProductButton.tsx) or use cva composition. Never edit components/ui/button.tsx directly.

Sources of Truth

  • DESIGN.md (project root): visual system source of truth; read Section 9 (Agent Prompt Guide) verbatim for component prompts when present
  • Design Tokens: packages/design-tokens (OKLCH); never hardcode colors
  • i18n strings: packages/i18n; never hardcode UI text
  • Custom utilities: check es-toolkit first; if implementing custom logic, use the project or task coverage target and risk-relevant tests

Designer Collaboration

  • Sync: Map code variables to Figma layer names
  • UX: Ensure key actions are visible "Above the Fold"

Stack Reference

Project stack conventions live in dedicated files. Read these before coding; they are not optional appendix material.

FileOwns
resources/tech-stack.mdFramework versions, Next.js 16 proxy.ts + React Compiler conventions, Server Actions vs TanStack Query mutation policy, optional provider examples
resources/tailwind-rules.mdDesign tokens, focus states, Tailwind v4 @theme syntax
resources/snippets.mdReact 19 hook patterns, TanStack Query/Form, a11y card
resources/angular-rules.mdAngular standalone/OnPush/signals conventions, RxJS marble-test policy (MANDATORY for streams)

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

References

  • Local code tools: ../_shared/core/code-intelligence.md (code search/navigation)

  • Project frontend rules (MUST load before review/implementation): ../../rules/frontend.md

  • Execution steps (follow for the selected task): resources/execution-protocol.md

  • Checklist (run before handoff): resources/checklist.md

  • Error recovery: resources/error-playbook.md

  • Context loading: ../_shared/core/context-loading.md

  • Clarification: ../_shared/core/clarification-protocol.md

  • Context budget: ../_shared/core/context-budget.md

  • Lessons learned: ../_shared/core/lessons-learned.md (matching prior failure or requested retrospective)

  • Observability handoff: ../oma-observability/SKILL.md §Integrations — Core Web Vitals, SSR→client trace propagation, INP profiling

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Oma Frontend AI 技能有什么作用?

Implement or modify web UI in React, Next.js, or Angular. Use for components, pages, styles, forms, and frontend state or data flows.

为什么在 TypingMind 中使用 Oma Frontend?

因为您只需安装一次,就能搭配任何模型使用。Oma Frontend 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Oma Frontend?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-frontend。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Oma Frontend?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Oma Frontend 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Oma Frontend 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Oma Frontend AI 技能免费吗?

是的。first-fluke 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇