Adds lightweight macOS runtime telemetry using Apple's unified logging APIs. Helps wire Logger events and inspect logs for windows, sidebars, menus, and actions.
Ships in build-macos-apps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to add lightweight app instrumentation that helps debug behavior without turning the codebase into a logging landfill. Prefer Apple's unified logging APIs and verify the events after a build/run loop.
Logger from the OSLog framework for structured app logs.import OSLog
private let logger = Logger(
subsystem: Bundle.main.bundleIdentifier ?? "SampleApp",
category: "Sidebar"
)
@MainActor
func selectItem(_ item: SidebarItem) {
logger.info("Selected sidebar item: \(item.id, privacy: .public)")
selection = item.id
}
Use feature-specific categories like Windowing, Commands, MenuBar, Sidebar,
Sync, or Import so logs can be filtered quickly.
Identify the behavior that needs observability.
Add the smallest useful instrumentation.
Logger per feature area or type.Build and run the app.
build-run-debug for the build/run loop.script/build_and_run.sh exists, prefer ./script/build_and_run.sh --telemetry for live telemetry checks or ./script/build_and_run.sh --logs for broader process logs.Read runtime logs and verify the event fired.
log stream --style compact --predicate 'process == "AppName"' for live terminal verification.log stream --style compact --predicate 'subsystem == "com.example.app" && category == "Sidebar"'Tighten or remove instrumentation.
print as the primary app telemetry mechanism for macOS app code.log stream, or captured process output.build-run-debug.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
macos-telemetry, unified-logging, oslog, app-instrumentation
11 skills in this plugin
/appkit-interopBridge macOS SwiftUI into AppKit narrowly. Use when implementing representables, reaching NSWindow or panels, handling menus, or using the responder chain./build-run-debugBuild, run, and debug macOS apps with shell-first Xcode and Swift workflows. Use when launching apps or diagnosing build, startup, or runtime failures./liquid-glassImplement and review macOS SwiftUI Liquid Glass UI. Use when adopting system glass, removing conflicting custom chrome, or building glass surfaces./packaging-notarizationPrepare macOS packaging and notarization workflows. Use when archiving apps, validating bundles, or explaining distribution-only failures./signing-entitlementsInspect macOS signing, entitlements, and Gatekeeper issues. Use when diagnosing code signing, sandbox, hardened runtime, or trust failures./swiftpm-macosBuild, run, and test SwiftPM macOS packages and executables. Use when the repo is package-first or has no Xcode project./build-macos-apps:telemetryfrom build-macos-apps
npx claudepluginhub kael-odin/codex-plugins-zh --plugin build-macos-appsOther plugins' skills for the same job