Python OpenAI API .cursorrules prompt file
About .cursorrules prompt file
What you can build
AI Agent Developer Platform: A web service that allows developers to easily create, test, and deploy AI agents using a structured project template that emphasizes modularity, robust error handling, and consistent code style.
Python Project Generator: An application that generates Python project scaffolding based on best practices like modular design, configuration management with environment variables, and detailed documentation through docstrings and README files.
AI-Powered Documentation Tool: A tool that automatically generates detailed docstrings and README files by analyzing Python code to ensure clear documentation and facilitate understanding, especially for complex logic and AI-related development.
Configuration Management System: A service that manages configuration using environment variables, providing an easy interface for developers to set and retrieve environment settings, ensuring seamless configuration handling across development and production environments.
Error Handling and Logging Framework: A Python library that provides a structured way to implement robust error handling and logging, capturing detailed context and helping developers quickly identify and fix issues in their code.
Consistent Code Style Enforcer: A tool like Ruff that focuses on Python code style consistency, helping developers automatically apply style guidelines, such as descriptive naming, type hints, and detailed comments, to improve the readability and maintainability of code.
Vector Knowledge Base Manager: A website offering tools to build and manage an efficient vector-based knowledge base using a SQLite backend, enhancing data retrieval capabilities for AI agents and applications.
Interactive Chat Interface Builder: A frontend application enabling developers to create sophisticated chat interfaces that naturally integrate with AI agents, emphasizing usability and workflow integration for end-users.
Data-Driven AI Application Development Kit: A package containing key resources like data scraping scripts and APIs, particularly emphasizing the integration with news data sources like Chainbuzz, to accelerate the development of data-driven applications.
AI Backend Framework: A comprehensive framework supporting the implementation of individual AI agents and their respective functionalities, focusing on maintaining a clean and well-structured codebase suited for scalable AI projects.
Benefits
- Clear project structure with dedicated directories enhances organization and maintainability.
- Emphasizes modular design for scalability and reusability across various components.
- Enforces code style consistency using Ruff, ensuring readability and uniformity.
Synopsis
Python developers can use this prompt to build a modular AI agent framework with robust error handling and documentation using Python best practices.
Overview of .cursorrules prompt
The .cursorrules file is designed for an AI assistant specialized in Python development. It emphasizes a clear project structure with designated directories for source code, tests, documentation, and configuration. The file advocates for a modular design approach, configuration management through environment variables, and robust error handling with logging. It prescribes comprehensive documentation practices and code style consistency using Ruff. Additionally, it outlines best coding practices including descriptive naming, type hints, and detailed commenting for complex logic. The file also defines a project structure with specific directories and key files, such as a core AI agent framework package, and details on integrating a knowledge base, user interface, and data sources. The instructions ensure the generated code and explanations align with these principles, promoting clarity and efficiency in AI-assisted development.