Telemetry

From openai/plugins · View interactive version

Telemetry is an AI agent skill from the GitHub repository openai/plugins. Add and verify lightweight macOS runtime telemetry. Use when wiring Logger events or inspecting logs for windows, sidebars, menus, and actions.

How to use this skill

Skill file

Telemetry

Quick Start

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.

Core Guidelines

Minimal Logger Pattern

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.

Workflow

  1. Identify the behavior that needs observability.
  1. Add the smallest useful instrumentation.
  1. Build and run the app.
  1. Read runtime logs and verify the event fired.

log stream --style compact --predicate 'subsystem == "com.example.app" && category == "Sidebar"'

  1. Tighten or remove instrumentation.

Verification Checklist

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.