blitz-mac: Skill for Claude Code

.claude/skills/asc-team-key-create/SKILL.md

asc-team-key-create is a skill for Claude Code from blitzdotdev/blitz-mac. It costs 57 tokens per session (2,112 once invoked), scanned A, original, Apache-2.0.

A procedure for creating an App Store Connect team API key with administrator permissions and saving its one-time private `.p8` file in the Blitz directory. App Store Connect is Apple's service for managing apps, releases, and related developer settings.

In plain words
What is it for?
Use it to create or replace a team API key for App Store Connect command-line access, continuous integration, or external developer tools.
Why use it?
It provides credentials for command-line tools, automated build systems, or other integrations without reusing an older key. The signed-in Apple account must have Account Holder or Admin access.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is blitzdotdev/blitz-mac's own configuration. It tells Claude Code how to work on blitz-mac itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything blitz-mac configures →

About the project

Blitz is a native macOS application that connects AI agents to App Store Connect for managing and submitting iOS apps. Developers use it to control parts of the iOS release process, including simulator runs, in-app purchases, screenshots, TestFlight testers, and review submissions. The catalogue includes skills, an instruction, and an MCP connection for operating Blitz.

blitzdotdev/blitz-mac · 1,766 stars · on GitHub · blitz-mac.com

Reuse

Borrowing it

Nothing to install: this file belongs to blitzdotdev/blitz-mac. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/blitzdotdev/blitz-mac/master/.claude/skills/asc-team-key-create/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/blitzdotdev/blitz-mac

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for asc-team-key-create

README.md
[![agentmods](https://agentmods.dev/badge/skills/blitzdotdev/blitz-mac/asc-team-key-create/github.svg)](https://agentmods.dev/skills/blitzdotdev/blitz-mac/asc-team-key-create)
Your own site
<a href="https://agentmods.dev/skills/blitzdotdev/blitz-mac/asc-team-key-create"><img src="https://agentmods.dev/badge/skills/blitzdotdev/blitz-mac/asc-team-key-create/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for asc-team-key-create

Your own site · 80×15
<a href="https://agentmods.dev/skills/blitzdotdev/blitz-mac/asc-team-key-create"><img src="https://agentmods.dev/badge/skills/blitzdotdev/blitz-mac/asc-team-key-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 2
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 38
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.02112
Opus 5.5 $0.00023 $0.00845
Sonnet 5.5 $0.00011 $0.00422
Haiku 4.5 $0.00006 $0.00211

Measured 2mo ago against content hash de5a1e33c5cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

asc-team-key-create scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import json, urllib.request, base64, os, sys, time
.claude/skills/asc-team-key-create/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

asc team key create

Use this skill to create a new App Store Connect API Key with Admin permissions via Apple's iris API, download the one-time .p8 private key, and save it to ~/.blitz.

When to use

  • User asks to "create an API key", "generate a team key", "new ASC key"
  • User needs a fresh key for asc auth login, CI/CD pipelines, or external tooling
  • User wants to rotate or replace an existing API key

Preconditions

  • Web session file available at ~/.blitz/asc-agent/web-session.json. If no session exists or it has expired (401), call the asc_web_auth MCP tool first — this opens the Apple ID login window in Blitz and captures the session automatically.
  • The authenticated Apple ID must have Account Holder or Admin role.

Workflow

1. Check for an existing web session

Before anything else, check if a web session file already exists:

test -f ~/.blitz/asc-agent/web-session.json && echo "SESSION_EXISTS" || echo "NO_SESSION"
  • If NO_SESSION: call the asc_web_auth MCP tool first to open the Apple ID login window in Blitz. Wait for it to complete before proceeding.
  • If SESSION_EXISTS: proceed to the next step.

2. Ask the user for a key name

Ask the user what they want to name the key (the nickname field in ASC). This is a required input — do not guess or use a default.

3. Create the key, download the .p8, and save it

Use the following self-contained script. Replace KEY_NAME with the user's chosen name. Do not print or log cookies — they contain sensitive session tokens.

python3 -c "
import json, urllib.request, base64, os, sys, time

KEY_NAME = 'KEY_NAME_HERE'

# Read web session file (silent — never print these)
session_path = os.path.expanduser('~/.blitz/asc-agent/web-session.json')
if not os.path.isfile(session_path):
    print('ERROR: No web session found. Call asc_web_auth MCP tool first.')
    sys.exit(1)
with open(session_path) as f:
    raw = f.read()

store = json.loads(raw)
session = store['sessions'][store['last_key']]
cookie_str = '; '.join(
    f'{c[\"name\"]}={c[\"value\"]}'
    for cl in session['cookies'].values() for c in cl
    if c.get('name') and c.get('value')
)

headers = {
    'Content-Type': 'application/json',
    'Accept': 'application/json',
    'X-Requested-With': 'XMLHttpRequest',
    'Origin': 'https://appstoreconnect.apple.com',
    'Referer': 'https://appstoreconnect.apple.com/',
    'Cookie': cookie_str
}

# Step 1: Create the API key
create_body = json.dumps({
    'data': {
        'type': 'apiKeys',
        'attributes': {
            'nickname': KEY_NAME,
            'roles': ['ADMIN'],
            'allAppsVisible': True,
            'keyType': 'PUBLIC_API'
        }
    }
}).encode()

req = urllib.request.Request(
    'https://appstoreconnect.apple.com/iris/v1/apiKeys',
    data=create_body, method='POST', headers=headers)
try:
    resp = urllib.request.urlopen(req)
    create_data = json.loads(resp.read().decode())
except urllib.error.HTTPError as e:
    body = e.read().decode()
    if e.code == 401:
        print('ERROR: Session expired. Call asc_web_auth MCP tool to re-authenticate.')
    elif e.code == 409:
        print(f'ERROR: A key with this name may already exist. Details: {body[:300]}')
    else:
        print(f'ERROR creating key: HTTP {e.code} — {body[:300]}')
    sys.exit(1)

key_id = create_data['data']['id']
can_download = create_data['data']['attributes'].get('canDownload', False)
print(f'Created API key \"{KEY_NAME}\" — Key ID: {key_id}')

if not can_download:
    print('ERROR: Key created but canDownload is false. Cannot retrieve private key.')
    sys.exit(1)

# Step 2: Download the one-time private key
time.sleep(0.5)
dl_headers = dict(headers)
dl_headers.pop('Content-Type', None)
req = urllib.request.Request(
    f'https://appstoreconnect.apple.com/iris/v1/apiKeys/{key_id}?fields%5BapiKeys%5D=privateKey',
    method='GET', headers=dl_headers)
try:
    resp = urllib.request.urlopen(req)
    dl_data = json.loads(resp.read().decode())
except urllib.error.HTTPError as e:
    print(f'ERROR downloading key: HTTP {e.code} — {e.read().decode()[:300]}')
    sys.exit(1)

pk_b64 = dl_data['data']['attributes'].get('privateKey')
if not pk_b64:
    print('ERROR: No privateKey in response. The key may have already been downloaded.')
    sys.exit(1)

private_key_pem = base64.b64decode(pk_b64).decode()

# Step 3: Get the issuer ID from the provider relationship
time.sleep(0.35)
req = urllib.request.Request(
    f'https://appstoreconnect.apple.com/iris/v1/apiKeys/{key_id}?include=provider',
    method='GET', headers=dl_headers)
try:
    resp = urllib.request.urlopen(req)
    provider_data = json.loads(resp.read().decode())
    issuer_id = None
    for inc in provider_data.get('included', []):
        if inc['type'] == 'contentProviders':
            issuer_id = inc['id']
            break
    if not issuer_id:
        issuer_id = provider_data['data']['relationships']['provider']['data']['id']
except Exception:
    issuer_id = 'UNKNOWN'

# Step 4: Save .p8 file to ~/.blitz
blitz_dir = os.path.expanduser('~/.blitz')
os.makedirs(blitz_dir, exist_ok=True)
p8_path = os.path.join(blitz_dir, f'AuthKey_{key_id}.p8')
with open(p8_path, 'w') as f:
    f.write(private_key_pem)
os.chmod(p8_path, 0o600)

print(f'Private key saved to: {p8_path}')
print(f'Issuer ID: {issuer_id}')
print(f'Key ID: {key_id}')
print()
print('To use with asc CLI:')
print(f'  asc auth login --key-id {key_id} --issuer-id {issuer_id} --private-key-path {p8_path}')
print()
print('WARNING: This .p8 file can only be downloaded ONCE. Keep it safe.')
"

Read the full file on GitHub · 214 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 214 lines · 57 tokens per session scan A de5a1e33c5cb

Subscribe to this mod's changes

asc-team-key-create is a skill published in the GitHub repository blitzdotdev/blitz-mac (1,766 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 57 tokens to every session and 2,112 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

asc-team-key-create compared with skills from other repositories

asc-team-key-create next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
asc-team-key-createblitzdotdev/blitz-macSkill1.8k3mo agoApache-2.0A57Claude Code
app-rejection-recoveryEronred/aso-skillsSkill2.2k1mo agoMITA168Claude Code
apple-search-adsEronred/aso-skillsSkill2.2k1mo agoMITA127Claude Code
attribution-setupEronred/aso-skillsSkill2.2k1mo agoMITA201Claude Code
custom-product-pagesEronred/aso-skillsSkill2.2k1mo agoMITA157Claude Code
web-to-app-funnelEronred/aso-skillsSkill2.2k1mo agoMITA183Claude Code
android-asoEronred/aso-skillsSkill2.2k1mo agoMITA98Claude Code