n0an

Swift FormatStyle Agent Skill — AI skill for Claude Code

AI community

Swift FormatStyle agent skill for Claude Code, Codex, Cursor, and other AI coding agents.

How to install Swift FormatStyle Agent Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open n0an/Swift-FormatStyle-Agent-Skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Swift FormatStyle Agent Skill does

Swift FormatStyle agent skill for Claude Code, Codex, Cursor, and other AI coding agents.

Alternatives in AI

  • Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
  • Agent Rules Books — AGENTS.md rules / skills for AI coding agents: Codex, Cursor & Claude Code 2.6k ★
  • Skills Manage — Desktop app to manage AI coding agent skills across Claude Code, Cursor, Gemini CLI, Codex, and 20+ platforms 2.2k ★

README

Swift FormatStyle Agent Skill

iOS 15+ Swift 5.7+ MIT License Agent Skills Compatible

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](https://agentskills.io/home) format, so it works smoothly with Claude Code, Codex, Gemini, Cursor, and more.

What It Covers

  • Number, Percent, Currency - precision, rounding, sign, notation, scale, grouping, locale
  • Date/Time - compositing, presets, ISO 8601, relative, anchored relative, verbatim, HTTP
  • Date Ranges - interval and components styles
  • Duration - time patterns (HH:MM:SS) and units (human-readable)
  • Measurement - locale-aware unit conversion for length, mass, temperature, speed, etc.
  • List - array-to-text with "and"/"or" joining
  • Person Name - locale-aware name ordering
  • Byte Count - file/memory size display
  • URL - component-level formatting and parsing
  • Custom FormatStyle - creating your own
  • Anti-patterns - catches String(format:), DateFormatter, NumberFormatter, and other legacy code

Installing

You 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 in