m15-anti-pattern
✓在檢查反模式代碼時使用。關鍵詞:反模式、常見錯誤、陷阱、代碼異味、不良實踐、代碼審查、這是一種反模式嗎、更好的方法、要避免的常見錯誤、為什麼不好、慣用方式、初學者錯誤、對抗借用檢查器、到處克隆、在生產中展開、我應該重構、反模式、常見錯誤、代碼異味、最佳實踐、地道寫法
SKILL.md
| .clone() everywhere | Hides ownership issues | Proper references or ownership | | .unwrap() in production | Runtime panics | ?, expect, or handling | | Rc when single owner | Unnecessary overhead | Simple ownership | | unsafe for convenience | UB risk | Find safe pattern | | OOP via Deref | Misleading API | Composition, traits |
| Giant match arms | Unmaintainable | Extract to methods | | String everywhere | Allocation waste | &str, Cow | | Ignoring #[mustuse] | Lost errors | Handle or let = |
| Clone everywhere | m01-ownership | Who should own this data? | | Unwrap everywhere | m06-error-handling | What's the error strategy? | | Rc everywhere | m09-domain | Is ownership clear? | | Fighting lifetimes | m09-domain | Should data structure change? |
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/zhanghandong/rust-skills --skill m15-anti-pattern- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 m15-anti-pattern?
在檢查反模式代碼時使用。關鍵詞:反模式、常見錯誤、陷阱、代碼異味、不良實踐、代碼審查、這是一種反模式嗎、更好的方法、要避免的常見錯誤、為什麼不好、慣用方式、初學者錯誤、對抗借用檢查器、到處克隆、在生產中展開、我應該重構、反模式、常見錯誤、代碼異味、最佳實踐、地道寫法 來源:zhanghandong/rust-skills。
如何安裝 m15-anti-pattern?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/zhanghandong/rust-skills --skill m15-anti-pattern 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/zhanghandong/rust-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01