telemetry — скилл для Codex: что делает и как установить
Скилл добавляет и проверяет телеметрию macOS через Logger. Он пригодится, когда нужно отследить окна, сайдбары, меню и действия пользователя.
npx skills add openai/plugins --skill telemetry -a codexЧто делает telemetry
telemetry помогает добавить в приложение macOS короткие структурированные логи для действий и переходов состояния. Скилл предлагает фиксировать открытие окон, выбор в сайдбаре, команды меню, действия menu bar extra, этапы загрузки, синхронизации и импорта, а также пути ошибок и восстановления.
В основе используется Logger из OSLog с отдельными парами subsystem/category для разных областей, например Windowing, Commands, MenuBar, Sidebar, Sync и Import. Для проверки предусмотрен цикл сборки и запуска через build-run-debug, ./script/build_and_run.sh --telemetry или ./script/build_and_run.sh --logs, после чего события ищут в Console.app или через log stream с фильтром по процессу, subsystem и category.
Скилл не предназначен для записи секретов, токенов, персональных данных и содержимого документов. Signpost нужен только для замеров времени. Ставьте его для отладки действий macOS-приложения; для анализа падений и backtrace лучше выбрать build-run-debug.
Какие задачи решает
- добавить лог открытия окна или выбора в сайдбаре
- проверить, срабатывает ли команда меню
- отследить загрузку, синхронизацию или импорт
- найти путь ошибки и восстановления
- отфильтровать события по subsystem или category
Примеры запросов агенту
- Добавь `Logger` для выбора элемента в Sidebar и проверь событие через `log stream`.
- Проверь телеметрию команды меню после запуска через `build-run-debug`.
- Используй `./script/build_and_run.sh --telemetry` и найди событие для открытия окна.
Как установить telemetry
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill telemetry -a codex2Вручную: положить файлы
.agents/skills/telemetry/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill telemetry -a claude-code2Вручную: положить файлы
~/.claude/skills/telemetry/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/telemetry/
Вручную: положить файлы
.cursor/skills/telemetry/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/plugins telemetry2Вручную: положить файлы
.github/skills/telemetry/SKILL.mdКомандой платформы
gemini skills install https://github.com/openai/plugins --path plugins/build-macos-apps/skills/telemetryВручную: положить файлы
.devin/skills/telemetry/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора201
Весь набор →Похожие
Вопросы о telemetry
Как установить telemetry в Codex?
Выполните npx skills add openai/plugins --skill telemetry. Файл скилла появится по пути .agents/skills/telemetry/SKILL.md.
Что делает telemetry?
Скилл помогает добавить в macOS-приложение логи через Logger и проверить, что события окон, меню, сайдбаров или фоновых операций действительно появляются в runtime-логах.
Что нужно для проверки телеметрии?
Нужны сборка и запуск приложения, затем Console.app или команда log stream. Для фильтрации используются process, subsystem и category.
Исходный текст
SKILL.md · MIT
---
name: telemetry
description: Add and verify lightweight macOS runtime telemetry. Use when wiring Logger events or inspecting logs for windows, sidebars, menus, and actions.
---
# 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
- Prefer `Logger` from the `OSLog` framework for structured app logs.
- Give each feature a clear subsystem/category pair so runtime filtering stays easy.
- Log meaningful user and app lifecycle events: window opening, sidebar selection changes, menu commands, menu bar extra actions, sync/load milestones, and unexpected fallback paths.
- Keep info logs concise and stable. Use debug logs for noisy state details.
- Do not log secrets, auth tokens, personal data, or raw document contents.
- Add signposts only when measuring timing or performance spans; do not overinstrument by default.
## Minimal Logger Pattern
```swift
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.
- Window open/close
- Sidebar or inspector selection changes
- Menu or keyboard command actions
- Menu bar extra actions
- Background load/sync/import events
- Error and recovery paths
2. Add the smallest useful instrumentation.
- Create one `Logger` per feature area or type.
- Log action boundaries and key state transitions.
- Prefer one high-signal line per user action over noisy value dumps.
3. Build and run the app.
- Use `build-run-debug` for the build/run loop.
- If `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.
- Exercise the UI or command path that should emit telemetry.
4. Read runtime logs and verify the event fired.
- Use Console.app with a process/subsystem filter when that is the fastest manual check.
- Use `log stream --style compact --predicate 'process == "AppName"'` for live terminal verification.
- Prefer tighter predicates when you know the subsystem/category:
`log stream --style compact --predicate 'subsystem == "com.example.app" && category == "Sidebar"'`
5. Tighten or remove instrumentation.
- If the event fires, keep only the logs that remain useful for future debugging.
- If it does not fire, move the log closer to the suspected control path and rerun.
## Verification Checklist
- The app builds after telemetry changes.
- The relevant action emits exactly one clear log line or a small bounded sequence.
- The log can be filtered by process, subsystem, or category.
- No sensitive payloads are written to unified logs.
- Noisy temporary debug logs are removed or demoted before finishing.
## Guardrails
- Do not use `print` as the primary app telemetry mechanism for macOS app code.
- Do not leave a dense trail of permanent debug logs around every state mutation.
- Do not claim an event is wired correctly until you have a concrete verification path through Console, `log stream`, or captured process output.
- If the debugging task is mostly about crash/backtrace analysis rather than action telemetry, switch to `build-run-debug`.
© OpenAI · MIT · openai/plugins