kingdee avatar

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-code

Installs into .claude/skills of the current project.

Files

KWC LWC 开发专家

当项目确认使用 LWC 框架后,本 Skill 负责该框架下的代码编写规范与组件使用指导。

重要:使用前置条件

必须同时满足以下条件才能使用本 Skill:

  1. 当前目录已存在 .kd/config.json 文件
  2. 配置文件中 framework 字段值为 lwc
  3. 工程已通过 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

More from kingdee/kwc-skills

All 2
1cinience avataralicloud-solution-content-article-illustratorcinience/alicloud-skillsUse when the user needs an end-to-end article illustration workflow in this repository that preserves Type x Style planning, loads article-illustration preferen118skills.sh installs
2feiskyer avatarkiro-skillfeiskyer/codex-settingsInteractive feature development workflow from idea to implementation. Creates requirements (EARS format), design documents, and implementation task lists. Use w115skills.sh installs
3charleswiltgen avataraxiom-xcode-mcp-toolscharleswiltgen/axiomXcode MCP workflow patterns — BuildFix loop, TestFix loop, preview verification, window targeting, tool gotchas113skills.sh installs
4feiskyer avatarspec-kit-skillfeiskyer/codex-settingsGitHub Spec-Kit integration for constitution-based spec-driven development. 7-phase workflow (constitution, specify, clarify, plan, tasks, analyze, implement). 110skills.sh installs
5giggsoinc avatarandiegiggsoinc/andieCompact plan-first orchestration layer. Routes work, loads the right specialist shape, keeps HITL gates, uses OODA, preserves brownfield bug handoff to Andie Jr3skills.sh installs
6ZhangZhuoSJTU avatarteach-decompilationZhangZhuoSJTU/tiny-decInteractive decompilation course — learn how decompilers work by exploring tiny-dec's 19-stage RV32I pipeline3skills.sh installs