/swift-format-style:swift-format-stylefrom swift-format-style
Writes and reviews Swift FormatStyle code, replacing legacy Formatter subclasses and C-style String(format:) with modern .formatted() APIs for numbers, dates, durations, measurements, lists, names, byte counts, and URLs.
Ships in swift-format-style. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write and review Swift code that formats values for display, ensuring modern FormatStyle APIs are used instead of legacy Formatter subclasses or C-style formatting.
Review process:
references/anti-patterns.md.references/numeric-styles.md.references/date-styles.md.references/duration-styles.md.references/other-styles.md.references/swiftui.md.If doing partial work, load only the relevant reference files.
Formatter subclasses (DateFormatter, NumberFormatter, MeasurementFormatter, DateComponentsFormatter, DateIntervalFormatter, PersonNameComponentsFormatter, ByteCountFormatter).String(format:) for number formatting. Always use .formatted() or FormatStyle directly.DispatchQueue for formatting on background threads - FormatStyle types are value types and thread-safe..formatted() instance method for simple cases, and explicit FormatStyle types for reusable or complex configurations.Text(_:format:) instead of Text("\(value.formatted())").Decimal instead of Float/Double for currency values.Codable and Hashable, making them safe to store and compare.If the user asks for a review, organize findings by file. For each issue:
Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.
If the user asks you to write or fix formatting code, make the changes directly instead of returning a findings report.
Example output:
Line 42: Use Duration.formatted() instead of String(format:) for time display.
// Before
let minutes = Int(duration) / 60
let seconds = Int(duration) % 60
return String(format: "%02d:%02d", minutes, seconds)
// After
Duration.seconds(duration).formatted(.time(pattern: .minuteSecond))
Line 78: Use Text(_:format:) instead of string interpolation.
// Before
Text("\(fileSize.formatted(.byteCount(style: .file)))")
// After
Text(fileSize, format: .byteCount(style: .file))
End of example.
references/anti-patterns.md - legacy patterns to replace: String(format:), DateFormatter, NumberFormatter, and other Formatter subclasses.references/numeric-styles.md - number, percent, and currency formatting with rounding, precision, sign, notation, scale, and grouping.references/date-styles.md - date/time compositing, ISO 8601, relative, verbatim, HTTP, interval, and components styles.references/duration-styles.md - Duration.TimeFormatStyle and Duration.UnitsFormatStyle with patterns, units, width, and fractional seconds.references/other-styles.md - measurement, list, person name, byte count, URL formatting, and custom FormatStyle creation.references/swiftui.md - SwiftUI Text integration and best practices.agents/openai.yaml (opens in a new tab)references/anti-patterns.md (opens in a new tab)references/date-styles.md (opens in a new tab)references/duration-styles.md (opens in a new tab)references/numeric-styles.md (opens in a new tab)references/other-styles.md (opens in a new tab)references/swiftui.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (n0an/swift-formatstyle-agent-skill) — no native marketplace selected
npx claudepluginhub p/n0an-swift-format-styleOther plugins' skills for the same job