Agent skill · software engineering · dpearson2699

swiftlint

Configures and enforces SwiftLint in Swift projects using build tool plugins, run scripts, and CI. Covers .swiftlint.yml configuration, disabled_rules, opt_in_rules, only_rules, analyzer_rules, baselines, autocorrect, swiftlint:disable suppressions, reporter formats (sarif, json, checkstyle), strict and lenient modes, SwiftLintBuildToolPlugin via SimplyDanny/SwiftLintPlugins, swift package plugin swiftlint, Xcode run script phases, CI integration, multiple configuration files, and rollout strategies for existing codebases. Use when setting up SwiftLint, configuring lint rules, suppressing warnings, creating baselines, choosing between build tool plugin and run script, or integrating SwiftLint into CI.

Why this skill is useful

Provides detailed configuration patterns and CI integration strategies for SwiftLint that the AI wouldn't reliably generate on its own.

What it needs

Requires swiftlint installed locally. About 8k tokens when loaded. Last updated 2026-07-31. 973 stars on the source repository.

What this skill does

SwiftLint SwiftLint enforces Swift style and conventions by linting source files against a configurable rule set. This skill covers setup, configuration, rule selection, suppression, CI integration, and rollout strategy. SwiftLint is a style enforcement tool, not a style guide. For underlying Swift naming and design conventions, see swift-api-design-guidelines. For architecture patterns, see swift-architecture. Contents Recommended Setup Configuration Rule Selection Strategy Suppressions Baselines Autocorrect CI Integration Integration Decision Tree Multiple Configurations Common Mistakes Review Checklist References --- Recommended Setup Default: build tool plugin via SimplyDanny/SwiftLintPlugins. Add the plugin package to Package.swift or via Xcode's package dependencies: For SwiftPM targets, apply the plugin: For Xcode projects without a Package.swift, add the package dependency in the project settings, then enable the plugin under the target's Build Phases or the package's plugin trust dialog. The build tool plugin runs SwiftLint automatically on every build. No run script required. First build: Xcode prompts to trust the plugin. Select "Trust & Enable All" for the SwiftLintPlugins package. For alternatives (run scripts, command plugin, Homebrew CLI), see references/plugins-run-scripts-and-integrations.md. Configuration Create .swiftlint.yml at the project root. SwiftLint loads the main configuration from the invocation or plugin working directory, then can merge the nearest nested .swiftlint.yml for each file when configs are discovered automatically. Passing --config overrides automatic discovery and disables nested-config lookup. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills dpearson2699/swiftlint

View the source on GitHub

Browse the @skills marketplace