/duskmoon-ui:cmd-check-phoenix-duskmoon-designfrom duskmoon-ui
Audit a Phoenix project for compliance with the DuskMoon design system
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read phoenix-duskmoon-design skill first to understand all design rules, then audit this project for compliance. Report every violation with file path, line number, the offending code, and the correct fix.
Search .ex, .exs, .heex, .css, .js files for:
#[0-9a-fA-F]{3,8}rgb(, rgba(, hsl(, hsla( (skip if inside var(--)color: white, background: black, etc.bg-blue-500, text-red-600, border-gray-300, etc.Exclude: comments, test files, .claude/ skill reference files, mix.exs version strings, SVG fill/stroke using currentColor.
@plugin "@duskmoon-dev/core/plugin" and @import "phoenix_duskmoon/components"data-theme= on <html> element<body> has bg-surface text-on-surface or equivalentFind all <.dm_appbar and raw appbar HTML. Verify primary color convention:
appbar-primary classappbar appbar-primary appbar-stickyFlag if appbar uses default surface or any other color.
Find all <aside>, <.dm_left_menu>, <.dm_drawer>, and sidebar containers. Verify they use secondary color:
bg-secondary text-secondary-contentbg-surface-container or any surface token instead of secondarySearch for background color classes without their paired text color:
bg-primary without text-primary-contentbg-secondary without text-secondary-contentbg-tertiary without text-tertiary-contentbg-error without text-error-contentbg-inverse-surface without text-inverse-on-surfacebg-primary-container without text-on-primary-containerFlag as warnings (text may inherit from parent).
Check for nesting violations — higher-elevation surface containing lower:
surface-container-highest wrapping surface-container-lowsurface-container-high wrapping plain surfaceFlag variant="success" or variant="info" on dm_btn — buttons use primary/secondary/tertiary/error/ghost/outline, not semantic state colors.
In each .heex template, count variant="primary" on dm_btn. Flag if more than one appears outside conditional blocks.
Flag <button>, <input>, <select>, <table> in .heex files where a dm_* equivalent exists. Exclude lib/phoenix_duskmoon/ (component definitions) and type="hidden".
Flag dm_mdi or dm_bsi with explicit color= set to anything other than "currentcolor".
Flag any Tailwind default color scale usage: bg-blue-*, text-slate-*, border-zinc-*, etc.
--font-display, --font-body, --font-mono) in CSS<body> uses font-family: system-ui or Inter or Roboto without a project-specific override<main> or primary content area uses bg-surfacebg-secondary text-secondary-contentbg-secondary text-secondary-contentIn each .heex template, check gap/padding classes. Flag if a single template mixes more than 2 gap scales (e.g., gap-2, gap-4, gap-8 in the same view suggests inconsistency).
Check project CSS for @media (prefers-reduced-motion: reduce) rule. Flag as warning if absent and animations/transitions are used.
Phoenix DuskMoon Design Compliance
====================================
[✓|✗] Hardcoded colors: N violations
[✓|✗] Theme setup: OK | missing X
[✓|✗] Appbar color: primary | wrong default
[✓|✗] Sidebar/drawer color: secondary | wrong default
[✓|⚠] BG-text pairing: N warnings
[✓|✗] Surface elevation: OK | N violations
[✓|✗] Semantic color misuse: N violations
[✓|⚠] Multiple primary btns: N warnings
[✓|✗] Raw HTML over components: N instances
[✓|⚠] Icon color override: N warnings
[✓|✗] Tailwind color scale: N violations
[✓|⚠] Typography: OK | N warnings
[✓|⚠] Layout depth: OK | N warnings
[✓|⚠] Spacing consistency: OK | N warnings
[✓|⚠] Reduced motion: OK | missing
Total: N errors, N warnings
List each violation grouped by check with file:line, code snippet, and suggested fix.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/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