build-app-local

build-app-local is a skill for Claude Code, Codex from akiotanaka847/qaio-desktop. It costs 55 tokens per session (868 once invoked), scanned C, a copy of build-app-local, MIT.

A local macOS build procedure for the Qaio app, including its Rust engine and desktop package. It creates a universal app that runs on both Apple Silicon and Intel Macs, then prepares the disk image for Apple distribution checks.

In plain words
What is it for?
Use it to build, sign, notarize, verify, and package a Qaio macOS release locally. It requires Apple signing credentials and the app's configured service keys.
Why use it?
It provides a manual release path when the normal continuous-integration build is unavailable or broken. It also handles signing, notarization, attaching Apple's approval, verification, and copying the final disk image to the Desktop.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build, sign, notarize, verify, and package a Qaio macOS release locally. It requires Apple signing credentials and the app's configured service keys.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/akiotanaka847/qaio-desktop/build-app-local
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add akiotanaka847/qaio-desktop --skill build-app-local
Clone the repo
git clone --depth 1 https://github.com/akiotanaka847/qaio-desktop

Made for: Claude Code, Codex.

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 build-app-local

README.md
[![agentmods](https://agentmods.dev/badge/skills/akiotanaka847/qaio-desktop/build-app-local/github.svg)](https://agentmods.dev/skills/akiotanaka847/qaio-desktop/build-app-local)
Your own site
<a href="https://agentmods.dev/skills/akiotanaka847/qaio-desktop/build-app-local"><img src="https://agentmods.dev/badge/skills/akiotanaka847/qaio-desktop/build-app-local/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 build-app-local

Your own site · 80×15
<a href="https://agentmods.dev/skills/akiotanaka847/qaio-desktop/build-app-local"><img src="https://agentmods.dev/badge/skills/akiotanaka847/qaio-desktop/build-app-local.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 868 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod 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.00055 $0.00868
Opus 5 $0.00028 $0.00434
Sonnet 5 $0.00011 $0.00174
Haiku 4.5 $0.00006 $0.00087

Measured 11d ago against content hash 9bbac17bf943, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

build-app-local scanned grade C 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf app/src-tauri/target/universal-apple-darwin/release/bundle
Origin

This is a copy

92% identical to build-app-local — 27 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/build-app-local/SKILL.md · 90 lines

How it starts

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

/build-app-local

Manual macOS build. CI broken? Use this. Normal path = /release.

Pre-reqs

Env vars set in shell:

  • APPLE_SIGNING_IDENTITY — Developer ID string
  • APPLE_API_KEY — App Store Connect key ID
  • APPLE_API_KEY_PATH — path to .p8
  • APPLE_API_ISSUER — issuer UUID
  • TAURI_SIGNING_PRIVATE_KEY + TAURI_SIGNING_PRIVATE_KEY_PASSWORD
  • POSTHOG_KEY · POSTHOG_HOST · SUPABASE_URL · SUPABASE_ANON_KEY · SENTRY_DSN

Flow

# 0. One-time: ensure both macOS rustup targets installed
rustup target add aarch64-apple-darwin x86_64-apple-darwin

# 1. Clean stale
cd ..  # workspace root
rm -rf app/src-tauri/target/universal-apple-darwin/release/bundle
rm -rf app/dist

# 2. Build engine sidecar for BOTH arches (required for universal)
cargo build --release --target aarch64-apple-darwin -p qaio-engine-server
cargo build --release --target x86_64-apple-darwin -p qaio-engine-server

# 3. Build + auto-sign the app (universal fat binary)
cd app
pnpm tauri build --target universal-apple-darwin

Tauri signs .app. Does NOT notarize DMG. Must do manually:

# 4. Submit DMG to Apple for notarization (note universal path)
DMG="src-tauri/target/universal-apple-darwin/release/bundle/dmg/Qaio_${VERSION}_universal.dmg"
xcrun notarytool submit "$DMG" \
  --key "$APPLE_API_KEY_PATH" \
  --key-id "$APPLE_API_KEY" \
  --issuer "$APPLE_API_ISSUER" \
  --wait

# 5. Staple ticket to DMG
xcrun stapler staple "$DMG"

# 6. Verify
xcrun stapler validate "$DMG"
spctl -a -vvv -t install "$DMG"
lipo -info "$(hdiutil attach "$DMG" -nobrowse -mountpoint /tmp/hmnt -quiet && echo /tmp/hmnt/*.app/Contents/MacOS/qaio-engine)"
# → expect: "Architectures in the fat file: ... x86_64 arm64"
hdiutil detach /tmp/hmnt -quiet

Output

cp "$DMG" ~/Desktop/Qaio-${VERSION}.dmg

Verify install

  1. Open DMG on clean Mac
  2. Drag to Applications
  3. Launch — no Gatekeeper warning
  4. Check "About Qaio" version matches

Common issues

  • "App is damaged" — stapling failed. Re-staple.
  • Notarization rejectedxcrun notarytool log <submission-id> --key ... to see reason.
  • Code sign identity not found — check security find-identity -v -p codesigning. Must match $APPLE_SIGNING_IDENTITY exactly.
  • Slow notarization — Apple servers variable. 2-15 min typical.

Read the full file on GitHub · 90 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. 11d ago First seen · 90 lines · 55 tokens per session scan C 9bbac17bf943

Subscribe to this mod's changes

build-app-local is a skill published in the GitHub repository akiotanaka847/qaio-desktop (2 stars, last pushed 7d ago), licensed MIT. It adds 55 tokens to every session and 868 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It is 92% identical to build-app-local, differing in 27 lines, and is treated as a copy.