openusage: Skill for Claude Code

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

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

A workflow for building, running, and testing macOS packages managed by Swift Package Manager, Apple's tool for organizing Swift code and dependencies. It is intended for projects whose main entry point is Package.swift rather than an Xcode project.

In plain words
What is it for?
Use it to inspect Package.swift, build Swift libraries or executables, run available products, and run focused or complete test targets.
Why use it?
It gives package-first projects a clear way to inspect products, build code, run executables, and test without assuming an app bundle exists. It also helps classify common build and test failures.

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-swiftpm/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-swiftpm

README.md
[![agentmods](https://agentmods.dev/badge/skills/robinebers/openusage/macos-swiftpm/github.svg)](https://agentmods.dev/skills/robinebers/openusage/macos-swiftpm)
Your own site
<a href="https://agentmods.dev/skills/robinebers/openusage/macos-swiftpm"><img src="https://agentmods.dev/badge/skills/robinebers/openusage/macos-swiftpm/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-swiftpm

Your own site · 80×15
<a href="https://agentmods.dev/skills/robinebers/openusage/macos-swiftpm"><img src="https://agentmods.dev/badge/skills/robinebers/openusage/macos-swiftpm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 320 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.00035 $0.00320
Opus 5.5 $0.00014 $0.00128
Sonnet 5.5 $0.00007 $0.00064
Haiku 4.5 $0.00003 $0.00032

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

Security

Grade A, and why

macos-swiftpm 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:

.agents/skills/macos-swiftpm/SKILL.md · 51 lines

What it actually says

SwiftPM for macOS

Quick Start

Use this skill when Package.swift is the primary entrypoint or when SwiftPM is the fastest path to a reproducible result.

Workflow

  1. Inspect the package.

    • Read Package.swift.
    • Identify executable, library, and test products.
  2. Build with SwiftPM.

    • Use swift build by default.
    • Use release mode only when the user explicitly needs it.
  3. Run the right product.

    • Use swift run <product> when an executable exists.
    • If multiple executables exist, explain the default choice.
  4. Test narrowly.

    • Use swift test.
    • Apply filters when a specific test target or case is known.
  5. Summarize failures.

    • Module/import resolution
    • Package graph or dependency issue
    • Linker failure
    • Runtime failure
    • Test regression

Guardrails

  • Prefer SwiftPM over Xcode when both exist and the package path is clearly simpler.
  • Do not assume an app bundle exists in a pure package workflow.
  • Explain when the package is library-only and therefore not directly runnable.

Output Expectations

Provide:

  • the package products you found
  • the command you ran
  • whether build, run, or test succeeded
  • the top blocker if not
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 · 51 lines · 35 tokens per session scan A 3f732960d079

Subscribe to this mod's changes

macos-swiftpm is a skill published in the GitHub repository robinebers/openusage (4,556 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 320 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-swiftpm compared with skills from other repositories

macos-swiftpm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
macos-swiftpmrobinebers/openusageSkill4.6kyesterdayMITA35Claude Code, Codex
swift-testingmarkdavidgan/apple-dev-skillsSkill52mo agoMITA16Claude Code
Kotlin Testing PatternsPramodDutta/qaskillsSkill2453d agoMITA34Claude Code, Codex
kotlin-testingalmasumdev/awesome-kotlin-android-agent-skillsSkill36mo agononeA41Claude Code, Codex
kotlin-mcp-server-generatoraboalrejal-ai/skillsSkill12mo agoMITA34Claude Code, Codex
kotlin-coroutines-expertbeel-collab/presets.devSkill36mo agoMITA19Claude Code, Codex
kotlin-testingaffaan-m/ECCSkill298k4d agoMITA38Claude Code, Kiro