oxygen-layout
БесплатноБез исполняемых скриптовНе проверенGenerate application layouts with AppShell, Header, and Sidebar. Use when creating app shells, navigation structures, or dashboard layouts.
от wso2★ 67 звёзд на GitHubОб этом скилле
Generate Oxygen UI Layout
Instructions
- Read
.claude/oxygen-ui/patterns.mdfor layout patterns - Use
AppShellas the main wrapper - Configure
Headerwith navigation - Set up
Sidebarwith menu items
Critical Rules
- Always use
OxygenUIThemeProviderat 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), neverLoading... - 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 (
Sidebardoes 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 scrollingSidebar.Nav - To let users collapse the sidebar from the bottom, put
<Sidebar.CollapseToggle />last inSidebar.Footer; it uses the AppShelltoggleSidebaraction, or passonToggle - 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>
Установить 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), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic