chrome-webstore-image-generator
Skill2 starsChanged 8 months agoApache-2.0View on GitHub
Generate and validate Chrome Web Store listing image assets from one or more uploaded/local source images. Use when preparing extension publish graphics (icon, screenshots, small promo, optional marquee) and needing exact CWS-compliant dimensions with size-suffixed filenames.
- Installs packages
In this repository27 other files it gives its agents.
- ai-hotspot-collectorSkill
- article-multi-publisherSkill
- article-pipeline-skillSkill
- character-ip-risk-checkSkill
- chrome-extension-devSkill
- chrome-extension-e2e-automationSkill
- chrome-extension-publishSkill
- chrome-extension-social-promoSkill
- code-reviewSkill
- fund-querySkill
- github-trending-writerSkill
- lark-workflow-doc-to-slidesSkill
- notionSkill
- playwright-twitter-accessSkill
- post-to-xhsSkill
- rewrite-skillSkill
- small-capital-investingSkill
- technical-article-preflightSkill
- technical-article-reviewSkill
- technical-spoken-rewriteSkill
- tencent-dev-community-publisherSkill
- toutiao-publisherSkill
- url-readerSkill
- wechat-article-formatterSkill
- wechat-article-generatorSkill
- wechat-publisherSkill
- wechat-sticker-publisherSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Run from the skill directory:
- Very specific: line 56
Use the first input for small-promo-440x280.png unless --small-promo-source is provided.
- Very specific: line 57
Use up to 5 non-icon input images for screenshots/screenshot-<index>-<width>x<height>.png (falls back to all inputs when needed).
- Very specific: line 61
If icon inference is ambiguous (for example, a single screenshot-like input), generation fails fast and requires --icon-source.
- Distinctive: line 88
Read size and naming requirements in:
- Distinctive: line 96
If user uploads images in chat, first resolve them to accessible local file paths, then pass those paths to the script.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Chrome Webstore Image Generator
Generate Chrome Web Store listing images from one or more source files and validate them before submission.
Quick Start
- Collect absolute paths for one or more source images, or auto-capture screenshots from an unpacked extension.
- Generate assets with
scripts/generate_store_assets.py. - Validate output with
scripts/validate_store_assets.py.
Auto-Capture Screenshots (Optional)
Capture popup/options/page screenshots directly into release/store-assets/screenshots:
python3 -m pip install playwright
python3 -m playwright install chromium
python3 scripts/capture_extension_screenshots.py \
--extension-root /abs/path/to/unpacked-extension \
--root /abs/project/release/store-assets \
--options-path options.html \
--urls https://example.com https://news.ycombinator.comThen generate remaining assets (icon/small promo/marquee) using explicit icon input:
python3 scripts/generate_store_assets.py \
--inputs /abs/project/release/store-assets/screenshots/*.png \
--icon-source /abs/path/icon.png \
--root /abs/project/release/store-assets \
--include-marqueeGenerate Assets
Run from the skill directory:
python3 scripts/generate_store_assets.py \
--inputs /abs/path/source-1.png /abs/path/source-2.jpg \
--icon-source /abs/path/icon.png \
--root /abs/project/release/store-assets \
--include-marqueeDefault behavior:
- Auto-pick icon source for
icon-128x128.pngfrom files with icon/logo-like names or near-square dimensions. - Use the first input for
small-promo-440x280.pngunless--small-promo-sourceis provided. - Use up to 5 non-icon input images for
screenshots/screenshot-<index>-<width>x<height>.png(falls back to all inputs when needed). - Append screenshots by default (keep existing files and continue numbering when slots remain).
- Produce screenshots at
1280x800by default. - Generate
marquee-1400x560.pngonly when--include-marqueeis set. - If icon inference is ambiguous (for example, a single screenshot-like input), generation fails fast and requires
--icon-source.
Useful options:
--screenshot-size 640x400: switch screenshot size to640x400.--max-screenshots 3: limit generated screenshots.--overwrite-screenshots: clear existing screenshots and regenerate fromscreenshot-1-*.--append-screenshots: compatibility flag (append is already default).--icon-source: explicitly set icon input (recommended and safest).--allow-icon-fallback: allow legacy single-input fallback (only when intentional).--small-promo-source,--marquee-source: override other output source images.
Validate Assets
python3 scripts/validate_store_assets.py --root /abs/project/release/store-assetsValidation checks:
icon-128x128: exactly128x128and formatPNGsmall-promo-440x280: exactly440x280marquee-1400x560: exactly1400x560(optional)- Screenshots: count
1-5, each1280x800or640x400
Source Specs
Read size and naming requirements in:
references/cws-image-specs.md
Notes
- This skill currently uses macOS
sipsfor resizing/cropping. capture_extension_screenshots.pyrequires Python Playwright (pip install playwright) and browser install (playwright install chromium).- If user uploads images in chat, first resolve them to accessible local file paths, then pass those paths to the script.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

