macOS Spm App Packaging
Dimillian/Skills
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.
Analyze / reverse-engineer the locally installed Dia Browser mac app (The Browser Company; bundle id company.thebrowser.dia; shares ArcCore with Arc).
$ npx skills add termio-sh/termio --skill dia-source-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install termio-sh/termio dia-source-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dia-source-analysis .claude/skills/dia-source-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dia-source-analysis" agent skill from https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysis into .claude/skills/dia-source-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dia-source-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add termio-sh/termio --skill dia-source-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install termio-sh/termio dia-source-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/dia-source-analysis .agents/skills/dia-source-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dia-source-analysis" agent skill from https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysis into .agents/skills/dia-source-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dia-source-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add termio-sh/termio --skill dia-source-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install termio-sh/termio dia-source-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/dia-source-analysis .cursor/skills/dia-source-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dia-source-analysis" agent skill from https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysis into .cursor/skills/dia-source-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dia-source-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/termio-sh/termio.git --path skills/dia-source-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add termio-sh/termio --skill dia-source-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install termio-sh/termio dia-source-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/dia-source-analysis .gemini/skills/dia-source-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dia-source-analysis" agent skill from https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysis into .gemini/skills/dia-source-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dia-source-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install termio-sh/termio dia-source-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add termio-sh/termio --skill dia-source-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/dia-source-analysis .github/skills/dia-source-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dia-source-analysis" agent skill from https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysis into .github/skills/dia-source-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dia-source-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add termio-sh/termio --skill dia-source-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install termio-sh/termio dia-source-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/dia-source-analysis .opencode/skills/dia-source-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dia-source-analysis" agent skill from https://github.com/termio-sh/termio/tree/main/skills/dia-source-analysis into .opencode/skills/dia-source-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dia-source-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dia-source-analysisAnalyze / reverse-engineer the locally installed Dia Browser mac app (The Browser Company; bundle id company.thebrowser.dia; shares ArcCore with Arc).
Dia Source Analysis is an agent skill from termio-sh/termio. Analyze / reverse-engineer the locally installed Dia Browser mac app (The Browser Company; bundle id company.thebrowser.dia; shares ArcCore with Arc). Inspect its app bundle, extract its Bun/TypeScript agent-server source from shipped source maps, fingerprint the runtime, read native-Swift symbols, and map its AI-agent / sandbox / on-device-ML architecture. Invoke when the user wants to study how Dia works internally, extract Dia's agent code, or compare Dia's agent/terminal approach against termio. (User…
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/extract-sourcemaps.py`).
It sits in Mobile, covering iOS development. It works with TypeScript and macOS. The repository describes itself as: A terminal-first agentic development environment for agentic coding. Build for CLI/TUI agent. Runtime for Coding Agent, Tmux alternative. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit af3b35b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3brewFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dia Source Analysis loads about 2.5k tokens when it runs. Until then it costs about 148 tokens; SKILL.md has 948 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from termio-sh/termio at commit af3b35b, republished under its MIT licence (© termio-sh). 948 words, ~2,496 tokens.
.claude/skills/dia-source-analysis/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Dia (/Applications/Dia.app, The Browser Company, company.thebrowser.dia) is a
WebKit-based browser (~1.4 GB) that shares ArcCore.framework with Arc. termio uses
it as a reference for how a shipping product drives AI coding agents as sandboxed
child processes (Dia shells to the real Claude Code CLI under Seatbelt) and for its
agent-server / IPC architecture. This skill captures how to dig into it and what's
already known, so analysis doesn't start from scratch each time.
info.json + CFBundleShortVersionString
first and treat mismatches as "re-derive from scratch."Agent-server info.json (1.34.2): version 1.0.0, buildDate 2026-06-10, commit 47de9fbe6c4,
claudeCodeVersion 2.1.131. (Was 1.32.0 / commit 55d9d2e174b / buildDate 2026-05-20.)
extract-sourcemaps.py returns "No .map
files found" — the Bun/TS agent-server backend is no longer recoverable as near-original TS
(only logic compiled into the Mach-O remains). The native-Swift tier is unchanged: symbols +
embedded source paths only. So "the big win" in §1 below is gone on current builds; keep the
procedure for older installs / in case they return.agent-server, handler) + the real
Claude Code CLI (claude, 206 MB, itself a Bun binary). No separate Node/Bun runtime is
installed — each binary embeds Bun. They run as child processes under Seatbelt sandbox
(sandbox-exec -f agent.sb / agent-claude-code.sb, params via -D DATA_DIR=…), talking
to the native UI over SSE/IPC (transport/sse.ts, ipc-gateway.ts). Per-context workspace
at data/contexts/{contextId} with resumable disk buffers (session/buffer.ts, JSONL). This
is the part most relevant to termio — termio runs agents in real PTYs (.exec) instead, but
the child-process-under-sandbox + resumable-buffer + IPC design is the directly comparable bit.session/update-batcher.ts: deltas are
coalesced and flushed only on ≥256 B OR 250 ms idle OR completion — so the UI updates a
few times/sec, not per token. The Bun agent-server is backend orchestration and does NOT touch
UI perf.cmark (swift-markdown), code highlighted by Highlightr (CodeAttributedString →
NSAttributedString), math by SwiftMath (MTMathListDisplay, CoreText). UI is AppKit
NSViewControllers (source paths Frameworks/BoostBrowser/Sources/AssistantPanel/*.swift).BoostCommandBar (Frameworks/BoostBrowser/ Sources/BoostCommandBar/*): a token/pill TokenTextView w/ SkillPillTokenViewProvider;
Skills = SkillsV3; @-mentions (AtMentionKeywords: @Search/@Slack/@Gmail/@Notion) insert
context/tool pills. On-device cmd_t_router (3-label intent) + skills classifier rank
proactive suggestions.report-kit/slide-kit), NOT for chat bubbles.OnDeviceLoRAadaptors bundle, 152 M): one shared DistilBERT-base encoder
(126 M, fp16) + three LoRA adapters + heads — cmd_t_router (input intent), skills (which
skill to fire), sensitive_content (privacy gate). Run via MLX (mlx-swift).| Path | Size | What |
|---|---|---|
Contents/Frameworks/ArcCore.framework | ~548 M | browser engine core (WebKit + Arc) |
Contents/Resources/agent-server-resources/dist | ~371 M | Bun agent backend + bundled claude CLI (206 M) |
Contents/Resources/OnDeviceLoRAadaptors_…bundle | ~152 M | DistilBERT base + 3 LoRA classifiers |
Contents/MacOS/Dia | ~106 M | native Swift app binary (AssistantPanel etc.) |
Contents/Frameworks/libAIInfra.dylib | ~21 M | on-device classification (LocalClassification) |
Contents/Resources/*.bundle | — | Highlightr, SwiftMath, SwiftProtobuf, mlx-swift, swift-transformers, ARC/BoostBrowser feature bundles |
dist/*.sb | — | Seatbelt sandbox profiles |
/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" /Applications/Dia.app/Contents/Info.plist
cat "/Applications/Dia.app/Contents/Resources/agent-server-resources/dist/info.json"The .js bundles are compiled into the Mach-O binaries and NOT shipped, but entrypoint.js.map
and handler-entrypoint.js.map ship with sourcesContent populated → near-original TS.
python3 skills/dia-source-analysis/scripts/extract-sourcemaps.py --out /tmp/dia-srcYields ~40 "own" TS files (non-node_modules): agent/harness/claude-sdk/* (how it drives the
Claude SDK — prompt-template.ts, proxy-tools.ts, claude-sdk-in-process.ts, sandbox.ts),
session/*, transport/*, handler/*, runtime.ts, watchdog.ts, main.ts. Also readable
without extraction: dist/agents/*/spec.yaml, dist/agents/*/.claude/, dist/resources/tool-schemas/*.json.
D=/Applications/Dia.app/Contents/Resources/agent-server-resources/dist
for f in agent-server handler claude; do echo "== $f"; \
strings -a "$D/$f" | grep -iE "Bun v[0-9]|Bun/[0-9]|node\.js v[0-9]"|sort -u|head; doneipsw class-dump --swift (no bodies)The symbol table is stripped (nm ≈ 8.5k symbols, no Swift method-body symbols; debugger
attach is blocked by hardened runtime flags=0x10000(runtime) + no get-task-allow). But the
Swift reflection metadata survives and gives field-level structure — the closest thing to source:
brew install ipsw # one-time
BIN=/Applications/Dia.app/Contents/MacOS/Dia
strings -a "$BIN" | grep -iE "AssistantPanel|Highlightr|SwiftMath|cmark|MarkdownText" | sort -u | head
ipsw class-dump "$BIN" --class 'AssistantPanel' # response/content view controllers
ipsw macho info "$BIN" --swift-all | grep -i <Type> # genericsThis yields class/struct instance-variable layouts, superclasses, protocol conformances, and
method signatures — NOT bodies, and NOT the numeric values of fields. strings still gives
demangled type names + embedded source paths (/Users/admin/actions-runner/_work/arc/arc/…).
For deeper work use Hopper/Ghidra, but Swift ABI makes UI/animation bodies near-unreadable.
B=/Applications/Dia.app/Contents/Resources/OnDeviceLoRAadaptors_OnDeviceLoRAadaptors.bundle/Contents/Resources
cat "$B/config.json"; ls -lhS "$B"/*.safetensors
strings -a /Applications/Dia.app/Contents/Frameworks/libAIInfra.dylib | grep -iE "cmd_t|router|sensitive|skills_|distilbert|lora" | sort -u | headcat /Applications/Dia.app/Contents/Resources/agent-server-resources/dist/agent.sb
cat /Applications/Dia.app/Contents/Resources/agent-server-resources/dist/agent-claude-code.sbThese are Seatbelt (sandbox-exec) profiles — read them to see exactly what the agent / Claude
Code subprocess may touch.
termio is a native Swift + libghostty terminal for AI coding agents (unpeel-style): it runs
each agent/session in a real PTY (.exec) via a libghostty surface, unsandboxed. Dia solves an
adjacent problem — driving the same Claude Code CLI — but from a browser, sandboxed, over IPC.
When comparing, borrow narrowly (termio is deliberately simple/minimal — do not import Dia's
~370 M Bun agent-server, on-device ML stack, or browser surface):
agent.sb / agent-claude-code.sb
Seatbelt profiles are a concrete, shipping reference for sandbox-exec.session/buffer.ts JSONL, per-context
workspace) is the architecture analog to termio keeping a TerminalController alive per
session in the SurfaceCache — same goal (survive view rebuilds / resume), different mechanism.update-batcher.ts: flush on ≥256 B / 250 ms idle / completion) is a
generic perf lesson if termio ever renders agent output outside the raw terminal grid.© termio-sh, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (scripts) in skills/dia-source-analysis of termio-sh/termio.
Open the folder on GitHubat commit af3b35b
Dia Source Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dia Source Analysis this skilltermio-sh/termio | 540 | — | ~2.5k | Automated safety check: Pass | MIT | |
| macOS Spm App PackagingDimillian/Skills | 4k | 5 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Orca iOS Simulator Controlstablyai/orca | 87k | 1 repos | ~584 | Automated safety check: Pass | Apache-2.0 | |
| Apple Crash Log .NET Symbolicationdotnet/skills | 5.6k | 1 repos | ~2.4k | Automated safety check: Pass | MIT | |
| Build Teaql Appteaql/teaql-agent-kit | 2.8k | — | ~4.6k | Automated safety check: Pass | MIT | |
| Swiftui Expert Skillomarshahine/HomeClaw | 176 | 4 repos | ~2.8k | Automated safety check: Pass | MIT |
Dimillian/Skills
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.
stablyai/orca
iOS Simulator control from inside Orca, with the live device view in Orca's emulator pane. Use when driving a booted Apple Simulator on macOS: taps, gestures…
dotnet/skills
Resolves .NET runtime frames in Apple .ips crash logs to function names, source files and line numbers using dSYM symbols, atos and the Microsoft symbol server.
teaql/teaql-agent-kit
Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries.
omarshahine/HomeClaw
A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management, view composition, performance, Liquid Glass adoption, or Instruments .trace…
KartikLabhshetwar/better-shot
Expert guidance for hybrid AppKit-SwiftUI development. An agent skill from KartikLabhshetwar/better-shot.
termio-sh/termio
Diagnose a termio hang, beachball, crash, or 'it froze again' from the evidence macOS and termio actually leave behind — live process samples, crash and CPU-burn reports, the unified log, the…
termio-sh/termio
Drive the running termio app via AppleScript / System Events to reach a UI state (focus the window, click a sidebar project, a terminal pane, a control), capture a pixel-accurate screenshot of just…
termio-sh/termio
Drive App Store Connect from the terminal with the asc CLI — TestFlight builds, groups, testers and What to Test notes; App Store versions, metadata, keywords, screenshots and release notes…
termio-sh/termio
Turn vague customer or user feedback from pasted text, chat excerpts, or screenshots into a clear, evidence-backed GitHub issue without inventing requirements.
termio-sh/termio
Regenerate the landing site's OG/social card (web/landing/public/og.webp) by rendering a temporary in-app route with the real hero WebGL aurora and screenshotting it with headless Chrome.
termio-sh/termio
Cut a new termio macOS release by tagging main with the next version.
Works with
Categories
Analyze / reverse-engineer the locally installed Dia Browser mac app (The Browser Company; bundle id company.thebrowser.dia; shares ArcCore with Arc). Dia Source Analysis is an agent skill from termio-sh/termio.dia; shares ArcCore with Arc).
Dia Source Analysis fits situations like: wants to study how Dia works internally; extract Dias agent code; compare Dias agent/terminal approach against termio.
Run `npx skills add termio-sh/termio --skill dia-source-analysis -a claude-code`. Or copy the skill folder (skills/dia-source-analysis in termio-sh/termio) into .claude/skills/dia-source-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add termio-sh/termio --skill dia-source-analysis -a codex`. Or copy the skill folder (skills/dia-source-analysis in termio-sh/termio) into .agents/skills/dia-source-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add termio-sh/termio --skill dia-source-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dia-source-analysis, .gemini/skills/dia-source-analysis, .github/skills/dia-source-analysis and .opencode/skills/dia-source-analysis in your project.
Going by SKILL.md and its folder, Dia Source Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and brew). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Dia Source Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dia Source Analysis: macOS Spm App Packaging (Dimillian/Skills, 4k stars), Orca iOS Simulator Control (stablyai/orca, 87k stars), Apple Crash Log .NET Symbolication (dotnet/skills, 5.6k stars) and Build Teaql App (teaql/teaql-agent-kit, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
termio-sh (a GitHub organization) maintains it in termio-sh/termio, which has 540 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 7, 2026.
Source: termio-sh/termio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.