marketing-screenshots
Use when capturing real running app UI for marketing/product screenshots, browser/mobile viewports, device/phone mockups, landing pages, pitch decks/presentations, or App Store/product marketing assets.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- marketing-screenshots
- description
- Use when capturing real running app UI for marketing/product screenshots, browser/mobile viewports, device/phone mockups, landing pages, pitch decks/presentations, or App Store/product marketing assets.
02 资源文件 7
- 参考文档agents/openai.yaml212 B
- 参考文档references/capture-guidelines.md934 B
- 参考文档references/configuration.md866 B
- 参考文档references/examples.md808 B
- 参考文档references/marketing-screenshots.config.mjs.example1.2 KB
- 脚本scripts/marketing-screenshots.mjs23.3 KB
- 脚本tests/marketing-screenshots.test.mjs5.2 KB
03 SKILL.md 正文
Marketing Screenshots
Capture real app UI; compose around untouched PNG. Never redraw product UI with image generation.
- Inspect routes, auth/demo state, Playwright config, and asset policy. Use local fixtures or demo accounts only; follow capture-guidelines.md for auth/privacy checks.
- For repeatable scenes/custom sizes, read configuration.md, then add
marketing-screenshots.config.mjsat project root. Otherwise use--url/--route. More prompts: examples.md. - Start app if required. Use semantic
readySelector/waitFor, not arbitrary sleeps. - Capture: script freezes motion, waits for fonts/images, sets locale/timezone/color/viewport/DPR, saves raw PNG first, then device/canvas assets and manifest.
- Inspect every raw/derived asset. Visible email, credential/debug text, loading states, or wrong route block marketing-ready handoff.
Commands
Set $skillDir to the absolute directory containing loaded SKILL.md; resolve scripts/references there (repository/profile/staged copy). Capture/compose: run from target project root or pass --project-root PATH. Validate: relative --input uses CWD; use project-root CWD or absolute input. Uses app-installed @playwright/test Chromium; never auto-install dependencies.
node "$skillDir/scripts/marketing-screenshots.mjs" capture --all
node "$skillDir/scripts/marketing-screenshots.mjs" capture --scene landing
node "$skillDir/scripts/marketing-screenshots.mjs" capture --url http://127.0.0.1:5173/ --name landing --preset mobile --device phone --canvas landing-hero,pitch-16x9
node "$skillDir/scripts/marketing-screenshots.mjs" compose --input artifacts/marketing-screenshots/landing/landing--raw.png --device phone --canvas square
node "$skillDir/scripts/marketing-screenshots.mjs" validate --input path/to/output.png
Composition never changes raw files. Capture replaces an existing raw PNG only with explicit --overwrite.
Outputs
Deterministic directory: artifacts/marketing-screenshots/<scene>/.
<scene>--raw.png<scene>--phone-transparent.png(or tablet/browser-window)<scene>--landing-hero.png,<scene>--pitch-16x9.png, or<scene>--square.pngmanifest.json
04 同仓库更多 Skills
writing-plans
Use when a spec or requirements need a multi-step implementation plan before code changes, including standalone MDX plans.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wayfinder
Map a large, uncertain effort as decision tickets; resolve them until the route to the destination is clear.
ui-ux-pro-max
Use only when the user explicitly invokes `ui-ux-pro-max` for web or mobile design, implementation, or review.
to-spec
Use when the user asks to turn an existing conversation, wayfinder map, or planning context into a standalone MDX spec.
test-driven-development
Use when implementing features, fixing bugs, changing behavior, or refactoring tested code.