К основному содержанию
скилл CX Codex

asc-signing-setup — скилл для Claude Code: что делает и как установить

Скилл для агента: заводит bundle ID, сертификаты и профили iOS-приложений через asc CLI и раскладывает их по команде через git.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add rorkai/app-store-connect-cli-skills --skill asc-signing-setup -a claude-code
Открыть на GitHub

Что делает asc-signing-setup

Скилл проводит агента по цепочке подписи iOS- и macOS-приложений через asc CLI: bundle ID, capabilities, сертификаты, профили. Агент сам вызывает нужные команды — от asc bundle-ids create до asc profiles download и asc profiles local install. Для ротации есть asc certificates revoke и asc profiles delete.

Заранее нужен настроенный доступ: asc auth login или переменные ASC_*. Плюс bundle identifier, целевая платформа и CSR-файл либо флаг --generate-csr, который сделает ключ и запрос на месте. Часть возможностей через публичный API не проходит: PRIVATE_CLOUD_COMPUTE включается только веб-сессией Developer Portal. App Groups так не создать — нужна веб-сессия Account Holder или Admin, и смена привязки инвалидирует профили с этим App ID.

Отдельный блок — asc signing sync: шифрованное хранилище сертификатов и профилей в git, неинтерактивная замена fastlane match. Приватный ключ App Store Connect не возвращает, поэтому в push передают локальный PKCS#12 через --identity. Пароль подаётся файлом --password-file; флаг --password убрали в 5.0.0, ASC_MATCH_PASSWORD игнорируется. Старый вызов в CI просто упадёт, так что проверьте скрипты до релиза.

Какие задачи решает

  • завести bundle ID и включить для него нужные capabilities
  • выпустить сертификат IOS_DISTRIBUTION, когда CSR ещё нет
  • собрать профиль под App Store или ad-hoc с конкретными устройствами
  • отозвать старый сертификат и убрать профили, которые на нём держатся
  • разложить сертификаты и профили по команде через git-репозиторий

Примеры запросов агенту

  • Настрой подпись для нового приложения с bundle ID com.example.app: сертификат IOS_DISTRIBUTION и профиль IOS_APP_STORE
  • Проверь профили со статусом ACTIVE и INVALID, сравни expirationDate с текущей датой и удали просроченные
  • Сделай asc signing sync pull из [email protected]:team/certs.git, пароль лежит в ./signing-sync-password, распакуй в ./signing

Как установить asc-signing-setup

1Через Skills CLI (Vercel)

npx skills add rorkai/app-store-connect-cli-skills --skill asc-signing-setup -a claude-code

2Вручную: положить файлы

~/.claude/skills/asc-signing-setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/asc-signing-setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о asc-signing-setup

Как установить asc-signing-setup в Claude Code?

Выполните npx skills add rorkai/app-store-connect-cli-skills --skill asc-signing-setup -a claude-code. Скилл окажется в ~/.claude/skills/asc-signing-setup/SKILL.md.

Что делает asc-signing-setup?

Описывает агенту порядок работы с подписью: создание bundle ID и capabilities, выпуск сертификатов, сборка и скачивание provisioning profiles, ротация старых активов и обмен ими через asc signing sync.

Что нужно подготовить до запуска?

Настроенную авторизацию (asc auth login или переменные ASC_*), bundle identifier и целевую платформу, а также CSR-файл либо согласие на --generate-csr, который создаст ключ и запрос.

Исходный текст

SKILL.md · MIT
---
name: asc-signing-setup
description: Set up bundle IDs, capabilities, signing certificates, provisioning profiles, and encrypted signing sync with the asc cli. Use when onboarding a new app, rotating signing assets, or sharing them across a team.
---

# asc signing setup

Use this skill when you need to create or renew signing assets for iOS/macOS apps.

## Preconditions
- Auth is configured (`asc auth login` or `ASC_*` env vars).
- You know the bundle identifier and target platform.
- You have a CSR file for certificate creation, or you will let `asc certificates create --generate-csr` create one.

