ios-marketing-capture
Use when the user wants to automate capture of marketing screenshots for a SwiftUI iOS app across multiple locales, devices, or appearances. Covers…
от skillmds★ 42 звезды на GitHub
Установить ios-marketing-capture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
iOS Marketing Capture
Overview
Automate reproducible marketing screenshot capture for a SwiftUI iOS app across multiple locales, with two parallel output streams:
- Full-screen captures — every marketing-relevant screen, with deterministic seeded data, real status bar / safe-area chrome
- Element captures — isolated renders of specific components (cards, widgets, charts) at any scale, with natural background inside rounded corners and transparency outside
This skill is the capture step. If the user also wants Apple-style marketing pages composited around the shots (device mockups, headlines, gradients), combine with the app-store-screenshots skill as a post-processing step.
Core Approach
In-app capture mode, not XCUITest. This is a hard decision that trades off against Fastlane snapshot / XCUITest conventions, and it wins for almost every real project.
Why in-app over XCUITest:
- No new test target. Adding a UI test target to an existing Xcode project is fragile pbxproj surgery. Many projects have zero test targets and no xcodegen — adding one by hand is error-prone.
- Faster iteration. A UI test takes 30s+ to launch per run. In-app capture is just a relaunch of the installed binary.
- No
xcodebuild test. The whole flow isxcodebuild buildonce, thensimctl launchper locale. No test-bundle overhead. - Access to real app state. You can call ViewModels, SwiftData, ImageRenderer, and
UIWindow.drawHierarchydirectly. XCUITest can only tap and read accessibility elements. - Element renders need in-process anyway.
ImageRendereron widget views or isolated components must run inside the app process — there's no XCUITest equivalent.
How it works:
- A DEBUG-only
MarketingCapture.swiftfile lives in the main app target - When launched with
-MarketingCapture 1, the app seeds data, then a coordinator walks a list ofCaptureSteps — each step navigates, waits for settle, snapshots, and cleans up - PNGs are written to the app's sandbox
Documents/marketing/<locale>/directory - A shell script builds once, installs, then loops locales by relaunching with
-AppleLanguages (xx) -AppleLocale xx, pulling files out viasimctl get_app_container
Process
Work through these steps in order. Do not skip ahead.
Step 1: Gather requirements
Ask the user these questions one at a time (do not batch them — each answer can invalidate later questions):
- Screens to capture — "Which screens do you want? Give me the navigation path or the tab name for each." Get a concrete list, not "the main flows".
- Isolated elements — "Any components you want rendered independently with transparent backgrounds? (carousel cards, widgets, hero tiles, charts, etc.)"
- Locales — "Which locales? (a) all locales in your
Localizable.xcstrings, (b) an App Store subset I'll specify, or (c) let me give you an explicit list." If (a), grep the.xcstringsfile for locale codes:python3 -c "import json; d=json.load(open('<path>/Localizable.xcstrings')); langs=set(); [langs.update(v.get('localizations',{}).keys()) for v in d['strings'].values()]; print(sorted(langs))" - Device — "Which simulator? (6.1" iPhone 17 recommended for iOS 26 design features)" — verify the device is available via
xcrun simctl list devices available. - Appearance — "Light only, dark only, or both?"
- Seed data — "How is demo data populated today? (a) fresh install seeds it automatically, (b) there's a debug 'Load Demo Data' button, (c) you add it manually, (d) no demo data exists yet." Then: "Is the existing data exhaustive enough that every screen you listed looks populated for marketing? Audit it with the user."
Step 2: Exploration
Before writing any code, explore the codebase enough to answer:
- Does the project use Xcode synchronized folder groups (Xcode 16+,
PBXFileSystemSynchronizedRootGroup)? If yes, new files auto-include in their target — no pbxproj edits needed. Check withgrep -c PBXFileSystemSynchronized <proj>.xcodeproj/project.pbxproj. - What is the root navigation pattern?
TabView(selection:)— most common. You need: the@State selectedTabbinding, tab indices, and which tabs have nestedNavigationStack.NavigationStack(single stack with a router) — you need: the path binding or router object, plus the set ofNavigationLink(value:)/.navigationDestinationtypes.NavigationSplitView— you need: the sidebar selection binding, detail column's navigation state.- Custom coordinator / UIKit host — you need: the coordinator's
navigate(to:)method or equivalent.
- How are deep links routed? Find the
onOpenURLhandler and the enum/switch that maps URLs to navigation state. - Where are demo data seeders defined? Trace the code path from the debug button (if any) to the function that actually writes to
ModelContext. If no seeder exists, see "Creating a demo data seeder" below
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- CONTRIBUTING.md
- LICENSE
- README.md
- templates/MarketingCapture.swift.template
- templates/capture-marketing.sh.template
FAQ
Что делает скилл ios-marketing-capture?
Use when the user wants to automate capture of marketing screenshots for a SwiftUI iOS app across multiple locales, devices, or appearances. Covers full-screen shots, isolated element renders (carousel cards, widgets), and reproducible output naming. Triggers on marketing screenshots, locale screenshots, widget renders, App Store assets, fastlane-alternative, simctl screenshots.
Как установить скилл ios-marketing-capture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-marketing-capture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
gtm-enterprise-account-planning
GitHubStrategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
gtm-partnership-architecture
GitHubBuild and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
landing-page-conversion-audit
GitHubAudit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
power-platform-architect
GitHubUse this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…