Agent skill

Native App Profiling

by termio-sh in termio-sh/termio

Profile native macOS/iOS apps using Time Profiler via CLI (xctrace).

MITAuto-check passedDevelopment

Install Native App Profiling

skills CLI
$ npx skills add termio-sh/termio --skill native-app-profiling -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install termio-sh/termio native-app-profiling --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/termio-sh/termio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/native-app-profiling .claude/skills/native-app-profiling && rm -rf skills-src

Use ~/.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/

Facts

Skill name
native-app-profiling
GitHub stars
540
Token cost
~1.1k tokens
SKILL.md length
345 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

Profile native macOS/iOS apps using Time Profiler via CLI (xctrace).

  • Works in 4 steps: Record Time Profiler → Export Time Samples → Get Load Address for Symbolication → …
  • Asked to identify performance hotspots
  • SKILL.md covers Overview, Quick Start, Workflow Notes and Available Templates, plus 6 more sections
  • Calls xcrun

What it does

Native App Profiling is an agent skill from termio-sh/termio. Profile native macOS/iOS apps using Time Profiler via CLI (xctrace). Use when asked to identify performance hotspots, profile CPU usage, or diagnose slow code paths without opening Instruments.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Performance optimization and iOS development. It works with 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.

When your agent uses it

  • Asked to identify performance hotspots
  • Profile CPU usage
  • Diagnose slow code paths without opening Instruments

Example prompts

  • “/native-app-profiling”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Record Time Profiler
  2. Export Time Samples
  3. Get Load Address for Symbolication
  4. Symbolicate Stack Frames

What it can do on your machine

Read from SKILL.md and the folder at commit af3b35b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • xcrun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Native App Profiling loads about 1.1k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 345 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from termio-sh/termio at commit af3b35b, republished under its MIT licence (© termio-sh). 345 words, ~1,145 tokens.

Download SKILL.mdSave it as .claude/skills/native-app-profiling/SKILL.md (or your agent's skills folder).
name
native-app-profiling
description
Profile native macOS/iOS apps using Time Profiler via CLI (xctrace). Use when asked to identify performance hotspots, profile CPU usage, or diagnose slow code paths without opening Instruments.

Native App Performance Profiling (CLI)

Overview

Record Time Profiler via xctrace, extract samples, symbolicate, and identify hotspots without opening Instruments.

Quick Start

1) Record Time Profiler

Attach to running process:

bash
# Get the PID first
pgrep -x "AppName"

# Record for 90 seconds
xcrun xctrace record \
    --template 'Time Profiler' \
    --time-limit 90s \
    --output /tmp/App.trace \
    --attach <pid>

Launch and record:

bash
xcrun xctrace record \
    --template 'Time Profiler' \
    --time-limit 90s \
    --output /tmp/App.trace \
    --launch -- /path/to/App.app/Contents/MacOS/App
2) Export Time Samples

List available schemas in the trace:

bash
xcrun xctrace export --input /tmp/App.trace --toc

Export time profile data:

bash
xcrun xctrace export \
    --input /tmp/App.trace \
    --xpath '/trace-toc/run/data/table[@schema="time-profile"]' \
    --output /tmp/time-profile.xml
3) Get Load Address for Symbolication

While the app is running, get the __TEXT segment load address:

bash
vmmap <pid> | grep "__TEXT"

Look for the load address (typically starts with 0x1...).

4) Symbolicate Stack Frames

Use atos to symbolicate addresses:

bash
atos -o /path/to/App.app/Contents/MacOS/App -l 0x100000000 <address>

Workflow Notes

  • Correct binary: Confirm you're profiling the right build (local vs /Applications)
  • Trigger the slow path: During capture, perform the action that's slow
  • Capture duration: If stacks are empty, capture longer or avoid idle time
  • Symbol matching: Binary symbols must match the trace (same build)

Available Templates

List all profiling templates:

bash
xcrun xctrace list templates

Common templates:

  • Time Profiler - CPU sampling
  • Allocations - Memory allocations
  • Leaks - Memory leak detection
  • System Trace - System-level activity
  • Animation Hitches - UI performance

Common Commands

TaskCommand
List templatesxcrun xctrace list templates
List devicesxcrun xctrace list devices
Record helpxcrun xctrace help record
Export helpxcrun xctrace help export
Get PIDpgrep -x "AppName"
Get load addressvmmap <pid> | grep __TEXT
Symbolicateatos -o <binary> -l <load-addr> <address>

Analyzing Results

Manual Analysis
  1. Export the trace to XML
  2. Parse the call tree data
  3. Look for frames with high sample counts
  4. Focus on your app's code (filter out system frameworks)
Identify Hotspots

Look for:

  • Functions with high self-time (time spent in function itself)
  • Deep call stacks indicating inefficient algorithms
  • Repeated patterns suggesting optimization opportunities

Gotchas

  • ASLR: Runtime __TEXT load address changes each launch - get it from vmmap
  • Build mismatch: Symbols must match the exact build that was profiled
  • Idle time: Profiling idle app produces empty/useless data
  • Permissions: May need to run with sudo for some operations

iOS Profiling

For iOS apps on simulator:

bash
xcrun xctrace record \
    --template 'Time Profiler' \
    --device <simulator-udid> \
    --time-limit 60s \
    --output /tmp/iOS-App.trace \
    --launch -- <bundle-id>

Get simulator UDID:

bash
xcrun simctl list devices | grep Booted

Automation Script

Basic recording script:

bash
#!/bin/bash
set -e

APP_NAME="$1"
DURATION="${2:-60}"
OUTPUT="${3:-/tmp/$APP_NAME.trace}"

if [ -z "$APP_NAME" ]; then
    echo "Usage: $0 <app-name> [duration-seconds] [output-path]"
    exit 1
fi

PID=$(pgrep -x "$APP_NAME" || true)

if [ -n "$PID" ]; then
    echo "Attaching to running $APP_NAME (PID: $PID)"
    xcrun xctrace record \
        --template 'Time Profiler' \
        --time-limit "${DURATION}s" \
        --output "$OUTPUT" \
        --attach "$PID"
else
    echo "App not running. Please start $APP_NAME first."
    exit 1
fi

echo "Trace saved to: $OUTPUT"
echo "To analyze: xcrun xctrace export --input $OUTPUT --toc"

Checklist

  • Correct binary path identified
  • App running or launch command ready
  • Slow path reproducible
  • Trace recorded during problematic behavior
  • Load address captured for symbolication
  • Results analyzed for hotspots

© 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

Files

Just SKILL.md in skills/native-app-profiling of termio-sh/termio.

Open the folder on GitHubat commit af3b35b

Compare with similar skills

Native App Profiling 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.

Native App Profiling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Native App Profiling this skilltermio-sh/termio540—~1.1kAutomated safety check: PassMIT
Native App Performanceharperreed/dotfiles3344 repos~538Automated safety check: PassNone
Swiftdata ArchitectureKartikLabhshetwar/better-shot2.4k2 repos~1.2kAutomated safety check: PassCustom licence
Core Data ExpertAvdLee/Core-Data-Agent-Skill314—~1.2kAutomated safety check: PassMIT
Performance Profilingconorluddy/xclaude-plugin183—~7.3kAutomated safety check: PassMIT
Hopper Debuggersteipete/agent-scripts7.3k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Native App Performance

    harperreed/dotfiles

    Native macOS/iOS app performance profiling via xctrace/Time Profiler and CLI-only analysis of Instruments traces.

    334 GitHub starsUsed in 4 repos~538 tokens
    DevelopmentAuto-check passed
  • Swiftdata Architecture

    KartikLabhshetwar/better-shot

    Deep dive into SwiftData design patterns and best practices.

    2.4k GitHub starsUsed in 2 repos~1.2k tokens
    DevelopmentAuto-check passed
  • Core Data Expert

    AvdLee/Core-Data-Agent-Skill

    Expert Core Data guidance (iOS/macOS): stack setup, fetch requests & NSFetchedResultsController, saving/merge conflicts, threading & Swift Concurrency, batch operations & persistent history…

    314 GitHub stars~1.2k tokensUpdated 24 days ago
    DevelopmentAuto-check passed
  • Performance Profiling

    conorluddy/xclaude-plugin

    Instruments integration and performance analysis workflows for iOS apps.

    183 GitHub stars~7.3k tokensUpdated 26 days ago
    DevelopmentAuto-check passed
  • Hopper Debugger

    steipete/agent-scripts

    Hopper debugging: macOS/iOS binaries, ObjC/Swift symbols, dyld, LLDB.

    7.3k GitHub stars~1.6k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Debugging Instruments

    dpearson2699/swift-ios-skills

    Debug iOS apps and profile performance using LLDB, the interactive Memory Graph Debugger, and Instruments.

    1.2k GitHub stars~3.6k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed

More from termio-sh/termio

All 19 skills in this repo
  • Termio Bug Report

    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…

    540 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • App Screenshot Debug

    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…

    540 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Dia Source Analysis

    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).

    540 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Asc

    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…

    540 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Issue Creator

    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.

    540 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Og Generation

    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.

    540 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Native App Profiling

What does Native App Profiling do?

Profile native macOS/iOS apps using Time Profiler via CLI (xctrace). Native App Profiling is an agent skill from termio-sh/termio. Profile native macOS/iOS apps using Time Profiler via CLI (xctrace).

When should I use Native App Profiling?

Native App Profiling fits situations like: asked to identify performance hotspots; profile CPU usage; diagnose slow code paths without opening Instruments.

How do I install Native App Profiling in Claude Code?

Run `npx skills add termio-sh/termio --skill native-app-profiling -a claude-code`. Or copy the skill folder (skills/native-app-profiling in termio-sh/termio) into .claude/skills/native-app-profiling in your project. Claude Code loads it when a task matches its description.

How do I install Native App Profiling in Codex?

Run `npx skills add termio-sh/termio --skill native-app-profiling -a codex`. Or copy the skill folder (skills/native-app-profiling in termio-sh/termio) into .agents/skills/native-app-profiling in your project. Codex loads it when a task matches its description.

Can I use Native App Profiling in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add termio-sh/termio --skill native-app-profiling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/native-app-profiling, .gemini/skills/native-app-profiling, .github/skills/native-app-profiling and .opencode/skills/native-app-profiling in your project.

What does Native App Profiling need to run?

Going by SKILL.md and its folder, Native App Profiling needs the command-line tools its instructions call (xcrun).

Does Native App Profiling access the network?

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.

Is Native App Profiling safe to install?

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. Review the folder before installing.

What licence does Native App Profiling use?

Native App Profiling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Native App Profiling use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Native App Profiling?

Skills that share tags, products or a category with Native App Profiling: Native App Performance (harperreed/dotfiles, 334 stars), Swiftdata Architecture (KartikLabhshetwar/better-shot, 2.4k stars), Core Data Expert (AvdLee/Core-Data-Agent-Skill, 314 stars) and Performance Profiling (conorluddy/xclaude-plugin, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Native App Profiling?

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.