Skip to content

feat(store-screenshot-studio): add app store screenshot studio UI plugin - #223

Open
ppppp2005-p wants to merge 13 commits into
zai-org:mainfrom
ppppp2005-p:feat/store-screenshot-studio
Open

ppppp2005-p wants to merge 13 commits into
zai-org:mainfrom
ppppp2005-p:feat/store-screenshot-studio

Conversation

@ppppp2005-p

Copy link
Copy Markdown

Plugin type (required) / 插件类型(必填)

  • UI Plugin / 是 UI 插件 — provides MCP Apps interactive pages / 提供 MCP Apps 交互页面
  • Standard plugin / 普通插件(非 UI)
  • Not applicable / 不适用

Affected plugin name(s) / 涉及的插件名称:store-screenshot-studio (UI Plugin, new)

What / 改动内容

New community UI plugin Store Screenshot Studio / 应用商店截图制作: raw app screenshots → App Store / Google Play listing images.

  • Side panel (ui://store-screenshot-studio/panel.html): language tabs (+ add language), size picker, style controls (solid/gradient background, auto or fixed text colour, iPhone/Android/frameless frame, frame colour, text top/bottom, device size, bleed, title size), slide strip with live previews and warning flags, per-slide editor (headline/subheadline for the current language, own background, tablet screenshot, reorder, remove, add, "ask the agent for copy"), save project, export all.
  • Tools: shots_open, project_save, shots_export (+ app-only shots_preview, screen_thumbs, workspace_images).
  • Sizes: iPhone 6.9″ 1320×2868, 6.5″ 1284×2778, 5.5″ 1242×2208, iPad 13″ 2064×2752, Google Play phone 1080×1920, 10″ tablet 1600×2560; exported as opaque RGB PNG (store-screenshots/<locale>/<size>/<NN>-<name>.png).
  • Generic drawn device frames that adapt to the screenshot aspect (no crop); headline auto-fit to two lines with overflow warning; checks for missing translations, low-resolution screenshots, phone screenshots used for tablet sizes, >10 slides (App Store) / only first 8 for Google Play.
  • Rendering: SVG → PNG with resvg-wasm and a system CJK font (configurable via fontPath).

Network / API / side effects: local stdio MCP server only; no network, no API keys, no store upload, no hooks, no command execution; writes only inside the workspace (store-screenshots/ and the chosen .storeshots.json).

Third-party: @resvg/resvg-wasm (MPL-2.0, unmodified, source linked in README), fontkit (MIT), pngjs (MIT), jpeg-js (BSD-3-Clause), MCP SDK / ext-apps (MIT); notices generated into dist/THIRD_PARTY_NOTICES.txt. Test screenshots are synthetic mock-ups of a fictional app. pnpm-lock.yaml was updated by pnpm install (it also dedupes a few shared transitive versions, e.g. tinyexec / eventsource-parser).

Tests: vitest over MCP (exact pixel sizes for iPhone/Play, PNG colour type 2 = no alpha, background colour, headline pixels, screenshot inside the device, warnings for long headline / missing translation / low resolution / phone-on-tablet, tablet screenshot used for iPad, folder ordering, save/reload, filtered export, path escape and >10 slides rejected); Chrome e2e with the official AppBridge host on 6 slides (2 synthetic + 4 real mobile web captures): open with zh/en copy → switch to Android frame, text at bottom, dark gradient → edit an English headline → iPad size with a tablet screenshot → export 36 images (verified). validate.py, build_dist.py, git diff --check, oxlint, tsc pass.

A ZCode Desktop demo recording is attached in the comments. / ZCode 桌面版演示录屏见评论。

Self-check / 自查清单

  • Plugin name is unique kebab-case; new external plugin directory is external_plugins/<name>/
  • Usage category is set (productivity)
  • Plugin type and affected names are declared above
  • version 0.1.0 in both plugin.json and marketplace.json
  • README.md (EN) and README_CN.md (中文) both provided and equivalent
  • description_i18n has both en and zh-CN
  • No secrets, machine-specific paths, or private dependencies
  • Model/API/network dependencies documented
  • python3 scripts/validate.py and python3 scripts/build_dist.py pass locally
  • Exercised in ZCode Desktop (ZCode 4.0.0, macOS arm64: installed from a local marketplace, shots_open → side panel → gradient background + text at bottom + Google Play phone size → project_save → shots_export of 16 images (zh-Hans + en-US); demo video in the comments)

@ppppp2005-p

Copy link
Copy Markdown
Author

ZCode desktop demo (ZCode 4.0.0, macOS arm64)

store-screenshot-studio-demo.mp4

Flow shown:

  1. Installed store-screenshot-studio from a local marketplace built from this PR's branch.
  2. Asked ZCode to turn 4 raw screenshots in screens/ into store images for a sample app “随手记 Pocket”, in zh-Hans and en-US, with a short headline each. The agent loaded the skill and called shots_open, which opened the side panel.
  3. Edits: gradient background, text at the bottom, Google Play phone size added; saved with project_save as pocket.storeshots.json.
  4. shots_export wrote 16 opaque PNGs to store-screenshots/<locale>/<size>/ (iPhone 6.9″ 1320×2868 and Google Play 1080×1920). The agent looked at the exports, saw that three English headlines wrapped awkwardly on the narrower Play size, shortened them, saved and re-exported. The last card shows some of the exported images.

演示流程:本地 marketplace 安装 → shots_open 打开侧栏面板 → 渐变背景、文字放底部、加 Google Play 尺寸 → 保存 pocket.storeshots.json → 导出中英两套共 16 张图(发现英文标题换行难看,缩短后重新导出)。

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants