KindnessBot Cursor Rules — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesKindnessBot Cursor Rules
    Back to Rules

    KindnessBot Cursor Rules

    foodyogi July 19, 2026
    0 copies 0 downloads
    Rule Content
    # Cursor Rules for AI-Powered Bot
    project: flask-ai-keyword-bot
    
    description: >
      An AI-powered bot that scans for specific keywords/hashtags on X (formerly Twitter), defined by an admin. It follows admin-defined guidelines to comment on relevant posts.
      The bot runs on a user-defined schedule for a limited time and can also be manually triggered.
    
    principles:
      - Write concise, accurate, friendly responses.
      - Use functional programming wherever possible; use classes only for Flask views.
      - Prefer iteration and modularization over duplication.
      - Use descriptive, snake_case variable names.
      - Structure project into logical modules: app initialization, blueprints, models, utilities, and config.
    
    guidelines:
      python:
        - Use `def` for function definitions with type hints for all parameters and return types.
        - Adopt the Receive an Object, Return an Object (RORO) pattern.
        - Handle errors and edge cases early; favor `if-return` patterns over deeply nested logic.
        - Use Flask Blueprints to organize application routes.
        - Avoid unnecessary curly braces in single-line conditional statements.
        - Implement error handling and logging with user-friendly messages.
        - Include custom error handlers for consistent error responses.
        - Use environment variables for sensitive data and configuration.
        - Include API documentation using Flask-RESTX or Flasgger for OpenAPI compliance.
    
      flask:
        - Use Flask's application factory pattern for modularity.
        - Organize functionality into Blueprints and extension-specific modules.
        - Use Flask-RESTful for RESTful APIs and Marshmallow for validation/serialization.
        - Apply Flask-JWT-Extended for secure authentication.
        - Optimize performance with Flask-Caching and database query tuning.
    
      database:
        - Use Flask-SQLAlchemy for ORM with proper session management.
        - Define Marshmallow schemas for models to handle validation and serialization.
        - Implement database migrations using Flask-Migrate.
    
      performance:
        - Use Celery or RQ for background tasks.
        - Cache frequent queries with Flask-Caching.
        - Optimize database queries and manage sessions efficiently.
        - Log application performance metrics (latency, throughput).
    
      testing:
        - Write unit tests with pytest and integration tests using Flask's test client.
        - Mock external API calls and interactions with X for predictable results.
        - Create test fixtures for database and application setup.
    
      deployment:
      - Use Docker for containerization.
      - Deploy with a WSGI HTTP server (Gunicorn) behind an Nginx reverse proxy.
      - Configure logging and monitoring with tools like Sentry or Prometheus.
    
    note:
      Refer to Flask documentation and API-specific libraries for integration with X's API. Use Python's `schedule` library or Celery to manage the bot's run schedule.
      Admin builds on local machine so after every edit suggestion, always provide me the push to Github command, followed by the pull command for droplet

    Comments

    More Rules

    View all

    Kechwafflesnew Cursor Rules

    C
    CODEFORYOU69

    AI DRAMA FACTORY Cursor Rules

    R
    Robert0157

    Site Cursor Rules

    R
    RaphaelVitoi

    Neptunik Cursor Rules

    F
    fjpedrosa

    Cvcraft Cursor Rules

    C
    CedricCT

    Pepino Cursor Rules

    K
    kpab

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • Automated Execution Cleanup System with n8n API and Custom Retention Rulesn8n · $9.99 · Related topic
    • Receive and Analyze Emails with Rules in Sublime Securityn8n · $9.99 · Related topic
    • Paginate Shopify Products with GraphQL Cursor-Based Navigationn8n · $4.99 · Related topic
    • Create an IPL Cricket Rules Q&A Chatbot with Google Gemini APIn8n · $14.99 · Related topic
    Browse all workflows