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 agentmods add rules/duckduckgo/apple-browsers/generalgit clone --depth 1 https://github.com/duckduckgo/apple-browsersWhat 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 | $0.01808 | $0.01808 |
| Opus 5 | $0.00904 | $0.00904 |
| Sonnet 5 | $0.00362 | $0.00362 |
| Haiku 4.5 | $0.00181 | $0.00181 |
Grade A, and why
general 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.
How it starts
The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DuckDuckGo Browser Development Rules Overview
Project Context
This is the DuckDuckGo browser for iOS and macOS, built with privacy-first principles, modern Swift patterns, and cross-platform architecture.
Key Directories:
iOS/- iOS browser app (UIKit + SwiftUI hybrid)macOS/- macOS browser app (AppKit + SwiftUI hybrid)SharedPackages/- Cross-platform Swift packages
Architecture Summary
- Pattern: MVVM + Coordinators + Dependency Injection
- UI: SwiftUI preferred, UIKit/AppKit for legacy
- Storage: Core Data + GRDB + Keychain for sensitive data
- Design: DesignResourcesKit for colors/icons (MANDATORY)
- Testing: >80% coverage required
Available Rules (.cursor/rules/)
Development rules are stored in .cursor/rules/.
You MUST list all the available rules and you MUST consult the appropriate rule file before starting any work!
Core (Always Apply)
anti-patterns.mdc- What NOT to do; use with ViewModels, testing, WebView workcode-style.mdc- Swift style guideprivacy-security.mdc- Privacy requirements; use with network calls, analytics, credentialsimport-hygiene.mdc- Import management and SwiftUI preview scopinglogging-guidelines.mdc- Logger usage (never print())
Architecture & Patterns
architecture.mdc- MVVM, DI patterns; use for new ViewModelsproject-structure.mdc- Directory layoutbrowserserviceskit-integration.mdc- BSK integration; use for cross-platform codeshared-packages.mdc- Cross-platform packages; use for cross-platform codesubscription-architecture.mdc- Privacy Pro subscription
Feature Development
feature-flags.mdc+feature-flags-addition.mdc- Feature flagsabn-experiment-framework.mdc- A/B testinguser-defaults-storage.mdc- UserDefaults, @UserDefaultsWrapper; use for settings/preferences
UI Development
swiftui-style.mdc- SwiftUI + DesignResourcesKit; use for new ViewModels, UI workswiftui-advanced.mdc- Advanced SwiftUI patternsdesign-system-designresourceskit.mdc- Colors, typography, icons (MANDATORY)webkit-browser.mdc- WebView patterns
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.
- yesterday First seen · 174 lines · 1,808 tokens per session scan A cc958f169c1b
general is a cursor rule published in the GitHub repository duckduckgo/apple-browsers (252 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,808 tokens to every session, about $0.0090 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-09-01.
Other cursor rules, from other repositories
203-healthkit-integration-detailed
HealthKit & WorkoutKit 集成规范 - 详细参考.
main-refactoring-rules
ios cursor rules.
with-ddd-swift
ios cursor rules.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.