gsmlg-dev/code-agent/duskmoon-components

Claude Code and agent skill by gsmlg-dev/code-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install gsmlg-dev/code-agent/duskmoon-components

SKILL.md

DuskMoon Components Usage

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.

Install

bash
bun add @duskmoon-dev/components @duskmoon-dev/core react react-dom

Import the stylesheet once at the app root:

tsx
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.

Import Pattern

Prefer subpath imports for feature code:

tsx
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:

tsx
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-picker

Common Component Examples

Button:

tsx
import { Button } from "@duskmoon-dev/components/button";
export function SaveButton() {
return (
<Button color="primary" appearance="filled" size="md">
Save
</Button>
);
}

Input:

tsx
import { Input } from "@duskmoon-dev/components/input";
export function SearchField() {
return (
<Input.Search
allowClear
placeholder="Search records"
onSearch={(value) => console.log(value)}
/>
);
}

DmTable:

tsx
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 }}
/>
);
}

What To Reach For

  • Use standard components for generic UI: Button, Input, Form, Table,

Modal, Select, Tabs, Typography, and similar unprefixed exports.

  • Use Dm* workflow components for DuskMoon application patterns:

DmLayout, DmMenu, DmSearch, DmTable, DmProTable, DmToolbar, DmQuery, and related composite components.

  • Use infrastructure exports for compatibility helpers: theme, version,

unstableSetRender, getDmTheme, setDmPrimaryColor, setDmPrefixCls, and usePersistedPageSize.

Guidance For Agents

  • Keep examples small and directly runnable.
  • Include the stylesheet import when showing first-time setup.
  • Prefer package exports over private file paths.
  • Preserve DuskMoon names exactly: DmTable, DmLayout,

setDmPrimaryColor, @duskmoon-dev/components/styles.css.

  • Use React props shown by the package types; do not invent Ant Design-only

props unless they exist in this package.

  • If the user is editing this repo's source rather than consuming the package,

inspect packages/components/src/components, packages/components/src/index.ts, and packages/components/package.json before changing code.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gsmlg-dev/code-agent/duskmoon-components/badge)](https://verified-skill.com/skills/gsmlg-dev/code-agent/duskmoon-components)

Something wrong with this skill or its page? Tell us.