Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "store-screenshot-studio",
"version": "0.1.0",
"description": "Turn raw app screenshots into App Store and Google Play listing images: headline and subheadline, iPhone / Android / iPad device frames, solid or gradient backgrounds, several languages, and exact store pixel sizes (iPhone 6.9″/6.5″/5.5″, iPad 13″, Play phone/tablet) exported as opaque PNGs. Checks long headlines, missing translations and blurry screenshots. Runs locally; no API keys.",
"description_i18n": {
"en": "Turn raw app screenshots into App Store and Google Play listing images: headline and subheadline, iPhone / Android / iPad device frames, solid or gradient backgrounds, several languages, and exact store pixel sizes (iPhone 6.9″/6.5″/5.5″, iPad 13″, Play phone/tablet) exported as opaque PNGs. Checks long headlines, missing translations and blurry screenshots. Runs locally; no API keys.",
"zh-CN": "把 App 原始截图做成 App Store 和 Google Play 的宣传截图:加主副标题、iPhone / 安卓 / iPad 设备边框、纯色或渐变背景,支持多语言,按商店要求的精确像素尺寸(iPhone 6.9″/6.5″/5.5″、iPad 13″、Google Play 手机/平板)导出无透明通道的 PNG。自动检查标题过长、缺少翻译和截图分辨率不足。全部本地处理,无需 API 密钥。"
},
"author": {
"name": "Penova",
"url": "https://github.com/ppppp2005-p"
},
"license": "MIT",
"keywords": [
"app-store",
"google-play",
"screenshots",
"aso",
"mockup",
"device-frame",
"localization",
"ios",
"android",
"应用商店"
],
"skills": "skills",
"mcpServers": {
"store-screenshot-studio": {
"type": "stdio",
"command": "node",
"args": [
"${ZCODE_PLUGIN_ROOT}/dist/server.mjs"
],
"cwd": "${ZCODE_PROJECT_DIR}",
"timeoutMs": 900000,
"env": {
"ZCODE_WORKSPACE_ROOT": "${ZCODE_PROJECT_DIR}",
"STORE_SHOTS_FONT": "${user_config.fontPath}"
}
}
},
"ui": {
"surfaces": [
{
"id": "editor",
"title": {
"zh-CN": "应用商店截图制作",
"en-US": "Store Screenshot Studio"
},
"icon": "smartphone",
"server": "store-screenshot-studio",
"resourceUri": "ui://store-screenshot-studio/panel.html",
"availability": "session"
}
]
},
"userConfig": {
"fontPath": {
"type": "string",
"default": "",
"title": "中文字体文件(可选)",
"description": "可选。标题文字使用的字体文件(.ttf/.otf/.ttc)完整路径。默认自动查找系统中文字体(macOS: 苹方 / 冬青黑体,Windows: 微软雅黑,Linux: Noto Sans CJK)。"
}
}
}
21 changes: 21 additions & 0 deletions external_plugins/store-screenshot-studio/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Penova

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
50 changes: 50 additions & 0 deletions external_plugins/store-screenshot-studio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Store Screenshot Studio

Turn raw app screenshots into App Store and Google Play listing images: a headline and subheadline above or below the screen, a device frame, a solid or gradient background — in several languages and every store size at once. Preview and edit each slide in the side panel.

## What it does

- **Exact store sizes**: iPhone 6.9″ 1320×2868, 6.5″ 1284×2778, 5.5″ 1242×2208, iPad 13″ 2064×2752, Google Play phone 1080×1920 and 10″ tablet 1600×2560. Exported as **opaque RGB PNGs** (the stores reject transparency).
- **Device frames**: iPhone (Dynamic Island), Android (punch-hole camera), iPad/tablet bezel, or frameless with a soft shadow; any frame colour. The frame adapts to the screenshot's aspect ratio, so nothing is cropped.
- **Text**: bold headline and optional subheadline, top or bottom, automatic black/white text colour for contrast, auto-shrink to two lines; too-long text is shortened and flagged.
- **Languages**: any number of listing languages (`zh-Hans`, `en-US`, `ja`…); each slide keeps a headline per language. Missing translations fall back to the first language and are flagged.
- **Tablet screenshots**: give a separate tablet screenshot per slide for iPad / tablet sizes; when only a phone screenshot is available, you get a warning.
- **Checks**: long headlines, missing translations, low-resolution screenshots (would look blurry), more than 10 slides (App Store) or 8 (Google Play).
- **Output**: `store-screenshots/<language>/<size>/<NN>-<name>.png`; settings in a reusable `.storeshots.json`.

