mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
add .mdc file
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Rules for maintaining a consistent file structure within individual element directories.
|
||||
globs: /element_templates/**/*
|
||||
---
|
||||
- Each element should have a directory containing:
|
||||
- `__init__.py`
|
||||
- `<element_name>_element.py`
|
||||
- `<element_name>_model.py`
|
||||
- `css/` directory containing CSS files for styling.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: This applies to most files in the project. Enforces developer-friendly practices and documentation.
|
||||
globs: /**/*.*
|
||||
---
|
||||
- Pyllments code is prioritized on being developer-friendly, where extensibility and modularity are first-class citizens.
|
||||
- Elements should be customizable with clean and intuitive interfaces.
|
||||
- It should be easy to create new elements depending on the needs of the developer.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: General Python project rules for all Python files in the project. Enforces specific Python versions and class usage.
|
||||
globs: /**/*.*.py
|
||||
---
|
||||
- Always use UV when installing dependencies.
|
||||
- Always use Python 3.12.
|
||||
- Always use classes instead of functions.
|
||||
- Docstrings should use a NumPy/SciPy style.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Rules to apply to files relating to Langchain. Langchain is responsible for LLM related workflows.
|
||||
globs: /llm/**/*.*
|
||||
---
|
||||
- Langchain is responsible for specific functions pertaining to incorporating LLM workflows.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Rules for Panel views, specifying that Panel should be used for the visualization layer.
|
||||
globs: /**/*_view.py
|
||||
---
|
||||
- Use Panel to create the visualization layer and run the GUI.
|
||||
- Views should consist of Panel objects.
|
||||
- Panel objects can be styled with Python and CSS.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Rules related to Param, to be applied when defining models. Models use Param to define parameters with validation and reactivity.
|
||||
globs: /**/*_model.py
|
||||
---
|
||||
- Use Param to create parameterized classes.
|
||||
- Param should handle type validation, default values, and constraints.
|
||||
- Use Param's reactivity features (event handlers) to catch changes.
|
||||
Reference in New Issue
Block a user