swiftlint
Swift linting and style enforcement via CLI
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alexissan/swiftlintWhat This Skill Does
The SwiftLint skill enables OpenClaw to enforce clean, maintainable Swift code by integrating static analysis directly into your development workflow. It identifies stylistic errors, potential bugs, and code smells by checking your source code against established community conventions (or your custom project rules). Beyond simple reporting, this tool can automatically fix common violations, saving developers significant time during code reviews and cleanup phases.
Installation
To enable this functionality, use the command: clawhub install openclaw/skills/skills/alexissan/swiftlint. Ensure you have the SwiftLint CLI installed on your machine. You can install it via Homebrew (brew install swiftlint), Mint, or by adding it as a Swift Package Manager plugin in your Package.swift file. Once installed, ensure the swiftlint executable is available in your system path.
Use Cases
This skill is perfect for maintaining consistency across large-scale Swift projects or ensuring that code contributed by multiple team members adheres to a singular style guide. Use it to scan entire repositories to identify legacy code that violates current standards, or target specific files to ensure high-quality code during the commit process. It is especially powerful when configured for Continuous Integration (CI) pipelines, where you can export results into formats like JUnit, JSON, or Checkstyle to automatically fail builds that contain stylistic regressions.
Example Prompts
- "Check my code style in the current directory and list any major violations."
- "I see a lot of SwiftLint warnings in the 'Sources/' folder; please autocorrect all fixable issues."
- "Run a lint check on 'ViewModel.swift' and provide the output in JSON format so I can analyze it programmatically."
Tips & Limitations
Always run a linting check before performing an autocorrection to review what is being modified. Note that not all SwiftLint violations are automatically fixable; some logic-heavy or complex stylistic issues require manual intervention. For projects with strict requirements, consider creating a .swiftlint.yml file in your root directory to customize which rules are enforced. Be aware that running --fix modifies your files directly; ensure your work is committed to version control before executing these commands to prevent unexpected data loss.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alexissan-swiftlint": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
apple-books
Read your Apple Books library, highlights, notes, and reading progress directly from the local SQLite databases on macOS.
marine-forecast
Marine and sailing weather via Open-Meteo. Waves, swell, sea temperature, wind, tides, ocean currents, and sailing assessments. Free, no API key, global coverage.
xcode-build-analyzer
Analyze Xcode build logs — timing, warnings, errors, slow compiles, and build history from DerivedData.
fastlane
iOS/macOS app automation — builds, signing, TestFlight, App Store via CLI