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

llui-add-structural-primitive

星标7
分支0
更新时间2026年7月16日 22:46

Follow this exact procedure when adding a NEW structural primitive to the LLui runtime (@llui/dom) — a scope-owning, region-reconciling helper in the family of show/branch/each/virtualEach/lazy/portal/foreign/unsafeHtml. Use it whenever you're working inside packages/dom and creating a primitive that builds live nodes lazily, owns a child scope, reconciles a region between anchors, or swaps arms/rows. This is framework-internals work (NOT app code and NOT a @llui/components component); the sequence is easy to get subtly wrong — miss the context snapshot, the draining/insert order, the teardown, or an export and you ship a leak or a stale-UI bug. Load it before writing the primitive, not after.

安装

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

SKILL.md
readonly