macos-runtime-debugger

macos-runtime-debugger is a skill for Claude Code, Codex from Xopoko/build-swift-apps. It costs 51 tokens per session (1,031 once invoked), scanned A, original, MIT.

A guide for building and debugging macOS apps at runtime, including SwiftUI and AppKit applications. It first works with the project's existing build and launch commands.

In plain words
What is it for?
Use it to build, launch, inspect output from, or diagnose a macOS app. It supports projects using Xcode project files, workspaces, or Swift Package Manager.
Why use it?
It avoids creating unnecessary run scripts and avoids retrying Apple-only tools when the work is not happening on macOS. It helps identify the correct project type and runnable target.

Skill for Claude CodeCodex

Part of the build-swift-apps plugin — 52 skills, 3 commands, 3 MCP servers shipped together

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.

agentmods
npx agentmods add skills/xopoko/build-swift-apps/macos-runtime-debugger
Any agent
npx skills add Xopoko/build-swift-apps --skill macos-runtime-debugger
Clone the repo
git clone --depth 1 https://github.com/Xopoko/build-swift-apps

Made for: Claude Code, Codex.

Or install build-swift-apps, the plugin that ships this one along with the rest of its 52 skills, 3 commands, 3 MCP servers.

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 macos-runtime-debugger

README.md
[![agentmods](https://agentmods.dev/badge/skills/xopoko/build-swift-apps/macos-runtime-debugger.svg)](https://agentmods.dev/skills/xopoko/build-swift-apps/macos-runtime-debugger)
Your own site
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/macos-runtime-debugger"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/macos-runtime-debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00051 $0.01031
Opus 5 $0.00026 $0.00515
Sonnet 5 $0.00010 $0.00206
Haiku 4.5 $0.00005 $0.00103

Measured 4d ago against content hash 1c3321e00e94, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

macos-runtime-debugger scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/macos-runtime-debugger/SKILL.md · 83 lines

How it starts

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

macOS Runtime Debugger

Before invoking Apple-only binaries, confirm the execution context is macOS. From Windows or Linux, run those steps in a Mac SSH project or through an already configured remote transport; do not retry missing Apple binaries locally.

Reuse the project's existing build/run entrypoint first. For one-shot build, launch, log, or debug tasks, use the smallest existing command that proves the requested outcome without adding durable project files. Bootstrap script/build_and_run.sh through /macos-runtime-debug only when the user asks for a reusable run loop or no adequate entrypoint exists and repeated use makes one worthwhile.

Workflow

  1. Discover project shape and existing entrypoints:
    git rev-parse --show-toplevel 2>/dev/null || pwd
    find . -name '*.xcworkspace' -o -name '*.xcodeproj' -o -name 'Package.swift'
    
    Read repository guidance and inspect existing scripts, schemes, package products, and host actions before introducing another entrypoint.
  2. Resolve and prefer the established runnable target/process:
    • Xcode: list schemes and prefer the app-producing scheme unless named.
    • SwiftPM CLI: run the executable.
    • SwiftPM AppKit/SwiftUI GUI: stage a project-local .app bundle and launch with /usr/bin/open -n; do not run as a raw executable.
  3. For a one-shot task, run that entrypoint directly and avoid changing project structure merely to make the command repeatable.
  4. If a durable loop is explicitly requested or clearly useful because no adequate entrypoint exists, invoke /macos-runtime-debug and follow references/run-button-bootstrap.md. Do not duplicate its full snippets.
  5. Add or update .codex/environments/environment.toml only when the user asks for a Codex Run action. Preserve unrelated existing actions.
  6. When the bootstrap script is the selected entrypoint, run the requested mode:
    ./script/build_and_run.sh
    ./script/build_and_run.sh --debug
    ./script/build_and_run.sh --logs
    ./script/build_and_run.sh --telemetry
    ./script/build_and_run.sh --verify
    
  7. Classify failures as compiler, linker, signing, build settings, missing SDK/toolchain, entrypoint/script bug, or runtime launch. Quote the smallest useful error.

Read the full file on GitHub · 83 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 83 lines · 51 tokens per session scan A 1c3321e00e94

Subscribe to this mod's changes

macos-runtime-debugger is a skill published in the GitHub repository Xopoko/build-swift-apps (45 stars, last pushed 7d ago), licensed MIT. It adds 51 tokens to every session and 1,031 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

loop-engineering

Shared loop-engineering reference for COG skills - the agent loop, deterministic verifiers, termination conditions, in-loop context management, and named patterns. Invoke when designing or debugging a skill that iterates (search-verify-retry, scan-until-dry, fetch-retry-gate).

huytieu/COG-second-brain · 63 tokens

render-airdrop-carousel

Assemble a viral iOS "AirDrop" notification-carousel video ad (≈6–8s, 9:16) from a brand line plus 6–16 real product photos — a native AirDrop share-sheet card ("Brand would like to share a · Decline / Accept") springs up and its preview window CYCLES through the products, landing on a range/lineup payoff with an…

gooseworks-ai/goose-skills · 207 tokens

render-3d-product-showcase

Assemble a premium 3D product-showcase ad from a config — four beat clips (an orbiting hero rotation, a macro push-in, a physics reveal, a typographic close) normalized to the brand-color canvas, hard-concatenated in order, closed on a deterministic Playwright brand end card, and mixed under one instrumental bed at…

gooseworks-ai/goose-skills · 159 tokens

vfx-text-cursor

Cursor light trail, chromatic rays, and directional flares for word-by-word quote reveals in video intros.

nexu-io/html-video · 28 tokens

music

Generate, remix, extend, edit, and analyze AI music (Mureka). Triggers on: "音乐", "music", "生成音乐", "generate music", "翻唱", "cover", "混音", "remix", "续写", "extend", "纯音乐", "instrumental", "配乐", "soundtrack", "分轨", "stem", "识别歌词", "recognize lyrics", "作曲", "compose", "create a song", "做一首歌".

marswaveai/skills · 109 tokens