Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

building-ui-bundle-frontend构建 ui 包前端

Agent Skill

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

总安装

8,201

周安装

335

GitHub Stars

212

下载量

2,626
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/forcedotcom/afv-library --skill building-ui-bundle-frontend

简介

协助前端页面、组件与样式开发,支持主流框架与构建工具。

  • 适用于生成或审查 React、Next.js、Vue、Tailwind CSS 相关代码。
  • 需参考项目路由结构与设计系统,确保组件复用性与一致性。
  • 布局变更应优先修改 appLayout.tsx,避免分散在各页面造成维护困难。
  • 本地预览与构建检查是验证视觉效果的关键步骤,不可省略。

SKILL.md

UI Bundle UI

Identify the Task

Determine which category the request falls into:

CategoryExamplesImplementation Guide
PageNew routed page (contacts, dashboard, settings)implementation/page.md
Header / FooterSite-wide nav bar, footer, brandingimplementation/header-footer.md
ComponentWidget, card, table, form, dialogimplementation/component.md

Layout and Navigation

appLayout.tsx is the source of truth for navigation and layout. Every page shares this shell.

When making any change that affects navigation, header, footer, sidebar, theme, or layout:

  1. Edit src/appLayout.tsx — the layout used by routes.tsx
  2. Replace all default/template nav items and labels with app-specific links and names
  3. Replace placeholder app name everywhere: header, nav brand, footer, <title> in index.html

Before finishing, confirm: Did I update appLayout.tsx with real nav items and branding?

WhatWhere
Layout, nav, brandingsrc/appLayout.tsx
Document titleindex.html
Root page contentComponent at root route in routes.tsx

React and TypeScript Standards

Routing

Use a single router package. With createBrowserRouter / RouterProvider, all imports must come from react-router (not react-router-dom).

If the app uses a client-side router (React Router, Remix Router, Vue Router, etc.), always derive basename / basepath / base from the document's <base href> tag at runtime. Never hardcode the basename:

const basename = document.querySelector('base')
  ? new URL(document.querySelector('base').href).pathname.replace(/\/$/, '')
  : '/';
const router = createBrowserRouter(routes, { basename });

Component Library and Styling

  • shadcn/ui for components: import {Button} from '@/components/ui/button';
  • Tailwind CSS utility classes

URL and Path Handling

Apps run behind dynamic base paths. Router navigation (<Link to>, navigate()) uses absolute paths (/x). Non-router attributes (<img src>) use dot-relative (./x). Prefer Vite import for static assets.

TypeScript

  • Never use any — use proper types, generics, or unknown with type guards
  • Event handlers: (event: React.FormEvent<HTMLFormElement>): void
  • State: useState<User | null>(null) — always provide the type parameter
  • No unsafe assertions (obj as User) — use type guards instead

Module Restrictions

React UI bundles must not import Salesforce platform modules like lightning/* or @wire (LWC-only). For data access, use the using-ui-bundle-salesforce-data skill.


Design Thinking

Before coding, commit to a bold aesthetic direction:

  • Purpose: What problem does this interface solve? Who uses it?
  • Tone: Pick a clear direction — brutally minimal, maximalist, retro-futuristic, organic, luxury, playful, editorial, brutalist, art deco, soft/pastel, industrial. Use these as inspiration but design one true to the context.
  • Differentiation: What makes this unforgettable? What's the one thing someone will remember?

Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work — the key is intentionality, not intensity.


Frontend Aesthetics

  • Typography: Choose distinctive, characterful fonts. Pair a display font with a refined body font. Never default to Inter, Roboto, Arial, Space Grotesk, or system fonts.
  • Color: Commit to a cohesive palette using CSS variables. Dominant colors with sharp accents outperform timid, evenly-distributed palettes. Avoid cliched purple gradients on white.
  • Motion: Focus on high-impact moments — one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise. Prefer CSS-only solutions; use Motion library for React when available.
  • Spatial Composition: Unexpected layouts — asymmetry, overlap, diagonal flow, grid-breaking elements. Generous negative space OR controlled density.
  • Backgrounds & Depth: Create atmosphere rather than defaulting to solid colors. Gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, grain overlays.
  • Mobile Responsiveness: All generated UI MUST be mobile-responsive. Use Tailwind responsive prefixes (sm:, md:, lg:) to adapt layouts across breakpoints. Stack columns on small screens, use flexible grids, and ensure touch targets are at least 44px. Test that navigation, typography, and spacing work on mobile viewports.

Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate animations and effects. Minimalist designs need restraint, precision, and careful spacing/typography. No two designs should look the same — vary themes, fonts, and aesthetics across generations.


Clarifying Questions

Ask one question at a time and stop when you have enough context.

For a Page

  1. Name and purpose?
  2. URL path?
  3. Should it appear in navigation?
  4. Access control? (public, authenticated via PrivateRoute, or unauthenticated via AuthenticationRoute)
  5. Content sections? (list, form, table, detail view)
  6. Data fetching needs?

For a Header / Footer

  1. Header, footer, or both?
  2. Contents? (logo, nav links, user avatar, copyright, social icons)
  3. Sticky header?
  4. Color scheme or style direction?

For a Component

  1. What should it do?
  2. Which page does it belong to?
  3. Shared/reusable or specific to one feature?
  4. Data or props needed?
  5. Internal state? (loading, toggle, form state)
  6. Specific shadcn components to use?

Verification

Before completing, run lint and build from the UI bundle directory. Lint must result in 0 errors and build must succeed.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.4%
按下载量换算903

Claude

28.19%
按下载量换算740

Cursor

17.85%
按下载量换算469

Gemini CLI

9.69%
按下载量换算254

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills