swift-lsp

Provide Swift code navigation, diagnostics, and auto-fix via SourceKit-LSP.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/billwanggithub/GmtTestToolV1 --skill swift-lsp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-lsp
Source: https://github.com/billwanggithub/GmtTestToolV1/tree/main/.agent/skills/swift-lsp
Command: npx skills add https://github.com/billwanggithub/GmtTestToolV1 --skill swift-lsp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides advanced code intelligence for Swift development, enabling better code navigation, error detection, and automated fixes.

Core Features & Use Cases

  • Code Navigation: Jump to definitions, find references, and understand code structure.
  • Diagnostics: Detects compiler errors and warnings in real-time.
  • Auto-fix: Offers suggestions to automatically correct common Swift issues.
  • Use Case: When working on a SwiftPM project, this skill helps you quickly find where a function is defined or identify and fix syntax errors.

Quick Start

Use the swift-lsp skill to analyze the current Swift file for errors.

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 compiler diagnostics for my Swift Package Manager project?

To get real-time Swift compiler diagnostics, you can use code intelligence powered by SourceKit-LSP. It detects compiler errors and warnings instantly as you work within your SwiftPM project.

Can I jump to definitions and find references in Swift files without a full IDE?

You can jump to definitions and find references in Swift files using language server protocol capabilities. This provides deep code navigation and structure understanding for individual Swift files and SwiftPM projects.

How do I automatically fix common Swift syntax errors during development?

To automatically fix common Swift syntax errors, you can use the auto-fixing capabilities provided by Swift code intelligence. It offers suggestions to correct common issues detected by the compiler in real-time.

Does SourceKit-LSP support code refactoring for Swift Package Manager projects?

SourceKit-LSP supports code refactoring for Swift Package Manager projects by providing deep code understanding. It enables automated structural code changes and intelligent navigation across your Swift codebase.

What is the best way to perform type checking on individual Swift files?

The best way to perform type checking on individual Swift files is by using SourceKit-LSP. It applies language intelligence to analyze your code and identify type mismatches or compiler errors.