/repo-bootstrap:apple-certsfrom repo-bootstrap
Mint and stash the Apple release credentials a signed-app repo needs — a Developer ID Application signing certificate (local CSR, portal upload via agent-browser-with-cookies, full-chain .p12) and an App Store Connect notary API key — verify the identity actually signs, then push both into 1Password and the repo's GitHub secrets. Use when a signed-app release (release-app.yml / wrap-daemon-bundle) needs MACOS_SIGN_P12 / MACOS_SIGN_PASSWORD / MACOS_NOTARY_* filled, when renewing an expiring Developer ID cert, or when setting up notarization for a new signed macOS app. macOS; you must be signed in to developer.apple.com as the Account Holder.
Ships in repo-bootstrap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill mints the two Apple release credentials a signed-app repo consumes — a Developer ID Application certificate and an App Store Connect notary API key — proves each actually works, and stashes both where CI can reach them. Portal navigation runs through the agent-browser-with-cookies skill on the user's existing desktop session; nothing here automates a login or guesses at the UI.
The moving parts:
.app.${CLAUDE_PLUGIN_ROOT}/skills/apple-certs/scripts/):
gen-csr.sh — RSA-2048 key + CSR; key never leaves the machine.assemble-p12.sh — full-chain .p12 (leaf + Developer ID intermediate + Apple Root CA), Apple certs fetched + SHA-256-pinned; --self-test proves the guard offline.check-p12-chain.sh — the hard full-chain guard (also run standalone).verify-signing-identity.sh — throwaway-keychain import + find-identity + scratch codesign + codesign --verify.${CLAUDE_PLUGIN_ROOT}/skills/repo-bootstrap/scripts/set-release-secrets.sh <owner>/<repo> — pushes all six release secrets from 1Password to the repo.op://<VAULT>/<NAME>/credential, default vault OpenClaw): MACOS_SIGN_P12 (base64 full-chain p12), MACOS_SIGN_PASSWORD, MACOS_NOTARY_ISSUER_ID, MACOS_NOTARY_KEY_ID, MACOS_NOTARY_KEY (base64 .p8). (HOMEBREW_TAP_TOKEN is out of scope here.)The private key is generated locally and never travels — only the CSR goes to the portal, and Apple issues a certificate for the key you kept. For a renewal, pass the existing key with --key instead of minting a new one, so the fresh cert pairs with the key already stashed.
gen-csr.sh --out-dir ./devid --common-name "Developer ID Application" [--email [email protected]]developer-id.key (mode 0600 — KEEP LOCAL, never upload) and developer-id.csr (upload to the portal).Authenticated navigation is the agent-browser-with-cookies skill's job: authorize with a truthful --reason (e.g. "download a Developer ID certificate"), seed developer.apple.com, and drive the portal on the user's existing login. Never automate the sign-in itself — a dead session is a return-early condition (§7), not something to script around.
U1): https://developer.apple.com/account/resources/certificates/adddeveloper-id.csr → Download the issued .cer.developer.apple.com for this flow; verify you land authenticated (an account affordance), not the Apple ID sign-in page.The full three-cert chain is load-bearing. A p12 missing the root or intermediate still signs cleanly and codesign --verify passes — the failure surfaces at exec, where the signed binary dies with SIGKILL (exit 137) because its designated requirement can't be satisfied without the anchor chain. That's the quill incident, and check-p12-chain.sh exists so it can't recur.
assemble-p12.sh --cert ./DeveloperID_Application.cer --key ./devid/developer-id.key --out ./developer-id.p12 [--password PW]https://www.apple.com/certificateauthority/DeveloperIDCA.cer, G2 https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer, root https://www.apple.com/appleca/AppleIncRootCertificate.cer), picks the intermediate the leaf actually chains through, and re-opens the p12 to assert exactly 3 certs before writing.--password is omitted a strong one is generated and printed — store it as MACOS_SIGN_PASSWORD.assemble-p12.sh --self-test (dummy PKI; accepts a 3-cert p12, rejects a leaf-only one).Prove the p12 signs before it ever reaches CI. The verifier imports it into a throwaway keychain — the login keychain is never touched — signs a scratch binary, and verifies strictly; a p12 that passes here works in the release workflow's import step.
verify-signing-identity.sh --p12 ./developer-id.p12 --password "$MACOS_SIGN_PASSWORD"check-p12-chain.sh, imports into a throwaway keychain, lists the identity (security find-identity -v -p codesigning), signs a scratch binary, and runs codesign --verify --strict. The keychain is deleted on exit.-v lists only trusted identities: a real Developer ID cert appears; an untrusted/self-signed one does not (CSSMERR_TP_NOT_TRUSTED).The p12 and its password land in 1Password exactly once; every repo that needs them pulls from there via the sibling script. Rotating the cert means updating one item, not chasing N repos' secrets.
base64 -i ./developer-id.p12 produces the MACOS_SIGN_P12 value.op item create (Password item) storing the base64 p12 as op://<VAULT>/MACOS_SIGN_P12/credential, and the export password as op://<VAULT>/MACOS_SIGN_PASSWORD/credential (default vault OpenClaw).${CLAUDE_PLUGIN_ROOT}/skills/repo-bootstrap/scripts/set-release-secrets.sh <owner>/<repo> (idempotent; --vault to override; -n dry-run).Notarization uses a credential separate from signing: an App Store Connect API key. The .p8 private key is offered for download exactly once, at creation — miss it and the key must be recreated.
https://appstoreconnect.apple.com/access/integrations/api (Users and Access → Integrations → App Store Connect API). Seed appstoreconnect.apple.com via agent-browser-with-cookies.AuthKey_<KEYID>.p8 immediately — it is offered only once.base64 -i AuthKey_<KEYID>.p8 produces MACOS_NOTARY_KEY. Store MACOS_NOTARY_ISSUER_ID, MACOS_NOTARY_KEY_ID, MACOS_NOTARY_KEY via op item create, then set-release-secrets.sh <owner>/<repo>.Every branch below ends the same way: stop, report findings with 2-4 concrete options, and let the caller decide. The portal has account-wide blast radius — never improvise around it.
developer.apple.com in their desktop browser (agent-browser-with-cookies "Log in and retry"), then re-run.snapshot, capture a screenshot, and report; never guess-click coordinates.What SKILL.md sets; muted values are Claude Code's defaults
mediumnpx claudepluginhub yasyf/cc-skills --plugin repo-bootstrap2 skills in this plugin
Other plugins' skills for the same job