Implement a robust Python script to generate Cursor MDC (Markdown Configuration) files for various libraries using:
- Exa API for research and information gathering
- LLM-powered rule generation
- Parallel processing of libraries
- Configurable and extensible architecture
- Detailed logging and progress tracking
Key features include:
- Dynamic configuration management
- Concurrent library processing
- Flexible command-line interface
- Comprehensive best practice rule generation
- Error handling and retry mechanisms