Skip to content

superwall/cursor-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Superwall Cursor Rules

This repository contains custom Cursor Rules designed to enhance your development experience with Superwall. By adding these rules, Cursor AI can generate better code suggestions tailored to the Superwall SDK, making integration faster and more accurate.

Currently, this is available for iOS (Swift), with support for more SDKs and languages coming soon.

๐Ÿš€ Getting Started

To set up Superwall-specific rules in Cursor:

  1. Download the User Rule file for iOS from this repo: ios-swiftui-cursor-rules-superwall-sdk.md.
  2. Open Cursor and navigate to Cursor โ†’ Settingsโ€ฆ โ†’ Cursor Settings.
  3. Under User Rules, paste the contents of the downloaded rule file.

๐Ÿ”— Combining with Existing Rules

You can append these rules to any existing Cursor rules youโ€™re using. For example:

[your existing rule]
[paste our Superwall rule below it]

For additional Cursor rules, check out cursorrules.io.

๐Ÿ’ก Prompting Best Practices

To get the best results from Cursor, explicitly mention the Superwall SDK in your prompts.

โœ… Recommended:

Using the Superwall SDK, register a placement called "drinkCoffee" and include a print statement saying `Coffee time` in the block.

โŒ Less Effective:

Register a placement called "drinkCoffee" and include a print statement saying `Coffee time` in the block.

๐Ÿ”” Stay Updated

Superwallโ€™s SDK evolves, and weโ€™ll update these rules accordingly. Watch this repo for updates to ensure you always have the latest version.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published