## Workflow
1. Create or find the bundle ID:
   - `asc bundle-ids list --paginate`
   - `asc bundle-ids create --identifier "com.example.app" --name "Example" --platform IOS`
2. Configure bundle ID capabilities:
   - `asc bundle-ids capabilities list --bundle "BUNDLE_ID"`
   - `asc bundle-ids capabilities add --bundle "BUNDLE_ID" --capability ICLOUD`
   - Add capability settings when required:
     - `--settings '[{"key":"ICLOUD_VERSION","options":[{"key":"XCODE_6","enabled":true}]}]'`
   - For the Developer Portal-only `PRIVATE_CLOUD_COMPUTE` capability, use a
     user-owned web session and the Developer Portal Bundle ID resource ID:
     - `asc web bundle-ids capabilities enable --bundle-id "BUNDLE_RESOURCE_ID" --capability PRIVATE_CLOUD_COMPUTE --confirm`
     - This capability is not available through the public App Store Connect
     capability enum. If the cached session cannot access Developer Portal,
       clear its scoped cache, then log in again with the same binary:
       - `asc web auth logout --apple-id "[email protected]"`
       - `asc web auth login --apple-id "[email protected]"`
   - For App Groups, the public API can enable `APP_GROUPS` but cannot create or
     associate App Group resources. Use an Account Holder or Admin web session:
     - `asc web app-groups list --paginate --output table`
     - `asc web app-groups create --name "Example Shared" --identifier "group.com.example.app.shared" --confirm`
     - `asc web app-groups assign --group "GROUP_RESOURCE_ID" --bundle-id "BUNDLE_RESOURCE_ID" --confirm`
     - Resolve the opaque group ID with `asc web app-groups list` and the opaque
       Bundle ID resource ID with `asc bundle-ids list`. A changed assignment
       invalidates provisioning profiles containing that App ID, so regenerate
       affected profiles before the next signed build.
3. Create a signing certificate:
   - `asc certificates list --certificate-type IOS_DISTRIBUTION`
   - `asc certificates create --certificate-type IOS_DISTRIBUTION --csr "./cert.csr"`
   - Or generate a key and CSR inline:
     - `asc certificates create --certificate-type IOS_DISTRIBUTION --generate-csr --key-out "./signing/dist.key" --csr-out "./signing/dist.csr"`
   - For Wallet passes, create the Pass Type ID first, then create its certificate:
     - `asc pass-type-ids create --identifier "pass.com.example" --name "Example Pass"`
     - `asc certificates create --certificate-type PASS_TYPE_ID --pass-type-id "PASS_TYPE_ID" --csr "./pass.csr"`
     - `asc pass-type-ids certificates list --pass-type-id "PASS_TYPE_ID" --paginate`
4. Create a provisioning profile:
   - `asc profiles create --name "AppStore Profile" --profile-type IOS_APP_STORE --bundle "BUNDLE_ID" --certificate "CERT_ID"`
   - Include devices for development/ad-hoc:
     - `asc profiles create --name "Dev Profile" --profile-type IOS_APP_DEVELOPMENT --bundle "BUNDLE_ID" --certificate "CERT_ID" --device "DEVICE_ID"`
5. Download the profile:
   - `asc profiles download --id "PROFILE_ID" --output "./profiles/AppStore.mobileprovision"`
6. Inspect and install the downloaded profile locally when needed:
   - `asc profiles inspect --path "./profiles/AppStore.mobileprovision" --output table`
   - `asc profiles inspect --path "./profiles/AppStore.mobileprovision" --entitlements --output markdown`
   - `asc profiles local install --path "./profiles/AppStore.mobileprovision"`
   - `asc profiles local list --output table`
   - On macOS, the default directory follows the active Xcode: Xcode 16 or newer uses `~/Library/Developer/Xcode/UserData/Provisioning Profiles`; Xcode 15 or older uses `~/Library/MobileDevice/Provisioning Profiles`. Hosts without a full active Xcode fall back to the legacy directory and print a note to stderr.
   - Pass `--install-dir` when automation must target a fixed directory.

