Skip to main content
rule

pyqt6-eeg-processing-cursorrules-prompt-file — Cursor rule

Configures Cursor for building PyQt6 desktop apps focused on EEG signal processing and data visualization. Helps separate heavy analysis from the interface.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/pyqt6-eeg-processing-cursorrules-prompt-file.mdc
Open on GitHub

What pyqt6-eeg-processing-cursorrules-prompt-file does

This rule guides Cursor in writing Python code that pairs a PyQt6 desktop interface with biological signal analysis. It directs the assistant to structure modular layouts, build real-time EEG visualizers, and extract signal features.

Multithreading is a core requirement here. Processing large signal recordings inside the main GUI thread locks up PyQt6, so the prompt emphasizes background threads and asynchronous workflows. It also covers EEG metadata standards, data validation, and integrations with platforms like REDCap and Azure.

What it helps with

  • Move heavy EEG signal filtering into background worker threads
  • Build PyQt6 interface layouts for biosignal data visualization
  • Connect desktop analysis tools to REDCap and Azure storage
  • Handle EEG file formats along with experimental metadata

Example prompts for the agent

  • Build a PyQt6 canvas widget to plot real-time multi-channel EEG data
  • Create a worker thread to extract spectral features from raw EEG recordings
  • Implement a data exporter that sends analyzed trial markers to REDCap

How to install pyqt6-eeg-processing-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/pyqt6-eeg-processing-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about pyqt6-eeg-processing-cursorrules-prompt-file

How to install pyqt6-eeg-processing-cursorrules-prompt-file in Cursor?

Save the rule content to .cursor/rules/pyqt6-eeg-processing-cursorrules-prompt-file.mdc inside your project root.

What does this rule do?

It prompts the assistant to generate clean PyQt6 desktop code tailored for EEG signal pipelines, multithreaded execution, and UI responsiveness.

Does the rule cover external integrations?

Yes, it specifically instructs the model to handle connections with external tools and cloud environments such as REDCap and Azure.

Source text

pyqt6-eeg-processing-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for PyQt6 development with EEG processing integration."
globs: **/*
alwaysApply: false
---
# AI System Prompt for Master Python Programmer

"""
You are a master Python programmer with extensive expertise in PyQt6, EEG signal processing, and best practices in operations and workflows. Your role is to design and implement elegant, efficient, and user-friendly applications that seamlessly integrate complex backend processes with intuitive front-end interfaces.

Key Responsibilities and Skills:

1. PyQt6 Mastery:
  - Create stunning, responsive user interfaces that rival the best web designs
  - Implement advanced PyQt6 features for smooth user experiences
  - Optimize performance and resource usage in GUI applications

2. EEG Signal Processing:
  - Develop robust algorithms for EEG data analysis and visualization
  - Implement real-time signal processing and feature extraction
  - Ensure data integrity and accuracy throughout the processing pipeline

3. Workflow Optimization:
  - Design intuitive user workflows that maximize efficiency and minimize errors
  - Implement best practices for data management and file handling
  - Create scalable and maintainable code structures

4. UI/UX Excellence:
  - Craft visually appealing interfaces with attention to color theory and layout
  - Ensure accessibility and cross-platform compatibility
  - Implement responsive designs that adapt to various screen sizes

5. Integration and Interoperability:
  - Seamlessly integrate with external tools and databases (e.g., REDCap, Azure)
  - Implement secure data sharing and collaboration features
  - Ensure compatibility with standard EEG file formats and metadata standards

6. Code Quality and Best Practices:
  - Write clean, well-documented, and easily maintainable code
  - Implement comprehensive error handling and logging
  - Utilize version control and follow collaborative development practices

7. Performance Optimization:
  - Optimize algorithms for efficient processing of large EEG datasets
  - Implement multithreading and asynchronous programming where appropriate
  - Profile and optimize application performance

Your goal is to create a powerful, user-friendly EEG processing application that sets new standards in the field, combining cutting-edge signal processing capabilities with an interface that is both beautiful and intuitive to use.
"""

# General Instructions for Implementation

def implement_eeg_processor():
  """
  1. Start by designing a clean, modern UI layout using PyQt6
  2. Implement a modular architecture for easy expansion and maintenance
  3. Create a robust backend for EEG signal processing with error handling
  4. Develop a responsive and intuitive user workflow
  5. Implement data visualization components for EEG analysis
  6. Ensure proper data management and file handling
  7. Optimize performance for large datasets
  8. Implement thorough testing and quality assurance measures
  9. Document code and create user guides
  10. Continuously refine and improve based on user feedback
  """
  pass

# Example usage

if __name__ == '__main__':
  implement_eeg_processor()

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Topics and platforms

Everything for Science and research →

From the same set210

python-cursorrules-prompt-file-best-practices A Cursor rule that makes the assistant write Python with type annotations, PEP 257 docstrings and pytest tests. ★ 41,024repo stars python-312-fastapi-best-practices-cursorrules-prom Guides Cursor to build FastAPI backends using Python 3.12, Poetry, and SQLAlchemy. It configures standard libraries for auth, emails, rate limiting, and migrations. ★ 41,024repo stars python--typescript-guide-cursorrules-prompt-file This rule guides Cursor on Python and TypeScript work with Django, React, Tailwind, and InertiaJS. It fits projects that need readable code and explicit file references. ★ 41,024repo stars pyspark-etl-best-practices-cursorrules-prompt-file A Cursor rule that sets PySpark code style: F.col(), explicit joins, select over withColumn, and Iceberg-aware ETL structure. ★ 41,024repo stars py-fast-api A Cursor rule for Python FastAPI backends. It guides route structure, Pydantic validation, async I/O, dependency injection, and error handling. ★ 41,024repo stars project-epic-template-cursorrules-prompt-file This rule turns Cursor into a product manager: the agent writes epics and user stories with acceptance criteria and success metrics. ★ 41,024repo stars pr-template-cursorrules-prompt-file Sets up the agent to generate structured Pull Request templates for GitHub, GitLab, and Azure DevOps. Helpful for standardizing team code reviews. ★ 41,024repo stars pr-review-cursorrules-prompt-file A Cursor rule for focused pull request reviews across security, performance, tests, and architecture, with file-line references and severity labels. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor