format-swift-sources

Community

SwiftLint & SwiftFormat across Apple workflows.

Authorgaelic-ghost
Version1.0.0
Installs0

System Documentation

What problem does it solve?

SwiftLint and SwiftFormat provide complementary quality gates for Swift code, but teams often struggle to coordinate their rules, surfaces, and configurations across CLI tooling, Xcode phases, packaging, and automation. This skill clarifies a single, coherent workflow to install, configure, and apply both tools consistently in Apple-centric repositories.

Core Features & Use Cases

  • Unified guidance for integrating SwiftLint and SwiftFormat across CLI, Xcode build phases, SwiftPM plugins, AppleScript automation, Git hooks, and GitHub Actions.
  • Deterministic export pathway via scripts/export_swiftformat_xcode_config.py to produce a portable .swiftformat configuration from the SwiftFormat shared defaults when needed.
  • Clear guidance on preferred paths (host-app export flow first) and safe fallbacks, plus verification steps to ensure the integration actually runs.

Quick Start

Use the host-app export flow to generate a portable SwiftFormat config at the project root, or fall back to the scriptable export in scripts/export_swiftformat_xcode_config.py when a deterministic export is required.

Dependency Matrix

Required Modules

PyYAML

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: format-swift-sources
Download link: https://github.com/gaelic-ghost/socket/archive/main.zip#format-swift-sources

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.