smart-test
✓基於代碼更改的智能測試選擇。通過導入分析將源文件映射到測試, 實施分層測試(快速 < 1 分鐘,受影響 < 5 分鐘,全套),並跟踪測試可靠性。 在代碼更改後運行測試時使用,以優化反饋循環和 CI 時間。
SKILL.md
Optimizes test execution by intelligently selecting which tests to run based on code changes. Instead of running the full test suite every time, this skill:
The skill builds a dependency graph by analyzing Python imports:
Direct Tests: Files matching pattern test{module}.py or {module}test.py Indirect Tests: Tests that import modules which import the changed file
基於代碼更改的智能測試選擇。通過導入分析將源文件映射到測試, 實施分層測試(快速 < 1 分鐘,受影響 < 5 分鐘,全套),並跟踪測試可靠性。 在代碼更改後運行測試時使用,以優化反饋循環和 CI 時間。 來源:rysweet/amplihack。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/rysweet/amplihack --skill smart-test- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 smart-test?
基於代碼更改的智能測試選擇。通過導入分析將源文件映射到測試, 實施分層測試(快速 < 1 分鐘,受影響 < 5 分鐘,全套),並跟踪測試可靠性。 在代碼更改後運行測試時使用,以優化反饋循環和 CI 時間。 來源:rysweet/amplihack。
如何安裝 smart-test?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/rysweet/amplihack --skill smart-test 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/rysweet/amplihack
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01