Communitygithub.com

ComeOnOliver/skillshub

Scoop 新聞平台的專案特定 UI 重構工作流程。用於更新 Scoop 前端版面、球體 UX、研究空間與品牌文件,同時保留所有功能並強制執行 UI、日誌與文件中無表情符號的政策。

skillshub 是什麼?

此技能定義了一個專門的 UI 重構工作流程,目標是位於 `/home/bender/classwork/Thesis` 的 Scoop 新聞平台。其主要目的是在現代化前端版面、球體 UX 和研究工作空間的同時,保留所有現有功能(如視圖模式、篩選器、研究模態框)。工作流程強調提高內容密度、減少垂直空白,並改善互動元素的可用性,例如為網格視圖和摘要視圖實現 TikTok 風格的 snap-scroll 行為。一個關鍵的跨領域要求是強制執行「無表情符號」政策,在 UI 字串、日誌和文件中移除所有表情符號,並以圖示或標籤取代。該技能支援透過滾輪、觸控和鍵盤操作進行 snap-scroll,並包含確保全域頁首在捲動時始終可見的邏輯。此外,還提供了最近的實作背景,指出在 flex 容器中使用 `h-full` 和 `min-h-full` 而非 `h-screen`,以防止固定高度區塊裁切內容的常見陷阱。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/benderfendor/scoop-ui-refactor

在你喜歡的 AI 中提問

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

說明文件

Scoop UI 重構

範圍

  • 專案根目錄:/home/bender/classwork/Thesis
  • 前端:frontend/app 和 frontend/components

必要成果

  • 保留所有現有功能(視圖模式、篩選器、研究、模態框)。
  • 提高密度,減少垂直空白空間。
  • 讓球體選取流程清晰且可用。
  • 讓網格視圖具有 snap 滾動。
  • 維持摘要視圖的 snap-scroll,同時保留全域頁首的可見性。
  • 從 UI、日誌和文件中移除表情符號。

工作流程

  1. 審查主要介面
  • frontend/app/page.tsx(首頁佈局)
  • frontend/components/globe-view.tsx 和 frontend/components/interactive-globe.tsx
  • frontend/app/search/page.tsx(研究 UI)
  • frontend/app/globals.css(主題標記)
  1. 首頁佈局重構
  • 將主要故事壓縮為標題 + 摘要 + 操作列。
  • 將大型敘述區塊移至緊湊的摘要卡片中。
  • 將較長的「聯絡我們」區塊轉換為短操作列。
  • 保持視圖模式控制項和篩選器可見且分開。
  1. 球體視圖 UX
  • 新增清晰的國家焦點標頭。
  • 顯示所選國家的來源計數和頂級來源。
  • 保持清晰的「重設」操作可見。
  • 移除所有國家旗幟表情符號及任何表情符號使用。
  1. 研究工作空間
  • 使用頂部查詢列。
  • 新增簡報和流程模式(流程模式依序列出推理步驟)。
  • 將歷史記錄或聊天清單移至側邊欄。
  • 確保研究視覺元素與主要摘要樣式有所區別。
  1. 無表情符號強制執行
  • 使用 ripgrep 尋找表情符號使用並移除之。
  • 將表情符號取代為圖示或標籤。
  • 應用於 UI 字串、日誌和文件。
  1. 摘要視圖 snap-scroll(TikTok 樣式)
  • 在一個具有 snap-y snap-mandatory scroll-smooth 的滾動容器中,使用全視口區塊(h-screen、snap-start)。
  • 僅在 snap 轉換實際發生時,才對滾輪/觸控事件呼叫 event.preventDefault(),以保持全域頁首可見;當位於第一/最後一個項目時,允許預設滾動。
  • 追蹤 activeIndex 和 isAnimating 守護變數;對下一個/上一個區塊呼叫 scrollIntoView,並在短暫逾時後清除守護變數。
  • 支援滾輪、觸控(deltaY 閾值)和方向鍵;去抖動小 delta 值以避免意外 snap。
  • 保留模態框、書籤、喜歡和收藏行為;不要退步現有的摘要操作。

檢查事項

  • 確認視圖模式仍能正確切換。
  • 確認模態框和來源篩選器仍能正常運作。
  • 確認研究結果仍能與嵌入式來源一起渲染。
  • 確認摘要 snap-scroll 在滾輪、觸控和方向鍵操作下仍能正常運作,且頁首在頂層滾動時仍可存取。

近期背景

  • 如果區塊固定為 h-screen 而未考慮周圍佈局,snap-scroll 摘要會裁切下方內容;建議在滾動容器內使用 flex 父容器(flex-1 h-full min-h-0)和每個區塊的 h-full min-h-full snap-start,讓每篇文章使用可用的視口高度而不隱藏標題。
  • Lint 目前因前端中存在的既有警告/錯誤而失敗(未使用的變數、hook 順序、明確的 any);修復正在進行中,與 snap-scroll 佈局無關。

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

相關技能