If you're still using DateFormatter, NumberFormatter, or String(format:) in Swift projects, this skill will hunt them down and replace them with modern FormatStyle APIs. It reviews your code against a set of anti-patterns and rewrites formatting logic to use .formatted() and proper FormatStyle types for numbers, dates, durations, measurements, lists, and more. The skill knows the difference between simple cases where .formatted() works and complex scenarios where you need explicit FormatStyle configuration. It also catches SwiftUI-specific issues like using string interpolation in Text views instead of the format parameter. Targets iOS 15+ and knows which features require iOS 16+. Think of it as a linter and refactoring tool rolled into one, specifically for Apple's formatting APIs.

skills.sh installs
465
GitHub stars
15
last updated
Aug 21, 2026

Install

$ npx -y skills add n0an/swift-formatstyle-agent-skill --skill swift-format-style --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

  1. Check for legacy formatting patterns and replace with modern FormatStyle equivalents using references/anti-patterns.md.
  2. Validate number, percent, and currency formatting using references/numeric-styles.md.
  3. Validate date and time formatting using references/date-styles.md.
  4. Validate duration formatting using references/duration-styles.md.
  5. Validate measurement, list, person name, byte count, and URL formatting using references/other-styles.md.
  6. Check SwiftUI Text views for proper FormatStyle integration using references/swiftui.md.

If doing partial work, load only the relevant reference files.

Core Instructions

Sponsors

Details

Repository
github.com/n0an/swift-formatstyle-agent-skill
Categories
Code Review & Quality, AI & Agent Building, Mobile Development
First seen
Jun 3, 2026
1levnikolaevich avatarln-624-code-quality-auditorlevnikolaevich/claude-code-skillsChecks cyclomatic complexity, nesting, long methods, god classes, O(n2), N+1 queries, constants management. Use when auditing code quality.413skills.sh installs
2srstomp avatararchitecture-reviewsrstomp/pokayokayUse when auditing project structure, planning refactors, improving code organization, analyzing dependencies and module boundaries, or identifying structural is412skills.sh installs
3tartinerlabs avatarnaming-formattartinerlabs/skillsUse when reviewing file names, renaming files, fixing naming conventions, or auditing exports. Enforces consistent casing and suffix patterns.407skills.sh installs
4decebals avatararchitecture-reviewdecebals/claude-code-javaAnalyze Java project architecture at macro level - package structure, module boundaries, dependency direction, and layering. Use when user asks "review architec374skills.sh installs
5affaan-m avatarplankton-code-qualityaffaan-m/everything-claude-codeplankton code quality4.9Kskills.sh installs
6owl-listener avatarnaming-conventionowl-listener/designer-skillsEstablish a naming convention system for design elements, components, and tokens with clear rules and examples.2.3Kskills.sh installs