/thrashr888-agent-kit:shipping-tauri-appsfrom thrashr888-agent-kit
Builds, signs, notarizes, and releases Tauri 2 desktop apps on macOS with a local-first release script and CI fallback guidance. Covers Apple Developer ID certs, notary profiles, and common dev-loop gotchas.
Ships in thrashr888-agent-kit. 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.
Hard-won playbook. Most of the pain is Apple code-signing/notarization, not Tauri — it hits every desktop toolchain and you only pay it once, so nobody remembers the fixes. This skill is that memory.
On Apple Silicon, a local build is faster than CI and avoids the whole class of CI signing bugs, because the Developer ID cert + notary profile already live in your Keychain.
scripts/release.sh <version> skeleton (ASCII-only — see §6):
set -euo pipefail
VERSION="$1"; TAG="v$VERSION"; TARGET="aarch64-apple-darwin"
NOTARY_PROFILE="${NOTARY_PROFILE:-myapp-notary}"
# Auto-detect the identity so the script is generic for any contributor:
SIGNING_IDENTITY="${APPLE_SIGNING_IDENTITY:-$(security find-identity -v -p codesigning \
| awk -F'"' '/Developer ID Application/{print $2; exit}')}"
# Preconditions: on main, clean tree, tag doesn't exist, notary profile works.
xcrun notarytool history --keychain-profile "$NOTARY_PROFILE" >/dev/null # fails early if missing
# Bump version in package.json + tauri.conf.json (node) and Cargo.toml (perl, first match only).
# Quality gate. Sign the sideloaded dylib (see §4). Build:
APPLE_SIGNING_IDENTITY="$SIGNING_IDENTITY" pnpm tauri build --target "$TARGET"
DMG="src-tauri/target/$TARGET/release/bundle/dmg/App_${VERSION}_aarch64.dmg"
echo "==> notarize start: $(date -u +%FT%TZ)"
xcrun notarytool submit "$DMG" --keychain-profile "$NOTARY_PROFILE" --wait
xcrun stapler staple "$DMG"
echo "==> notarize done: $(date -u +%FT%TZ)"
spctl -a -t open --context context:primary-signature -vv "$DMG" # expect: source=Notarized Developer ID
git add -A && git commit -m "$TAG" && git tag "$TAG" && git push origin main "$TAG"
gh release create "$TAG" "$DMG" --title "App $TAG" --generate-notes
One-time setup (document in a RELEASE.md):
security find-identity -v -p codesigning).xcrun notarytool store-credentials myapp-notary --apple-id [email protected] --team-id TEAMIDgh authenticated.Each of these cost real time. When notarization fails, always pull the log — it names the file:
xcrun notarytool log <submission-id> --keychain-profile <profile>
| Symptom | Cause | Fix |
|---|---|---|
status: Invalid, log: "not signed with a valid Developer ID" on a bundled .dylib | A sideloaded dylib in Resources/ (not Frameworks/) ships ad-hoc-signed; tauri deep-signs Frameworks/ only | codesign --force --timestamp --options runtime --sign "$IDENTITY" the.dylib before tauri build (§4) |
401 Invalid credentials … use the app-specific password | Wrong/expired app-specific password, or Apple-ID password pasted instead | Regenerate an app-specific password; re-set the secret. notarytool history with the profile proves the account itself works |
403 A required agreement is missing or has expired | Apple updated the Program License Agreement; all notarization frozen until re-accepted | Account Holder signs at developer.apple.com/account (gold banner) and appstoreconnect.apple.com → Agreements. Propagation can take minutes |
Keychain .p12 Export greyed out | Selected the cert under Certificates (no private key) | Use My Certificates, or skip the GUI: security export -k login.keychain-db -t identities -f pkcs12 -P 'pw' -o out.p12 |
Gatekeeper rejected, source=Unnotarized Developer ID | Signed but not yet notarized | Expected pre-notarization; notarize+staple flips it to accepted, source=Notarized Developer ID |
Notarization ≠ signing. Split them mentally. Verify the published artifact, not a local build:
spctl -a -t open --context context:primary-signature -vv <dmg>.
Optional hardening: swap Apple-ID/app-password for an App Store Connect API key (.p8 + issuer +
key id) — kills the entire "password drifted" failure class for CI.
The killer diagnostic: xcrun notarytool history --keychain-profile <profile> uses the same Apple
account as CI, so if a submission isn't listed, the build never reached notarytool submit — the
hang is before notarization (usually signing). This one query tells you hung-vs-slow instantly.
gh api repos/O/R/actions/runs/<id>/jobs -q '.jobs[0].steps[]'.
A step stuck for 20+ min with a later step still pending = the stuck step is the culprit.notarytool output). Print date -u before/after so the log answers "how long did it take?".libpdfium.dylib for PDF work) declared as tauri resources must
exist at bundle time AND be Developer-ID-signed for notarization. Sign them before tauri build.cargo compile (a build.rs network fetch). It's fragile — a transient
failure leaves a declared resource missing and hard-fails tauri_build. Fetch at install time
instead: a postinstall npm hook + an explicit CI step, all calling one idempotent scripts/fetch-*.sh.
Don't track large binaries in git; gitignore + fetch keeps the repo lean.debug feature exposes dev-only plugins (debug bridge etc.).
Run tests with the dev feature set to match tauri dev and avoid recompiling the heavy dep tree
(e.g. lance/arrow): cargo test --no-default-features --features debug.data-tauri-drag-region + core:window:allow-start-dragging.invoke('plugin:name|command') and no capability grants it, the promise rejects with no server-side
trace — everything built on the callback just times out. Two fixes: grant name:default in a
capability file, or (for dev-only plugins) have the plugin self-grant at runtime in its setup():
app.add_capability(r#"{"identifier":"x","windows":["*"],"permissions":["name:default"]}"#).
Prefer self-grant for dev tooling — a capability file referencing a feature-gated plugin breaks
release builds that don't compile the plugin (unknown permission at build time).tauri dev only watches .rs sources. It does not rebuild on Cargo.toml / Cargo.lock
changes — after editing deps, touch src-tauri/src/main.rs to nudge the watcher.[patch.crates-io] needs a lockfile refresh. Adding the patch alone yields
warning: patch ... was not used in the crate graph; run cargo update -p <crate> to re-resolve.
Verify with the lockfile source = line (path vs registry). Remember to remove the patch and re-update
once the fixed version is published.strings target/debug/app | grep <new-marker> proves whether the
rebuilt binary contains your change before you debug "the fix didn't work".driving-tauri-apps skill.codesign forever. The temp build keychain auto-locks after the
5-minute default, but a Rust/Tauri compile is ~20 min — so signing at minute 22 blocks on a locked
keychain with no error. Fix: security set-keychain-settings build.keychain (no timeout) at import,
and re-unlock-keychain right before the build.secrets context is forbidden in step-level if: — if: ${{ secrets.X != '' }} fails workflow
validation (0s, no jobs, workflow shown by file path not name). Guard inside the shell instead:
env: { X: ${{ secrets.X }} } then if [ -z "$X" ]; then ... fi.APPLE_ID/APPLE_PASSWORD/APPLE_TEAM_ID are absent — empty
strings still trigger a (failing) attempt. Export them to $GITHUB_ENV only when all are set.release.yml to workflow_dispatch-only when local is primary, so git push origin vX doesn't
trigger a redundant 25-min build. Validate the fallback once — a backup you've never seen pass isn't one.$VAR (e.g. "downloading $PKG…") folds
into the variable name under some locales, so set -u aborts with PKG: unbound variable. Bites only
on the non-early-exit path — test scripts by exercising the actual work path under sh + LC_ALL=C.
Check: grep -rlP '[^\x00-\x7F]' scripts/.cargo fmt -- --check && cargo clippy -- -D warnings && cargo test.
Newline-separated statements don't stop on failure — &&-chain them, and read a green result before
pushing. In pipelines, set -o pipefail or the tail of a cmd | tail chain will lie about failures.tokio_util::sync::CancellationTokens in app state, keyed by scope ("chat", "artifact") in a
HashMap so stopping one activity doesn't kill another; race work with
tokio::select! { r = work => …, _ = token.cancelled() => … }.pnpm-workspace.yaml allowBuilds;
verifyDepsBeforeRun can break tauri/vite.driving-tauri-apps — automate/inspect the running app with tauri-browser.building-local-ai-apps — provider abstraction, RAG, and UX patterns for local-AI desktop apps.github-releases, homebrew-tap — general release + tap workflows.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/agent-ready-engineeringMake codebases ready for reliable human and agent work./building-local-ai-appsDesign patterns for local-first AI desktop apps — provider abstraction (Ollama / OpenAI-compatible gateways), RAG retrieval and ingestion hygiene, citation UX that loops back to sources, streaming and scoped cancellation, chat-loop details, and demo-corpus design. Use when building or reviewing a local AI app, a RAG/notebook product, chat UX, or preparing AI product demos. Distilled from Alchemy (a local NotebookLM clone)./copy-reviewReview user-facing copy (websites, release notes, README, in-app strings) for machine-sounding writing, then codify the owner's voice in a repo WRITING.md. Use when asked to check copy for AI-isms, make text "read human", review marketing or landing-page text, fix writing that "sounds like AI", or set up a writing style guide. Not for project documentation structure (plans/specs/RFCs) — that's style-docs./debugging-tauri-appsFind out why a Tauri app crashed, froze, or failed silently — macOS crash reports, the unified log, the debug bridge's error history, panic hooks, and the capture a shipped app needs to have. Use when a Tauri app misbehaves and the terminal shows nothing, or when adding error/crash logging to one./driving-tauri-appsAutomate, inspect, and verify a running Tauri app with tauri-browser — DOM snapshots, ref-based clicks, React-safe fills, screenshots, direct Tauri command invokes, and demo-data seeding. Use when driving a Tauri app for testing, screenshots, demo setup, or end-to-end verification of app changes./github-releasesCreate releases for Rust CLI tools, macOS apps, Python/uv projects, and Next.js apps. Use when asked to release, tag, ship, publish, or deploy any project.Generated from the plugin's indexed repository (thrashr888/thrashr888-agent-kit) — no native marketplace selected
npx claudepluginhub p/thrashr888-thrashr888-agent-kit2 plugins in one repository ship this exact skill · first indexed Jul 21, 2026
Other plugins' skills for the same job