Token导航 LogoToken导航

Agent Skill · 前端设计

react-spectrum-s2(React spectrum S2 前端)

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

react-spectrum-s2 是前端设计类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 891。

总安装 10,134周安装 406下载 3,280核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

辅助 Adobe Spectrum S2 设计系统下的 React 开发。适用于生成或审查符合 Spectrum S2 规范的组件代码。可整理主题、样式与无障碍交互实现细节。react-spectrum-s2 属于前端设计类 Skill,可作为该场景下的辅助能力补充。需结合 Adobe 官方设计系统与项目品牌规范使用。

涉及视觉改动时应配合设计稿与无障碍测试验证。

来源仓库内路径:react-spectrum-s2

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 react-spectrum-s2。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

react-spectrum-s2 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 react-spectrum-s2。

react-spectrum-s2 支持哪些 AI 工具?

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

react-spectrum-s2 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

react-spectrum-s2 是免费的吗?

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

react-spectrum-s2 用的人多吗?

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

react-spectrum-s2 安全吗?

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

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

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

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

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

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

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
react-spectrum-s2

React spectrum S2 前端 · 本页

10,134—调用外部服务未明确通过

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

SKILL.md 原文

React Spectrum S2 (Spectrum 2)

React Spectrum S2 is Adobe's implementation of the Spectrum 2 design system in React. It provides a collection of accessible, adaptive, and high-quality UI components.

If the requirements do not clearly specify which React Spectrum component to use, consult the Component Decision Tree before choosing a component.

Styling

Use React Spectrum S2 components and the S2 style macro as the default styling approach.

  • Import the style macro using the {type: 'macro'} import attribute: import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
  • Remember that the style macro runs at build time and returns class names.
  • Avoid introducing Tailwind, radix-ui, shadcn/ui, or any other third-party design system components in S2 implementations.
  • Prefer S2 components first, and use their styles prop only for the supported layout-style properties.
  • For generic layouts (flex, grid, etc.), use native HTML elements with the style macro.
  • For card-style layouts, use the S2 Card component instead of building something custom.
  • IMPORTANT: Avoid using the UNSAFE_style and UNSAFE_className props.

For React Spectrum components, the styles prop is intentionally limited. Supported properties are:

  • margin, marginStart, marginEnd, marginTop, marginBottom, marginX, marginY
  • width, minWidth, maxWidth
  • flexGrow, flexShrink, flexBasis
  • justifySelf, alignSelf, order
  • gridArea, gridRow, gridRowStart, gridRowEnd, gridColumn, gridColumnStart, gridColumnEnd
  • position, zIndex, top, bottom, inset, insetX, insetY, insetStart, insetEnd
  • visibility
  • height, minHeight, maxHeight (only in specific components without an intrinsic height)

Example:

import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
import {Button} from '@react-spectrum/s2';

<Button styles={style({marginStart: 8})}>Edit</Button>

When styling native HTML elements or React Aria Components, use className={style(...)} instead of the limited styles prop. In those cases, you are not limited to the React Spectrum component property subset.

Example:

import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
import {Checkbox} from 'react-aria-components';

<div className={style({display: 'grid', gap: 12, padding: 16, backgroundColor: 'gray-75'})}>
  <h2 className={style({font: 'heading-sm'})}>Preferences</h2>
  <Checkbox
    className={style({
      display: 'flex',
      alignItems: 'center',
      gap: 8,
      color: {
        default: 'neutral',
        isSelected: 'blue-900'
      }
    })}
  />
</div>

The style macro supports runtime conditions:

import {style} from '@react-spectrum/s2/style' with {type: 'macro'};

const styles = style({
  backgroundColor: {
    variant: {
      primary: 'accent',
      secondary: 'neutral'
    }
  }
});

function MyComponent({variant}: {variant: 'primary' | 'secondary'}) {
  return <div className={styles({variant})} />
}

Boolean conditions starting with is or allows can be used directly without nesting:

const styles = style({
  backgroundColor: {
    default: 'gray-100',
    isSelected: 'gray-900',
    allowsRemoving: 'gray-400'
  }
});

<div className={styles({isSelected: true})} />

Note:

  • Base spacing values (for margin, gap, etc.): Use pixels following a 4px grid (0, 2, 4, 8, 12, 16...)

See Styling for the full guide and Style Macro for the full property and utility reference.

If you encounter issues related to the style macro import, see the 'Framework setup' section of the Getting started guide.

Typography

Avoid using Text/Heading/Content as standalone typography primitives. These should only be used inside specific React Spectrum components where they inherit the intended slots and default styles.

  • Use Text/Heading/Content inside components like cards, lists, pickers, menus, tabs, and other Spectrum composition APIs where slot="label", slot="description", or default/implicit Text slots are used. Component docs will have examples of these.
  • For standalone headings, body copy, captions, and other page-level typography, use native HTML elements plus the style macro.

Example:

import {style} from '@react-spectrum/s2/style' with {type: 'macro'};

<section>
  <h1 className={style({font: 'heading-xl', marginBottom: 8})}>
    Project overview
  </h1>
  <p className={style({font: 'body', color: 'neutral-subdued'})}>
    Review status, owners, and upcoming milestones.
  </p>
  <p className={style({font: 'body-sm', marginTop: 12})}>
    Last updated 2 hours ago
  </p>
</section>

See Style Macro for the available typography tokens and related text styling options.

Icons

Use React Spectrum's built-in icons and illustrations.

  • Import icons from @react-spectrum/s2/icons/...
  • Import illustrations from @react-spectrum/s2/illustrations/...
  • Avoid introducing third-party icon libraries such as lucide-react, phosphor-icons, or heroicons

Commonly used icons include AlertTriangle, Close, ChevronDown, Checkmark, Preview, CheckmarkCircle, Add, ChevronUp, Data, FileText, InfoCircle, OpenIn, Chat, and Code.

Example icon:

import AlertTriangle from '@react-spectrum/s2/icons/AlertTriangle';

<AlertTriangle />

Example illustrations:

import DropToUpload from '@react-spectrum/s2/illustrations/gradient/generic1/DropToUpload';

<DropToUpload />
  • Note that illustrations can be in a Gradient or Linear style.
  • Gradient illustrations can include Generic 1 and Generic 2 variants.

See Icons and Illustrations for the full catalogs and usage guidance.

Documentation Structure

The references/ directory contains detailed documentation organized as follows:

Guides

  • Component Decision Tree: How to choose the right S2 component when requirements do not name one explicitly.
  • Collections: Many components display a collection of items, and provide functionality such as keyboard navigation, and selection. Learn how to load and render collections using React Spectrum's compositional API.
  • Forms: Learn how to integrate with HTML forms, validate and submit data, and use React Spectrum with form libraries.
  • Getting started: ## Installation
  • Migrating to Spectrum 2: Learn how to migrate from React Spectrum v3 to Spectrum 2.
  • Selection: Many collection components support selecting items by clicking or tapping them, or by using the keyboard. Learn how to handle selection events, how to control selection programmatically, and the data structures used to represent a selection.
  • Style Macro: The macro supports a constrained set of values per property that conform to Spectrum 2.
  • Styling: Learn how to use the macro to apply Spectrum tokens directly in your components with type-safe autocompletion.
  • Testing: Learn how to test an application built with React Spectrum using test utilities to simulate common user interactions.
  • Working with AI: Learn how to use the React Spectrum MCP Server, Agent Skills, and more to help you build with AI.

