swiftpm-macos

swiftpm-macos is a skill for Codex from fanfan-de/anybox. It costs 34 tokens per session (319 once invoked), scanned A, a copy of macos-swiftpm, MIT.

A workflow for building and testing macOS Swift packages with Swift Package Manager, Apple’s tool for managing Swift code and dependencies. It focuses on 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 packages, run executable products, and run all or selected tests with SwiftPM.
Why use it?
It makes package-based builds and tests more repeatable and helps distinguish library packages from executable apps. It also provides a way to summarize common build, dependency, linker, runtime, and test failures.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inspect Package.swift, build packages, run executable products, and run all or selected tests with SwiftPM.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fanfan-de/anybox/swiftpm-macos
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.

Any agent
npx skills add fanfan-de/anybox --skill swiftpm-macos
Clone the repo
git clone --depth 1 https://github.com/fanfan-de/anybox

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fanfan-de/anybox/swiftpm-macos"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/swiftpm-macos.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 319 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.
Origin 97% copy Near-identical to another mod 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.00319
Opus 5 $0.00017 $0.00160
Sonnet 5 $0.00007 $0.00064
Haiku 4.5 $0.00003 $0.00032

Measured 10d ago against content hash 4bd2a889a2f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

swiftpm-macos 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 10d 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

This is a copy

97% identical to macos-swiftpm — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/Anybox-Plugins/build-macos-apps/skills/swiftpm-macos/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
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 51 lines · 34 tokens per session scan A 4bd2a889a2f9

Subscribe to this mod's changes

swiftpm-macos is a skill published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 27d ago), licensed MIT. It adds 34 tokens to every session and 319 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to macos-swiftpm, differing in 2 lines, and is treated as a copy.