Blender Python add-on Cursor rules
Blender Python Add-on Rules is a Cursor rule file for developers writing Blender add-ons in Python. It guides Cursor on operators, panels, properties, registration, testing and API-safe scripting, so the add-on code it suggests registers cleanly and follows the bpy class conventions Blender expects.
What it does
Entry points stay in __init__.py with register() and unregister(). Actions use bpy.types.Operator, UI uses bpy.types.Panel, and grouped settings use PropertyGroup. Operators define bl_idname, bl_label and bl_options, check context in poll(), and return FINISHED or CANCELLED. Preferences live in AddonPreferences and are cleaned up on unregister.
How to use it
The rule applies to .py files, blender_manifest.toml and __init__.py in your add-on folder.
Requirements and limits
Use bl_info or blender_manifest.toml depending on your Blender version, as the rule notes.
More in Rules and the Cursor library.
What it covers
- Add-on Structure
- API Usage
- Data and Properties
- Safety and Performance
- Testing and Debugging
- Common Mistakes
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/blender-python-addon.mdc
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.