ignore-sourcekit-warnings

A rule for ignoring misleading SourceKit warnings in Swift code, such as reports that a type cannot be found when it is expected to exist. It also says not to install new Swift packages to address these warnings.

In plain words
What is it for?
Use it when reviewing Swift code that shows known spurious SourceKit errors and when deciding whether package installation is needed.
Why use it?
It prevents false editor diagnostics from leading to unnecessary code changes or dependency installation. SourceKit is the tool that provides Swift language analysis in development environments.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/mattt/imcp/ignore-sourcekit-warnings
Clone the repo
git clone --depth 1 https://github.com/mattt/iMCP

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 69 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00069
Opus 5 $0.00000 $0.00034
Sonnet 5 $0.00000 $0.00014
Haiku 4.5 $0.00000 $0.00007

Measured yesterday against content hash 741848c451f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ignore-sourcekit-warnings scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/ignore-sourcekit-warnings.mdc · 12 lines

What it actually says


description: Ignore spurious SourceKit warnings globs: *.swift alwaysApply: false

Ignore warnings erroneously generated by SourceKit like "Cannot find type '__' in scope" or "No such module '_'".

Assume types exist and modules are correctly installed.

Don't attempt to install new Swift packages.

Changes

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.

  1. yesterday First seen · 12 lines · 69 tokens per session scan A 741848c451f0

Subscribe to this mod's changes

ignore-sourcekit-warnings is a cursor rule published in the GitHub repository mattt/iMCP (1,532 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 69 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.