## Rotation and cleanup
- Revoke old certificates:
  - `asc certificates revoke --id "CERT_ID" --confirm`
- Audit remote provisioning profiles before deleting or rotating:
  - `asc profiles list --profile-state ACTIVE,INVALID --paginate --output json`
  - Apple `profileState` is not a complete expiration signal: some profiles can have a past `expirationDate` while still reporting `ACTIVE`. For true expired-profile audits, compare `expirationDate` against the current date instead of relying only on `INVALID`.
- Delete old profiles:
  - `asc profiles delete --id "PROFILE_ID" --confirm`
- Clean local Xcode provisioning profiles:
  - `asc profiles local clean --expired --dry-run`
  - `asc profiles local clean --expired --confirm`
  - Check the resolved directory in the dry-run output before confirming, or pin it with `--install-dir`.

## Shared team storage with `asc signing sync`
Use this when you want a lightweight, non-interactive alternative to fastlane match for encrypted git-backed certificate/profile storage.

```bash
# Protect secret inputs before use
chmod 600 "./signing-sync-password" "./distribution.p12" "./distribution-p12-password"

# Push a usable private identity with its matching certificate and profile
asc signing sync push \
  --bundle-id "com.example.app" \
  --profile-type IOS_APP_ADHOC \
  --repo "[email protected]:team/certs.git" \
  --password-file "./signing-sync-password" \
  --identity "./distribution.p12" \
  --identity-password-file "./distribution-p12-password" \
  --output json

# Pull and decrypt them into a local directory
asc signing sync pull \
  --repo "[email protected]:team/certs.git" \
  --password-file "./signing-sync-password" \
  --output-dir "./signing" \
  --output json
```

Notes:
- App Store Connect never returns a private key. Supply the local PKCS#12 with
  `--identity`, or use `--private-key` with `--identity-sha256` to select its
  matching App Store Connect certificate. A multi-identity PKCS#12 also needs
  `--identity-sha256`.
- Prefer `--password-file`; `ASC_SIGNING_SYNC_PASSWORD` is the non-file fallback.
  `--password` was removed in 5.0.0 and is rejected. `ASC_MATCH_PASSWORD` is
  no longer read and is ignored if set.
- Certificate/profile-only sync remains supported but reports
  `identityPresent: false`; it is not a usable signing identity by itself.
- `pull` reports private identities in `sensitiveFiles` and writes them mode
  `0600`. Importing or using the pulled identity remains a separate explicit step.
- Private identity sync rejects `MAC_APP_DIRECT` and
  `MAC_CATALYST_APP_DIRECT`; certificate/profile-only sync remains available.

## Reconcile ad hoc devices and profiles

Use the experimental reconcile workflow for deterministic, additive changes
derived from an Xcode archive and a protected desired-devices file:

```bash
asc signing reconcile plan \
  --archive-path ".asc/artifacts/App.xcarchive" \
  --devices-file ".asc/distribution/devices.json" \
  --output json

asc signing reconcile apply \
  --plan ".asc/distribution/signing/plan.json" \
  --confirm \
  --output json
```

Planning performs no mutation and may return `ready: false`. Apply can register
missing devices, create safe baseline App IDs, and create successor ad hoc
profiles; it never deletes or patches resources, enables capabilities, or
creates certificates. Review the plan before `--confirm`. Use the
`asc-ad-hoc-distribution` skill when these signing effects should be bound into
an end-to-end distribution plan hash.

## Run one command with an ephemeral identity

On macOS, avoid persistent login-keychain and profile changes by wrapping the
child command:

```bash
asc signing run \
  --identity "./signing/App.p12" \
  --identity-password-file "./signing/App-password" \
  --profile "./signing/App.mobileprovision" \
  --receipt ".asc/distribution/signing-run.json" \
  -- xcodebuild -exportArchive \
    -archivePath ".asc/artifacts/App.xcarchive" \
    -exportPath ".asc/artifacts/release-testing" \
    -exportOptionsPlist ".asc/ExportOptions.release-testing.plist"
```