## Usage

In ZCode Desktop, ask the agent:

- "Make App Store screenshots from the images in screenshots/ — write a short headline for each in Chinese and English"
- "Export the listing images for iPhone 6.9″, iPad and Google Play with a dark gradient background"
- "Change the third headline in English to “Track every order” and export just that one"

Or open "Store Screenshot Studio" from the session sidebar and tick screenshots in the order you want them.

## Tools

| Tool | Purpose |
|---|---|
| `shots_open` | Open screenshots (paths, folder or saved project) with languages, texts and sizes; check and open the panel |
| `project_save` | Save as `.storeshots.json` |
| `shots_export` | Export all, or filter by languages, sizes and slides |

## Scope (v0.1)

- Input: PNG and JPG screenshots (from the simulator, a device or a design tool).
- Not in v0.1: uploading to App Store Connect / Google Play Console (do that yourself or with fastlane), panoramic backgrounds spanning several slides, tilted 3D device mock-ups, App Preview videos, the Play feature graphic.
- The device frames are generic drawings, not Apple/Google marketing artwork.

## Privacy, network and file writes

- **Everything runs locally.** No network access, nothing is uploaded, no API keys or accounts.
- Reads the chosen screenshots and a system font; writes only inside the workspace (default `store-screenshots/`, plus the `.storeshots.json` you choose). No commands are executed and there are no hooks.

## Build and test (developers)

Source lives in `ui-plugins/store-screenshot-studio/`. From the repository root run `pnpm install --frozen-lockfile && pnpm build`, add `dist/local-marketplace` as a local source in the ZCode plugin store and install. Tests: `pnpm --filter @penova/plugin-store-screenshot-studio test` (exact sizes, opaque PNG, colours, text, tablet screenshot, warnings, project round-trip) and `test:e2e` (browser panel test; point `E2E_SCREENS` at real app screenshots).

## Third-party components and licenses

