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.
.cursor/rules/pyqt6-eeg-processing-cursorrules-prompt-file.mdcWhat 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.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/pyqt6-eeg-processing-cursorrules-prompt-file.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/pyqt6-eeg-processing-cursorrules-prompt-file.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/pyqt6-eeg-processing-cursorrules-prompt-file.mdManually: put the files in place
.clinerules/pyqt6-eeg-processing-cursorrules-prompt-file.mdStep 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