code-reviewer
Installation
SKILL.md
程式碼審查技能
觸發:review、審查程式碼、檢查、看一下、有問題嗎、安全
工具:read_file、grep_search、get_errors、run_in_terminal("ruff check .")、run_in_terminal("mypy .")
審查項目
程式碼品質
函數長度(grep_search("def "))、命名清晰度、DRY 原則(搜尋重複)、複雜度(巢狀/分支)
安全性
| 風險 | grep 模式 |
|---|---|
| SQL 注入 | execute.*%s|f".*SELECT |
| XSS | innerHTML|dangerouslySetInnerHTML |
| 敏感資料 | password|secret|api_key |
| 硬編碼密碼 | password.*=.*['"] |
效能
N+1 查詢(迴圈內 DB 呼叫)、不必要迴圈
工作流
ruff check src/+mypy src/+get_errors()read_file目標檔案grep_search安全風險模式- 彙整報告(優點 / 建議 / 品質+安全+效能評分 0-10)
Related skills
More from u9401066/med-paper-assistant
draft-writing
|
29literature-review
系統性文獻搜尋、篩選、下載、整理。觸發:文獻回顧、找論文、搜尋文獻、systematic review、literature search、PubMed、找文章、搜paper、review、reference、citation、引用、參考文獻、背景調查、background。
29roadmap-updater
更新 ROADMAP.md 狀態。觸發:roadmap、路線、規劃、里程碑。
25project-management
|
24memory-updater
更新 Memory Bank 檔案。觸發:memory、記憶、進度、存檔、sync、做到哪。
23readme-updater
更新 README.md。觸發:readme、說明、文檔、怎麼用、安裝說明。
23