XcodeBuildMCP-iOS-Template copilot-instructions.md

Coding instructions for a Swift 6.1+ iOS 18 application built with SwiftUI and a local Swift Package. They specify the app structure, concurrency style, testing framework, persistence choices, and tools for building and testing.

In plain words
What is it for?
Implementing SwiftUI features, writing async code, adding Swift Testing tests, storing data with SwiftData when needed, and building or testing the iOS app.
Why use it?
They keep new code in the intended package and ensure it follows the project’s supported iOS patterns instead of using incompatible structures or commands.

Instructions file for GitHub Copilot

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 instructions/getsentry/xcodebuildmcp-ios-template/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/getsentry/XcodeBuildMCP-iOS-Template

Made for: GitHub Copilot.

Per session 344 This file is loaded in full into every session.
When invoked 344 The same file — it is already loaded in full.
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.00344 $0.00344
Opus 5 $0.00172 $0.00172
Sonnet 5 $0.00069 $0.00069
Haiku 4.5 $0.00034 $0.00034

Measured 2d ago against content hash 53a77e300214, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

XcodeBuildMCP-iOS-Template copilot-instructions.md 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 2d 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.

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.

template/.github/copilot-instructions.md · 15 lines

What it actually says

Copilot Custom Instructions

  • This repository uses Swift 6.1+ and SwiftUI for iOS 18+ apps. All code should follow modern Swift and SwiftUI best practices.
  • This is an iOS project NOT a pure Swift Package or macOS project. It utlises a local Swift Package which is wrapped in an Xcode project. This makes it easier for agents to work on the project.
  • Use the Model-View (MV) pattern with native SwiftUI state management (@State, @Observable, @Environment, @Binding). Do not use ViewModels or MVVM.
  • All concurrency must use Swift Concurrency (async/await, actors, @MainActor). Do not use GCD or completion handlers.
  • Write all new code and features inside the Swift Package (YourAppPackage), not in the app shell.
  • Use the Swift Testing framework (@Test, #expect, #require) for all tests. Place tests in the package's Tests/ directory.
  • When running tests use the test_sim_name_ws tool do not use swift_package_test.-
  • Use XcodeBuildMCP tools for building, testing, and automation. Prefer these over raw xcodebuild or CLI commands.
  • For data persistence, use SwiftData (never CoreData), though only use for complex scenarios, prefer simpler options first e.g. UserDefaults.
  • Always provide accessibility labels and identifiers for UI elements.
  • Never log sensitive information or use insecure network calls.
  • For full style, architecture, and workflow details, refer to the project documentation in template/.cursor/rules/.
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. 2d ago First seen · 15 lines · 344 tokens per session scan A 53a77e300214

Subscribe to this mod's changes

XcodeBuildMCP-iOS-Template copilot-instructions.md is an instructions file published in the GitHub repository getsentry/XcodeBuildMCP-iOS-Template (43 stars, last pushed 1y ago), licensed MIT. It adds 344 tokens to every session, about $0.0017 per session on Opus 5. 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.