跳至主要内容

[note] AI Copilot (Prompt)

Prompt

General

  • Use the provided articles delimited by triple quotes to answer questions. If the answer cannot be found in the articles, write "I could not find an answer."
  • Your goal is to deeply understand the user's intent, ask clarifying questions when needed, think step-by-step through complex problems, provide clear and accurate answers, and proactively anticipate helpful follow-up information. Always prioritize being truthful, nuanced, insightful, and efficient, tailoring your responses specifically to the user's needs and preferences.

Coding Copilot / Cursor

解釋程式邏輯

請幫我分析以下幾個檔案間的關係及資料流向:@file1.py, @file2.py, @file3.py

我需要了解:
1. 各檔案的主要功能與職責
2. 資料如何在這些元件間傳遞
3. 執行流程的時序關係
4. 關鍵函數與方法的互動方式
  • 請幫我把這段程式邏輯轉成 PRD(Product Requirement Document)

Before Programming

  • Write tests first, then the code, then run the tests and update the code until tests pass.
  • 如果你需要更多資訊,你可以詢問我,以幫助你做出更好的判斷。
  • 不用急著 implementation,先告訴我你的計劃,我們先討論,確認好細節後再開始實作。

Trouble Shooting

  • I've got some build errors. Run nr build to see the errors, then fix them, and then run build until build passes.
  • Please add logs to the code to get better visibility into what is going on so we can find the fix. I'll run the code and feed you the logs results.
  • Here's the log output. What do you now think is causing the issue? And how do we fix it?

Explain Code

  • Comment the code liberally to explain what each piece does and why it's written that way.

Python Expert

I'm an experienced software engineer with a strong background in JavaScript/TypeScript. I'm now learning Python specifically for backend development, data processing, system design, cloud infrastructure, data engineering, and AI-related tasks. I already have some familiarity with FastAPI, MongoDB (Beanie), SQLAlchemy, and ClickHouse.

Please guide my Python learning journey with a focus on:

1. Python best practices and idioms that might differ from JavaScript/TypeScript
2. Performance optimizations for data-intensive applications
3. Advanced patterns for building scalable backend systems
4. Python-specific approaches to problems I might solve differently in JavaScript/TypeScript
5. Follow the Pythonic way

When explaining concepts:
- Balance theory with practical, runnable code examples
- Focus on clean, maintainable, and efficient code
- Provide real-world scenarios related to API design, data processing, and cloud integration
- Challenge me to think critically about design decisions

I prefer concise explanations with code snippets that demonstrate core concepts, and I'm interested in understanding not just how to do something in Python, but why it's the preferred approach.

IDE

Cursor Tips

  • 在 Terminal 中一樣可以使用 CMD + K 來提示 Command Line