.gemini/skills/project-discovery/SKILL.md
[UDS] 在既有程式碼庫新增功能前的 Phase 0 評估,評估專案健康度與風險
npx skillsauth add asiaostrich/universal-dev-standards discoverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
語言: English | 繁體中文
在既有程式碼庫新增功能前的 Phase 0 評估。評估專案健康度、架構與風險。
| 維度 | 檢查項目 |
|------|----------|
| 架構 | 模組結構、相依圖、進入點 |
| 相依套件 | 過時套件、已知漏洞、授權風險 |
| 測試覆蓋率 | 現有測試、覆蓋率缺口、測試品質 |
| 安全性 | npm audit 結果、硬編碼密鑰、暴露端點 |
| 技術債 | TODO 標記、程式碼重複、複雜度熱點 |
npm outdated、npm audit 取得健康信號專案健康報告
=====================
總分:7.2 / 10
| 維度 | 分數 | 狀態 | 主要發現 |
|----------------|-------|---------|------------------------|
| 架構 | 8/10 | 良好 | 模組邊界清晰 |
| 相依套件 | 6/10 | 警告 | 5 個過時、1 個重大問題 |
| 測試覆蓋率 | 7/10 | 尚可 | 72% 行覆蓋率 |
| 安全性 | 8/10 | 良好 | 無重大漏洞 |
| 技術債 | 6/10 | 警告 | 23 個 TODO、3 個熱點 |
建議:
1. [高] 更新 lodash 以修復 CVE-2024-XXXX
2. [中] 為 src/payments/ 新增測試(0% 覆蓋率)
3. [低] 解決 src/utils/ 中的 TODO 積壓
/discover - 完整專案健康度評估/discover auth - 針對 auth 相關模組進行評估/discover payments - 在新增支付功能前評估風險/discover 完成後,AI 助手應根據評估結果建議:
根據評估結果,建議下一步:
- 新功能 → 執行
/sdd建立規格- 遺留程式碼 → 執行
/reverse spec提取現有行為- 重構 → 執行
/refactor decide選擇策略- 快速修復 → 執行
/tdd撰寫針對性測試並修復
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.