swift6-check

swift6-check is a command for Claude Code from carloshpdoc/ios-workflow-claude. It costs 0 tokens per session (923 once invoked), scanned A, original, Apache-2.0.

A dry-run command that checks how ready a Swift project is for Swift 6 strict concurrency, without changing code. It can scan the whole project or one category.

In plain words
What is it for?
Use it to inspect migration status and find issues involving main actors, singletons, queues, completion handlers, sendable types, or delegates.
Why use it?
It shows remaining concurrency work before fixes are applied, so migration progress can be assessed safely.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the ios-workflow plugin — 22 commands, 3 agents shipped together

Good fit Use it to inspect migration status and find issues involving main actors, singletons, queues, completion handlers, sendable types, or delegates.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/carloshpdoc/ios-workflow-claude/swift6-check
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.

Clone the repo
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude

Made for: Claude Code.

Or install ios-workflow, the plugin that ships this one along with the rest of its 22 commands, 3 agents.

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-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/swift6-check/github.svg)](https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/swift6-check)
Your own site
<a href="https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/swift6-check"><img src="https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/swift6-check/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 swift6-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/swift6-check"><img src="https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/swift6-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 923 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 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.00000 $0.00923
Opus 5 $0.00000 $0.00462
Sonnet 5 $0.00000 $0.00185
Haiku 4.5 $0.00000 $0.00092

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

Security

Grade A, and why

swift6-check 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 9d 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.

plugins/ios-workflow/commands/swift6-check.md · 100 lines

How it starts

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

Swift 6 Concurrency Check

Project context: Values in angle brackets below (e.g. <scheme>, <JIRA_KEY>, <flag-key-enum>) are resolved at runtime — detect them from the project (xcodebuild -list -json for the scheme, git/gh for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config.

Analyze the current Swift 6 strict concurrency readiness. This is a dry-run — no code is modified.

If $ARGUMENTS is provided, scope the check to that category only (e.g., mainactor, singletons, dispatch-queue, completion-handlers, sendable, delegates). If no argument, run a full scan.

Steps

1. Read Current Status

Read docs/swift6-migration-status.md to understand what has already been migrated.

2. Run Category Scans

For each category (or the specified one), run targeted searches:

@MainActor on ViewModels
# ViewModels WITHOUT @MainActor
grep -rl "class.*ViewModel.*ObservableObject" <scheme>/ --include="*.swift" | while read f; do
  grep -L "@MainActor" "$f"
done

Report: total ViewModels, annotated count, remaining count, list of unannotated files.

DispatchQueue.main.async
grep -rn "DispatchQueue\.main\.async" <scheme>/ --include="*.swift"

Report: total occurrences, files affected, top 10 files by count.

Completion Handlers
grep -rn "completion:.*@escaping" <scheme>/ --include="*.swift"

Report: total occurrences, files affected, top 10 files by count.

Mutable Singletons
grep -rn "static var shared\|static let shared" <scheme>/ --include="*.swift"

For each singleton, check if it has @MainActor, actor isolation, or lock synchronization. Report: total singletons, protected count, unprotected count, list with file paths.

@Sendable Coverage
# Classes without @Sendable or Sendable conformance
grep -rn "^class \|^final class \|^public class \|^public final class " <scheme>/ --include="*.swift" | grep -v "@Sendable\|: Sendable"

Report: total classes, Sendable count, remaining count.

Read the full file on GitHub · 100 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. 9d ago First seen · 100 lines · 0 tokens per session scan A 9f15e4d9fb2e

Subscribe to this mod's changes

swift6-check is a command published in the GitHub repository carloshpdoc/ios-workflow-claude (7 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 923 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-31.