[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79F3VFK6Z6DCNSSMR3MPTEF":3,"skill-same:01M79F3VFK6Z6DCNSSMR3MPTEF":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M79F3VFK6Z6DCNSSMR3MPTEF","asc-shots-pipeline",null,"Orchestrate iOS screenshot automation with xcodebuild\u002Fsimctl for build-run, AXe for UI actions, JSON settings and plan files, Go-based framing (`asc screenshots frame`), and screenshot upload (`asc screenshots upload`). Use when users ask for automated screenshot capture, AXe-driven simulator flows, frame composition, or screenshot-to-upload pipelines.","BumpyClock\u002Fagent-templates","BumpyClock","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1883824?v=4","01M79EW0FDP9MFXH1FKH800S7T","Aditya Sharma","01M79EW0G27TTKZWTFQ8W5HVB4",2,"MIT","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fapple-platform-skills\u002Fapp-store-connect-cli\u002Fasc-shots-pipeline\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: asc-shots-pipeline\ndescription: Orchestrate iOS screenshot automation with xcodebuild\u002Fsimctl for build-run, AXe for UI actions, JSON settings and plan files, Go-based framing (`asc screenshots frame`), and screenshot upload (`asc screenshots upload`). Use when users ask for automated screenshot capture, AXe-driven simulator flows, frame composition, or screenshot-to-upload pipelines.\n---\n\n# asc screenshots pipeline (xcodebuild -> AXe -> frame -> asc)\n\nUse this skill for agent-driven screenshot workflows where the app is built and launched with Xcode CLI tools, UI is driven with AXe, and screenshots are uploaded with `asc`.\n\n## Current scope\n- Implemented now: build\u002Frun, AXe plan capture, frame composition, and upload.\n- Device discovery is built-in via `asc screenshots list-frame-devices`.\n- Local screenshot automation commands are experimental in asc cli.\n- Framing is pinned to Koubou `0.13.0` for deterministic output.\n- Feedback\u002Fissues: https:\u002F\u002Fgithub.com\u002Frudrankriyam\u002FApp-Store-Connect-CLI\u002Fissues\u002Fnew\u002Fchoose\n\n## Defaults\n- Settings file: `.asc\u002Fshots.settings.json`\n- Capture plan: `.asc\u002Fscreenshots.json`\n- Raw screenshots dir: `.\u002Fscreenshots\u002Fraw`\n- Framed screenshots dir: `.\u002Fscreenshots\u002Fframed`\n- Default frame device: `iphone-air`\n\n## 1) Create settings JSON first\n\nCreate or update `.asc\u002Fshots.settings.json`:\n\n```json\n{\n  \"version\": 1,\n  \"app\": {\n    \"bundle_id\": \"com.example.app\",\n    \"project\": \"MyApp.xcodeproj\",\n    \"scheme\": \"MyApp\",\n    \"simulator_udid\": \"booted\"\n  },\n  \"paths\": {\n    \"plan\": \".asc\u002Fscreenshots.json\",\n    \"raw_dir\": \".\u002Fscreenshots\u002Fraw\",\n    \"framed_dir\": \".\u002Fscreenshots\u002Fframed\"\n  },\n  \"pipeline\": {\n    \"frame_enabled\": true,\n    \"upload_enabled\": false\n  },\n  \"upload\": {\n    \"version_localization_id\": \"\",\n    \"device_type\": \"IPHONE_65\",\n    \"source_dir\": \".\u002Fscreenshots\u002Fframed\"\n  }\n}\n```\n\nIf you intentionally skip framing, set:\n- `\"frame_enabled\": false`\n- `\"upload.source_dir\": \".\u002Fscreenshots\u002Fraw\"`\n\n## 2) Build and run app on simulator\n\nUse Xcode CLI for build\u002Finstall\u002Flaunch:\n\n```bash\nxcrun simctl boot \"$UDID\" || true\n\nxcodebuild \\\n  -project \"MyApp.xcodeproj\" \\\n  -scheme \"MyApp\" \\\n  -configuration Debug \\\n  -destination \"platform=iOS Simulator,id=$UDID\" \\\n  -derivedDataPath \".build\u002FDerivedData\" \\\n  build\n\nxcrun simctl install \"$UDID\" \".build\u002FDerivedData\u002FBuild\u002FProducts\u002FDebug-iphonesimulator\u002FMyApp.app\"\nxcrun simctl launch \"$UDID\" \"com.example.app\"\n```\n\nUse `xcodebuild -showBuildSettings` if the app bundle path differs from the default location.\n\n## 3) Capture screenshots with AXe (or `asc screenshots run`)\n\nPrefer plan-driven capture:\n\n```bash\nasc screenshots run --plan \".asc\u002Fscreenshots.json\" --udid \"$UDID\" --output json\n```\n\nUseful AXe primitives during plan authoring:\n\n```bash\naxe describe-ui --udid \"$UDID\"\naxe tap --id \"search_field\" --udid \"$UDID\"\naxe type \"wwdc\" --udid \"$UDID\"\naxe screenshot --output \".\u002Fscreenshots\u002Fraw\u002Fhome.png\" --udid \"$UDID\"\n```\n\nMinimal `.asc\u002Fscreenshots.json` example:\n\n```json\n{\n  \"version\": 1,\n  \"app\": {\n    \"bundle_id\": \"com.example.app\",\n    \"udid\": \"booted\",\n    \"output_dir\": \".\u002Fscreenshots\u002Fraw\"\n  },\n  \"steps\": [\n    { \"action\": \"launch\" },\n    { \"action\": \"wait\", \"duration_ms\": 800 },\n    { \"action\": \"screenshot\", \"name\": \"home\" }\n  ]\n}\n```\n\n## 4) Frame screenshots with `asc screenshots frame`\n\nasc cli pins framing to Koubou `0.13.0`.\nInstall and verify before running framing steps:\n\n```bash\npip install koubou==0.13.0\nkou --version  # expect 0.13.0\n```\n\nList supported frame device values first:\n\n```bash\nasc screenshots list-frame-devices --output json\n```\n\nFrame one screenshot (defaults to `iphone-air`):\n\n```bash\nasc screenshots frame \\\n  --input \".\u002Fscreenshots\u002Fraw\u002Fhome.png\" \\\n  --output-dir \".\u002Fscreenshots\u002Fframed\" \\\n  --device \"iphone-air\" \\\n  --output json\n```\n\nSupported `--device` values:\n- `iphone-air` (default)\n- `iphone-17-pro`\n- `iphone-17-pro-max`\n- `iphone-16e`\n- `iphone-17`\n\n## 5) Upload screenshots with asc\n\nGenerate and review artifacts before upload:\n\n```bash\nasc screenshots review-generate --framed-dir \".\u002Fscreenshots\u002Fframed\" --output-dir \".\u002Fscreenshots\u002Freview\"\nasc screenshots review-open --output-dir \".\u002Fscreenshots\u002Freview\"\nasc screenshots review-approve --all-ready --output-dir \".\u002Fscreenshots\u002Freview\"\n```\n\nUpload from the configured source directory (default `.\u002Fscreenshots\u002Fframed` when framing is enabled):\n\n```bash\nasc screenshots upload \\\n  --version-localization \"LOC_ID\" \\\n  --path \".\u002Fscreenshots\u002Fframed\" \\\n  --device-type \"IPHONE_65\" \\\n  --output json\n```\n\nList or validate before upload when needed:\n\n```bash\nasc screenshots sizes --output table\nasc screenshots list --version-localization \"LOC_ID\" --output table\n```\n\n## Agent behavior\n- Always confirm exact flags with `--help` before running commands.\n- Re-check command paths with `asc screenshots --help` because screenshot commands are evolving quickly.\n- Keep outputs deterministic: default to JSON for machine steps.\n- Prefer `asc screenshots list-frame-devices --output json` before selecting a frame device.\n- Ensure screenshot files exist before upload.\n- Use explicit long flags (`--app`, `--output`, `--version-localization`, etc.).\n- Treat screenshot-local automation as experimental and call it out in user-facing handoff notes.\n- If framing fails with a version error, re-install pinned Koubou: `pip install koubou==0.13.0`.\n\n## 6) Multi-locale capture (optional)\n\nDo not use `xcrun simctl launch ... -e AppleLanguages` for localization.\n`-e` is an environment variable pattern and does not reliably switch app language.\n\nFor this pipeline, use simulator-wide locale defaults per UDID. This works with\n`asc screenshots capture`, which relaunches the app internally.\n\n```bash\n# Map each locale to a dedicated simulator UDID.\n# (Create these simulators once with `xcrun simctl create`.)\ndeclare -A LOCALE_UDID=(\n  [\"en-US\"]=\"UDID_EN_US\"\n  [\"de-DE\"]=\"UDID_DE_DE\"\n  [\"fr-FR\"]=\"UDID_FR_FR\"\n  [\"ja-JP\"]=\"UDID_JA_JP\"\n)\n\nset_simulator_locale() {\n  local UDID=\"$1\"\n  local LOCALE=\"$2\"            # e.g. de-DE\n  local LANG=\"${LOCALE%%-*}\"   # de\n  local APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\" # de_DE\n\n  xcrun simctl boot \"$UDID\" || true\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n}\n\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  UDID=\"${LOCALE_UDID[$LOCALE]}\"\n  echo \"Capturing $LOCALE on $UDID...\"\n  set_simulator_locale \"$UDID\" \"$LOCALE\"\n\n  xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n  asc screenshots capture \\\n    --bundle-id \"com.example.app\" \\\n    --name \"home\" \\\n    --udid \"$UDID\" \\\n    --output-dir \".\u002Fscreenshots\u002Fraw\u002F$LOCALE\" \\\n    --output json\ndone\n```\n\nIf you launch manually (outside `asc screenshots capture`), use app launch arguments:\n\n```bash\nxcrun simctl launch \"$UDID\" \"com.example.app\" -AppleLanguages \"(de)\" -AppleLocale \"de_DE\"\n```\n\n## 7) Parallel execution for speed\n\nRun one locale per simulator UDID in parallel:\n\n```bash\n#!\u002Fbin\u002Fbash\n# parallel-capture.sh\n\ndeclare -A LOCALE_UDID=(\n  [\"en-US\"]=\"UDID_EN_US\"\n  [\"de-DE\"]=\"UDID_DE_DE\"\n  [\"fr-FR\"]=\"UDID_FR_FR\"\n  [\"ja-JP\"]=\"UDID_JA_JP\"\n)\n\ncapture_locale() {\n  local LOCALE=\"$1\"\n  local UDID=\"$2\"\n  local LANG=\"${LOCALE%%-*}\"\n  local APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\"\n\n  echo \"Starting $LOCALE on $UDID\"\n  xcrun simctl boot \"$UDID\" || true\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n  xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n\n  asc screenshots capture \\\n    --bundle-id \"com.example.app\" \\\n    --name \"home\" \\\n    --udid \"$UDID\" \\\n    --output-dir \".\u002Fscreenshots\u002Fraw\u002F$LOCALE\" \\\n    --output json\n\n  echo \"Completed $LOCALE\"\n}\n\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  capture_locale \"$LOCALE\" \"${LOCALE_UDID[$LOCALE]}\" &\ndone\n\nwait\necho \"All captures done. Now framing...\"\n```\n\nOr use `xargs` with `locale:udid` pairs:\n\n```bash\nprintf \"%s\\n\" \\\n  \"en-US:UDID_EN_US\" \\\n  \"de-DE:UDID_DE_DE\" \\\n  \"fr-FR:UDID_FR_FR\" \\\n  \"ja-JP:UDID_JA_JP\" | xargs -P 4 -I {} bash -c '\n    PAIR=\"{}\"\n    LOCALE=\"${PAIR%%:*}\"\n    UDID=\"${PAIR##*:}\"\n    LANG=\"${LOCALE%%-*}\"\n    APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\"\n    xcrun simctl boot \"$UDID\" || true\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n    xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n    asc screenshots capture --bundle-id \"com.example.app\" --name \"home\" --udid \"$UDID\" --output-dir \".\u002Fscreenshots\u002Fraw\u002F$LOCALE\" --output json\n  '\n```\n\n## 8) Full multi-locale pipeline example\n\n```bash\n#!\u002Fbin\u002Fbash\n# full-pipeline-multi-locale.sh\n\ndeclare -A LOCALE_UDID=(\n  [\"en-US\"]=\"UDID_EN_US\"\n  [\"de-DE\"]=\"UDID_DE_DE\"\n  [\"fr-FR\"]=\"UDID_FR_FR\"\n  [\"es-ES\"]=\"UDID_ES_ES\"\n  [\"ja-JP\"]=\"UDID_JA_JP\"\n)\n\nDEVICE=\"iphone-air\"\nRAW_DIR=\".\u002Fscreenshots\u002Fraw\"\nFRAMED_DIR=\".\u002Fscreenshots\u002Fframed\"\n\n# Step 1: Parallel capture with per-simulator locale defaults\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  (\n    UDID=\"${LOCALE_UDID[$LOCALE]}\"\n    LANG=\"${LOCALE%%-*}\"\n    APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\"\n\n    xcrun simctl boot \"$UDID\" || true\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n    xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n\n    asc screenshots capture \\\n      --bundle-id \"com.example.app\" \\\n      --name \"home\" \\\n      --udid \"$UDID\" \\\n      --output-dir \"$RAW_DIR\u002F$LOCALE\" \\\n      --output json\n    echo \"Captured $LOCALE\"\n  ) &\ndone\nwait\n\n# Step 2: Parallel framing\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  (\n    asc screenshots frame \\\n      --input \"$RAW_DIR\u002F$LOCALE\u002Fhome.png\" \\\n      --output-dir \"$FRAMED_DIR\u002F$LOCALE\" \\\n      --device \"$DEVICE\" \\\n      --output json\n    echo \"Framed $LOCALE\"\n  ) &\ndone\nwait\n\n# Step 3: Generate review (single run, aggregates all locales)\nasc screenshots review-generate \\\n  --framed-dir \"$FRAMED_DIR\" \\\n  --output-dir \".\u002Fscreenshots\u002Freview\"\n\n# Step 4: Upload (run per locale if needed)\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  asc screenshots upload \\\n    --version-localization \"LOC_ID_FOR_$LOCALE\" \\\n    --path \"$FRAMED_DIR\u002F$LOCALE\" \\\n    --device-type \"IPHONE_65\" \\\n    --output json\ndone\n```\n","# asc screenshots pipeline (xcodebuild -> AXe -> frame -> asc)\n\nUse this skill for agent-driven screenshot workflows where the app is built and launched with Xcode CLI tools, UI is driven with AXe, and screenshots are uploaded with `asc`.\n\n## Current scope\n- Implemented now: build\u002Frun, AXe plan capture, frame composition, and upload.\n- Device discovery is built-in via `asc screenshots list-frame-devices`.\n- Local screenshot automation commands are experimental in asc cli.\n- Framing is pinned to Koubou `0.13.0` for deterministic output.\n- Feedback\u002Fissues: https:\u002F\u002Fgithub.com\u002Frudrankriyam\u002FApp-Store-Connect-CLI\u002Fissues\u002Fnew\u002Fchoose\n\n## Defaults\n- Settings file: `.asc\u002Fshots.settings.json`\n- Capture plan: `.asc\u002Fscreenshots.json`\n- Raw screenshots dir: `.\u002Fscreenshots\u002Fraw`\n- Framed screenshots dir: `.\u002Fscreenshots\u002Fframed`\n- Default frame device: `iphone-air`\n\n## 1) Create settings JSON first\n\nCreate or update `.asc\u002Fshots.settings.json`:\n\n```json\n{\n  \"version\": 1,\n  \"app\": {\n    \"bundle_id\": \"com.example.app\",\n    \"project\": \"MyApp.xcodeproj\",\n    \"scheme\": \"MyApp\",\n    \"simulator_udid\": \"booted\"\n  },\n  \"paths\": {\n    \"plan\": \".asc\u002Fscreenshots.json\",\n    \"raw_dir\": \".\u002Fscreenshots\u002Fraw\",\n    \"framed_dir\": \".\u002Fscreenshots\u002Fframed\"\n  },\n  \"pipeline\": {\n    \"frame_enabled\": true,\n    \"upload_enabled\": false\n  },\n  \"upload\": {\n    \"version_localization_id\": \"\",\n    \"device_type\": \"IPHONE_65\",\n    \"source_dir\": \".\u002Fscreenshots\u002Fframed\"\n  }\n}\n```\n\nIf you intentionally skip framing, set:\n- `\"frame_enabled\": false`\n- `\"upload.source_dir\": \".\u002Fscreenshots\u002Fraw\"`\n\n## 2) Build and run app on simulator\n\nUse Xcode CLI for build\u002Finstall\u002Flaunch:\n\n```bash\nxcrun simctl boot \"$UDID\" || true\n\nxcodebuild \\\n  -project \"MyApp.xcodeproj\" \\\n  -scheme \"MyApp\" \\\n  -configuration Debug \\\n  -destination \"platform=iOS Simulator,id=$UDID\" \\\n  -derivedDataPath \".build\u002FDerivedData\" \\\n  build\n\nxcrun simctl install \"$UDID\" \".build\u002FDerivedData\u002FBuild\u002FProducts\u002FDebug-iphonesimulator\u002FMyApp.app\"\nxcrun simctl launch \"$UDID\" \"com.example.app\"\n```\n\nUse `xcodebuild -showBuildSettings` if the app bundle path differs from the default location.\n\n## 3) Capture screenshots with AXe (or `asc screenshots run`)\n\nPrefer plan-driven capture:\n\n```bash\nasc screenshots run --plan \".asc\u002Fscreenshots.json\" --udid \"$UDID\" --output json\n```\n\nUseful AXe primitives during plan authoring:\n\n```bash\naxe describe-ui --udid \"$UDID\"\naxe tap --id \"search_field\" --udid \"$UDID\"\naxe type \"wwdc\" --udid \"$UDID\"\naxe screenshot --output \".\u002Fscreenshots\u002Fraw\u002Fhome.png\" --udid \"$UDID\"\n```\n\nMinimal `.asc\u002Fscreenshots.json` example:\n\n```json\n{\n  \"version\": 1,\n  \"app\": {\n    \"bundle_id\": \"com.example.app\",\n    \"udid\": \"booted\",\n    \"output_dir\": \".\u002Fscreenshots\u002Fraw\"\n  },\n  \"steps\": [\n    { \"action\": \"launch\" },\n    { \"action\": \"wait\", \"duration_ms\": 800 },\n    { \"action\": \"screenshot\", \"name\": \"home\" }\n  ]\n}\n```\n\n## 4) Frame screenshots with `asc screenshots frame`\n\nasc cli pins framing to Koubou `0.13.0`.\nInstall and verify before running framing steps:\n\n```bash\npip install koubou==0.13.0\nkou --version  # expect 0.13.0\n```\n\nList supported frame device values first:\n\n```bash\nasc screenshots list-frame-devices --output json\n```\n\nFrame one screenshot (defaults to `iphone-air`):\n\n```bash\nasc screenshots frame \\\n  --input \".\u002Fscreenshots\u002Fraw\u002Fhome.png\" \\\n  --output-dir \".\u002Fscreenshots\u002Fframed\" \\\n  --device \"iphone-air\" \\\n  --output json\n```\n\nSupported `--device` values:\n- `iphone-air` (default)\n- `iphone-17-pro`\n- `iphone-17-pro-max`\n- `iphone-16e`\n- `iphone-17`\n\n## 5) Upload screenshots with asc\n\nGenerate and review artifacts before upload:\n\n```bash\nasc screenshots review-generate --framed-dir \".\u002Fscreenshots\u002Fframed\" --output-dir \".\u002Fscreenshots\u002Freview\"\nasc screenshots review-open --output-dir \".\u002Fscreenshots\u002Freview\"\nasc screenshots review-approve --all-ready --output-dir \".\u002Fscreenshots\u002Freview\"\n```\n\nUpload from the configured source directory (default `.\u002Fscreenshots\u002Fframed` when framing is enabled):\n\n```bash\nasc screenshots upload \\\n  --version-localization \"LOC_ID\" \\\n  --path \".\u002Fscreenshots\u002Fframed\" \\\n  --device-type \"IPHONE_65\" \\\n  --output json\n```\n\nList or validate before upload when needed:\n\n```bash\nasc screenshots sizes --output table\nasc screenshots list --version-localization \"LOC_ID\" --output table\n```\n\n## Agent behavior\n- Always confirm exact flags with `--help` before running commands.\n- Re-check command paths with `asc screenshots --help` because screenshot commands are evolving quickly.\n- Keep outputs deterministic: default to JSON for machine steps.\n- Prefer `asc screenshots list-frame-devices --output json` before selecting a frame device.\n- Ensure screenshot files exist before upload.\n- Use explicit long flags (`--app`, `--output`, `--version-localization`, etc.).\n- Treat screenshot-local automation as experimental and call it out in user-facing handoff notes.\n- If framing fails with a version error, re-install pinned Koubou: `pip install koubou==0.13.0`.\n\n## 6) Multi-locale capture (optional)\n\nDo not use `xcrun simctl launch ... -e AppleLanguages` for localization.\n`-e` is an environment variable pattern and does not reliably switch app language.\n\nFor this pipeline, use simulator-wide locale defaults per UDID. This works with\n`asc screenshots capture`, which relaunches the app internally.\n\n```bash\n# Map each locale to a dedicated simulator UDID.\n# (Create these simulators once with `xcrun simctl create`.)\ndeclare -A LOCALE_UDID=(\n  [\"en-US\"]=\"UDID_EN_US\"\n  [\"de-DE\"]=\"UDID_DE_DE\"\n  [\"fr-FR\"]=\"UDID_FR_FR\"\n  [\"ja-JP\"]=\"UDID_JA_JP\"\n)\n\nset_simulator_locale() {\n  local UDID=\"$1\"\n  local LOCALE=\"$2\"            # e.g. de-DE\n  local LANG=\"${LOCALE%%-*}\"   # de\n  local APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\" # de_DE\n\n  xcrun simctl boot \"$UDID\" || true\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n}\n\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  UDID=\"${LOCALE_UDID[$LOCALE]}\"\n  echo \"Capturing $LOCALE on $UDID...\"\n  set_simulator_locale \"$UDID\" \"$LOCALE\"\n\n  xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n  asc screenshots capture \\\n    --bundle-id \"com.example.app\" \\\n    --name \"home\" \\\n    --udid \"$UDID\" \\\n    --output-dir \".\u002Fscreenshots\u002Fraw\u002F$LOCALE\" \\\n    --output json\ndone\n```\n\nIf you launch manually (outside `asc screenshots capture`), use app launch arguments:\n\n```bash\nxcrun simctl launch \"$UDID\" \"com.example.app\" -AppleLanguages \"(de)\" -AppleLocale \"de_DE\"\n```\n\n## 7) Parallel execution for speed\n\nRun one locale per simulator UDID in parallel:\n\n```bash\n#!\u002Fbin\u002Fbash\n# parallel-capture.sh\n\ndeclare -A LOCALE_UDID=(\n  [\"en-US\"]=\"UDID_EN_US\"\n  [\"de-DE\"]=\"UDID_DE_DE\"\n  [\"fr-FR\"]=\"UDID_FR_FR\"\n  [\"ja-JP\"]=\"UDID_JA_JP\"\n)\n\ncapture_locale() {\n  local LOCALE=\"$1\"\n  local UDID=\"$2\"\n  local LANG=\"${LOCALE%%-*}\"\n  local APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\"\n\n  echo \"Starting $LOCALE on $UDID\"\n  xcrun simctl boot \"$UDID\" || true\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n  xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n  xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n\n  asc screenshots capture \\\n    --bundle-id \"com.example.app\" \\\n    --name \"home\" \\\n    --udid \"$UDID\" \\\n    --output-dir \".\u002Fscreenshots\u002Fraw\u002F$LOCALE\" \\\n    --output json\n\n  echo \"Completed $LOCALE\"\n}\n\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  capture_locale \"$LOCALE\" \"${LOCALE_UDID[$LOCALE]}\" &\ndone\n\nwait\necho \"All captures done. Now framing...\"\n```\n\nOr use `xargs` with `locale:udid` pairs:\n\n```bash\nprintf \"%s\\n\" \\\n  \"en-US:UDID_EN_US\" \\\n  \"de-DE:UDID_DE_DE\" \\\n  \"fr-FR:UDID_FR_FR\" \\\n  \"ja-JP:UDID_JA_JP\" | xargs -P 4 -I {} bash -c '\n    PAIR=\"{}\"\n    LOCALE=\"${PAIR%%:*}\"\n    UDID=\"${PAIR##*:}\"\n    LANG=\"${LOCALE%%-*}\"\n    APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\"\n    xcrun simctl boot \"$UDID\" || true\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n    xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n    asc screenshots capture --bundle-id \"com.example.app\" --name \"home\" --udid \"$UDID\" --output-dir \".\u002Fscreenshots\u002Fraw\u002F$LOCALE\" --output json\n  '\n```\n\n## 8) Full multi-locale pipeline example\n\n```bash\n#!\u002Fbin\u002Fbash\n# full-pipeline-multi-locale.sh\n\ndeclare -A LOCALE_UDID=(\n  [\"en-US\"]=\"UDID_EN_US\"\n  [\"de-DE\"]=\"UDID_DE_DE\"\n  [\"fr-FR\"]=\"UDID_FR_FR\"\n  [\"es-ES\"]=\"UDID_ES_ES\"\n  [\"ja-JP\"]=\"UDID_JA_JP\"\n)\n\nDEVICE=\"iphone-air\"\nRAW_DIR=\".\u002Fscreenshots\u002Fraw\"\nFRAMED_DIR=\".\u002Fscreenshots\u002Fframed\"\n\n# Step 1: Parallel capture with per-simulator locale defaults\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  (\n    UDID=\"${LOCALE_UDID[$LOCALE]}\"\n    LANG=\"${LOCALE%%-*}\"\n    APPLE_LOCALE=\"${LOCALE\u002F-\u002F_}\"\n\n    xcrun simctl boot \"$UDID\" || true\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLanguages -array \"$LANG\"\n    xcrun simctl spawn \"$UDID\" defaults write NSGlobalDomain AppleLocale -string \"$APPLE_LOCALE\"\n    xcrun simctl terminate \"$UDID\" \"com.example.app\" || true\n\n    asc screenshots capture \\\n      --bundle-id \"com.example.app\" \\\n      --name \"home\" \\\n      --udid \"$UDID\" \\\n      --output-dir \"$RAW_DIR\u002F$LOCALE\" \\\n      --output json\n    echo \"Captured $LOCALE\"\n  ) &\ndone\nwait\n\n# Step 2: Parallel framing\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  (\n    asc screenshots frame \\\n      --input \"$RAW_DIR\u002F$LOCALE\u002Fhome.png\" \\\n      --output-dir \"$FRAMED_DIR\u002F$LOCALE\" \\\n      --device \"$DEVICE\" \\\n      --output json\n    echo \"Framed $LOCALE\"\n  ) &\ndone\nwait\n\n# Step 3: Generate review (single run, aggregates all locales)\nasc screenshots review-generate \\\n  --framed-dir \"$FRAMED_DIR\" \\\n  --output-dir \".\u002Fscreenshots\u002Freview\"\n\n# Step 4: Upload (run per locale if needed)\nfor LOCALE in \"${!LOCALE_UDID[@]}\"; do\n  asc screenshots upload \\\n    --version-localization \"LOC_ID_FOR_$LOCALE\" \\\n    --path \"$FRAMED_DIR\u002F$LOCALE\" \\\n    --device-type \"IPHONE_65\" \\\n    --output json\ndone\n```\n",{"name":5,"description":7},"main","e24b64bdac040ad169ed16b14853eff1b20cd726","skills_archive\u002Fapple-platform-skills\u002Fapp-store-connect-cli\u002Fasc-shots-pipeline",0,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates","https:\u002F\u002Fgithub.com\u002FBumpyClock","2026-11-14 03:12:06",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add BumpyClock\u002Fagent-templates --skill asc-shots-pipeline",{"tool":37,"command":38},"bunx","bunx skills add BumpyClock\u002Fagent-templates --skill asc-shots-pipeline",{"tool":40,"command":41},"pnpm","pnpm dlx skills add BumpyClock\u002Fagent-templates --skill asc-shots-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fapple-platform-skills\u002Fapp-store-connect-cli\u002Fasc-shots-pipeline\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",189,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fapple-platform-skills\u002Fapp-store-connect-cli\u002Fasc-shots-pipeline\u002Fagents\u002Fopenai.yaml",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M79FEE6E257MWVEBY43X0NVN","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79FEB8GTJC6ZHDK67T40R20","workflow-from-chats","Extract preferences from agent chats → skills, rules, workflow docs. For learning preferences, mining feedback, personalizing workflows.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fworkflow-from-chats\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79FE7TMNGVZZ0M8NV4N0X6N","winui3-csharp-app","WinUI 3 \u002F Windows App SDK desktop apps in C#\u002FXAML. MVVM, bindings, navigation, Mica\u002FAcrylic, windowing, packaging, performance.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwinui3-csharp-app\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79FE31HY46BHN67CQGB7MVJ","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79FE0N7MGWDG8SCD60FWTV5","what-did-i-get-done","Summarize authored commits over a user-specified time period into a concise status update.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhat-did-i-get-done\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79FDYBJG9QNCQC0MMVBDT80","weekly-review","Produce a short weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fweekly-review\u002FSKILL.md",[],[]]