Creates polished, accessible Strapi v5 plugin admin interfaces using the Strapi Design System v2. Guides building settings pages, tables, forms, modals, and dashboards with consistent visual language.
Ships in strapi-ui-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill guides creation of production-grade Strapi v5 plugin interfaces using the Strapi Design System v2 exclusively. Implement real working code with exceptional attention to consistency, accessibility, and Strapi's visual language.
The user provides admin interface requirements: a settings page, data table, form, modal, dashboard, or custom panel. They may include context about the plugin's purpose and user workflow.
You have access to Context7 for verifying component APIs and patterns against the latest Strapi Design System documentation.
When to query Context7:
Pre-resolved library IDs (skip resolve-library-id for these):
/strapi/design-system — Strapi Design System v2 component docs/strapi/documentation — Official Strapi v5 docs (for admin hooks like useFetchClient, useNotification, Layouts, Page)Example queries:
query-docs("/strapi/design-system", "Table component props columns rows") — verify Table APIquery-docs("/strapi/design-system", "Field compound component Label Hint Error") — check Field patternquery-docs("/strapi/design-system", "Modal Root Content Header Body Footer") — verify Modal slotsquery-docs("/strapi/documentation", "admin panel useFetchClient useNotification hooks") — check admin hooksImportant: The patterns in this skill's patterns.md and examples.md are your primary reference. Use Context7 to supplement and verify, not as a first resort — it adds latency. Prefer the bundled patterns for common operations.
For the exact API of an individual component (props, compound sub-components, gotchas, and the symbols that no longer exist in v2), consult component-catalog.md — a reference derived directly from the @strapi/design-system v2.2.1 source. Reach for it before Context7 when you just need to confirm a prop name or which sub-components a compound exposes.
Before coding, understand the context and commit to a CONSISTENT Strapi experience:
CRITICAL: Strapi admin interfaces must feel native to Strapi. Users should not notice they're using a plugin - it should feel like a core feature. Consistency over creativity.
Then implement working code (React + TypeScript) that is:
@strapi/design-system componentsFull per-component API reference: component-catalog.md.
Layout & Structure:
Main - Page wrapper with proper paddingBox - Flexible container with spacing propsFlex - Flexbox containerGrid.Root / Grid.Item - CSS Grid layoutsDivider - Visual separatorCard - Elevated content containerPage Shell (from @strapi/strapi/admin):
Page.Main - Top-level admin page wrapper (includes loading/error boundary)Page.Title - Sets document title (preferred over <title>)Page.Error - Renders the admin-standard error pagePage.NoPermissions - Renders the admin-standard "no access" pagePage.Loading - Renders the admin-standard loading statePage.Protect - Permission gate, pair with useRBAC()Layouts (from @strapi/strapi/admin):
Layouts.Root - Main layout wrapperLayouts.Header - Page header with title/subtitle/actionsLayouts.Content - Main content area with proper paddingLayouts.Action - Action buttons slot in the headerPrefer Page.Main + Layouts.* over hand-rolled <Main> + <Box> wrappers — they ensure consistency with Strapi's core pages.
Typography:
Typography - Text with variant prop (alpha, beta, omega, pi, sigma, epsilon, delta)variant="alpha" for page titlesvariant="beta" for section headerscurrentColorForms & Inputs:
Field - Wrapper for form controls (provides label, hint, error)TextInput - Single-line textTextarea - Multi-line textNumberInput - Numeric valuesDatePicker / TimePicker / DateTimePicker - Date/time selectionSelect - Single selection dropdownCombobox - Searchable dropdownCheckbox / Radio - Boolean/choice inputsToggle / Switch - On/off togglesJSONInput - JSON editingButtons & Actions:
Button - Primary actions (variant: default, secondary, tertiary, danger, success)IconButton - Icon-only actionsTextButton - Text link-style buttonLinkButton - Button that navigatesFeedback & Status:
Alert - Contextual messages (variant: default, success, warning, danger)Badge - Status indicatorsStatus - Inline status with iconLoader - Loading spinnerProgressBar - Progress indicationNavigation:
Tabs - Tabbed navigationSubNav - Secondary navigationBreadcrumbs - Location hierarchyLink / BaseLink - Navigation linksPagination - Page navigationOverlays & Dialogs:
Modal - Dialog windows (Root, Content, Header, Body, Footer)Dialog - Confirmation dialogsPopover - Floating contentTooltip - Hover hintsData Display:
Table / Thead / Tbody / Tr / Td / Th - Data tablesRawTable - Unstyled table baseAccordion - Collapsible sectionsAvatar - User/entity imagesTag - Categorical labelsEmptyStateLayout - No-data statesMenu & Selection:
SimpleMenu - Dropdown menusSearchbar - Search input with iconAlways use root imports:
// CORRECT
import {
Button,
TextInput,
Typography,
Box,
Field,
Modal,
} from '@strapi/design-system';
import { Plus, Pencil, Trash } from '@strapi/icons';
// WRONG - Never use path imports
import { Button } from '@strapi/design-system/Button';
import { DesignSystemProvider } from '@strapi/design-system';
// Already provided by Strapi admin - don't wrap again in plugins
Base font-size is 62.5% (10px), so 1rem = 10px:
<Box padding={8}> {/* 80px padding */}
<Box paddingTop={4}> {/* 40px padding-top */}
<Flex gap={2}> {/* 20px gap */}
Common spacing values: 1, 2, 3, 4, 5, 6, 7, 8, 10 (multiply by 10 for px)
<Field.Root name="title" error={errors.title}>
<Field.Label>Title</Field.Label>
<TextInput
value={value}
onChange={(e) => setValue(e.target.value)}
/>
<Field.Hint>Enter a descriptive title</Field.Hint>
<Field.Error />
</Field.Root>
Always use React Query with Strapi's useFetchClient:
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
import { useFetchClient, useNotification, useAPIErrorHandler } from '@strapi/strapi/admin';
const { get, post, put, del } = useFetchClient();
const { toggleNotification } = useNotification();
const { formatAPIError } = useAPIErrorHandler();
Use useRBAC() for admin-side permission checks. Wrap protected routes with Page.Protect:
import { useRBAC, Page } from '@strapi/strapi/admin';
const { allowedActions: { canRead, canUpdate } } = useRBAC({
read: [{ action: 'plugin::my-plugin.read', subject: null }],
update: [{ action: 'plugin::my-plugin.update', subject: null }],
});
| Anti-Pattern | Correct Approach |
|---|---|
| Custom styled-components | Use Box, Flex, Grid with props |
Inline styles (style={{...}}) | Use spacing/color props |
| Custom colors / hex codes | Use theme colors via props |
| Native HTML buttons | Use Button, IconButton, TextButton |
| Native HTML inputs | Use TextInput, Select, Checkbox |
| Custom modals | Use Modal.Root + Modal.Content + Modal.Header + Modal.Body + Modal.Footer |
ModalLayout / ModalHeader / ModalBody / ModalFooter | REMOVED in DS v2 (absent from v2.2.1 source) — use Modal.Root/Content/Header/Title/Body/Footer |
Layouts / Page from @strapi/design-system | Import from @strapi/strapi/admin — the DS does not export them |
Tooltip description prop | Deprecated — use label |
Th action prop | Deprecated — pass as children |
NumberInput onChange | Use onValueChange(value: number | undefined) |
alert() or console.* for UX | Use useNotification() hook |
window.confirm | Use Dialog component |
| Custom loading spinners | Use Loader component |
| Hardcoded spacing | Use spacing scale (1–10) |
Raw Badge with backgroundColor/textColor | Prefer Status for semantic status (success/danger/warning), use Badge only for non-semantic tags |
Hand-rolled <Main> + page header | Use Page.Main + Layouts.Header + Layouts.Content |
import { Main, Box, Typography, Button, Flex } from '@strapi/design-system';
import { Plus } from '@strapi/icons';
const MyPluginPage = () => {
return (
<Main>
{/* Header */}
<Box paddingLeft={10} paddingRight={10} paddingTop={8} paddingBottom={6}>
<Flex justifyContent="space-between" alignItems="center">
<Typography variant="alpha">Page Title</Typography>
<Button startIcon={<Plus />}>Add New</Button>
</Flex>
</Box>
{/* Content */}
<Box paddingLeft={10} paddingRight={10}>
{/* Your content here */}
</Box>
</Main>
);
};
variant="alpha" Typographyvariant="beta" TypographyButton (default variant)Button variant="secondary"Button variant="danger"paddingLeft={10} paddingRight={10} for main contentmarginBottom={6} between sectionspadding={6} inside cardsgap={4} between form fieldsIconButton with TooltipField.Label for all form inputsField.Hint for complex inputsaria-label on IconButton componentsStatus component for dynamic status changesLiveRegionsRemember: The goal is seamless integration with Strapi's admin experience. A well-designed plugin interface is invisible - it just works exactly as users expect.
For detailed component patterns, see patterns.md. For complete interface examples, see examples.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/strapi-ui-design:strapi-ui-designfrom strapi-ui-design
npx claudepluginhub opkod-france/opkod-claude-code-plugins --plugin strapi-ui-designOther plugins' skills for the same job