/duskmoon-ui:duskmoon-componentsfrom duskmoon-ui
Use this skill whenever building a React or Next.js UI with @duskmoon-dev/components, choosing DuskMoon React imports, wiring package styles, using standard components such as Button/Table/Form/Input, using Dm workflow components, or explaining how consumers should install and use the package. This skill is for package consumption, not for editing the package source.
Ships in duskmoon-ui. 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.
None: SKILL.md is the whole skill.
Use @duskmoon-dev/components as the React component package for DuskMoon UI.
It targets React 19 and depends on DuskMoon Core CSS through
@duskmoon-dev/core.
bun add @duskmoon-dev/components @duskmoon-dev/core react react-dom
Import the stylesheet once at the app root:
import "@duskmoon-dev/components/styles.css";
For Next.js App Router, put the style import in app/layout.tsx or the root
client entry. Do not import files from dist/ directly.
Prefer subpath imports for feature code:
import { Button } from "@duskmoon-dev/components/button";
import { Input } from "@duskmoon-dev/components/input";
import { Table } from "@duskmoon-dev/components/table";
Root imports are valid when using several components or infrastructure helpers:
import { Button, DmTable, theme, version } from "@duskmoon-dev/components";
Other stable package subpaths include:
@duskmoon-dev/components/theme@duskmoon-dev/components/classes@duskmoon-dev/components/utils@duskmoon-dev/components/{component-id}, for example
@duskmoon-dev/components/date-pickerButton:
import { Button } from "@duskmoon-dev/components/button";
export function SaveButton() {
return (
<Button color="primary" appearance="filled" size="md">
Save
</Button>
);
}
Input:
import { Input } from "@duskmoon-dev/components/input";
export function SearchField() {
return (
<Input.Search
allowClear
placeholder="Search records"
onSearch={(value) => console.log(value)}
/>
);
}
DmTable:
import { DmTable } from "@duskmoon-dev/components/dm-table";
import type { DmTableColumnsType } from "@duskmoon-dev/components/dm-table";
type User = { id: string; name: string; status: string };
const columns: DmTableColumnsType<User> = [
{ key: "name", dataIndex: "name", title: "Name", search: { type: "input" } },
{ key: "status", dataIndex: "status", title: "Status" },
];
export function UsersTable({ dataSource }: { dataSource: User[] }) {
return (
<DmTable
name="Users"
rowKey="id"
columns={columns}
dataSource={dataSource}
pagination={{ current: 1, pageSize: 10, total: dataSource.length }}
/>
);
}
Button, Input, Form, Table,
Modal, Select, Tabs, Typography, and similar unprefixed exports.Dm* workflow components for DuskMoon application patterns:
DmLayout, DmMenu, DmSearch, DmTable, DmProTable, DmToolbar,
DmQuery, and related composite components.theme, version,
unstableSetRender, getDmTheme, setDmPrimaryColor,
setDmPrefixCls, and usePersistedPageSize.DmTable, DmLayout,
setDmPrimaryColor, @duskmoon-dev/components/styles.css.packages/components/src/components, packages/components/src/index.ts,
and packages/components/package.json before changing code.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/cmd-check-phoenix-duskmoon-designAudit a Phoenix project for compliance with the DuskMoon design system/duskmoon-art-componentsUse this skill whenever adding CSS art illustrations to a React or Next.js app with @duskmoon-dev/art-components, choosing Art* wrapper components, wiring @duskmoon-dev/css-art styles, configuring art variants, or explaining how consumers should install and use the package. This skill is for package consumption, not for editing the package source.
/duskmoon-art-elementsUse the DuskMoon CSS Art Elements (`<el-dm-art-*>` web components). Use when adding pure CSS art animations to web pages — atom, moon, sun, plasma-ball, gemini-input, synthwave-starfield, and more. Covers all 15 CSS art packages, registration patterns, size variants, and the @layer stripping technique required for Shadow DOM compatibility.npx claudepluginhub gsmlg-dev/code-agent --plugin duskmoon-ui