swift-language
Write, review, or improve Swift APIs and value-display formatting.
Skill by ducko-im
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ducko-im-swift-language
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/swift-language
What's inside
- Skill name
swift-language- Description
- Write, review, or improve Swift APIs and value-display formatting. Covers Swift API Design Guidelines (naming, argument labels, documentation comments, terminology, general conventions) and modern FormatStyle APIs for numbers, dates, durations, measurements, and SwiftUI Text. Use when designing new APIs, refactoring existing interfaces, reviewing API clarity, or replacing legacy Formatter / String(format:) code.
- License
- MIT
- Instructions
- 210 lines in SKILL.md · view on GitHub
Files (15)
- SKILL.md
- argument-labels.md · references/
- anti-patterns.md · references/format-style/
- date-styles.md · references/format-style/
- duration-styles.md · references/format-style/
- numeric-styles.md · references/format-style/
- other-styles.md · references/format-style/
- swiftui.md · references/format-style/
- fundamentals.md · references/
- general-conventions.md · references/
- parameters.md · references/
- promote-clear-usage.md · references/
- special-instructions.md · references/
- strive-for-fluent-usage.md · references/
- use-terminology-well.md · references/
SKILL.md (first lines)
# Swift Language Skill ## Overview Use this skill for two adjacent Swift language concerns: 1. **API Design** — Design and review Swift APIs that are clear at the point of use, fluent in call sites, and aligned with established Swift naming and labeling conventions. Prioritize readability, explicit intent, and consistency across declarations, call sites, and documentation comments. 2. **FormatStyle** — Write and review Swift code that formats values for display using modern `FormatStyle` APIs instead of legacy `Formatter` subclasses or C-style `String(format:)`. The two concerns are packaged together because both govern *how Swift code reads and presents*. API Design is the primary workflow; FormatStyle is a focused secondary section below, with its own references subfolder (`references/format-style/`). ## Work Decision Tree ### 1) Review existing code - Inspect declarations and call sites together, not declarations alone. - Check naming clarity and fluency (see [references/promote-clear-usage.md](references/promote-clear-usage.md), [references/strive-for-fluent-usage.md](references/strive-for-fluent-usage.md)). - Check argument labels and parameter naming (see [references/parameters.md](references/parameters.md), [references/argument-labels.md](references/argument-labels.md)). - Check documentation comments and symbol markup (see [references/fundamentals.md](references/fundamentals.md)). - Check conventions and overload safety (see [references/general-conventions.md](references/general-conventions.md), [references/special-instructions.md](references/special-instructions.md)). ### 2) Improve existing code - Rename APIs that are ambiguous, redundant, or role-unclear. - Refactor labels to improve grammatical call-site reading. - Replace weakly named parameters with role-based names. - Resolve overload sets that become ambiguous with weak typing. - Strengthen documentation summaries to describe behavior and returns precisely. ### 3) Implement new feature - Start from use-site examples before finalizing declarations. - Choose base names and labels so calls read as clear English phrases. - Add defaults only when they simplify common usage. - Define mutating/nonmutating pairs with consistent naming. - Add concise documentation comments for every new declaration. ## Core Guidelines ### Fundamentals - Clarity at the point of use is the top priority. - Clarity is more important than brevity. - Every declaration should have a documentation comment. - Summaries should state what the declaration does, returns, accesses, creates, or is. - Use recognized Swift symbol markup (`Parameter`, `Returns`, `Throws`, `Note`, etc.). ### Promote Clear Usage - Include all words needed to avoid ambiguity. - Omit needless words, especially type repetition. - Name parameters and associated types by role, not type. - Add role nouns when type information is weak (`Any`, `NSObject`, `String`, `Int`). ### Strive For Fluent Usage - Prefer method names that produce grammatical, readable call sites. - Start factory methods with `make`. - Name side-effect-free APIs as noun phrases; side-effecting APIs as imperative verbs. - Keep mutating/nonmutating naming pairs consistent (`sort`/`sorted`, `formUnion`/`union`). - Boolean APIs should read as assertions (`isEmpty`, `intersects`). ### Use Terminology Well - Prefer common words unless terms of art are necessary for precision. - If using a term of art, preserve its established meaning. - Avoid non-standard abbreviations. - Embrace established domain precedent when it improves shared understanding. ### Conventions, Parameters, And Labels - Document complexity for computed properties that are not `O(1)`. - Prefer methods/properties to free functions except special cases. - Follow Swift casing conventions, including acronym handling. - Use parameter names that improve generated documentation readability. - Prefer default arguments over method families when semantics are shared. - Place defaulted parameters near the end. - Apply argument labels based on grammar and meaning, not style preference. ### Special Instructions - Label tuple members and name closure parameters in public API surfaces. - Be explicit with unconstrained polymorphism to avoid overload ambiguity. - Align names with semantics shown in documentation comments. ## Quick Reference ### Name Shape | Situation | Preferred Pattern | | --- | --- | | Mutating verb | `reverse()` | | Nonmutating verb | `reversed()` / `strippingNewlines()` | | Nonmutating noun op | `union(_:)` | | Mutating noun op | `formUnion(_:)` | | Factory method | `makeWidget(...)` | | Boolean query | `isEmpty`, `intersects(_:)` | ### Argument Label Rules | Situation | Rule | | --- | --- | | Distinguishable unlabeled args | Omit labels only if distinction is still clear | | Value-preserving conversion init | Omit first label | | First arg in prepositional phrase | Usually label from the preposition | | First arg in grammatical phrase | Omit first label | | Defaulted arguments | Keep labels (they may be omitted at call sites) | | All other arguments | Label them | ### Documentation Rules | Declaration Kind | Summary Should Describe | | --- | --- | | Function / method | What it does and what it returns | | Subscript | What it accesses | | Initializer | What it creates | | Other declarations | What it is | ## Review Checklist ### Clarity And Fluency - [ ] Call sites are clear without reading implementation details. - [ ] Base names include all words needed to remove ambiguity. - [ ] Names are concise and avoid repeating type names. - [ ] Calls read naturally and grammatically where it matters most. ### Naming Semantics - [ ] Side-effect-free APIs read as nouns/queries. - [ ] Side-effecting APIs read as imperative verbs. - [ ] Mutating/nonmutating pairs use consistent naming patterns. - [ ] Boolean APIs read as assertions.
From ducko-im/ducko, MIT.
More from ducko-im/ducko
- 0.629score
swift-testing
ducko-im
Expert guidance on Swift Testing for writing, reviewing, migrating, and debugging tests.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
accessibility
ducko-im
Apply platform accessibility best practices to SwiftUI, UIKit, and AppKit code.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
macos-ui-testing
ducko-im
Background-safe macOS app UI testing using Peekaboo CLI and osascript.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swiftui
ducko-im
Write, review, or improve SwiftUI code across state management, view composition, performance, modern APIs, navigation, animation, accessibility, Liquid Glass…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swiftui-performance-audit
ducko-im
Audit and improve SwiftUI runtime performance from code review and architecture.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
writing-for-interfaces
ducko-im
Use when someone asks to write, rewrite, review, or improve text that appears inside a product or interface.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
macos-spm-app-packaging
ducko-im
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
release
ducko-im
Cut a Ducko release: update CHANGELOG.md on main, then push the X.Y.Z tag that triggers the release.yml CI workflow (build, sign, notarize, DMG, Sparkle…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swift-concurrency
ducko-im
Expert guidance on Swift Concurrency correctness, modern API usage, and async/await pitfalls in Swift 6.2+.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swift-security
ducko-im
Use when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID)…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swiftdata
ducko-im
Expert guidance for designing, writing, reviewing, and debugging SwiftData persistence in Swift and SwiftUI apps.
SkillAFreshness: A★ 7Claude Code +9 - 0.625score
lume-vm
ducko-im
Run Ducko UI work inside a disposable Lume macOS VM instead of on the host desktop: start and stop the VM, run commands in its logged-in GUI session…
SkillAFreshness: A★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 0
- Open issues
- 4
- Last commit (this folder)
- Apr 11, 2026 (6 months ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ducko-im/ducko
- Website
- ducko.im
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ducko-im
- 0.629score
swiftdata
ducko-im
Expert guidance for designing, writing, reviewing, and debugging SwiftData persistence in Swift and SwiftUI apps.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swift-security
ducko-im
Use when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID)…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swift-concurrency
ducko-im
Expert guidance on Swift Concurrency correctness, modern API usage, and async/await pitfalls in Swift 6.2+.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
macos-spm-app-packaging
ducko-im
Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
release
ducko-im
Cut a Ducko release: update CHANGELOG.md on main, then push the X.Y.Z tag that triggers the release.yml CI workflow (build, sign, notarize, DMG, Sparkle…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
swiftui
ducko-im
Write, review, or improve SwiftUI code across state management, view composition, performance, modern APIs, navigation, animation, accessibility, Liquid Glass…
SkillAFreshness: A★ 7Claude Code +9
Cite this page
swift-language skill. Agent Mart. https://agentmart.dev/skills/ducko-im-swift-language (last updated 2026-10-24)