build-dmg
Build a distributable DMG for a macOS Xcode project by resolving the project, scheme, signing/export inputs, then running the local helper script that archives, exports, and packages the app. Use only when the user explicitly asks to build or package a DMG.
What this skill does
<EXTREMELY-IMPORTANT> This skill runs `xcodebuild archive` + `exportArchive` and packages the result into a DMG. It touches code signing, provisioning, and export options. Non-negotiable rules: 1. Detect project/workspace, scheme, and team ID before building — never guess signing identity. 2. If multiple schemes exist, ask the user which one to build. 3. Do not auto-create or overwrite `ExportOptions.plist` without explicit approval — wrong export options produce unsigned or wrong-distribution builds. 4. Use the helper script (`helpers/build-dmg.sh`) from the project root. Do not inline xcodebuild commands. 5. If `xcodegen` is detected (`project.yml` present), run `xcodegen generate` before building. 6. Report the built DMG path, app version, and signing status clearly. </EXTREMELY-IMPORTANT> # build-dmg ## Inputs - `$request`: Optional project, workspace, scheme, or signing hint ## Goal Produce a DMG build by: - resolving the right Xcode target inputs - running the bundled helper script from the project root - reporting the resulting DMG path and any packaging blockers ## Step 0: Detect the packaging inputs Read the repo and resolve: - app name - scheme - project or workspace path - `ExportOptions.plist` location if it exists - `VERSION` file if present - whether `project.yml` indicates `xcodegen` - team ID or signing hints if already present If a required input is ambiguous, ask before building. **Success criteria**: The build configuration is explicit before the helper runs. ## Step 1: Confirm helper and working directory The helper script lives next to this skill at: - `helpers/build-dmg.sh` Run it from the project root so it can use the current repository as the build context. **Success criteria**: The correct helper path and project root are established. ## Step 2: Build with explicit environment Provide the required environment variables such as: - `APP_NAME` - `SCHEME` Add optional variables only when the project actually needs them: - `PROJECT` - `WORKSPACE` - `INFO_PLIST` - `EXPORT_OPTIONS` - `TEAM_ID` - `VERSION_FILE` - `USE_XCODEGEN` - `DMG_BACKGROUND` **Success criteria**: The helper has all required inputs and only the needed optional ones. ## Step 3: Handle success or failure cleanly On success, report: - DMG output path - app version and build number if available - whether the `VERSION` file was changed On failure: - summarize the real error - surface the relevant `xcodebuild` or export failure lines - identify whether the blocker is signing, scheme selection, export options, or build failure **Success criteria**: The user gets either a usable artifact path or a clear blocker summary. ## Guardrails - Do not run this skill proactively. - Do not assume `.claude`-local helper paths; use the helper inside this skill directory. - Do not auto-create or overwrite export options without approval. - Do not hide signing failures behind generic "build failed" summaries. ## Output Contract Report: 1. resolved app/project/workspace/scheme inputs 2. whether the helper ran successfully 3. DMG path on success 4. version/build info if available 5. exact blocker category on failure
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.