Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

cmd-setup-phoenix-duskmoonCMD 设置 Phoenix duskmoon

Agent Skill

cmd-setup-phoenix-duskmoon 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

公开资料未说明

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cmd-setup-phoenix-duskmoon(CMD 设置 Phoenix duskmoon)
来源仓库:https://github.com/gsmlg-dev/code-agent
仓库路径:skills/cmd-setup-phoenix-duskmoon
安装命令:
npx skills add https://github.com/gsmlg-dev/code-agent --skill cmd-setup-phoenix-duskmoon
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gsmlg-dev/code-agent --skill cmd-setup-phoenix-duskmoon

简介

在 Phoenix 项目中搭建 DuskMoon UI 系统。

  • 更新 CLAUDE.md 添加 UI 库规范,集成核心组件包。
  • 配置样式规则与全局变量,建立统一视觉语言。
  • 依赖多个子技能协同完成,需确认项目根目录结构。
  • cmd-setup-phoenix-duskmoon 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/setup-phoenix-duskmoon

Agent skill wrapper for the Claude command /setup-phoenix-duskmoon.

When the original command text references {{INPUT}}, $1, or named arguments, map them from the user's current request.

Command Instructions

Set up the DuskMoon UI system in the current Phoenix project. Use the skills duskmoon-dev-core, duskmoon-dev-css-art, duskmoon-elements, and phoenix-duskmoon-ui as needed throughout these tasks.

Tasks

1. Update CLAUDE.md with UI constitution

Add or update a ## UI Library section in ./CLAUDE.md with the following constitution:

## UI Library

This project uses the DuskMoon UI system:

- **`phoenix_duskmoon`** — Phoenix LiveView UI component library (primary web UI)
- **`@duskmoon-dev/core`** — Core Tailwind CSS plugin and utilities
- **`@duskmoon-dev/css-art`** — CSS art utilities
- **`@duskmoon-dev/elements`** — Base web components
- **`@duskmoon-dev/art-elements`** — Art/decorative web components

Do NOT use DaisyUI or other CSS component libraries. Do NOT use `core_components.ex` — use `phoenix_duskmoon` components instead.
Use `@duskmoon-dev/core/plugin` as the Tailwind CSS plugin.

### Reporting issues or feature requests

If you encounter missing features, bugs, or need functionality not yet available in any DuskMoon package, open a GitHub issue in the appropriate repository with the label `internal request`:

- **`phoenix_duskmoon`** — https://github.com/gsmlg-dev/phoenix_duskmoon/issues
- **`@duskmoon-dev/core`** — https://github.com/gsmlg-dev/duskmoon-dev/issues
- **`@duskmoon-dev/css-art`** — https://github.com/gsmlg-dev/duskmoon-dev/issues
- **`@duskmoon-dev/elements`** — https://github.com/gsmlg-dev/duskmoon-dev/issues
- **`@duskmoon-dev/art-elements`** — https://github.com/gsmlg-dev/duskmoon-dev/issues

If ./CLAUDE.md does not exist, create it with this section.

2. Update CSS to Tailwind CSS v4 with DuskMoon

  • Upgrade to Tailwind CSS v4 (remove v3 config if present)
  • Remove DaisyUI from all config and dependencies if present
  • Set @duskmoon-dev/core/plugin as the primary Tailwind CSS plugin
  • Update the main CSS entry file to use Tailwind v4 @import "tailwindcss" syntax and import @duskmoon-dev/core/plugin
  • Remove any tailwind.config.js / tailwind.config.ts (v3 config files); v4 is configured via CSS

3. Replace core_components.ex with phoenix_duskmoon

  • Add phoenix_duskmoon to mix.exs dependencies if not already present
  • If core_components.ex exists anywhere in the project:

- Identify all callers of functions it exports - Replace those calls with equivalent phoenix_duskmoon components (use the phoenix-duskmoon-ui skill to map the equivalents) - Delete core_components.ex after migrating all references

  • Add import PhoenixDuskmoon.Components (or the appropriate import) to the web module helpers so components are available everywhere
  • If you find components or patterns that phoenix_duskmoon does not yet support, open a GitHub issue at https://github.com/gsmlg-dev/phoenix_duskmoon/issues with the label internal request describing the needed component

4. Add bunfig.toml

Check if bunfig.toml exists at the project root.

  • If the project is an umbrella (has apps/ directory), add: [install] optional = true [workspaces] packages = ["apps/*"]
  • If the project is a standard Phoenix project, add a minimal bunfig.toml: [install] optional = true

5. Add root package.json if missing

Check if package.json exists at the project root.

  • If the project is an umbrella, add a workspace-aware root package.json: {"private": true, "workspaces": ["apps/*"]}
  • If it is a standard Phoenix project and package.json is missing at the root (assets may have one under assets/), add one at the project root pointing to the assets workspace or leave it minimal as needed for bun to resolve packages.

6. Switch JS bundler from esbuild to bun + tailwind standalone CLI

In mix.exs deps, replace {:esbuild,...} with:

{:bun, "~> 1.4", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},

In config/config.exs, replace the config:esbuild block with (use the actual app name, not my_app):

config :bun,
  version: "1.3.4",
  my_app: [
    args: ~w(build assets/js/app.js --outdir=priv/static/assets --external /fonts/* --external /images/*),
    cd: Path.expand("../", __DIR__)
  ]

config :tailwind,
  version: "4.1.11",
  my_app: [
    args: ~w(--input=assets/css/app.css --output=priv/static/assets/app.css),
    cd: Path.expand("../", __DIR__)
  ]

For umbrella apps, use Path.expand("../apps/my_app", __DIR__) for cd:.

In config/dev.exs, replace the esbuild watcher with:

watchers: [
  tailwind: {Tailwind, :install_and_run, [:my_app, ~w(--watch)]},
  bun: {Bun, :install_and_run, [:my_app, ~w(--sourcemap=inline --watch)]}
]

Update mix.exs aliases:

"assets.deploy": [
  "phx.digest.clean",
  "tailwind my_app --minify",
  "bun my_app --minify",
  "phx.digest"
]

7. Set NODE_PATH for Phoenix dependency resolution

Set NODE_PATH to the project root's deps/ directory so Bun resolves Phoenix JS packages (phoenix, phoenix_html, phoenix_live_view, etc.) directly from Elixir's deps/ without needing npm install.

In devenv.nix (if present), this is already set via:

env.NODE_PATH = "${config.git.root}/deps";

For non-devenv setups, export in shell or CI:

export NODE_PATH="$(pwd)/deps"

No npm install or symlinks needed for Phoenix's own JS packages.

8. Configure runtime.exs for devenv binary paths

In config/runtime.exs, add so devenv-provided system binaries are used instead of downloaded ones:

if System.get_env("MIX_BUN_PATH") do
  config :bun, path: System.get_env("MIX_BUN_PATH")
end

if System.get_env("MIX_TAILWIND_PATH") do
  config :tailwind, path: System.get_env("MIX_TAILWIND_PATH")
end

9. Update assets/package.json for DuskMoon JS packages

Ensure assets/package.json (or the relevant workspace package.json) lists the DuskMoon packages as dependencies:

{
  "dependencies": {
    "@duskmoon-dev/core": "latest",
    "@duskmoon-dev/css-art": "latest",
    "@duskmoon-dev/elements": "latest",
    "@duskmoon-dev/art-elements": "latest"
  }
}

Remove any esbuild or daisyui entries from the package.json.

10. Install dependencies

After all file changes are made:

  1. Run mix deps.get to fetch new hex packages
  2. Run bun install (from project root) to install JS packages

11. Report missing features as internal requests

After completing the migration, review any gaps encountered:

  • If a DuskMoon package is missing a feature, component, or has a bug that blocked or complicated this migration, open a GitHub issue in the relevant repository with the label internal request:

- phoenix_duskmoon issues → https://github.com/gsmlg-dev/phoenix_duskmoon/issues - @duskmoon-dev/core, @duskmoon-dev/css-art, @duskmoon-dev/elements, @duskmoon-dev/art-elements issues → https://github.com/gsmlg-dev/duskmoon-dev/issues

  • Include in the issue: a clear description of the missing/broken functionality, the use case, and (if possible) a suggested API or workaround

Important Notes

  • Always read files before modifying them
  • Use the relevant DuskMoon skills for precise API details:

- duskmoon-dev-core for Tailwind plugin setup and core utilities - duskmoon-dev-css-art for CSS art package usage - duskmoon-elements for base web component APIs - phoenix-duskmoon-ui for Phoenix component mappings

  • Preserve all existing business logic — only replace UI infrastructure
  • After migration, do a project-wide search for any remaining references to esbuild, DaisyUI, or CoreComponents and clean them up

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.38%
按下载量换算31

Claude

32.02%
按下载量换算28

Cursor

20.4%
按下载量换算18

Gemini CLI

8.85%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/gsmlg-dev/code-agent --skill cmd-setup-phoenix-duskmoon 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills