swift-5-9-development-standards-continued

swift-5-9-development-standards-continued is a cursor rule for Cursor from beettlle/pi-spine. It costs 0 tokens per session (4,169 once invoked), scanned A, original, MIT.

A set of Swift 5.9 development rules covering iOS development, SwiftUI, code structure, concurrency, and testing. Swift is Apple's programming language for platforms such as iOS and macOS.

In plain words
What is it for?
Use it when writing or reviewing Swift and SwiftUI code, setting up test targets, or choosing between Swift Testing, XCTest, and XCUITest.
Why use it?
It keeps Swift projects consistent with the project's deployment target and with the appropriate unit, user-interface, accessibility, and performance testing practices.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: positional $N argument.

Good fit Use it when writing or reviewing Swift and SwiftUI code, setting up test targets, or choosing between Swift Testing, XCTest, and XCUITest.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/beettlle/pi-spine/swift-5-9-development-standards-continued
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.

Clone the repo
git clone --depth 1 https://github.com/beettlle/pi-spine

Made for: Cursor.

Wrote 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.

agentmods badge for swift-5-9-development-standards-continued

README.md
[![agentmods](https://agentmods.dev/badge/rules/beettlle/pi-spine/swift-5-9-development-standards-continued/github.svg)](https://agentmods.dev/rules/beettlle/pi-spine/swift-5-9-development-standards-continued)
Your own site
<a href="https://agentmods.dev/rules/beettlle/pi-spine/swift-5-9-development-standards-continued"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/swift-5-9-development-standards-continued/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.

agentmods 80×15 button for swift-5-9-development-standards-continued

Your own site · 80×15
<a href="https://agentmods.dev/rules/beettlle/pi-spine/swift-5-9-development-standards-continued"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/swift-5-9-development-standards-continued.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 4,169 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.04169
Opus 5.5 $0.00000 $0.01668
Sonnet 5.5 $0.00000 $0.00834
Haiku 4.5 $0.00000 $0.00417

Measured 13d ago against content hash c9f07a9fdb11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swift-5-9-development-standards-continued 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 13d 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.

.cursor/rules/swift-5-9-development-standards-continued.mdc · 455 lines

How it starts

The opening of the file, as written. The whole thing — 455 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Companion to swift-5-9-development-standards.mdc (same globs). Section continuity below.

iOS Development Standards (continued)

Testing & Quality

CRITICAL: Follow Apple's official testing documentation and best practices - Reference: https://developer.apple.com/documentation/xcode/testing and https://developer.apple.com/documentation/Xcode/adding-tests-to-your-xcode-project

Testing Frameworks

  • Swift Testing Framework (@Test) for new tests when supported by the project's Xcode version, SDK, and deployment target; otherwise use XCTest
  • XCTest for unit tests (default when Swift Testing is unavailable or for legacy targets)
  • XCUITest for UI tests and user interaction testing
  • Test common user flows and critical paths
  • Performance testing using measure blocks
  • Error scenarios and negative test cases
  • Accessibility testing (VoiceOver, Dynamic Type, etc.)

Test Target Organization (Per Apple Documentation)

  1. Test Target Setup:

    • Create separate test targets for different test types (unit tests, UI tests)
    • Use Xcode's Test Navigator (⌘6) to manage and organize tests
    • Configure test target membership in File Inspector for each test class
    • Ensure proper target dependencies and linking
  2. Adding Tests to Xcode Project

    • Use Test Navigator's Add (+) button to create new test targets
    • Choose "New Unit Test Target" or "New UI Test Target" as appropriate
    • Use setup assistant to configure product name and settings
    • Add test classes via Test Navigator: "New Unit Test Class" or "New UI Test Class"
    • Associate test classes with appropriate test targets
  3. Test Class Organization

    • Use clear, consistent naming: append "Tests" to class under test (e.g., MyFeatureTests for MyFeature)
    • Organize test files in folders mirroring main codebase structure
    • Group related test methods within each test class
    • Use descriptive test method names indicating what aspect is being tested

Read the full file on GitHub · 455 lines

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. 13d ago First seen · 455 lines · 0 tokens per session scan A c9f07a9fdb11

Subscribe to this mod's changes

swift-5-9-development-standards-continued is a cursor rule published in the GitHub repository beettlle/pi-spine (3 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,169 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-11-17.

Related

swift-5-9-development-standards-continued compared with cursor rules from other repositories

swift-5-9-development-standards-continued next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swift-5-9-development-standards-continuedbeettlle/pi-spineCursor rule35d agoMITA0Cursor
gradlesanjeed5/awesome-cursor-rules-mdcCursor rule3.6k7d agoCC0-1.0A1,896Cursor
kotlin-springboot-rulesholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA0Cursor
trove-swiftbravew/troveCursor rule115d agoMITA477Cursor
android-viewmodelbaijum/ukulele-companionCursor rule1425d agoMITA0Cursor
kotlin-rulesbeel-collab/presets.devCursor rule36d agoMITA0Cursor
shared-modulebaijum/ukulele-companionCursor rule1425d agoMITA0Cursor