agentsclimarketplace

Scoop ui refactor

Skill bg-szy/TOP-SKILLS/skills/marketplace/scoop-ui-refactor

全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard

Install
npx -y skills add bg-szy/TOP-SKILLS --skill scoop-ui-refactor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Project-specific UI refactor workflow for the Scoop news platform in /home/bender/classwork/Thesis. Use when updating Scoop frontend layouts, globe UX, research workspace, and brand docs while preserving all features and enforcing a no-emoji policy across UI, logs, and docs.

SKILL.md

3.3 KB, as published. Nobody here has run it

Scoop UI Refactor

Scope

  • Project root: /home/bender/classwork/Thesis
  • Frontend: frontend/app and frontend/components

Required outcomes

  • Preserve all existing features (view modes, filters, research, modals).
  • Increase density and reduce empty vertical space.
  • Make globe selection flow clear and usable.
  • Have grid view have snap scroll.
  • Keep feed snap-scroll while preserving global header visibility.
  • Remove emojis from UI, logs, and docs.

Workflow

  1. Review primary surfaces
  • frontend/app/page.tsx (home layout)
  • frontend/components/globe-view.tsx and frontend/components/interactive-globe.tsx
  • frontend/app/search/page.tsx (research UI)
  • frontend/app/globals.css (theme tokens)
  1. Home layout refactor
  • Compress the lead story into title + summary + action row.
  • Move big narrative blocks into a compact summary card.
  • Convert long "Contact" sections into short action rows.
  • Keep view mode controls and filters visible and separated.
  1. Globe view UX
  • Add a clear country focus header.
  • Show source count and top sources for the selected country.
  • Keep a clear "reset" action visible.
  • Remove all country flag emojis and any emoji usage.
  1. Research workspace
  • Use a top query bar.
  • Add Brief and Flow modes (Flow shows reasoning steps in sequence).
  • Move history or chat list into a sidebar.
  • Ensure research visuals are distinct from the main feed styling.
  1. No-emoji enforcement
  • Use ripgrep to find emoji usage and remove it.
  • Replace emoji with icons or labels.
  • Apply to UI strings, logs, and docs.
  1. Feed view snap-scroll (TikTok style)
  • Use full-viewport sections (h-screen, snap-start) within a scroll container that has snap-y snap-mandatory scroll-smooth.
  • Keep the global header visible by only calling event.preventDefault() on wheel/touch when a snap transition actually occurs; allow default scrolling when at the first/last item.
  • Track activeIndex and an isAnimating guard; call scrollIntoView for the next/previous section and clear the guard after a short timeout.
  • Support wheel, touch (deltaY threshold), and arrow keys; debounce small deltas to avoid accidental snaps.
  • Retain modals, bookmarks, likes, and favorites behavior; do not regress existing feed actions.

Checks

  • Confirm view modes still switch correctly.
  • Confirm modals and source filters still work.
  • Confirm research results still render with embedded sources.
  • Confirm feed snap-scroll still works on wheel, touch, and arrow keys, and that the header remains accessible at top-level scroll.

Recent context

  • Snap-scroll feed clips lower content if sections are fixed to h-screen without accounting for surrounding layout; prefer a flex parent (flex-1 h-full min-h-0) and per-section h-full min-h-full snap-start inside the scroll container so each article uses the available viewport height without hiding titles.
  • Lint currently fails with pre-existing warnings/errors across the frontend (unused vars, hook ordering, explicit any); fixes are pending and not related to snap-scroll layout.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.