asc-cli-usage — Claude Code skill: what it does, how to install
A skill that tells the agent how to run and design asc commands against App Store Connect, from command discovery to output formats and auth.
npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a claude-codeWhat asc-cli-usage does
The skill is a working reference for the asc CLI. The agent starts with --help on the right branch, and drops to asc search when it knows the workflow but not the command path. asc schema exposes the bundled App Store Connect endpoint schemas before a command gets written.
Canonical verbs are spelled out: view for reads instead of the legacy get aliases, edit for update-only surfaces such as pricing availability. That availability surface has to be created first with pricing availability create, or through asc web apps availability create when Apple rejects the public-API bootstrap. Flags go after the leaf subcommand, because parent groups reject them in the wrong place. Output is TTY-aware: table in an interactive terminal, JSON when piped, and --pretty only ever with JSON. Check exit status alongside stdout, since a failed batch can still emit partial receipts.
Auth runs through asc auth login into the keychain, with ASC_KEY_ID and ASC_ISSUER_ID as fallback. StoreKit reads sit under asc storekit with separate In-App Purchase keys. Before wiring this into CI, one thing to verify: a fresh non-interactive web sign-in needs --two-factor-code-command or ASC_WEB_2FA_CODE_COMMAND, and without either it fails before the password is sent.
What it helps with
- find the right
asccommand when only the workflow is known - pull every page of builds into one JSON payload
- turn app availability on for a set of territories
- work out which flags belong after the leaf subcommand
- set up a non-interactive Apple web sign-in for a script
Example prompts for the agent
- Run
asc search "submit app for review"and give me the exact command with its flags - Add build listing to the deploy script with
asc builds list --paginate --output json - Check
asc capabilities --area release --output tableand tell me what the CLI actually covers
How to install asc-cli-usage
1Skills CLI (Vercel)
npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a claude-code2Manually: put the files in place
~/.claude/skills/asc-cli-usage/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/asc-cli-usage/
1Skills CLI (Vercel)
npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a codex2Manually: put the files in place
.agents/skills/asc-cli-usage/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a cursor2Manually: put the files in place
.cursor/skills/asc-cli-usage/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install rorkai/app-store-connect-cli-skills asc-cli-usage2Manually: put the files in place
.github/skills/asc-cli-usage/SKILL.md1Skills CLI (Vercel)
npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a gemini-cli2Platform CLI
gemini skills install https://github.com/rorkai/app-store-connect-cli-skills --path skills/asc-cli-usageManually: put the files in place
.devin/skills/asc-cli-usage/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about asc-cli-usage
How do I install asc-cli-usage in Claude Code?
Run npx skills add rorkai/app-store-connect-cli-skills --skill asc-cli-usage -a claude-code; the skill file then sits at ~/.claude/skills/asc-cli-usage/SKILL.md.
What does asc-cli-usage do?
It gives the agent rules for driving asc against App Store Connect: command discovery, endpoint schemas, flag placement, output formats and authentication.
Do I need an App Store Connect API key?
Yes for API work: log in with asc auth login or set the ASC_* env vars. StoreKit reads use a separate In-App Purchase key under asc storekit auth login, and web-session commands need their own cached login.
Source text
SKILL.md · MIT
--- name: asc-cli-usage description: Guidance for using asc cli in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design asc commands or interact with App Store Connect via the CLI. --- # asc cli usage Use this skill when you need to run or design `asc` commands for App Store Connect. ## Command discovery - Always use `--help` to discover commands and flags. - `asc --help` - `asc builds --help` - `asc builds list --help` - Use `asc search` for local, deterministic command discovery when you know the workflow but not the command path. - `asc search "submit app for review"` - `asc search --output table "upload build"` - Use `asc schema` to inspect bundled App Store Connect endpoint schemas and request/query fields before designing API-facing commands. - `asc schema --pretty "GET /v1/apps"` - `asc schema --method POST appStoreVersions` - Use `asc capabilities` to explain CLI-supported, partial, web-session, and public-API-limited workflow coverage. - `asc capabilities --area release --output table` - `asc capabilities --status web-session --output table` - `asc capabilities --status not-public-api --output markdown` ## Canonical verbs (current asc) - Prefer `view` over legacy `get` aliases for read-only commands in docs and automation. - `asc apps view --id "APP_ID"` - `asc versions view --version-id "VERSION_ID"` - `asc pricing availability view --app "APP_ID"` - Prefer `edit` for update-only availability surfaces and other canonical edit flows. - `asc pricing availability edit --app "APP_ID" --territory "USA,GBR" --available true` - `asc app-setup availability edit --app "APP_ID" --territory "USA,GBR" --available true` - `asc xcode version edit --build-number "42"` - Use `asc pricing availability create` to initialize app availability before using the update-only `edit` command. If Apple rejects the public-API bootstrap, authenticate a web session and use `asc web apps availability create`, or configure Pricing and Availability in App Store Connect. - `asc pricing availability create --app "APP_ID" --territory "USA,GBR" --available true --available-in-new-territories true` - `asc web apps availability create --app "APP_ID" --territory "USA,GBR" --available-in-new-territories true` - Keep `set` where the CLI intentionally models a higher-level replacement/configuration flow and `--help` still shows `set` as the canonical verb. ## Flag conventions - Use explicit long flags (e.g., `--app`, `--output`). - Prefer explicit flags in automation; some newer commands can prompt for missing fields when run interactively. - Destructive operations require `--confirm`. - Use `--paginate` when the user wants all pages. - Put command-specific flags after the leaf subcommand; parent command groups reject misplaced flags. - Treat `--next` URLs as opaque continuations. Do not combine them with new filters, sorting, or page-size flags; follow the selected command's help for required selectors. ## Output formats - Output defaults are TTY-aware: `table` in interactive terminals, `json` when piped or non-interactive. - Use `--output table` or `--output markdown` only for human-readable output. - `--pretty` is only valid with JSON output. - Check the exit status as well as stdout. Failed batch operations can emit partial receipts; inspect completed actions and resource IDs before retrying mutations. ## Authentication and defaults - Prefer keychain auth via `asc auth login`. - Fallback env vars: `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY_PATH`, `ASC_PRIVATE_KEY`, `ASC_PRIVATE_KEY_B64`. - `ASC_APP_ID` can provide a default app ID. - App Store Server API reads (transactions, subscription status, refunds, notification history) live under `asc storekit` and use separate In-App Purchase keys registered with `asc storekit auth login`, not `asc auth` profiles. - When permissions are unclear, inspect exact API key role coverage with `asc web auth capabilities`. - This lives under the web-session auth surface. - It can resolve the current local auth by default, or inspect a specific key with `--key-id`. - Create an App Store Connect team API key through a cached Apple Account web session with `asc web api-keys create`. - An Account Holder or Admin session is required; use `asc web auth login --apple-id "[email protected]"` first when needed. - The command saves the one-time P8 as `AuthKey_<KEY_ID>.p8` without printing its contents; choose an explicit private directory with `--output-dir`. - Example: `asc web api-keys create --name "CI uploads" --role APP_MANAGER --output-dir "./keys" --output json`. ## Reuse authentication before requesting another code - API-key authentication (`asc auth`) and Apple Account web sessions (`asc web auth`) are separate. Prefer the existing keychain API profile for supported operations; inspect `asc auth status` and command capabilities before starting a web login. A profile name is a local label, not an app-level permission boundary. - For web-only work, check `asc web auth status --apple-id "[email protected]" --output json` first. Reuse an authenticated cached session and verify its provider matches the intended account before mutations. Do not log out or clear trust/session state as routine preparation. - Give one process ownership of an interactive sign-in for an Apple Account. While a code prompt is pending, continue that same process; coordinate or serialize other agents instead of starting another login that may invalidate its challenge. - Match a code to the current prompt. A trusted-device notification code and an SMS fallback code belong to different verification steps. Once the CLI announces phone delivery, use the newly delivered phone code, not the earlier notification code. Do not deliberately submit bad codes as a normal resend strategy; inspect the installed command's help for supported recovery. - On failure, distinguish code rejection from a timeout after verification or provider selection. Inspect the exact error and installed version before requesting more codes. Increasing a request timeout is not proof that an interactive-session problem is fixed. - After login, verify `authenticated` and the selected provider with a separate status read; confirm the next web operation reuses the cache before reporting success. Apple may expire sessions later, so do not promise permanent unattended authentication. - Inspect `asc web auth login --help` before configuring a supported `--two-factor-code-command`. Keep credentials and codes out of logs, source, shell history, and PRs. Do not assume a password-manager passkey can be supplied to the CLI or that browser sign-in refreshes its cache; use only authentication mechanisms explicitly supported by the installed CLI. - A fresh non-interactive web sign-in requires `--two-factor-code-command` or `ASC_WEB_2FA_CODE_COMMAND`; without one it fails before sending the password. Cached-session reuse does not require a fresh sign-in. - Select a public team ID with `--public-provider-id`; `--provider-id` takes Apple's numeric provider ID. Do not substitute an API profile name for either ID. ## Apple Ads - Use `asc ads --help` before choosing a command. - Apple Ads uses `asc ads auth`, `--ads-profile`, and `ASC_ADS_*` variables. It does not use App Store Connect API credentials. - Direct resource commands use Platform API v1 with `--ad-account` or `ASC_ADS_AD_ACCOUNT_ID`. Deprecated Campaign Management API v5 commands live under `asc ads v5` and use `--org` or `ASC_ADS_ORG_ID`; never substitute one ID for the other. - Discover ad-account access with `asc ads auth discover --output json` or inspect one ACL response with `asc ads acls list --output json`. - Body commands use `--file` with the exact schema named by the leaf help. V1 query filters use singular `value`, and bulk bodies may use wrapper objects rather than v5 arrays. - Apple Ads resource commands emit JSON. Use `--paginate` only where help shows it; reports and most query bodies carry pagination inside the JSON file. - Deletes and spend-, billing-, delivery-, targeting-, or access-sensitive mutations require `--confirm`. An explicitly paused campaign create is the main documented safe exception. - For live mutation tests, create paused resources with a clear test name, save every ID, pause spend-bearing resources first, and delete only resources created by the test. ## Timeouts - `ASC_TIMEOUT` / `ASC_TIMEOUT_SECONDS` control request timeouts. - `ASC_UPLOAD_TIMEOUT` / `ASC_UPLOAD_TIMEOUT_SECONDS` control upload timeouts.
© rorkai · MIT · rorkai/app-store-connect-cli-skills