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 2mo 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.
- 2mo 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 (12 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.
swift-lsp compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-lspMSApps-Mobile/claude-plugins | Skill | 12 | today | MIT | B | 73 | Claude Code |
| swift-concurrency-expertsteipete/agent-scripts | Skill | 7.6k | 2d ago | MIT | A | 22 | Claude Code, Codex |
| kotlin-tooling-native-build-performanceKotlin/kotlin-agent-skills | Skill | 1.2k | 3d ago | Apache-2.0 | A | 96 | Claude Code, Codex |
| axiom-analyze-swift-performanceCharlesWiltgen/Axiom | Skill | 1.3k | 21d ago | MIT | A | 34 | Codex |
| swift-concurrency-updatesrshankras/claude-code-apple-skills | Skill | 915 | 21d ago | MIT | A | 52 | Claude Code |
| memoryrshankras/claude-code-apple-skills | Skill | 915 | 21d ago | MIT | A | 36 | Claude Code |
| concurrency-patternsrshankras/claude-code-apple-skills | Skill | 915 | 21d ago | MIT | A | 48 | Claude Code |