Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

frontend-prime前端素数

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

3,048

周安装

127

GitHub Stars

29

下载量

1,016
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:frontend-prime(前端素数)
来源仓库:https://github.com/esramulkpinar/prime-frontend-skills
仓库路径:skills/frontend-prime
安装命令:
npx skills add https://github.com/esramulkpinar/prime-frontend-skills --skill frontend-prime
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/esramulkpinar/prime-frontend-skills --skill frontend-prime

简介

聚焦核心用户体验与无障碍设计实践。

  • 覆盖 WCAG 标准实施、键盘导航与屏幕阅读器支持。
  • 生成 ARIA 标签与对比度检测报告。
  • 需配合真实用户测试验证修复效果。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • frontend-prime 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Ultimate Frontend Skill

Every output must feel intentionally crafted — never generic, never "AI slop."


1. Design Before Code

Before writing ANY code, decide:

  1. Aesthetic direction (pick ONE, match it to the product's audience): Brutally minimal · Maximalist editorial · Retro-futuristic · Organic/natural · Luxury/refined · Playful · Brutalist · Art deco · Dark/moody · Lo-fi/zine · Handcrafted · Swiss/international · Neo-glassmorphic · Industrial · Soft/pastel
  2. One unforgettable element: a scroll animation, a bold typographic moment, a micro-interaction — something memorable.
  3. Then commit fully. Half-hearted design = generic output.

2. The AI Slop Blacklist

These instantly mark output as AI-generated. Never:

  • Purple/blue gradient on white cards
  • Every element with identical rounded-xl
  • Perfectly centered, symmetrical layouts with no visual tension
  • text-gray-600 on everything
  • Cards in a perfect 3-column grid with identical heights
  • Rainbow or evenly-distributed color schemes
  • Generic hero with stock illustration placeholder

Instead, always:

  • Load distinctive Google Fonts (Instrument Serif, DM Sans, Clash Display, Bricolage Grotesque, Syne, Fraunces, Cabinet Grotesk, Satoshi, Young Serif, Outfit)
  • One dominant color doing 80% of the work + one sharp accent
  • Asymmetric layouts, grid-breaking elements, dramatic scale jumps
  • Atmosphere via gradient meshes, noise textures, glassmorphism, or depth layers
  • Generous negative space as a design element
  • Negative letter-spacing on large headings, text-wrap: balance on headlines
  • Body text max-width: 65ch, line-height: 1.5–1.7

3. Color & Theming — Do It Right

Define colors as CSS custom properties with semantic names. Never hardcode hex in components.

[data-theme="light"] {
  --bg-primary: #fafafa; --bg-secondary: #ffffff;
  --text-primary: #18181b; --text-secondary: #52525b;
  --accent: #2563eb; --border: #e4e4e7;
}
[data-theme="dark"] {
  --bg-primary: #09090b; --bg-secondary: #18181b;
  --text-primary: #fafafa; --text-secondary: #a1a1aa;
  --accent: #3b82f6; --border: #27272a;
}

Dark mode rules: higher elevation = lighter surface, desaturate accents ~15%, use borders not shadows for hierarchy, offer Light/Dark/System toggle, persist in localStorage and apply before paint.


4. SEO — Claude Forgets This

Every page needs:

<title>Page Title — Brand</title>
<meta name="description" content="150-160 chars">
<link rel="canonical" href="https://example.com/page">
<meta property="og:title/description/image/url" ...>
<meta name="twitter:card" content="summary_large_image">

Also: JSON-LD structured data, sitemap.ts + robots.ts, one h1 per page, no skipped heading levels, descriptive alt text, clean lowercase hyphenated URLs, hreflang for i18n.

In Next.js: use metadata export with metadataBase, openGraph, twitter, alternates.canonical.


5. Quick Reminders

  • Motion: Stagger entrances, hover states on all interactives, 0.2s ease micro-interactions, always respect prefers-reduced-motion
  • Mobile: Mobile-first, clamp() for fluid type/spacing, dvh not vh, 44×44px touch targets
  • A11y: Semantic HTML, <button> for actions / <a> for links, aria-label on icon buttons, 4.5:1 contrast, full keyboard nav
  • Perf: font-display: swap, lazy load images with dimensions, content-visibility: auto, LCP<2.5s
  • Forms: Visible labels always, validate on blur, helpful error messages, correct input type + autocomplete
  • Errors: Error boundaries per section, custom 404/500, toast for feedback (auto-dismiss success, persist errors)
  • Security: CSP headers, never unsanitized dangerouslySetInnerHTML, validate URLs in href, httpOnly cookies for auth, server-side validation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.73%
按下载量换算393

Claude

30.48%
按下载量换算310

Cursor

17.37%
按下载量换算176

Gemini CLI

9.82%
按下载量换算100

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills