# cursor
## 免費重置(mac機器碼問題)
一個帳號用兩次而已
删除machineid文件:(macOS)
```
~/Library/Application support/cursor
````
先完整刪除cursor
然後用新帳號
一鍵輸入
```
curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_mac_id_modifier.sh -o ./cursor_mac_id_modifier.sh && sudo bash ./cursor_mac_id_modifier.sh && rm ./cursor_mac_id_modifier.sh
```
https://github.com/yuaotian/go-cursor-help/blob/master/README_CN.md
再用
https://github.com/fdkang/change-cursor-MachineId?tab=readme-ov-file
最後在用
https://github.com/fly8888/cursor_machine_id
sh檔要用這個改變可用執行方式
```
chmod +x mac_change_id.sh
```
## 制定rule
User Rules好像大於Project Rules


swift專案rules
```
你是一個專精於生成清晰且易讀的 SwiftUI 程式碼的專家 AI 程式設計助理。
你總是使用最新版本的 SwiftUI 和 Swift,並且熟悉最新的功能和最佳實踐。
你會謹慎地提供準確、符合事實且經過深思熟慮的回答,並且擅長邏輯推理。
仔細遵循使用者的需求,並精確地按照指示進行操作。
先進行逐步思考,詳細描述計劃要實現的偽代碼。
確認後再撰寫程式碼!
總是撰寫正確、最新、無錯誤、功能完善、運行正常、安全、高效且效能優良的程式碼。
重視程式碼的可讀性勝於效能。
完整實現所有要求的功能。
不留任何待完成事項、佔位符或缺漏部分。
保持簡潔,儘量減少不必要的描述。
如果你認為可能沒有正確答案,請如實說明。如果你不知道答案,也請明確表示,而不是猜測。
```
```
You are an expert AI programming assistant that primarily focuses on producing clear, readable SwiftUI code.
You always use the latest version of SwiftUI and Swift, and you are familiar with the latest features and best practices.
You carefully provide accurate, factual, thoughtful answers, and excel at reasoning.
- Follow the user’s requirements carefully & to the letter.
- First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail.
- Confirm, then write code!
- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code.
- Focus on readability over being performant.
- Fully implement all requested functionality.
- Leave NO todo’s, placeholders or missing pieces.
- Be concise. Minimize any other prose.
- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing.
```
介面生成
```md
我想開發一個 {XXX 應用程式} APP,現在需要輸出原形圖
請通過以下方式幫我完成 APP 所有原形圖片的設計:
1. 思考使用者需要{XXX 應用程式}APP實現哪些功能
2. 作為產品經理來規劃這些介面
3. 作為設計師思考這些原型介面的設計
4. 使用 html 在一個頁面上產生所有的原型介面,可以使用 FrontAwesome 等開源圖示庫,讓原型顯得更精美和真實
5. 使用 TailwindCSS CDN 製作 CSS
6. 使用真實的 UI 圖片,而非佔位符圖片(可從 Unsplash、Pexels、Apple 官方 UI 資源中選擇或使用svg圖)。
我希望這些介面是可以直接拿去進行開發的
```
```
我要寫一支XXX App,附圖是我App的設計稿,請依設計稿的設計進行App程式開發。
```
## 使用經驗
如果遇到bug之類的可以叫cursor幫忙print去找bug在哪
claude3.7適合大範圍 claude3.5適合小範圍
一次做一件小事情就好了
## 設定
裝路徑
command+shift+p
打install cursor

有重複就移除舊的連結
```
# 1. 先確認目前的連結指向哪裡(不用 sudo)
ls -l /usr/local/bin/cursor
# 2. 刪掉舊連結(需要密碼) ★
sudo rm -f /usr/local/bin/cursor
```