swift6-fix

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

A command that applies fixes for Swift 6 strict concurrency, the rules Swift uses to make work shared between tasks and threads safer. It works on categories such as main actors, singletons, queues, completion handlers, sendable types, and delegates.

In plain words
What is it for?
Use it to fix remaining concurrency problems in one specified category, after checking the project's migration status.
Why use it?
It organizes a Swift 6 migration into specific areas instead of requiring all concurrency issues to be fixed at once.

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 fix remaining concurrency problems in one specified category, after checking the project's migration status.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/swift6-fix"><img src="https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/swift6-fix.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 2,865 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.02865
Opus 5 $0.00000 $0.01432
Sonnet 5 $0.00000 $0.00573
Haiku 4.5 $0.00000 $0.00286

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

Security

Grade A, and why

swift6-fix 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 8d 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-fix.md · 268 lines

How it starts

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

Swift 6 Fix: $ARGUMENTS

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.

Apply Swift 6 strict concurrency fixes for the specified category.

Valid categories: config, mainactor, singletons, dispatch-queue, completion-handlers, sendable, delegates

If $ARGUMENTS is empty, show usage and recommend next category based on docs/swift6-migration-status.md.

Prerequisites

  1. Read docs/swift6-migration-status.md to understand current progress
  2. Run /swift6-check $ARGUMENTS mentally — verify that the category has remaining items
  3. If the category shows 0 remaining, inform the user and suggest the next category

Category: config

Foundation changes — run this FIRST before any other category.

Steps

  1. Update Project.swift: change "SWIFT_VERSION": "5.3""SWIFT_VERSION": "6.0" (all occurrences)
  2. Update all Modules/*/Package.swift: change swiftLanguageMode(.v5)swiftLanguageMode(.v6)
  3. Add SWIFT_STRICT_CONCURRENCY build setting:
    • If first time: set to targeted
    • If targeted already done: set to complete
  4. Lock any dependency versions still pinned to master / a moving branch (Swift 6 will break on unexpected upstream changes)
  5. Run tuist generate --no-open
  6. Build: xcodebuild -scheme <scheme> -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' -quiet build
  7. If build fails, fix errors iteratively (max 10 iterations)
  8. Update docs/swift6-migration-status.md config checklist
  9. Commit with message: [CHORE] Swift 6 migration: update Swift version and concurrency settings

Category: mainactor

Add @MainActor to ViewModels that are ObservableObject subclasses.

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

Subscribe to this mod's changes

swift6-fix 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 2,865 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.