The command runs directly without a shell, preserves the child's exit code,
uses an isolated temporary keychain, and cleans up its temporary profile. It
does not print success data, so the child owns stdout. Never pass identity
passwords inline.

## Notes
- Always check `--help` for the exact enum values (certificate types, profile types).
- Use `--paginate` for large accounts.
- `--certificate` accepts comma-separated IDs when multiple certificates are required.
- Device management uses `asc devices` commands (UDID required).
- `asc profiles inspect` and `asc profiles local ...` operate on local disk state, not App Store Connect API resources.

© rorkai · MIT · rorkai/app-store-connect-cli-skills

Похожие скиллы

Всё по теме «Мобильная разработка» →
asc-metrics appeeky Разбирает фактические данные из App Store Connect через Appeeky: скачивания, подписки, выручку и конверсию пробных периодов. CX Codex +1 2 500установок developing-ios-apps daymade Скилл для сборки и выкладки iOS и macOS приложений: XcodeGen, SwiftUI, SPM, подпись, нотаризация и CI. Пригодится, когда Xcode падает на подписи или rpath. CX Codex +1 1 500установок blitz blitzdotdev Нативное приложение для macOS, которое через MCP отдаёт агенту управление App Store Connect: сборки, IAP, скриншоты, отправка на ревью. CX Codex +1 ★ 1 760звёзд репо xcode-project-setup Google LLC Скилл добавляет Swift Packages и связывает файлы в проектах Xcode. Пригодится для настройки зависимостей iOS, включая Firebase и Alamofire. CX Codex +1 130 700установок argent-ios-simulator-setup software-mansion Скилл для подключения к iOS-симулятору через MCP-инструменты argent. Используй перед любой работой с симулятором: загрузка устройства, получение UDID, взаимодействие с интерфейсом. CX Codex +1 26 500установок argent-ios-device-setup software-mansion Инструкция для агента по подготовке физического iPhone, подключённого кабелем к Mac, для автоматизации argent. Пригодится при отладке тестов на реальном устройстве. CX Codex +1 11 000установок

Из того же набора24

asc-id-resolver Превращает человеческие имена приложений, сборок и тестеров в ID, которые требуют команды asc. Пригодится, когда не помнишь, какой идентификатор подставлять. CX Codex +1 7 600установок asc-xcode-build Скилл учит агента собирать Xcode-проект, делать архив и IPA через CLI asc, а ещё править номера версии и сборки. Пригодится перед загрузкой в App Store Connect или TestFlight. CX Codex +1 7 600установок asc-testflight-orchestration Скилл автоматизирует раздачу бета-версий через CLI-утилиту asc: управляет группами тестировщиков TestFlight, связывает сборки и обновляет примечания What to Test. CX Codex +1 7 300установок asc-ppp-pricing Настраивает цены подписок и покупок в приложении по территориям. Нужен для локальной ценовой стратегии и проверки текущих цен. CX Codex +1 7 300установок asc-build-lifecycle Скилл учит агента работать со сборками в App Store Connect через CLI asc: находить последнюю сборку, проверять обработку, считать следующий номер и чистить старые. CX Codex +1 7 200установок asc-shots-pipeline Автоматизирует сборку iOS-приложения, снимки в симуляторе, оформление рамками и загрузку через asc. Нужен для сценариев захвата экранов по плану. CX Codex +1 6 900установок asc-localize-metadata Скачивает описание, ключевые слова, заголовки и список новшеств из App Store Connect, переводит на нужные языки через LLM и загружает обратно. CX Codex +1 7 000установок asc-subscription-localization Массово заполняет названия и описания подписок или встроенных покупок в App Store Connect через утилиту asc. Избавляет от ручного кликанья по десяткам языков. CX Codex +1 6 800установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой