openusage: Skill for Claude Code

.agents/skills/macos-telemetry/SKILL.md

macos-telemetry is a skill for Claude Code, Codex from robinebers/openusage. It costs 34 tokens per session (803 once invoked), scanned A, original, MIT.

Guidance for adding lightweight runtime logging to macOS apps using Apple's unified logging system. Runtime telemetry means recording selected app events so developers can understand behavior while the app runs.

In plain words
What is it for?
Use it to add structured Logger events, organize logs by feature, verify them after building and running the app, and measure selected performance spans with signposts.
Why use it?
It helps diagnose window, sidebar, menu, loading, and synchronization behavior without filling the codebase with noisy or unsafe logs. It also emphasizes keeping secrets, personal data, and document contents out of logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is robinebers/openusage's own configuration. It tells Claude Code and Codex how to work on openusage itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openusage configures →

About the project

robinebers/openusage is a native macOS menu-bar application that tracks usage of AI coding subscriptions, including limits, credits, and spending. Developers use it to monitor plans from services such as Claude, Codex, Cursor, and Copilot, while the catalogue entries support related workflows.

robinebers/openusage · 4,556 stars · on GitHub · openusage.ai

Reuse

Borrowing it

Nothing to install: this file belongs to robinebers/openusage. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/robinebers/openusage/main/.agents/skills/macos-telemetry/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/robinebers/openusage

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macos-telemetry

README.md
[![agentmods](https://agentmods.dev/badge/skills/robinebers/openusage/macos-telemetry/github.svg)](https://agentmods.dev/skills/robinebers/openusage/macos-telemetry)
Your own site
<a href="https://agentmods.dev/skills/robinebers/openusage/macos-telemetry"><img src="https://agentmods.dev/badge/skills/robinebers/openusage/macos-telemetry/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for macos-telemetry

Your own site · 80×15
<a href="https://agentmods.dev/skills/robinebers/openusage/macos-telemetry"><img src="https://agentmods.dev/badge/skills/robinebers/openusage/macos-telemetry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00803
Opus 5.5 $0.00014 $0.00321
Sonnet 5.5 $0.00007 $0.00161
Haiku 4.5 $0.00003 $0.00080

Measured 2mo ago against content hash b58ff03f4133, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

macos-telemetry scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • telemetry — 94% identical, 6 lines differ
.agents/skills/macos-telemetry/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 87 lines · 34 tokens per session scan A b58ff03f4133

Subscribe to this mod's changes

macos-telemetry is a skill published in the GitHub repository robinebers/openusage (4,556 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 803 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

macos-telemetry compared with skills from other repositories

macos-telemetry next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
macos-telemetryrobinebers/openusageSkill4.6kyesterdayMITA34Claude Code, Codex
systemic-issue-triageGentleman-Programming/gentle-aiSkill8.4kyesterdayMITA57Claude Code, Codex
issue-root-resolutionGentleman-Programming/gentle-aiSkill8.4kyesterdayMITA45Claude Code, Codex
rdd-defect-workflowGentleman-Programming/gentle-aiSkill8.4kyesterdayMITA41Claude Code, Codex
debug-livemicrosoft/DebugMCPSkill5792d agoMITA84Claude Code
debug-helperJackyST0/awesome-agent-skillsSkill667todayCC0-1.0A20Claude Code, Codex
post-mortemgriddynamics/rosettaSkill370todayApache-2.0A17Claude Code