Use before editing any file under the registry components or kits, or a component's drag, drop, handle menu or indicator UI. Implements Plate React component families, copied registry UI and kit wiring with exact browser proof.
80%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/plate-ui/SKILL.mdUse the shadcn skill for CLI, upstream docs, and generic shadcn/ui rules.
Use vercel-react-best-practices for selected implementation tactics.
docs/vision/plate.md (Plugin and component doctrine) owns Plate React and
component law: component shape, family topology, extraction boundaries,
cross-platform layering and React performance. This skill owns the method that
applies it: open-code preservation, the base/live kit split, registry wiring
and browser proof.
apps/www/src/registry/components/editor — provider-neutral copied editor
features, live/static components, and app-owned kit valuesapps/www/src/registry/bases/* — provider-specific source variants that
install over the same flat editor targetsapps/www/src/registry/registry-*.ts — registry metadata and dependenciespackages/* — upstream semantic owners; package edits route to
plate-pluginsOwnership follows the Routing table in AGENTS.md.
Continue here whenever a Plate package or registry task makes a React,
component, hook, provider, store, primitive, or composition decision. Package
implementation and proof still route to plate-plugins; plugin builders,
schema law, and application typing remain outside this skill.
editor-kit registry item also includes
it. Deliberate repetition can make copied code and feature ownership
transparent.registry-features.ts, registry-editor.ts, and
registry-examples.ts together.changeset's registry reference owns the schema, scaffold, generation and
verification. Do not duplicate the entry contract here.Use stable kebab-case data-slot for component identity and data-state for
interaction and visual state. Keep Tailwind v4 syntax canonical: slash opacity,
parenthesized CSS variables, suffix !, and canonical utilities.
vercel-react-best-practices provides selected implementation tactics. It
does not decide Plate public APIs, extraction, file ownership, or provider
visibility.
rerender-split-combined-hooks may justify splitting internal calculations
or effects. It never requires multiple public hooks or files.// Good: simple component owns its own renderer behavior directly.
function MediaImage(props: EditorElementProps<typeof ImagePlugin>) {
const selected = useSelected();
return <EditorElement {...props} data-selected={selected || undefined} />;
}
// Good: one reusable family controller coordinates complex siblings.
const tableResize = useTableResizeController();
// Good: host-owned app code outside copied registry UI uses its inferred editor.
const api = editor.api.comments;
// Good: copied suggestion UI calls the descriptor that owns the view.
const authored = editor.plugin(AuthoredPlugin);
authored.api.setView({ intent: 'propose' });
// Good: feature-owned cross-feature integration checks the optional portal.
const optionalComments = editor.plugin(CommentsPlugin);
if (optionalComments.installed) {
optionalComments.api.setActive([threadId]);
}
// Good: package core owns commands/state, platform UI composes locally.
const canToggleBold = bridgeState.canToggleBold;
const onPress = () => editor.plugin(BoldPlugin).update.toggle();
return <Button disabled={!canToggleBold} onClick={onPress}>Bold</Button>;
// Good: base/live split stays explicit.
export const BaseFootnoteKit = [
BaseFootnoteReferencePlugin.configure({
component: FootnoteReferenceElementStatic,
}),
BaseFootnoteDefinitionPlugin.configure({
component: FootnoteDefinitionElementStatic,
}),
];
export const FootnoteKit = [
FootnoteReferencePlugin.configure({
component: FootnoteReferenceElement,
slots: { afterEditable: FootnoteCombobox },
}),
FootnoteDefinitionPlugin.configure({ component: FootnoteDefinitionElement }),
];
// Good: runtime-neutral policy is shared by both editor presets.
export const MarkdownKit = [
MarkdownPlugin.configure({ initialState: { remarkPlugins: [remarkGfm] } }),
];
// Bad: package hook exists only to feed one shadcn component's local UI.
const state = useSingleComponentOnlyState();
return <Popover open={state.open}>...</Popover>;
// Bad: React-only package hook that mainly returns renderer glue.
const { dialogTitle, menuItems, onOpenChange, popoverOpen } =
useToolbarMenuState();shadcn skill. Run the normal shadcn docs/search workflow first.apps/www/src/registry/components/editor, the applicable
apps/www/src/registry/bases/* variant, and the relevant packages/*.docs/vision/plate.md).use<Family> only for a real semantic controllerPick aliases, callback return
annotations, and casts that replace package ownership or contextual
inference. Fix the canonical package contract instead of preserving a local
adapter.udecode/plate
e94b0d1
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.