Token导航 LogoToken导航

Agent Skill · 研究检索

frontend(frontend 开发)

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

frontend 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 60,042。

总安装 374周安装 15GitHub Stars 2下载 121核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dedalus-erp-pas/hexagone-foundation-skills --skill frontend

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

确保前端代码遵循框架设计哲学,反对对抗式开发。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。使用组件库与 CSS 框架的原生方式,避免 hack 手法。支持 React、Vue、Next.js 等主流技术栈。

定制通过官方渠道实现,如 props 与主题变量。frontend 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/frontend

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dedalus-erp-pas/hexagone-foundation-skills --s…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

frontend 怎么安装?

在终端执行 npx skills add https://github.com/dedalus-erp-pas/hexagone-foundation-skills --skill front…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

frontend 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

frontend 需要什么权限?

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

frontend 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

frontend 用的人多吗?

公开数据是累计安装 374 次,近一周安装 15 次,下载 121 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

frontend 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
frontend

frontend 开发 · 本页

3742需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Frontend Design Skill

This skill enforces a single principle: work WITH the framework, never against it. Use the component library natively. Use the CSS framework idiomatically. Let the design system do its job.

The user provides frontend requirements: a component, page, or interface to build or modify.

Core Philosophy

Don't fight the framework. Use it as it was designed to be used.

Every frontend framework and component library has an intended way to be used. The job of this skill is to ensure that every line of frontend code respects that intent. Customization happens through the channels the framework provides — not by bypassing them.

Step 1: Codebase Context Discovery (MANDATORY)

Before writing any code, scan the codebase. This step is non-negotiable.

What to Detect

  1. Frontend framework — Check package.json for: react, vue, angular, svelte, next, nuxt, astro, solid-js
  2. Component library — Check dependencies for: PrimeVue, shadcn/ui, Vuetify, MUI, Chakra UI, Ant Design, Radix, Mantine, Quasar, Element Plus, Headless UI
  3. CSS framework — Check for: Tailwind (tailwind.config.*, @tailwind directives), SCSS, CSS Modules, etc.
  4. Theme configuration — Find the theming mechanism:

- PrimeVue: theme preset in main.ts (Aura, Lara, Nora), design token overrides - Vuetify: vuetify.ts theme config - MUI: createTheme() config - Tailwind: tailwind.config.* or @theme block (v4)

  1. Existing component patterns — Examine 2-3 existing components to understand how the library is used in practice

State your findings before proceeding. Example: "Detected: Vue 3 + PrimeVue (Aura preset) + Tailwind CSS. I will use PrimeVue components natively with Tailwind for layout only."

Step 2: Framework-Native Implementation

The Golden Rule

Use every component, utility, and API the way the framework documentation shows it. If the framework has a built-in way to do something, use it. Do not invent alternatives.

Component Library Rules

These rules apply regardless of which component library the project uses (PrimeVue, MUI, Vuetify, shadcn/ui, etc.):

ALWAYS:

  • Use the library's components directly with their documented props and API
  • Customize appearance through the library's theming system (design tokens, theme presets, theme config)
  • Use the library's built-in variants, severities, and sizes (severity="success", size="small", etc.)
  • Use the library's slot system when you need to customize content areas
  • Follow the library's documented patterns for forms, dialogs, tables, etc.
  • Use the library's icons and icon integration as documented

NEVER:

  • Override component internals with CSS targeting internal class names or DOM structure
  • Create wrapper components that re-style library components from the outside
  • Use !important to override library styles
  • Duplicate functionality that already exists in the library (if it has a Tooltip, use it)
  • Mix components from multiple UI libraries in the same project

PrimeVue-Specific Rules

PrimeVue v4 uses a design token system with presets (Aura, Lara, Nora). This is the ONLY supported customization path.

NEVER do this:

  • Use the PassThrough (pt) API to restyle components with Tailwind classes
  • Use unstyled mode to strip PrimeVue's styles and rebuild from scratch
  • Use usePassThrough() utility to override preset styling
  • Create wrapper components that apply pt overrides globally
  • Target PrimeVue's internal CSS classes (.p-button-label, .p-datatable-header, etc.) in your stylesheets
  • Add Tailwind utility classes to PrimeVue component root elements to override their appearance

DO this instead:

  • Pick a theme preset (Aura, Lara, Nora) and use it
  • Customize through PrimeVue's design token system in main.ts or theme config: app.use(PrimeVue, {theme: {preset: Aura, options: {prefix: 'p', darkModeSelector: '.dark-mode', cssLayer: {name: 'primevue', order: 'tailwind-base, primevue, tailwind-utilities'}}}})
  • Override design tokens at the theme level when you need different colors or spacing: import {definePreset} from '@primevue/themes' import Aura from '@primevue/themes/aura' const MyPreset = definePreset(Aura, {semantic: {primary: {50: '{indigo.50}', //... 950: '{indigo.950}'}}})
  • Use component props as documented: severity, size, outlined, rounded, raised, text, etc.
  • Use PrimeVue's built-in CSS layer ordering to ensure Tailwind and PrimeVue coexist cleanly

Why no pt? The PassThrough API fights the framework. It bypasses the theming system, creates maintenance burden when PrimeVue updates internal DOM structure, and produces code that is neither idiomatic PrimeVue nor idiomatic Tailwind. The design token system exists precisely so you don't need pt.

CSS Framework Rules (Tailwind)

When the project uses Tailwind CSS, follow these rules on every frontend change:

ALWAYS:

  • Use Tailwind utility classes directly in templates — this is the primary styling mechanism
  • Follow mobile-first responsive design: base styles first, then sm:, md:, lg:, xl:
  • Use consistent class ordering: layout > positioning > box model > typography > visual > interactive
  • Use the project's Tailwind config tokens (text-primary-500, not text-[#3b82f6])
  • Use complete class strings — never concatenate (bg-${color}-500 breaks the compiler)
  • Use computed properties or lookup objects for dynamic classes
  • Use prettier-plugin-tailwindcss for automatic class sorting if available
  • Use Tailwind for layout, spacing, and typography on YOUR elements (not library components)

NEVER:

  • Write custom CSS when a Tailwind utility exists for it
  • Use @apply excessively — prefer Vue components for abstraction instead of CSS classes
  • Use arbitrary values (text-[14px]) when a Tailwind scale value exists (text-sm)
  • Concatenate class names dynamically (breaks purging in production)
  • Mix CSS methodologies — if the project uses Tailwind, don't add CSS Modules or styled-components
  • Use Tailwind utilities to override component library styles

Tailwind + Component Library coexistence:

  • Tailwind handles: page layout, spacing between components, custom elements, typography on non-library elements
  • Component library handles: component appearance, component spacing internals, interactive states
  • They do NOT overlap: don't use Tailwind to restyle library components, don't use library classes for page layout

Tailwind Best Practices Checklist

Apply this checklist on every frontend change:

  • Mobile-first: base styles are mobile, breakpoints add complexity
  • No arbitrary values when a scale value exists
  • No @apply — use Vue components for repeated patterns
  • No class concatenation — use lookup objects for dynamic classes
  • Consistent class ordering (use Prettier plugin)
  • Dark mode uses dark: prefix consistently
  • Interactive states use hover:, focus:, active:, disabled: variants
  • Focus styles are visible for accessibility (focus:ring-2, focus:outline-none)
  • Design tokens from tailwind.config are used, not hardcoded values
  • No conflicting utilities on the same element

Step 3: What This Skill is NOT

This skill does NOT cover:

  • Aesthetic direction or creative design — it enforces framework discipline, not visual creativity
  • Framework-specific API patterns — defer to vue-best-practices, react-best-practices for those
  • Greenfield design system creation — use create-design-system-rules for that

What to AVOID — Summary

Anti-patternWhy it's wrongWhat to do instead
pt API on PrimeVue componentsFights the framework's theming systemUse design tokens and definePreset()
unstyled mode + Tailwind rebuildRe-implements PrimeVue from scratchUse a theme preset
Wrapper components with style overridesUnnecessary abstraction, breaks on updatesUse components directly with props
!important overridesSpecificity wars, unmaintainableFix the root cause through theme config
Tailwind classes on library componentsTwo systems fighting for controlLet the library own its components
Custom CSS for things Tailwind doesMixed methodologiesUse Tailwind utilities
@apply everywhereDefeats utility-first purposeExtract Vue components instead
Arbitrary values (text-[14px])Bypasses design token systemUse scale values (text-sm)
Class concatenation (bg-${x}-500)Breaks Tailwind compiler purgingUse lookup objects
Targeting internal library classesBreaks on library updatesUse library's theming API

Complementary Skills

  • vue-best-practices / react-best-practices — Framework-specific API patterns and component architecture
  • create-design-system-rules — For projects without an established design system
  • web-design-guidelines — For auditing accessibility and UI quality

Remember

The best frontend code is invisible. It uses the tools the project chose — the component library, the CSS framework, the theme system — exactly as they were meant to be used. No overrides. No workarounds. No cleverness that the next developer has to reverse-engineer.

Use the framework. Trust the framework. Don't fight the framework.

平台分布

Codex

40.09%
按下载量换算49

Claude

28.74%
按下载量换算35

Cursor

18.27%
按下载量换算22

Gemini CLI

9.63%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills