swift6-migration

swift6-migration is a cursor rule for coding agents from roy2392/vibe-agents-rules. It costs 0 tokens per session (30,242 once invoked), scanned A, original, MIT.

A set of rules for moving Swift code to Swift 6, including its stricter checks for tasks that run concurrently.

In plain words
What is it for?
Use it when updating an existing Swift project to Swift 6 and reviewing the related source and project files.
Why use it?
It helps identify and address code changes required by Swift 6's concurrency rules and stricter checking.

Cursor rule

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 rules/roy2392/vibe-agents-rules/swift6-migration
Clone the repo
git clone --depth 1 https://github.com/roy2392/vibe-agents-rules

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 swift6-migration

README.md
[![agentmods](https://agentmods.dev/badge/rules/roy2392/vibe-agents-rules/swift6-migration.svg)](https://agentmods.dev/rules/roy2392/vibe-agents-rules/swift6-migration)
Your own site
<a href="https://agentmods.dev/rules/roy2392/vibe-agents-rules/swift6-migration"><img src="https://agentmods.dev/badge/rules/roy2392/vibe-agents-rules/swift6-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 30,242 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.00000 $0.30242
Opus 5 $0.00000 $0.15121
Sonnet 5 $0.00000 $0.06048
Haiku 4.5 $0.00000 $0.03024

Measured 5d ago against content hash 42436986dacd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

swift6-migration 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.

docs/swift6-migration.mdc · 4,258 lines

How it starts

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

================================================ FILE: README.md

The Swift Concurrency Migration Guide

This repository contains the source for The Swift Concurrency Migration Guide, which is built using Swift-DocC.

Contributing

See the contributing guide for instructions on contributing to the Swift Migration Guide.

Building

Run docc preview Guide.docc in this repository's root directory.

After running DocC, open the link that docc outputs to display a local preview in your browser.

Note:

If you installed DocC by downloading a toolchain from Swift.org, docc is located in usr/bin/, relative to the installation path of the toolchain. Make sure your shell's PATH environment variable includes that directory.

If you installed DocC by downloading Xcode, use xcrun docc instead.

================================================ FILE: CODEOWNERS

Lines starting with '#' are comments.

Each line is a case-sensitive file pattern followed by one or more owners.

Order is important. The last matching pattern has the most precedence.

More information: https://docs.github.com/en/articles/about-code-owners

Please mirror the repository's file hierarchy in case-sensitive lexicographic

order.

  • @hborla @mattmassicotte @shahmishal @ktoso

================================================ FILE: CONTRIBUTING.md

Contributing to the Swift Migration Guide

Welcome the Swift community!

Contributions to the Swift project are welcomed and encouraged! Please see the Contributing to Swift guide and check out the structure of the community.

Read the full file on GitHub · 4,258 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. 5d ago First seen · 4,258 lines · 0 tokens per session scan A 42436986dacd

Subscribe to this mod's changes

swift6-migration is a cursor rule published in the GitHub repository roy2392/vibe-agents-rules (11 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 30,242 tokens. 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.