From swift-lsp
Real-time Swift code intelligence via SourceKit-LSP. Gives Claude instant error detection, go-to-definition, find-references, and type info for .swift files. Trigger on: "swift lsp", "enable swift diagnostics", "swift code intelligence", or when working on any Swift/iOS/macOS project and Claude needs better code awareness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/swift-lsp:swift-lspThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This plugin's role is to provide real-time code intelligence boundaries
This plugin's role is to provide real-time code intelligence boundaries for Swift projects. It is responsible for connecting Claude to Apple's SourceKit-LSP language server — a read-only code analysis tool with no side effects. Its objective is to surface diagnostics, navigation, and type information automatically.
Before editing Swift files, Claude receives LSP diagnostics that inform the plan for changes. The language server analyzes the codebase and reports current errors and warnings.
When Claude writes or edits .swift files, the LSP server processes
changes and returns updated diagnostics in structured JSON output via
the LSP protocol.
After each edit, Claude reviews the LSP diagnostics to confirm the change didn't introduce regressions. If errors appear, Claude uses the fallback of reverting or correcting the edit — a fail-safe error handling procedure.
This plugin requires no human confirmation or approval gates because it is a purely read-only analysis tool — it cannot modify files, make network calls, or produce any side effects. All actions are autonomous and safe by design.
SourceKit-LSP ships with Xcode and the Swift toolchain:
xcode-select --install — SourceKit-LSP is includedVerify the tool integration is available:
sourcekit-lsp --help
If command not found, add it to your PATH:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp /usr/local/bin/sourcekit-lsp
| Extension | Language ID |
|---|---|
.swift | swift |
sourcekit-lsp --help worksPackage.swift or .xcodeproj so SourceKit-LSP can resolve dependenciesGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Synthesizes the current conversation into a structured spec (PRD) and publishes it to the project issue tracker with a ready-for-agent label, without interviewing the user.
npx claudepluginhub p/msapps-mobile-swift-lsp-plugins-swift-lsp