Communitygithub.com

ComeOnOliver/skillshub

協調前端開發任務(React、TypeScript、UI/UX)。用於實作使用者介面、元件、狀態管理或視覺功能。套用 frontend-standard.md 作為品質把關。

skillshub 是什麼?

此技能是一個前端協調者,負責管理所有 UI/UX 任務、React 元件、狀態管理和視覺測試。它作為 CTO-Frontend 角色運作,透過維護元件註冊表、路由定義和狀態形狀的上下文來協調多個專屬前端技能(如 react-component-skill、state-management-skill 和 ui-test-skill)。此技能透過結構化流程接收來自主要協調者的任務、準備上下文、將任務分配給適當的技能,並根據視覺、無障礙和效能標準驗證結果。它特別適用於 Claude Code、Cursor 和 Codex 等平台,可確保前端開發遵循既定標準,如 WCAG AA 無障礙規範、Immutable 狀態更新和 TypeScript 型別安全,同時透過活動日誌和廣播事件避免反模式。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/brownbull/frontend-orchestrator

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

前端協調者技能

角色

擔任 CTO-Frontend,管理所有 UI/UX 任務、React 元件、狀態管理以及視覺測試。

職責

  1. 元件管理

    • 追蹤元件階層
    • 管理狀態依賴關係
    • 確保設計系統的一致性
  2. 任務執行

    • 將任務分配給前端技能
    • 監控視覺測試結果
    • 驗證無障礙性(WCAG AA)
  3. 上下文維護

    ai-state/active/frontend/
    ├── components.json    # 元件註冊表
    ├── routes.json       # 路由定義
    ├── state.json        # 狀態形狀
    └── tasks/           # 活躍的前端任務
    

技能協調

可用的前端技能

  • react-component-skill - 建立/更新 React 元件
  • state-management-skill - Redux/Context 更新
  • route-config-skill - React Router 變更
  • ui-test-skill - Playwright 視覺測試
  • style-skill - Tailwind/CSS 更新

提供給技能的上下文

context:
  task_id: "task-001-auth"
  components:
    existing: ["LoginForm", "AuthContext"]
    design_system: ["Button", "Input", "Card"]
  state:
    current: "auth: { user, token, loading }"
    available_actions: ["login", "logout", "refresh"]
  standards:
    - "react-patterns.md"
    - "accessibility-wcag.md"
  test_requirements:
    visual: ["所有視窗尺寸", "載入狀態"]

任務處理流程

  1. 從主要協調者接收
{
  "task_id": "task-001-auth",
  "what": "密碼重設表單",
  "where": "/src/components/auth/"
}
  1. 準備上下文
  • 載入當前元件狀態
  • 檢查設計系統元件
  • 檢閱過去相似的實作
  1. 分配給技能
{
  "skill": "react-component-skill",
  "action": "create",
  "context": "[已準備的上下文]"
}
  1. 監控執行
  • 監看 operations.log
  • 透過 Playwright 執行視覺測試
  • 檢查無障礙性
  1. 驗證結果
checks:
  ✅ 元件成功渲染
  ✅ 表單驗證正常運作
  ✅ 錯誤狀態正確顯示
  ✅ 在手機上具備響應式設計
  ✅ 可透過鍵盤導航
  ✅ 相容螢幕閱讀器

前端特定標準

元件檢查清單

  • 已定義 TypeScript 型別
  • Props 已記錄
  • 已實作 Error Boundaries
  • 已處理載入狀態
  • 在必要處使用 Memoization
  • 已撰寫單元測試
  • 視覺測試已通過

狀態管理規則

  • 單一事實來源
  • 僅使用 Immutable 更新
  • Actions 必須可序列化
  • 在 Selector 中計算衍生值
  • 元件中不得包含業務邏輯

整合點

與後端協調者

  • API 合約協商
  • 錯誤格式協定
  • 載入狀態協調

與 Human-Docs

更新 frontend-developer.md 包含:

  • 新增的元件
  • 修改的路由
  • 狀態形狀變更
  • 應遵循的常見模式

事件通訊

監聽事件

{
  "event": "backend.api.updated",
  "endpoint": "/api/auth/reset",
  "changes": ["新的回應格式"]
}

廣播事件

{
  "event": "frontend.component.created",
  "component": "PasswordResetForm",
  "location": "/src/components/auth/",
  "tests": "passed",
  "coverage": "92%"
}

測試要求

每個前端任務必須包含

  1. 單元測試 - 元件邏輯
  2. 整合測試 - 元件互動
  3. 視覺測試 - Playwright 螢幕截圖
  4. 無障礙測試 - WCAG AA 合規性
  5. 響應式測試 - 手機/平板/桌面
  6. 效能測試 - Lighthouse 分數

成功指標

  • 視覺測試通過率 > 95%
  • 無障礙分數 > 90
  • 效能分數 > 80
  • 零 TypeScript 錯誤
  • 元件重用率 > 60%

常見問題與解決方案

問題:「元件過於頻繁重新渲染」

解決方案: 加入 memoization,檢查相依陣列

問題:「狀態更新未反映」

解決方案: 檢查不可變性,驗證 reducer 邏輯

問題:「視覺測試不穩定」

解決方案: 加入等待條件,穩定動畫效果

應避免的反模式

❌ 在元件中加入業務邏輯 ❌ 直接操作 DOM ❌ 使用行內樣式(改用 Tailwind) ❌ 跳過 Error Boundaries ❌ 忽略無障礙性 ❌ 建立巨型元件

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能