write-swift
Write Modern Swift with Confidence
Outdated Swift patterns can create concurrency errors, unclear APIs, and avoidable performance costs. This skill provides current Swift 6 guidance for implementation, review, and migration.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "write-swift" from https://skillstore.io/skills/emilkowalski-write-swift.md and its manifest at https://skillstore.io/api/skills/emilkowalski-write-swift/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "write-swift". Should this shared cache be a class, actor, or value type?
Expected outcome:
- Use an actor when multiple tasks must mutate the same cache.
- Keep values crossing the actor boundary Sendable.
- Recheck cached state after suspension points to handle actor reentrancy.
Using "write-swift". Review a function that starts one detached task for every image.
Expected outcome:
- Replace detached tasks with a bounded task group.
- Preserve cancellation and priority through structured concurrency.
- Measure image processing before adding parallel work.
Using "write-swift". How should an XCTest suite move to Swift Testing?
Expected outcome:
- Keep required UI and performance tests in XCTest.
- Write new unit tests with Test, expect, and require.
- Migrate existing tests incrementally and preserve independent execution.
Security Audit
SafeThe skill is a documentation-only Swift programming guide with no executable scripts or runtime integrations. All static findings are false positives caused by Markdown backticks, Swift macros, or ordinary technical prose, and no prompt injection or malicious intent was found.
Risk Factors
โก Contains scripts (1)
โ๏ธ External commands (50)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/emilkowalski-write-swift/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/emilkowalski-write-swift?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/emilkowalski-write-swift?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/emilkowalski-write-swift/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/emilkowalski-write-swift.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
emilkowalski. (2026). write-swift security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/emilkowalski-write-swift/audits/1BibTeX citation
@techreport{emilkowalski-emilkowalski-write-swift-2026,
author = {emilkowalski},
title = {write-swift security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/emilkowalski-write-swift/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "write-swift security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "emilkowalski"
date-released: "2026-08-22"
url: "https://skillstore.io/skills/emilkowalski-write-swift/audits/1"
identifiers:
- type: other
value: "skillstore:emilkowalski-write-swift:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Build a New Swift Feature
Choose clear data models, error handling, isolation, and tests before implementing a feature.
Review a Swift Codebase
Identify outdated concurrency, abstraction, memory, testing, and performance patterns during code review.
Migrate to Swift 6
Sequence compiler upgrades, concurrency checks, warning fixes, and language mode changes across targets.
Try These Prompts
Design a Swift model for [domain]. Explain whether each type should be a struct, enum, actor, or class, and state why.
Review this Swift function for clarity, error handling, ownership, and modern syntax. Explain each recommended change and respect Swift [version].
Analyze this Swift concurrency error or hang. Trace actor isolation and Sendable boundaries, then propose the smallest data-race-safe correction.
Create a target-by-target Swift 6 migration plan for [project]. Prioritize concurrency warnings, preserve behavior, define verification steps, and separate later refactoring.
Best Practices
- Provide the Swift version, platform targets, and relevant build settings.
- Include compiler diagnostics, surrounding types, and isolation annotations when debugging concurrency.
- Profile representative tests before requesting performance-specific changes.
Avoid
- Do not adopt unreleased Swift features without checking the active toolchain.
- Do not silence Sendable errors with unchecked annotations before fixing ownership or isolation.
- Do not combine a Swift 6 migration with unrelated architectural refactoring.
Frequently Asked Questions
Which Swift version does this skill target?
Can it help fix data-race diagnostics?
Does it replace compiler and runtime testing?
Can it review SwiftUI concurrency?
Does it cover performance optimization?
Can XCTest and Swift Testing coexist?
Developer Details
Author
emilkowalskiLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
3adcd1428e73b613104c9b79f577e875669f01c5
Maintenance freshness
8/22/2026
Usage
0 downloads ยท 0 views
File structure
๐ SKILL.md