Borrowing it
Nothing to install: this file belongs to teunlao/swift-ai-sdk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/teunlao/swift-ai-sdk/main/.agents/skills/swift-ai-sdk-upstream/SKILL.mdgit clone --depth 1 https://github.com/teunlao/swift-ai-sdkWrote 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.
[](https://agentmods.dev/skills/teunlao/swift-ai-sdk/swift-ai-sdk-upstream)<a href="https://agentmods.dev/skills/teunlao/swift-ai-sdk/swift-ai-sdk-upstream"><img src="https://agentmods.dev/badge/skills/teunlao/swift-ai-sdk/swift-ai-sdk-upstream/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.
<a href="https://agentmods.dev/skills/teunlao/swift-ai-sdk/swift-ai-sdk-upstream"><img src="https://agentmods.dev/badge/skills/teunlao/swift-ai-sdk/swift-ai-sdk-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.01458 |
| Opus 5 | $0.00031 | $0.00729 |
| Sonnet 5 | $0.00012 | $0.00292 |
| Haiku 4.5 | $0.00006 | $0.00146 |
Grade C, and why
swift-ai-sdk-upstream scanned grade C with 1 finding 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 11d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf external/vercel-ai-sdk How it starts
The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift AI SDK Upstream Parity
This skill is the operating protocol for keeping Swift AI SDK aligned with the Vercel AI SDK. It is not only a "refresh upstream" helper; it manages intake, coverage mapping, drift triage, audits, fixes, tests, and evidence.
Authority Model
- Tracked process source: this skill directory.
- Durable parity evidence:
upstream/UPSTREAM.md,upstream/PROGRESS.md, andupstream/providers/*.md. - Generated working artifacts:
.upstream/**. These are local scratch artifacts and must stay gitignored. - Upstream reference checkout:
external/vercel-ai-sdk. Treat it as read-only during audits.
Use generated .upstream/** files to decide what to inspect next. Do not cite a
generated artifact as final proof unless it is backed by source paths, tests, and
durable evidence.
When This Skill Applies
Use this skill when the user asks to:
- update or refresh upstream Vercel AI SDK;
- understand current upstream drift;
- audit provider/core/docs parity;
- add or repair provider behavior;
- update
upstream/*evidence; - generate or read upstream package coverage/status reports.
Required First Steps
- Read
upstream/UPSTREAM.mdfor the pinned baseline. - Run or inspect the local component scan:
node .agents/skills/swift-ai-sdk-upstream/scripts/scan-upstream.js --out .upstream/current - Open
.upstream/current/component-catalog.mdfor the current coverage map. - Pick exactly one audit scope before editing:
core:<package>provider:<package>docs:<section>intake:<baseline>
Scope Rules
- Prefer provider-first vertical slices.
- Touch core only when a provider or public API contract requires it.
- Match observable behavior contracts: request shape, response parsing, streaming order, errors, tools, provider options, usage, defaults, and tests.
- Do not chase line-by-line TypeScript diffs for their own sake.
- Do not use
parity/*; this repo tracks parity throughupstream/*. - Do not store generated reports, work queues, or scan snapshots in git.
What ships with it
7 files 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.
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.
- 11d ago First seen · 179 lines · 62 tokens per session scan C 02f5a34cfebd
swift-ai-sdk-upstream is a skill published in the GitHub repository teunlao/swift-ai-sdk (151 stars, last pushed yesterday), licensed Apache-2.0. It adds 62 tokens to every session and 1,458 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
kotlin-exposed-patterns
JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.
kotlin-ktor-patterns
Ktor server patterns including routing DSL, plugins, authentication, Koin DI, kotlinx.serialization, WebSockets, and testApplication testing.
kotlin-coroutines-flows
Kotlin Coroutines and Flow patterns for Android and KMP — structured concurrency, Flow operators, StateFlow, error handling, and testing.
swift-concurrency
Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when working with tasks, actors, @MainActor, Sendable, data races, thread safety, or concurrency-related compiler and linter warnings.
swift-testing-expert
Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and…
swift-expert
Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.