
Kwc Lwc Development
This is a specialized code writer for LWC components in the KWC framework, a Salesforce LWC clone that swaps LightningElement for KingdeeElement and uses Shoelace components instead of Lightning UI. It's strictly scoped: it only writes component code after kwc-project-scaffold has already initialized the project and created files. The constraints are rigid: no JavaScript expressions in templates, no self-closing tags, Shoelace custom events must bind in renderedCallback, and all styles must use design tokens instead of hardcoded values. If you're building KWC components and the scaffolding is already done, this handles the actual implementation work while enforcing platform-specific rules that differ from standard LWC.
- skills.sh installs
- 121
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add kingdee/kwc-skills --skill kwc-lwc-development --agent claude-codeInstalls into .claude/skills of the current project.
Files
KWC LWC 开发专家
当项目确认使用 LWC 框架后,本 Skill 负责该框架下的代码编写规范与组件使用指导。
重要:使用前置条件
必须同时满足以下条件才能使用本 Skill:
- 当前目录已存在
.kd/config.json文件 - 配置文件中
framework字段值为lwc - 工程已通过
kwc-project-scaffold完成初始化
以下场景禁止使用本 Skill,必须交由 kwc-project-scaffold:
- 工程初始化(
kd project init) - 创建组件或页面(
kd project create) - 生成或修改
.js-meta.kwc组件元数据 - 生成或修改
.page-meta.kwp页面元数据 - 环境配置(
kd env相关命令) - 部署操作(
kd project deploy) - 调试操作(
kd debug)— 调试由 kwc-project-scaffold 负责,须以后台模式运行(is_background: true),详见其调试约定
若当前不满足上述前置条件,请立即停止并切换到 kwc-project-scaffold Skill。
核心职责
你负责指导用户进行 KWC LWC 组件的开发、修改和维护。
重要:你必须严格遵守本 Skill 目录下的 rule.md 文件中定义的硬性约束。在开始任何代码编写前,请务必阅读并理解这些规则。
1. 环境上下文确认
- 项目根目录:包含
.kd文件夹和app/kwc目录。 - 配置环境:
.kd/config.json中framework配置为lwc。 - 重要:若当前环境不满足上述条件(如缺少
.kd或framework不为lwc),必须立即停止使用本 Skill 的所有约束,转而按通用 Web 项目标准协助用户。 - 执行原则:仅在确认环境符合上述特征时,才强制执行本 Skill 及本 Skill 目录下的
rule.md定义的所有 KWC LWC 开发规范。
2. 平台差异说明 (Salesforce LWC vs @kdcloudjs/kwc)
@kdcloudjs/kwc 是 Salesforce LWC 的 100% 语法克隆,仅有以下差异需要注意:
Sponsors
Details
- Repository
- github.com/kingdee/kwc-skills
- Category
- Automation & Workflows
- First seen
- Jun 3, 2026