Command Palette

Search for a command to run...

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

oxygen-layout

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

Generate application layouts with AppShell, Header, and Sidebar. Use when creating app shells, navigation structures, or dashboard layouts.

wso2от wso2★ 67 звёзд на GitHub

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

Generate Oxygen UI Layout

Instructions

  1. Read .claude/oxygen-ui/patterns.md for layout patterns
  2. Use AppShell as the main wrapper
  3. Configure Header with navigation
  4. Set up Sidebar with menu items

Critical Rules

  • Always use OxygenUIThemeProvider at the root
  • Use compound component pattern for AppShell, Header, Sidebar
  • Import icons from @wso2/oxygen-ui-icons-react
  • Use theme tokens for all styling
  • Set a browser tab title on every page using [Specific page/resource] | [Product] (see below)
  • Write all UI text in sentence case (see below)
  • Group sidebar items with section titles and collapsible groups (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.

✓ User management    ✓ API keys    ✓ Sign out
✗ User Management    ✗ API Keys    ✗ SIGN OUT
  • Applies to page titles, headings, navigation items, sidebar categories, header actions, and menu items
  • Write the text in sentence case in the source; never change case with textTransform: 'uppercase' or 'capitalize'

Browser Tab Title

Every page must set a browser tab title in this format, so users can tell tabs, bookmarks, and history entries apart. Render a React 19 <title> element in the page component rather than assigning document.title:

[Specific page/resource] | [Product]

Examples:

All projects | Acme Console
Environments | Acme Console
  • Put the specific page or resource first and the product name last
  • Separate them with | (space, pipe, space)
  • Use the same product name on every page
  • On the product home or landing page, use the product name only: Acme Console
  • For nested resources, go from most to least specific: Environments | Payments API | Acme Console
  • For dynamic names, use the resource name once it loads; until then show the page type (Project | Acme Console), never Loading...
  • On error pages, name the error: Page Not Found | Acme Console
function ProjectsPage() {
  return (
    <>
      <title>All projects | Acme Console</title>
      {/* page content */}
    </>
  );
}

Side Panel Navigation

Group sidebar items with section titles and collapsible groups. Titles keep the main areas visible; collapsible groups keep the panel short as items grow.

Section title       Main areas users need to see at a glance      Sidebar.CategoryLabel
Collapsible group   Secondary items, or a parent with sub-pages    Sidebar.Item with nested Sidebar.Item children

If users visit an item often, put it under a title. Otherwise, put it in a collapsible group.

Section titles:

  • Keep titles short and clear; they are labels only, never clickable
  • Limit the number of titled sections; don't give every group a title

Collapsible groups:

  • The parent only opens and closes the group; never give it a page or a link
  • Expand the group that contains the active page by default
  • Remember each user's open and closed groups (Sidebar does not store this; see below)
  • One level of nesting only; never put a collapsible group inside another
  • Give child items icons that differ from the parent's icon

General:

  • Put Settings, Notifications, and Help in Sidebar.Footer, outside the scrolling Sidebar.Nav
  • To let users collapse the sidebar from the bottom, put <Sidebar.CollapseToggle /> last in Sidebar.Footer; it uses the AppShell toggleSidebar action, or pass onToggle
  • Add a menu search when the panel has many items
  • Don't mix the rules: titles never toggle, collapsible parents never navigate
const storageKey = `side-panel-groups:${userId}`;

const [expandedMenus, setExpandedMenus] = useState<Record<string, boolean>>({});

// Load the user's saved groups on the client, after mount (safe for SSR).
useEffect(() => {
  try {
    const saved = JSON.parse(localStorage.getItem(storageKey) ?? '{}');
    setExpandedMenus((prev) => ({ ...saved, ...prev }));
  } catch {
    // Storage is unavailable or the saved value is invalid.
  }
}, [storageKey]);

// Open the group that contains the active page whenever it changes.
useEffect(() => {
  if (activeGroupId) {
    setExpandedMenus((prev) => ({ ...prev, [activeGroupId]: true }));
  }
}, [activeGroupId]);

const toggleExpand = (id: string) => {
  setExpandedMenus((prev) => {
    const next = { ...prev, [id]: !prev[id] };
    try {
      localStorage.setItem(storageKey, JSON.stringify(next));
    } catch {
      // Storage is unavailable.
    }
    return next;
  });
};

<Sidebar
  collapsed={collapsed}
  activeItem={activeItem}
  expandedMenus={expandedMenus}
  onSelect={setActiveItem}
  onToggleExpand={toggleExpand}
>
  <Sidebar.Nav>
    <Sidebar.Category>
      <Sidebar.Item id="home">
        <Sidebar.ItemIcon><Home size={20} /></Sidebar.ItemIcon>
        <Sidebar.ItemLabel>Home</Sidebar.ItemLabel>
      </Sidebar.Item>
    </Sidebar.Category>

    <Sidebar.Category>
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Generate application layouts with AppShell, Header, and Sidebar. Use when creating app shells, navigation structures, or dashboard layouts.

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

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

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

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

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

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