Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add MSApps-Mobile/claude-plugins --skill swift-lspgit clone --depth 1 https://github.com/MSApps-Mobile/claude-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/msapps-mobile/claude-plugins/swift-lsp)<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/swift-lsp"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/swift-lsp/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/swift-lsp"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/swift-lsp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.00623 |
| Opus 5.5 | $0.00029 | $0.00249 |
| Sonnet 5.5 | $0.00015 | $0.00125 |
| Haiku 4.5 | $0.00007 | $0.00062 |
Grade B, and why
swift-lsp scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp /usr/local/bin/sourcekit-lsp How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift LSP — SourceKit-LSP Integration
Role and Purpose
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.
Workflow
Step 1 — Plan Phase
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.
Step 2 — Act Phase
When Claude writes or edits .swift files, the LSP server processes
changes and returns updated diagnostics in structured JSON output via
the LSP protocol.
Step 3 — Verify Phase
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.
Confirmation Policy
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.
Prerequisites
SourceKit-LSP ships with Xcode and the Swift toolchain:
- Xcode (macOS):
xcode-select --install— SourceKit-LSP is included - Swift toolchain (Linux/macOS): Download from swift.org/install
Verify 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
Supported File Types
| Extension | Language ID |
|---|---|
.swift |
swift |
Troubleshooting
- "Executable not found in $PATH" — Install Xcode or the Swift toolchain, then verify
sourcekit-lsp --helpworks - No diagnostics appearing — Ensure the project has a
Package.swiftor.xcodeprojso SourceKit-LSP can resolve dependencies - Slow startup — First launch indexes the project; subsequent sessions are faster. Escalation: restart the LSP server if it hangs.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 77 lines · 73 tokens per session scan B eba68d280488
swift-lsp is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (9 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 623 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.
Other skills, from other repositories
swift-concurrency-expert
Swift concurrency review/fix: compiler errors, Sendable, isolation, remediation.
axiom-analyze-swift-performance
Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns, and generic specialization.
kotlin-tooling-native-build-performance
Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug/linkRelease or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on…
xcode-compilation-analyzer
Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks…
kotlin-coroutines-skill
Load, when a developer writes, reviews, or debugs Kotlin coroutine code and needs help spotting concurrency bugs — GlobalScope leaks, runBlocking in suspend, missing Flow catch, hardcoded or wrong dispatchers, unhandled timeouts, cancellation and structured-concurrency mistakes — or asks how to make async Kotlin…
kmp-architecture-footguns
Kotlin Multiplatform structure and language traps: module splits, expect/actual, Koin and ViewModel scoping, layers, version catalogs, erased overloads, Char and string-resource formatting limits. Use when shaping modules or DI, when a format specifier renders verbatim, or code misbehaves on one platform.