Swiftlint Autofix
Automatically fixes SwiftLint issues in your codebase, streamlining code quality and reducing manual effort for developers.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add swiftlint-autofix npx -- -y @trustedskills/swiftlint-autofix
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"swiftlint-autofix": {
"command": "npx",
"args": [
"-y",
"@trustedskills/swiftlint-autofix"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The swiftlint-autofix skill automates code formatting and style corrections within Swift projects. It leverages SwiftLint's ruleset to identify violations and automatically applies fixes where possible, ensuring consistent coding standards across a codebase. This reduces manual effort and improves code quality.
When to use it
- Automated Code Formatting: Integrate into CI/CD pipelines to enforce formatting rules on every commit.
- SwiftLint Rule Application: Quickly apply corrections for common SwiftLint rule violations in existing projects.
- New Project Setup: Automatically format new Swift files according to established coding standards.
- Code Review Assistance: Reduce the burden of manual code review by automatically fixing style issues.
Key capabilities
- Automated code formatting based on SwiftLint ruleset.
- Automatic application of fixes for identified violations.
- Integration with CI/CD pipelines.
- Swift file formatting.
Example prompts
- "Run swiftlint-autofix on this Swift file."
- "Automatically fix all style issues in my project's codebase."
- "Format the current file to conform to SwiftLint rules."
Tips & gotchas
- Requires a configured SwiftLint ruleset for optimal results.
- Not all violations can be automatically fixed; some may require manual intervention.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.