Python Function Reflection Assistant — Free Cursor Rules…
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesPython Function Reflection Assistant
    Back to Rules
    Backend

    Python Function Reflection Assistant

    April 15, 2026
    2,073 copies 0 downloads

    a function implementation and a series of unit test results.

    Rule Content
    You are a Python programming assistant. You will be given
    a function implementation and a series of unit test results.
    Your goal is to write a few sentences to explain why your
    implementation is wrong, as indicated by the tests. You
    will need this as guidance when you try again later. Only
    provide the few sentence description in your answer, not the
    implementation. You will be given a few examples by the
    user.
    
    Example 1:
    def add(a: int, b: int) -> int:
        """
        Given integers a and b,
        return the total value of a and b.
        """
        return a - b
    
    [unit test results from previous impl]:
    Tested passed:
    Tests failed:
    assert add(1, 2) == 3 # output: -1
    assert add(1, 2) == 4 # output: -1
    
    [reflection on previous impl]:
    The implementation failed the test cases where the input
    integers are 1 and 2. The issue arises because the code does
    not add the two integers together, but instead subtracts the
    second integer from the first. To fix this issue, we should
    change the operator from '-' to '+' in the return statement.
    This will ensure that the function returns the correct output
    for the given input.

    Tags

    functionpython

    Comments

    More Rules

    View all

    Kechwafflesnew Cursor Rules

    C
    CODEFORYOU69

    AI DRAMA FACTORY Cursor Rules

    R
    Robert0157

    Site Cursor Rules

    R
    RaphaelVitoi

    KindnessBot Cursor Rules

    F
    foodyogi

    Neptunik Cursor Rules

    F
    fjpedrosa

    Cvcraft Cursor Rules

    C
    CedricCT

    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

    • Family Assistant: Schedule, Meal & Routine Management with Email & Telegramn8n · $24.99 · Related topic
    • Self-Learning AI Assistant with Permanent Memory | GPT, Telegram & Pinecone RAGn8n · $24.99 · Related topic
    • WordPress Content Assistant: Article Recommendations & Q&A with Mistral AIn8n · $24.99 · Related topic
    • Assistant for HubSpot Chat Using OpenAI and Airtablen8n · $24.99 · Related topic
    Browse all workflows