Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By n0anv1.0.0MIT
Reviews Swift code and rewrites legacy String(format:), DateFormatter and NumberFormatter usage into modern .formatted() FormatStyle APIs. Targets iOS 15 and later, with Duration styles requiring iOS 16.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An agent skill that helps AI coding agents like Claude Code, Codex, Cursor, and Gemini write modern Swift formatting code using FormatStyle and .formatted() APIs instead of legacy Formatter subclasses and C-style String(format:).
It uses the Agent Skills format, so it works smoothly with Claude Code, Codex, Gemini, Cursor, and more.
String(format:), DateFormatter, NumberFormatter, and other legacy codeYou can install this skill into Claude Code, Codex, Gemini, Cursor, and more by using npx:
npx skills add https://github.com/n0an/Swift-FormatStyle-Agent-Skill --skill swift-format-style
If you get the error npx: command not found, it means you don't currently have Node installed. You need to run this command to install Node through Homebrew:
brew install node
And if that fails it usually means you need to install Homebrew first.
When using npx, you can select exactly which agents you want to use during the installation. You can also select whether the skill should be installed just for one project, or whether it should be made available for all your projects.
Claude Code:
/plugin install n0an/Swift-FormatStyle-Agent-Skill
Gemini:
gemini extensions install https://github.com/n0an/Swift-FormatStyle-Agent-Skill.git --consent
Alternatively, you can clone this whole repository and install it however you want.
The skill is called Swift Format Style, and can be triggered in various ways. For example, in Claude Code you would use this:
/swift-format-style
And in Codex you would use this:
$swift-format-style
In both cases you can provide specific instructions if you want only a partial review. For example, /swift-format-style Replace all String(format:) calls with FormatStyle on Claude, or $swift-format-style Fix the date formatting in this file in Codex.
You can also trigger the skill using natural language:
Use the Swift Format Style skill to review the formatting code in this project.
LLMs frequently generate legacy Swift formatting code - String(format: "%.2f", value), DateFormatter, manual duration calculations with String(format: "%02d:%02d", minutes, seconds) - because the majority of their training data predates iOS 15's FormatStyle APIs.
This skill:
Formatter subclassesDuration styles (iOS 16+), anchored relative dates (Xcode 16+), and URL formattingText(_:format:) over string interpolationContributions are welcome - whether adding new checks, improving existing examples, or fixing typos.
Available under the MIT License, which permits commercial use, modification, distribution, and private use.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (n0an/swift-formatstyle-agent-skill) — no native marketplace selected
npx claudepluginhub p/n0an-swift-format-stylePlugins from other owners that cover similar ground