The plugin is MIT-licensed (author: Penova). Bundled dependencies: resvg-wasm (MPL-2.0, unmodified; source: https://github.com/yisibl/resvg-js), fontkit (MIT), pngjs (MIT), jpeg-js (BSD-3-Clause), the MCP SDK and ext-apps (MIT). The full list ships in `dist/THIRD_PARTY_NOTICES.txt`. The test screenshots are synthetic mock-ups of a fictional app. App Store is a trademark of Apple Inc.; Google Play is a trademark of Google LLC; this plugin is not affiliated with either.
50 changes: 50 additions & 0 deletions external_plugins/store-screenshot-studio/README_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 应用商店截图制作

把 App 原始截图做成 App Store 和 Google Play 的宣传截图:在屏幕上方或下方加主副标题,套上设备边框,配纯色或渐变背景——多语言、所有商店尺寸一次完成。在侧栏预览并逐张编辑。

## 功能

- **精确的商店尺寸**:iPhone 6.9″ 1320×2868、6.5″ 1284×2778、5.5″ 1242×2208,iPad 13″ 2064×2752,Google Play 手机 1080×1920 和 10″ 平板 1600×2560。导出为**不带透明通道的 RGB PNG**(商店不接受透明图)。
- **设备边框**:iPhone(灵动岛)、安卓(挖孔摄像头)、iPad/平板边框,或无边框加柔和阴影;机身颜色可选。边框按截图比例自动适配,不裁切内容。
- **文字**:粗体主标题和可选副标题,放在上方或下方;自动选择黑/白文字保证对比度,自动缩小到两行内;仍然太长会截断并提示。
- **多语言**:任意数量的商店语言(`zh-Hans`、`en-US`、`ja`…),每张截图按语言分别保存标题。缺少翻译时使用第一种语言的文字并提示。
- **平板截图**:每张可单独指定平板截图用于 iPad / 平板尺寸;只有手机截图时会提示。
- **检查**:标题过长、缺少翻译、截图分辨率不足(会模糊)、超过 10 张(App Store)或 8 张(Google Play)。
- **输出**:`store-screenshots/<语言>/<尺寸>/<序号>-<名称>.png`;设置保存在可复用的 `.storeshots.json`。

## 使用

在 ZCode Desktop 中对 Agent 说:

- “用 screenshots 文件夹里的截图做 App Store 宣传图,每张帮我写一句中英文标题”
- “用深色渐变背景导出 iPhone 6.9″、iPad 和 Google Play 尺寸”
- “把第三张的英文标题改成“Track every order”,只重新导出这一张”

也可以在会话侧栏打开“应用商店截图制作”,按想要的顺序勾选截图。

## 工具

| 工具 | 作用 |
|---|---|
| `shots_open` | 打开截图(路径、文件夹或已保存项目),设置语言、文案和尺寸,检查并打开面板 |
| `project_save` | 保存为 `.storeshots.json` |
| `shots_export` | 导出全部,或按语言、尺寸、截图筛选导出 |

## 范围(v0.1)

- 输入:PNG 和 JPG 截图(模拟器、真机或设计工具导出)。
- v0.1 不包含:上传到 App Store Connect / Google Play Console(请自行上传或用 fastlane)、跨多张的全景背景、倾斜的 3D 设备样机、App 预览视频、Google Play 置顶大图(feature graphic)。
- 设备边框是通用绘制,不是 Apple/Google 的官方营销素材。

## 隐私、网络与文件写入

- **全部在本机处理。** 不联网、不上传、不需要 API 密钥或账号。
- 读取所选截图和系统字体;只在工作区内写文件(默认 `store-screenshots/`,以及你指定的 `.storeshots.json`)。不执行命令,没有 hooks。

## 构建与测试(开发者)

源码在 `ui-plugins/store-screenshot-studio/`。在仓库根目录运行 `pnpm install --frozen-lockfile && pnpm build`,把 `dist/local-marketplace` 添加为 ZCode 插件商店的本地来源后安装。测试:`pnpm --filter @penova/plugin-store-screenshot-studio test`(精确尺寸、无透明通道、颜色、文字、平板截图、警告、项目保存与读取)和 `test:e2e`(浏览器面板测试;可用 `E2E_SCREENS` 指向真实 App 截图)。

## 第三方组件与许可证

插件采用 MIT 许可证(作者:Penova)。打包的依赖:resvg-wasm(MPL-2.0,未修改;源码:https://github.com/yisibl/resvg-js)、fontkit(MIT)、pngjs(MIT)、jpeg-js(BSD-3-Clause)、MCP SDK 与 ext-apps(MIT)。完整清单随包附带于 `dist/THIRD_PARTY_NOTICES.txt`。测试截图为虚构 App 的合成样图。App Store 是 Apple Inc. 的商标,Google Play 是 Google LLC 的商标;本插件与二者无关。
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: store-screenshot-studio
description: 把 App 截图做成 App Store / Google Play 宣传截图(标题、设备边框、背景、多语言、各商店尺寸)。用户提到“应用商店截图 / App Store 截图 / Google Play 截图 / 上架截图 / ASO 截图”时使用。
---

# 应用商店截图制作

全部在本机生成,不联网。

1. **准备文案**:先看每张截图(可以读取图片)判断它展示的功能,为每种语言写一个**短**标题(中文 ≤ 12 字,英文 2–6 个词)和可选副标题。标题讲用户得到的好处,不写功能名堆砌。把文案给用户确认。
2. **打开**:`shots_open(paths | folder, locales, texts, presets?, theme?)`,`texts[i]` 是第 i 张的 `{"zh-Hans": {title, subtitle}, "en-US": {...}}`;或 `shots_open(project: "xxx.storeshots.json")`。截图顺序就是商店展示顺序,第一张最重要。最多 10 张(Google Play 只用前 8 张)。
- 尺寸 id:`ios-6.9`(1320×2868,App Store 必需)、`ios-6.5`、`ios-5.5`、`ipad-13`(有 iPad 版时必需)、`play-phone`、`play-tablet`。
- `theme`:`background`、`background2`(渐变,空字符串关闭)、`textColor`(auto 或颜色)、`frame`(auto/iphone/android/none)、`frameColor`、`textPosition`(top/bottom)、`deviceScale` 0.5–0.95、`bleed`、`titleScale`。
3. **看检查结果**:标题过长 → 缩短;缺少翻译 → 补上该语言的 `text`;分辨率不足 → 请用户提供更清晰的截图;平板尺寸用的是手机截图 → 请用户提供 iPad 截图并写到 `slides[i].tabletImage`。
4. **修改**:单张背景用 `slides[i].background`;改文案直接改 `slides[i].text[locale]`。`project_save(path, project)` 保存为 `.storeshots.json`。
5. **导出**:`shots_export(project, locales?, presets?, indices?)` → `store-screenshots/<语言>/<尺寸>/<序号>-<名称>.png`。告诉用户上传时按序号顺序。本插件不上传到商店。
48 changes: 48 additions & 0 deletions marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -1673,6 +1673,54 @@
"把上一个 Hi3D 任务生成的模型按角色拆分成部件"
]
}
},
{
"name": "store-screenshot-studio",
"componentTypes": [
"ui"
],
"source": "./external_plugins/store-screenshot-studio",
"displayName": "Store Screenshot Studio",
"displayName_i18n": {
"en": "Store Screenshot Studio",
"zh-CN": "应用商店截图制作"
},
"description": "Turn raw app screenshots into App Store and Google Play listing images: headline and subheadline, iPhone / Android / iPad device frames, solid or gradient backgrounds, several languages, and exact store pixel sizes (iPhone 6.9″/6.5″/5.5″, iPad 13″, Play phone/tablet) exported as opaque PNGs. Checks long headlines, missing translations and blurry screenshots. Runs locally; no API keys.",
"description_i18n": {
"en": "Turn raw app screenshots into App Store and Google Play listing images: headline and subheadline, iPhone / Android / iPad device frames, solid or gradient backgrounds, several languages, and exact store pixel sizes (iPhone 6.9″/6.5″/5.5″, iPad 13″, Play phone/tablet) exported as opaque PNGs. Checks long headlines, missing translations and blurry screenshots. Runs locally; no API keys.",
"zh-CN": "把 App 原始截图做成 App Store 和 Google Play 的宣传截图:加主副标题、iPhone / 安卓 / iPad 设备边框、纯色或渐变背景,支持多语言,按商店要求的精确像素尺寸(iPhone 6.9″/6.5″/5.5″、iPad 13″、Google Play 手机/平板)导出无透明通道的 PNG。自动检查标题过长、缺少翻译和截图分辨率不足。全部本地处理,无需 API 密钥。"
},
"version": "0.1.0",
"author": {
"name": "Penova",
"url": "https://github.com/ppppp2005-p"
},
"license": "MIT",
"category": "productivity",
"keywords": [
"app-store",
"google-play",
"screenshots",
"aso",
"mockup",
"device-frame",
"localization",
"ios",
"android",
"应用商店"
],
"examplePrompts": [
"Make App Store screenshots from the images in screenshots/ — write a short headline for each in Chinese and English",
"Export the listing images for iPhone 6.9″, iPad and Google Play with a dark gradient background",
"Change the third headline in English to “Track every order” and export just that one"
],
"examplePrompts_i18n": {
"zh-CN": [
"用 screenshots 文件夹里的截图做 App Store 宣传图,每张帮我写一句中英文标题",
"用深色渐变背景导出 iPhone 6.9″、iPad 和 Google Play 尺寸",
"把第三张的英文标题改成“Track every order”,只重新导出这一张"
]
}
}
]
}
Loading