jonny-xhl

Dv Generate Options — Development skill for Claude Code

Development community

从 Dataverse 环境重新生成 OptionSet 语义化常量模块 XRM.Options(默认同时生成「单文件」与「按实体拆分」两种模式),用于在 JS/HTML 中以 XRM.Options.entities.

How to install Dv Generate Options

Installs to ~/.claude/commands/jonny-xhl-power-platform-agent-dv-generate-options.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/jonny-xhl/power-platform-agent/HEAD/.claude/commands/dv-generate-options.md -o ~/.claude/commands/jonny-xhl-power-platform-agent-dv-generate-options.md

Restart Claude Code, or start a new session, for it to be picked up.

What Dv Generate Options does

从 Dataverse 环境重新生成 OptionSet 语义化常量模块 `XRM.Options*`(默认**同时**生成「单文件」与「按实体拆分」两种模式),用于在 JS/HTML 中以 `XRM.Options.entities...` 取代 picklist 魔法数字。数据源为环境(非 YAML)。

参数: `$ARGUMENTS`(实体逻辑名,空格分隔,如 `contact account`;为空时默认 `contact`)

默认行为(`scripts/generate_xrm_options.py`)

  • 实体:$ARGUMENTS 或默认 contact
  • 模式:single,split(两种都生成)
  • include_global=true、env=dev、输出目录 webresources/shared/js/
  • 常量名语言 en(英文标签→PascalCase,仅中文标签时回退 Option{value}),显示标签 zh

执行流程

Step 1: 运行生

Alternatives in Development

  • Web Artifacts Builder — Build complex claude.ai HTML artifacts using React, Tailwind CSS, and shadcn/ui 94.1k ★
  • HTML Report — /html-report - Generate Application Tracker Dashboard 36.6k ★
  • HTML Ppt Skill — HTML PPT Studio — AgentSkill with 24 themes, 31 layouts, 20+ animations for building professional HTML present 8.1k ★

Full documentation available on GitHub

View Source Repository