Components

  • Accordion: An accordion is a container for multiple accordion items.
  • ActionBar: Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.
  • ActionButton: ActionButtons allow users to perform an action.
  • ActionButtonGroup: An ActionButtonGroup is a grouping of related ActionButtons.
  • ActionMenu: ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
  • Avatar: An avatar is a thumbnail representation of an entity, such as a user or an organization.
  • AvatarGroup: An avatar group is a grouping of avatars that are related to each other.
  • Badge: Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
  • Breadcrumbs: Breadcrumbs show hierarchy and navigational context for a user's location within an application.
  • Button: Buttons allow users to perform an action.
  • ButtonGroup: ButtonGroup handles overflow for a grouping of buttons whose actions are related to each other.
  • Calendar: Calendars display a grid of days in one or more months and allow users to select a single date.
  • Card: A Card summarizes an object that a user can select or navigate to.
  • CardView: A CardView displays a group of related objects, with support for selection and bulk actions.
  • Checkbox: Checkboxes allow users to select multiple items from a list of individual items,
  • CheckboxGroup: A CheckboxGroup allows users to select one or more items from a list of choices.
  • ColorArea: A ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
  • ColorField: A color field allows users to edit a hex color or individual color channel value.
  • ColorSlider: A ColorSlider allows users to adjust an individual channel of a color value.
  • ColorSwatch: A ColorSwatch displays a preview of a selected color.
  • ColorSwatchPicker: A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
  • ColorWheel: A ColorWheel allows users to adjust the hue of an HSL or HSB color value on a circular track.
  • ComboBox: ComboBox allow users to choose a single option from a collapsible list of options when space is limited.
  • ContextualHelp: Contextual help shows a user extra information about the state of an adjacent component, or a total view.
  • DateField: DateFields allow users to enter and edit date and time values using a keyboard.
  • DatePicker: DatePickers combine a DateField and a Calendar popover to allow users to enter or select a date and time value.
  • DateRangePicker: DateRangePickers combine two DateFields and a RangeCalendar popover to allow users
  • Dialog: Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.
  • Disclosure: A disclosure is a collapsible section of content. It is composed of a header with a heading and trigger button, and a panel that contains the content.
  • Divider: Dividers bring clarity to a layout by grouping and dividing content in close proximity.
  • DropZone: A drop zone is an area into which one or multiple objects can be dragged and dropped.
  • Form: Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
  • Icons: React Spectrum offers a set of open source icons that can be imported from.
  • IllustratedMessage: An IllustratedMessage displays an illustration and a message, usually
  • Illustrations: React Spectrum offers a collection of illustrations that can be imported from.
  • Image: An image with support for skeleton loading and custom error states.
  • InlineAlert: Inline alerts display a non-modal message associated with objects in a view.
  • Link: Links allow users to navigate to a different location.
  • LinkButton: A LinkButton combines the functionality of a link with the appearance of a button. Useful for allowing users to navigate to another page.
  • ListView: A ListView displays a list of interactive items, and allows a user to navigate, select, or perform an action.
  • mcp
  • Menu: Menus display a list of actions or options that a user can choose.
  • Meter: Meters are visual representations of a quantity or an achievement.
  • NumberField: NumberFields allow users to input number values with a keyboard or increment/decrement with step buttons.
  • Picker: Pickers allow users to choose a single option from a collapsible list of options when space is limited.
  • Popover: A popover is an overlay element positioned relative to a trigger.
  • ProgressBar: ProgressBars show the progression of a system operation: downloading, uploading, processing, etc., in a visual way.
  • ProgressCircle: ProgressCircles show the progression of a system operation such as downloading, uploading, or processing, in a visual way.
  • Provider: Provider is the container for all React Spectrum components.
  • RadioGroup: Radio groups allow users to select a single option from a list of mutually exclusive options.
  • RangeCalendar: RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.
  • RangeSlider: RangeSliders allow users to quickly select a subset range. They should be used when the upper and lower bounds to the range are invariable.
  • SearchField: A SearchField is a text field designed for searches.
  • SegmentedControl: A SegmentedControl is a mutually exclusive group of buttons used for view switching.
  • SelectBoxGroup: SelectBoxGroup allows users to select one or more options from a list.
  • Skeleton: A Skeleton wraps around content to render it as a placeholder.
  • Slider: Sliders allow users to quickly select a value within a range. They should be used when the upper and lower bounds to the range are invariable.
  • StatusLight: Status lights are used to color code categories and labels commonly found in data visualization.
  • Switch: Switches allow users to turn an individual option on or off.
  • TableView: Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
  • Tabs: Tabs organize content into multiple sections and allow users to navigate between them. The content under the set of tabs should be related and form a coherent unit.
  • TagGroup: Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.
  • TextArea: A textarea allows a user to input mult-line text.
  • TextField: TextFields are text inputs that allow users to input custom text entries
  • TimeField: TimeFields allow users to enter and edit time values using a keyboard.
  • Toast: A ToastContainer renders the queued toasts in an application. It should be placed
  • ToggleButton: ToggleButtons allow users to toggle a selection on or off, for example
  • ToggleButtonGroup: A ToggleButtonGroup is a grouping of related ToggleButtons, with single or multiple selection.
  • Tooltip: Display container for Tooltip content. Has a directional arrow dependent on its placement.
  • TreeView: A tree view provides users with a way to navigate nested hierarchical information.

Testing

平台分布

Local Agent

71.73%
按下载量换算2,353

安全审计

Socket

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills