Community程式設計與開發github.com

olonok69/cursor_code_ml_engineer

使用 pip-audit 稽核 Python 相依套件,並驗證應用程式仍能正常運作。

cursor_code_ml_engineer 是什麼?

此技能專門用於稽核 Python 專案中的相依套件安全性漏洞。當使用者要求進行 pip-audit、Python CVE 檢查,或對包含 `requirements.txt` 的專案(例如 `ex_app/`)進行稽核時,即可啟用此技能。其運作方式為:自動切換至目標專案目錄,安裝 pip-audit 工具,並執行 `python -m pip_audit -r requirements.txt` 指令來掃描已知漏洞。在自動修復前,系統會要求使用者明確確認,避免未經同意就升級主版本。掃描完成後,會依情況執行測試(pytest 或基本煙霧測試),最後提供完整的漏洞摘要、修復狀態及測試結果。此技能僅適用於 Python 專案;若為 Node/npm 專案,則會引導使用者使用其他的稽核技能。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/olonok69/cursor_code_ml_engineer/tree/HEAD/.cursor/skills/audit-python

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

稽核相依套件(Python)

目標:包含 requirements.txt 的資料夾(例如 ex_app/)。

  1. cd 進入目標應用程式(或使用使用者用 @ 提及的路徑)。
  2. 確保已安裝 pip-audit:必要時執行 python -m pip install pip-audit。
  3. 執行 python -m pip_audit -r requirements.txt(或使用者指定的 requirements 檔案)。
  4. 未經詢問,請勿自動升級主版本。若使用者要求安全修復,僅在明確確認後才執行: python -m pip_audit -r requirements.txt --fix。
  5. 測試:
    • 若存在 pytest / tests/ / test_*.py → 執行 pytest(或 README 中指定的指令)。
    • 若無測試套件 → 執行最少煙霧測試:解析 AST 或對主要模組執行 python -c "import …"。
  6. 摘要:發現的 CVE(若有)、已套用的修復(若有)、測試/煙霧測試的結果。

務必顯示指令的實際輸出內容(證據勝於斷言)。

若目標為 Node(package.json),請勿憑空使用 pip——請告知改用 /audit。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

相關技能