/ancplua-skills:extension-store-publishingfrom ancplua-skills
Enable, wire up, and operate automated browser-extension publishing to all three stores — Microsoft Edge Add-ons (Partner Center Publish API, ApiKey auth), Chrome Web Store (API v2, Google OAuth refresh token), and Firefox Add-ons / AMO (API v5, HS256 JWT). Use whenever the task touches publishing or updating a browser extension on any store, a publish:edge / publish:chrome / publish:firefox script, the env vars EDGE_PRODUCT_ID / EDGE_API_KEY / EDGE_CLIENT_ID / CWS_CLIENT_ID / CWS_CLIENT_SECRET / CWS_REFRESH_TOKEN / CWS_PUBLISHER_ID / CWS_ITEM_ID / AMO_JWT_ISSUER / AMO_JWT_SECRET, enabling a store publish API, a failing upload, "submission in progress" / "pending review" errors, or automating extension releases — and ESPECIALLY when you are tempted to conclude publishing is blocked because API credentials are missing. Missing credentials are a minutes-long console fix, never a blocker.
Ships in ancplua-skills. 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.
None: SKILL.md is the whole skill.
Every fact here was verified end-to-end on 2026-07-10 with a real extension (savemedia 0.0.5 → 0.0.6):
Edge Publish API enabled + credentials minted + update submitted; AMO JWT keys minted + 0.0.6 uploaded,
validated, and submitted with source attached; Chrome OAuth refresh-token flow verified against a live
pending-review item. Reference implementations: savemedia/packages/extension/scripts/publish-{edge,chrome,firefox}.mjs
(all dependency-free Node, global fetch).
"No store API credentials" is never a stopping point. Each store hands them out in minutes:
| Store | Where | What you get | Auth on the wire |
|---|---|---|---|
| Edge | partner.microsoft.com → Edge program → Publish API → Turn on API | Client ID + API key (key shown once, ~14-month expiry) | Authorization: ApiKey … + X-ClientID: … |
| Chrome | Google Cloud project → enable Chrome Web Store API → OAuth client → one-time consent for a refresh token | client id/secret + refresh token + publisher id + item id | Authorization: Bearer <access token from refresh grant> (API v2) |
| Firefox | addons.mozilla.org/developers/addon/api/key/ (email-confirmation link, then keys appear) | JWT issuer (user:…) + JWT secret (shown once) | Authorization: JWT <self-signed HS256, exp ≤ 5 min> |
Store values in CI secrets and/or macOS keychain (security add-generic-password -U -a "$USER" -s NAME -w '…');
commit only the env var names.
https://api.addons.microsoftedge.microsoft.comPOST /v1/products/{productId}/submissions/draft/package (Content-Type: application/zip, raw bytes)
→ 202 + Location: <operationId>; poll …/draft/package/operations/{id} until SucceededPOST /v1/products/{productId}/submissions with {"notes":"…"} → 202; poll …/submissions/operations/{id}POST https://oauth2.googleapis.com/token (client_id, client_secret, refresh_token, grant_type=refresh_token) — refresh-token auth works fine with v2; a service account is optional, not requiredinvalid_grant. Fix once: Audience page → Publish app (production; no verification needed since chromewebstore isn't a sensitive/restricted scope, consent just shows an "unverified app" interstitial only you will ever see), then re-run the consent flow to mint a fresh token — tokens minted while in Testing keep their 7-day fuse.https://chromewebstore.googleapis.com; paths need BOTH the publisher id (dashboard URL / Publisher → Settings) and the item idPOST /upload/v2/publishers/{publisherId}/items/{itemId}:upload (zip bytes; manifest version must be bumped)POST /v2/publishers/{publisherId}/items/{itemId}:publish (publishes with existing visibility settings)GET /v2/publishers/{publisherId}/items/{itemId}:fetchStatus → publishedItemRevisionStatus.state, crxVersion{iss, jti: uuid, iat: now-5, exp: now+240} — AMO rejects exp > 5 minPOST https://addons.mozilla.org/api/v5/addons/upload/ (multipart: upload = zip, channel = listed)
→ poll GET /addons/upload/{uuid}/ until processed; require validPOST /addons/addon/{addon-id}/versions/ with JSON {"upload": uuid, "release_notes": {"en-US": "…"}}
— release_notes is a lang-code object; sending it as a multipart string fails with
You must provide an object of {lang-code:value}PATCH /addons/addon/{addon-id}/versions/{versionId}/ with source{addon-id} = the gecko id from browser_specific_settings.gecko.id in the manifestGET /addons/addon/{addon-id}/versions/?filter=all_with_unlistedif: ${{ !cancelled() }} on each publish step in GitHub Actions) — otherwise Edge's expected
one-in-flight rejection blocks Chrome/Firefox publishes that would have succeeded.:fetchStatus) — expected state, not an error to fix.# Edge
export EDGE_PRODUCT_ID=$(security find-generic-password -a "$USER" -s EDGE_PRODUCT_ID -w)
export EDGE_API_KEY=$(security find-generic-password -a "$USER" -s EDGE_API_KEY -w)
export EDGE_CLIENT_ID=$(security find-generic-password -a "$USER" -s EDGE_CLIENT_ID -w)
node scripts/publish-edge.mjs release --notes "vX.Y.Z automated release"
# Chrome
export CWS_CLIENT_ID=… CWS_CLIENT_SECRET=… CWS_REFRESH_TOKEN=… CWS_PUBLISHER_ID=… CWS_ITEM_ID=… # same keychain pattern
node scripts/publish-chrome.mjs release
# Firefox (attach source zip for bundled builds)
export AMO_JWT_ISSUER=… AMO_JWT_SECRET=…
node scripts/publish-firefox.mjs release --notes "vX.Y.Z automated release" --source savemedia-source-X.Y.Z.zip
node scripts/publish-firefox.mjs status # expect the new version as "unreviewed"
All three scripts share the same shape: update/upload (push zip + poll validation), publish/release
(submit for review + poll), ~150 lines each, no dependencies.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ancplua/ancplua-skills --plugin ancplua-skills43 skills in this plugin
/agent-log-scanScan agent transcripts and turn antipatterns into config and routine changes, not just an allowlist like fewer-permission-prompts. Use when asked to scan agent logs or session history, "why do my agents keep failing", "what happened across my sessions", to find retry loops, permission thrash, API dead-ends or limit interrupts, or raise autonomy./analyzer-purityKeep Roslyn analyzers, source generators and code fixes pure, loadable and cache-friendly inside every compiler host. Use when creating, changing, reviewing or packaging a netstandard2.0 project with IsRoslynComponent, EnforceExtendedAnalyzerRules or Microsoft.CodeAnalysis references, or when an RS1xxx/RS2xxx diagnostic, a sluggish IDE or a generator that reruns on every keystroke points at one./Other plugins' skills for the same job