Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

oxygen-component

БесплатноБез исполняемых скриптовНе проверен

Generate Oxygen UI React components following best practices. Use when creating new components, data tables, cards, or UI elements with the Oxygen UI library.

wso2от wso2★ 67 звёзд на GitHub15 установок в других каталогах

Об этом скилле

Generate Oxygen UI Component

Instructions

  1. Read .claude/oxygen-ui/CLAUDE.md for critical rules
  2. Read .claude/oxygen-ui/components.md for API reference
  3. Generate component using Oxygen UI patterns

Critical Rules

  • Import ALL components from @wso2/oxygen-ui (never from @mui/material)
  • Import icons from @wso2/oxygen-ui-icons-react
  • Use theme tokens via sx prop (e.g., p: 2, bgcolor: 'background.paper')
  • Never hardcode colors or spacing values
  • For data tables, prefer ListingTable over MUI's Table
  • For layouts, use AppShell, Header, Sidebar
  • Write all UI text in sentence case (see below)

UI Text

Write all titles, action text, and content in sentence case. Capitalize only the first word, proper nouns, product names, and acronyms.

✓ Create project    ✓ API keys    ✓ Last modified
✗ Create Project    ✗ API Keys    ✗ LAST MODIFIED
  • Applies to titles, headings, buttons, links, menu items, tabs, labels, placeholders, table columns, tooltips, and messages
  • Write the text in sentence case in the source; never change case with textTransform: 'uppercase' or 'capitalize'

Choosing a Table

Pick the table type by what users do with the data:

Type Use when Setup
Listing table (default) Scanning and comparing records across columns; tables inside a page section, panel, or dialog <ListingTable variant="table">
Card table Top level listing of entities users click to open (projects, components); rich rows with few columns <ListingTable variant="card">, disablePaper on Container, variant="card" hover clickable on each Row
Data table Large or server-paginated data; column filtering, resizing, hiding, reordering; bulk selection <ListingTable.DataGrid> inside ListingTable.Provider (variant="data-grid-card" on the Provider only for entity listings)
  • Default to the listing table when unsure
  • Do not nest a card table inside a card, dialog, or drawer
  • Do not use striped or bordered with the card variant
  • Use one table type for the same kind of data across the product

Table Toolbar

Every data table toolbar uses the same element order. Leave out elements a table doesn't need; never reorder the rest, except search and filters:

[Scope] [Search] [Filters] ······ [View toggles] [Utility icons] [Secondary]
[Applied filter chips] [Clear all]

Search and filters swap by page context. Put whichever users rely on more first, right after scope:

  • Search first when users look up a specific item by name (users, resources)

  • Filters first when users narrow by an attribute (logs by level, events by type)

  • Scope always stays first; use the same order for the same kind of page across the product

  • If the page's purpose doesn't make the choice clear, default to search first

  • Scope control (time range, workspace, region) comes first; its label shows the value (Time: Last 24 hours); at most one per table; never shown as a chip

  • Search is always visible; placeholder names what is searched (Search by name, Search events)

  • Prefer column header filters; use toolbar filters only when no column matches; a filter lives in one place only; max 3 toolbar filters, the rest under More filters

  • Right side order: view toggles (segmented control), utility icon buttons (export, column settings, refresh; refresh last), then secondary actions (outlined or text, more than 2 go to an overflow menu)

  • The primary action (Add user) is not in the toolbar; put it in PageTitle.Actions at the top right of the page header, vertically centered with the title block (header and subheader)

  • Applied filters show as Label: value chips in a row below the toolbar; show Clear all at 2+ chips (clears filters only, not scope or search); hide the row when empty

  • Put the result count in the footer next to pagination (1–25 of 120, or 25 events loaded without pagination), never in the toolbar

  • When rows are selected, a bulk actions bar replaces the toolbar: count and Select all on the left, actions on the right with destructive ones last and confirmed

  • On narrow screens collapse in order: secondary actions, toolbar filters (into Filters · 2), view toggles and utility icons (refresh stays); scope and search never collapse

  • Icon buttons always have a Tooltip and an aria-label

  • Use one date format across tables (28 Oct 2026, 04:29 UTC) and always show the time zone

import { Button, IconButton, ListingTable, TextField, Tooltip, useListingTableRequired } from '@wso2/oxygen-ui';
import { ChevronDown, RefreshCw } from '@wso2/oxygen-ui-icons-react';

// Render inside ListingTable.Provider so search reaches the table
function UsersToolbar() {
  const { searchValue, onSearchChange } = useListingTableRequired();

  return (
    <ListingTable.Toolbar
      actions={
        <>
          <Tooltip title="Refresh">
            <IconButton size="small" aria-label="Refresh"><Refre
Полный SKILL.md на GitHub

Установить oxygen-component в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл oxygen-component?

Generate Oxygen UI React components following best practices. Use when creating new components, data tables, cards, or UI elements with the Oxygen UI library.

Как установить скилл oxygen-component?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл oxygen-component запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить oxygen-component с