Skip to main content
在 Manus 中运行任何 Skill
一键导入

lwc-3-decisions

星标4
分支0
更新时间2026年5月6日 21:09

Soft-prompt the LWC author with three load-bearing architectural questions before they create or substantially edit a Lightning Web Component — Communication, State, Responsibility. Always elaborates *why* each question matters with concrete what-goes-wrong examples, then asks. Skipping is allowed but logged in the response so the choice is conscious. TRIGGER when creating or substantially editing files under `force-app/**/lwc/**`, `examples/**/lwc/**`, or any `*.js` / `*.html` / `*.js-meta.xml` inside an `lwc/` folder. Also TRIGGER when the user mentions "new component", "split this component", "refactor this LWC", "props vs events", "wire vs imperative", "LMS", "pubsub", or "where should this live". Skip on tiny edits (typo fixes, single-line CSS, comment-only changes) — invoke only for changes that touch component contract, data flow, or boundaries.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly