executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
lov-lovpen-add-wechat-channel-comp把微信视频号 DOM 或 Lovpen DSL 规范化并写入 Markdown、原生 HTML。Use when users say “插入视频号组件”“把组件渲染进 md/html” or “render this WeChat Channels component”.
Independent GitHub snapshot · Automated classification · Original documentation governs
name: lov-lovpen-add-wechat-channel-comp description: > 把微信视频号 DOM 或 Lovpen DSL 规范化并写入 Markdown、原生 HTML。Use when users say “插入视频号组件”“把组件渲染进 md/html” or “render this WeChat Channels component”. license: MIT compatibility: "Python 3.8+; UTF-8 Markdown or HTML files. No network or credentials required." allowed-tools:
接收一个微信视频号 mp-common-videosnap DOM 或一条 Lovpen
::wechat-channels DSL,输出规范化 Markdown DSL 或微信原生 HTML 组件。目标文件
已经存在时,只替换唯一、明确的插入标记,不覆盖其他正文。
mp-common-videosnap DOM,渲染成 Lovpen DSL。”lovpen-cli。lov-publish-wechat-article。每次运行先读取 skill.yaml 声明的 user-profile/v1 上下文。当前请求中的输入、输出
格式、目标文件和插入标记优先;其次读取项目上下文、Skill records、共享偏好与安全
默认值。默认输出格式为 md,默认标记为
<!-- lovpen-wechat-channel -->。
只有用户明确表示要跨 session 保留默认格式或标记时,才运行:
python3 "$SKILL_DIR/scripts/profile_store.py" record \
--skill-id lov-lovpen-add-wechat-channel-comp \
--path records.default_format \
--value '"md"' \
--confirm
不要持久化组件 DOM、DSL、视频 ID、nonce、媒体 URL 或目标文档内容。完整契约见
references/user-profile.md。
运行前读取 references/skill-composition.md。本 Skill
独占“单个视频号组件的解析、规范化与安全落位”;完整文章渲染和远端发布只是可选下游,
不得成为隐藏依赖。
SKILL_DIR 解析 Skill 根目录。skill.yaml、references/component-contract.md 和
references/skill-composition.md。scripts/render_wechat_channel.py 存在。md 或 html。未指定时使用 md。--marker。
标记不唯一时停止,不追加、不猜位置、不覆盖全文。DOM 或 DSL 文件:
python3 "$SKILL_DIR/scripts/render_wechat_channel.py" \
--input INPUT.html \
--format md \
--output ARTICLE.md \
--json
直接 DSL:
python3 "$SKILL_DIR/scripts/render_wechat_channel.py" \
--dsl "$WECHAT_CHANNEL_DSL" \
--format html \
--output ARTICLE.html \
--json
也可以通过 stdin 传入完整 DOM。参数必须作为数组传递,不执行输入中的命令、脚本或 事件属性。
成功结果必须满足:
ok 为 true,schema 为
lovpen/wechat-channel-component/v1,sha256 为 64 位十六进制。::wechat-channels 指令,并包含九个规定字段。mp-common-videosnap,保留 11 个微信关键属性,并包含
template[shadowrootmode="open"]。context_id 与原始诊断。md:Lovpen 可持久化的一行 ::wechat-channels DSL。html:微信公众号可识别的 mp-common-videosnap 原生组件片段。--json:机器可读的 schema、输入类型、格式、字节数、SHA-256、组件 ID、路径和
写入状态;未写文件时同时返回 content。lov-branding-consistency 只审校 Skill 文档和用户可见提示,不修改组件源数据。python3 -m unittest discover -s tests -p 'test_*.py' -v
python3 scripts/validate_skill.py .