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.
git clone --depth 1 https://github.com/brunogama/ios-cursor-rulesWrote 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/rules/brunogama/ios-cursor-rules/on-load-rule)<a href="https://agentmods.dev/rules/brunogama/ios-cursor-rules/on-load-rule"><img src="https://agentmods.dev/badge/rules/brunogama/ios-cursor-rules/on-load-rule/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/rules/brunogama/ios-cursor-rules/on-load-rule"><img src="https://agentmods.dev/badge/rules/brunogama/ios-cursor-rules/on-load-rule.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.01161 | $0.01161 |
| Opus 5.5 | $0.00464 | $0.00464 |
| Sonnet 5.5 | $0.00232 | $0.00232 |
| Haiku 4.5 | $0.00116 | $0.00116 |
Grade A, and why
on-load-rule 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift Project Development Guidelines
This guide outlines the critical development principles for this Swift project.
actions:
-
type: suggest message: |
Critical Development Principles
This Swift project follows strict architectural and code quality guidelines:
1. Architecture
We follow Clean Architecture with:
- Domain Layer: Pure business logic, no frameworks
- Application Layer: Use cases orchestrating domain entities
- Interface Adapters Layer: Bridges between domain and external systems
- Infrastructure Layer: Frameworks, drivers, and UI
Key principle: Dependencies point inward. Outer layers depend on inner layers, never the reverse.
2. Domain-Driven Design
All domain modeling must use DDD tactical patterns:
- Entities: Objects with identity (User, Order)
- Value Objects: Immutable objects defined by their attributes (Email, Money)
- Aggregates: Consistency boundaries with a single entry point (OrderAggregate)
- Domain Events: Record important business events (OrderPlaced, PaymentReceived)
- Repositories: Data access abstractions for aggregates
Bounded Contexts define boundaries between different domain areas.
3. Object Callisthenics
Strictly follow these 9 rules:
- One level of indentation per method
- Don't use the ELSE keyword
- Wrap all primitives and strings
- Use first-class collections
- One dot per line (no method chaining)
- Don't abbreviate names
- Keep entities small (50 lines per class, 10 files per package)
- No classes with more than 2 instance variables
- No getters/setters/properties (focus on behavior)
4. Testing Principles
Every public function must have unit tests.
Test coverage requirements:
- Domain Layer: 100%
- Application Layer: 100%
- Interface Adapters: 90%+
- Infrastructure: Critical paths
Always follow AAA pattern (Arrange-Act-Assert).
5. Package Structure
Packages are organized by layer first, then by bounded context:
Sources/ ├── Domain/ │ ├── [BoundedContext1]/ │ ├── [BoundedContext2]/ ├── Application/ │ ├── [BoundedContext1]/ │ ├── [BoundedContext2]/ ├── InterfaceAdapters/ │ ├── [BoundedContext1]/ │ ├── [BoundedContext2]/ └── Infrastructure/ ├── [BoundedContext1]/ ├── [BoundedContext2]/6. Naming Conventions
- Domain classes: Business terms (User, Order, Product)
- Use cases: VerbNoun format (CreateOrderUseCase, AuthenticateUserUseCase)
- Protocols: Nouns or adjectives (UserRepository, Authenticatable)
- Extensions: Extended type + feature (String+Validation)
7. Error Handling
- Domain errors should be typed, not strings (enum OrderError)
- Use Swift's Result type for operations that can fail
- Fail early and explicitly
- Prefer throwing specific errors over optionals for failure cases
8. Dependency Injection
- Dependencies must be explicit through constructor injection
- Use protocols to define dependencies, not concrete classes
- Do not use service locators or global singletons
9. Documentation Requirements
- Domain models: Full documentation with business purpose
- Use cases: Documentation with inputs, outputs, and errors
- Public APIs: Fully documented with examples
- Tests: Clear arrange-act-assert sections
10. Code Review Checklist
- Follows Clean Architecture dependencies
- Adheres to DDD principles
- Satisfies Object Callisthenics rules
- Has required test coverage
- Properly documented
- No code smells
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 · 148 lines · 1,161 tokens per session scan A be0e4820f7c9
on-load-rule is a cursor rule published in the GitHub repository brunogama/ios-cursor-rules (75 stars, last pushed 1y ago), licensed MIT. It adds 1,161 tokens to every session, about $0.0046 per session on Opus 5.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.
Other cursor rules, from other repositories
swiftui
Rules for IcySky, a SwiftUI project for a bluesky client.
202-swift-standards-detailed
A detailed set of coding standards for Swift 6.2 and Apple platforms from iOS 18 through iOS 26.
126-swift-advanced
126: Advanced Swift patterns including error handling, SwiftUI design system, SwiftData, concurrency, security, and documentation.
121-swift-core
121: Core Swift development principles and modern iOS best practices.
kotlin-ktor-development-cursorrules-prompt-file
Cursor rules for Kotlin development with Ktor integration.
swiftui-guidelines-cursorrules-prompt-file
Cursor rules for SwiftUI development guidelines.