计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
lov-integrate-modern-screenshot【效率与协作】给任意 HTML/网页集成 modern-screenshot,一键导出主体内容为 PNG,截图与屏幕渲染一致(文字不换行)、2x 适合网络传播;触发语包括“给网页加截图导出”“网页一键导出图片”“导出长图”与 "integrate screenshot export button"。
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
给一个静态 HTML 页面(或任意网页源文件)加一个右下角「导出图片」按钮,点击即用 modern-screenshot 把主体内容导出为 PNG。核心保证:截图与浏览器实际渲染一致 (文字不会因为容器宽度测量错误而换行),输出 2x 分辨率适合网络传播。
lov-rich-export。lov-html2pptx。lov-png2svg / lov-pdf2png。Read skill.yaml on every invocation. Resolve user, brand, workspace, shared
preferences, and skills.lov-integrate-modern-screenshot records without copying
personal values into this portable source. Persist only direct durable user
statements through scripts/profile_store.py, then report the saved Profile path.
See references/user-profile.md.
Read references/skill-composition.md before composing adjacent capabilities.
Sibling Skills are optional artifact handoffs and never hidden dependencies.
Resolve SKILL_DIR from the active Skill context, then verify:
$SKILL_DIR/scripts/integrate_screenshot.py$SKILL_DIR/assets/modern-screenshot.js$SKILL_DIR/references/integration-contract.md$SKILL_DIR/references/acceptance-checklist.mdSKILL_DIR if provided; otherwise infer the installed skill directory.scripts/integrate_screenshot.py and assets/modern-screenshot.js exist.scripts/profile_store.py read --skill-id lov-integrate-modern-screenshot --pretty when a Profile is configured.Read the target file and identify:
<main> plus its preceding top-level
<header>; otherwise <article>; otherwise <body> contents);--surface, --ink, --line, --accent) so the
injected button adapts to light/dark theme; the snippet already falls back to
neutral colors when tokens are absent;<title> when present).If the intended capture region differs from the default, tell the user the exact
--selector (tag / #id / .class) to use.
python3 "$SKILL_DIR/scripts/integrate_screenshot.py" integrate <html> \
--selector <css> --width 760 --scale 2 --title "<下载文件名>"
--width sets the fixed capture width (default 760px; 0 follows content).--scale sets output resolution (default 2, suitable for sharing).--out, the source file is rewritten in place. Prefer a copy or --out
when the user wants to keep the original.The script embeds modern-screenshot inline (self-contained, offline), wraps the
capture region in <div id="capture">, and injects the floating button plus a
copyable error hint.
python3 "$SKILL_DIR/scripts/integrate_screenshot.py" verify <html> \
--scale 2 --chrome "/path/to/chrome"
The verifier renders the page in headless Chrome and asserts that the exported
PNG size equals node.scrollWidth/Height × scale exactly. A size mismatch is the
signal that the container width was measured wrong and text may reflow — fix the
--width or --selector and re-run.
Apply every item in references/acceptance-checklist.md. Report the real input,
the exact command, the OK out=WxH … result, and the output path. Do not invent
a passing verification or a score.
Report the output path, selector, width, scale, and verification result. Record a
real case in cases/cases.json only when a genuine integration occurred; do not
manufacture one.
Return:
OK out=… node=… expect=…);--headless=new --dump-dom).modern-screenshot is embedded inline.