macos-swiftpm

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

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 · 3,994 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/robinebers/openusage/macos-swiftpm
Any agent
npx skills add robinebers/openusage --skill macos-swiftpm
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00035 $0.00320
Opus 5 $0.00017 $0.00160
Sonnet 5 $0.00007 $0.00064
Haiku 4.5 $0.00003 $0.00032

Measured 5d ago against content hash 3f732960d079, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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

2 near-identical copies 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. 5d 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 (3,994 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 320 once invoked, about $0.0002 per session on Opus 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.