AI SummaryA Cursor rules file that enforces Swift code standards for cross-platform iOS/macOS development, including architecture patterns, logging practices, and preview requirements. Useful for Swift developers maintaining consistent code quality across platform-specific implementations.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "record-thing — Cursor Rules" prompt rules to my project. Repository: https://github.com/thepian/record-thing Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Record a thing for future recognition
Rules for Swift code
• When using UIKit or AppKit specific funtionality, create a cross-platform function or class that implements using AppKit or UIKit based on the OS. • General purpose iOS and macOS functionality(Services, Views, Models and ViewModels) is stored in libs/RecordLib. • The concrete functionality with App Specific configurations should not be placed in libs/RecordLib. • Always add debug logs(os logger) & comments in the code for easier debug & readability. • Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase. • For components that react to events or external @State variables, a toolbar should be added to the preview that allows triggering changes and events.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts