swift-lsp

Return SourceKit-LSP diagnostics and navigation results for Swift files.

8|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/MSApps-Mobile/claude-plugins --skill swift-lsp-msapps-mobile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-lsp
Source: https://github.com/MSApps-Mobile/claude-plugins/tree/main/plugins/swift-lsp/skills/swift-lsp
Command: npx skills add https://github.com/MSApps-Mobile/claude-plugins --skill swift-lsp-msapps-mobile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill connects Claude to SourceKit-LSP to provide real-time Swift code intelligence so the assistant can surface compile errors, type information, and navigation data without guessing code behavior.

Core Features & Use Cases

  • Diagnostics: Surface compiler errors and warnings for .swift files to guide edits and fixes.
  • Code Navigation: Provide go-to-definition, find-references, and type lookups to speed code comprehension and refactoring.
  • Safe Read-Only Analysis: Operates as a read-only language server integration for reviewing edits and verifying that changes do not introduce regressions.
  • Use Case: While editing an iOS feature branch, use this Skill to show current LSP diagnostics, jump to a symbol's definition, and find all references before submitting a patch.

Quick Start

Enable the swift lsp skill and ask Claude to show diagnostics and definitions for the current Swift file.

Frequently Asked Questions about swift-lsp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get real-time Swift code diagnostics and compiler errors for my .swift files?

To get real-time Swift code diagnostics, this Skill connects Claude to SourceKit-LSP, surfacing compiler errors and warnings for .swift files without modifying your code. It returns structured LSP diagnostics to guide edits and fixes during iOS and macOS development.

How do I use go-to-definition and find-references for Swift code navigation?

For Swift code navigation, the Skill uses SourceKit-LSP to provide go-to-definition, find-references, and type lookups. This speeds up code comprehension and refactoring by returning structured navigation results directly from your .swift files.

Can I use this for safe read-only analysis during an iOS code review?

Yes, you can use this Skill for safe read-only analysis during iOS code reviews. It operates as a read-only SourceKit-LSP integration, verifying that changes do not introduce regressions without modifying files or making network calls.

What is SourceKit-LSP integration for Swift code intelligence?

SourceKit-LSP integration for Swift code intelligence connects Claude to the language server protocol to surface compile errors, type information, and navigation data. It prevents the assistant from guessing code behavior by providing real-time diagnostics and symbol lookups.

Does the Swift LSP diagnostics tool require network access or modify my source files?

The Swift LSP diagnostics tool does not require network access or modify your source files. It operates entirely as a read-only integration, returning structured LSP diagnostics and navigation results without making network calls or altering your codebase.

Why use a SourceKit-LSP Skill instead of having AI guess Swift code behavior?

You use a SourceKit-LSP Skill to eliminate guessing when analyzing Swift code behavior. By connecting directly to the language server, it provides accurate compile errors, type information, and navigation data based on actual project semantics rather than AI inference.