Skip to content
Prompt

record-thing — Cursor Rules

by thepian

AI Summary

A 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

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
AdoptionUnder 100 stars
1 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars1
Issues18
Updated4mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more