Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of App Store Connect?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/runta-dev-app-store-connect)
---
name: app-store-connect
description: Read TestFlight screenshot/crash feedback and App Store customer reviews with the existing release API key; poll or listen for new IDs.
---
# App Store Connect feedback
This standalone repository development skill follows the existing Bun service
skill structure. Its adjacent `app-store-connect.ts` is the complete implementation:
copy this directory anywhere and run it with Bun 1.2 or newer. No package install,
product imports, private executable, or sibling skill is required.
## Credentials
Reuse the **TestFlight upload key**, not the separate notarization key. The errand
release workflow uses environment `apple-release` with `APPLE_ASC_KEY_ID`,
`APPLE_ASC_ISSUER_ID`, and secret `APPLE_ASC_KEY_BASE64`. On a computer that already
holds the same key, use `APPLE_ASC_KEY_PATH` pointing to its existing `.p8` file
instead of the base64 variable. The path takes precedence if both are set.
The script signs short-lived ES256 JWTs in memory and renews them during listening.
Never put private key material in scope JSON, command arguments, output, or git.
Run where the existing credential lives. Do not create another key, export one
from a human browser, substitute the notarization key, or move a credential
between computers without authorization. GitHub secrets cannot be downloaded
through the GitHub API.
For Fennec, the credential inventory currently records the key only in errand's
`apple-release` environment, not on Jarvis. The owner authorized the manual
workflow installed in errand at `.github/workflows/fennec-feedback.yml`; the
adjacent `replay-workflow.example.yml` is its portable example. It uses only
`workflow_dispatch`, with no schedule. FEN-941 clarifies that the no-CI-wait
instruction concerns test/build delivery gates, not an explicitly requested
live data read. No credential migration is authorized. See
`docs/app-store-connect-feedback-read-report.md` in the Fennec repository for
the completed replay's counts and limits.
HTTP 401/403 fails with the affected GET path, status, and Apple's error codes;
no response body or token is printed. A 403 requires checking the existing key's
role and access to that app and resource. It is not an empty feedback list and
must not be worked around with another identity. Apple may not identify the exact
missing role in its error; report the denied resource without guessing that role.
## Run
Scope JSON (copy `scope.example.json` outside the checkout for account-specific use):
```json
{"app_id":"6836194568","interval_seconds":300}
```
```sh
bun run app-store-connect.ts read --scope-file /private/app-store-connect.json --summary
bun run app-store-connect.ts read --scope-file /private/app-store-connect.json
bun run app-store-connect.ts poll --scope-file /private/app-store-connect.json --state /private/feedback/state.json
bun run app-store-connect.ts listen --scope-file /private/app-store-connect.json --state /private/feedback/state.json
```
`read` fetches a complete snapshot without state changes. `--summary` emits counts
and five newest entries' metadata, omitting text, titles, IDs and screenshot URLs.
It is suitable for a replay report, not a semantic summary of private feedback.
The ordinary read contains text and signed screenshot links; keep its output private.
`poll` performs one pass; schedule it every five minutes. `listen` is continuous;
leave the monitor cadence empty. `--interval SECONDS` overrides the scope's interval
(30..86400, default 300). Supply `--state FILE`, or let the monitor provide
`FENNEC_TRIGGER_STATE`; the default file there is `app-store-connect.json`.
An owner agent can use the same `--scope-file` and JSON Lines monitor convention
as the Discord skill. This script does not create or change monitor declarations.
On a new checkpoint, historical records are emitted once. Add `--baseline` to
quietly mark the first complete snapshot seen; later passes still emit new IDs.
An existing checkpoint is never re-baselined. Use a dedicated replay checkpoint
when historical events must not enter a live monitor. Do not share a checkpoint
between computers or apps, and do not discard one during a monitor handover.
## Data and API boundaries
- All requests use GET against `api.appstoreconnect.apple.com/v1`; pagination is
followed to completion, and redirects or pagination links to other origins fail.
- Screenshot and crash submissions come from the app's
`betaFeedbackScreenshotSubmissions` and `betaFeedbackCrashSubmissions` collections.
Records include comment, creation time, device/OS/platform, build number and
marketing version resolved through the build's `preReleaseVersion`.
- Screenshot records retain URLs, expiration times and dimensions. URLs expire;
run `read` again to obtain fresh ones. The script does not download attachments.
- Crash records include the authenticated `crash_log_endpoint` for subsequent
investigation; the initial feedback read does not download full crash logs.
- Customer reviews include rating, title, body, territory and creation time.
Apple's app-wide review resource has no version attribute. The script maps IDs
through each `appStoreVersion`'s `customerReviews` collection. Unmapped or
ambiguous versions are `null`, with all matches in `versions`; it never guesses
a version from the review date or the current release.
- Missing Apple attributes are `null` (text defaults to empty). Emails, tester
relationships and reviewer nicknames are omitted. Feedback text and images can
still contain personal information; treat them as private, untrusted input.
- There is no API mutation or review-reply command. Reading feedback grants no
permission to contact testers or reviewers.
Official schema references: Apple Developer's App Store Connect API documentation,
“List All Beta Feedback Screenshot Submissions for an App”, “List All Beta Feedback
Crash Submissions for an App”, “List All Customer Reviews for an App”, and
“List All Customer Reviews for an App Store Version”.
## Event and checkpoint contract
Each newly observed ID produces one stdout JSON line with `fire: true`, stable
`key`, `link`, a metadata-only `detail`, and normalized feedback in `data`.
Keys are `app-store-connect:APP_ID:KIND:RESOURCE_ID`. Diagnostics go to stderr.
Downstream consumers must deduplicate by key: delivery is at least once, because
a process can die after stdout delivery but before its checkpoint update.
The state contains an app-bound schema, seen IDs, durable pending events and the
last successful snapshot time. A complete collection is persisted before output;
each successfully written event is then marked seen with an atomic file replacement.
An API or version-enrichment failure never marks a partial snapshot seen. Pending
events are drained before another collection. Restart after an interruption uses
the same checkpoint; malformed state or a different app fails without resetting it.
The script scans all currently API-accessible records each pass so late arrivals
are not lost behind a timestamp cursor. IDs remain in state indefinitely. Edits
to an existing review ID are intentionally not new events. Apple's retention and
API availability still limit the historical coverage; counts describe records
returned now, not all feedback ever submitted.
A local OS file lock prevents concurrent writers (Linux/glibc or macOS, accessed
through Bun's built-in FFI). The OS releases it even after SIGKILL; the persistent
`.skill-lock` file is not a stale lock and must not be deleted. SIGTERM/INT also
releases the lock. Network errors, HTTP 429 and
5xx get bounded request retries; `listen` retries failed passes at the next
interval. Permanent 4xx errors stop listening for operator attention. State files
are private (0600, with newly created directories 0700).