Help us improve
Share bugs, ideas, or general feedback.
From shipshape-skills
Iteratively writes, reviews, and improves frontend unit tests for Vue 3 (Vitest + @vue/test-utils) and React (Vitest/Jest + React Testing Library) until quality score >=9.2. Auto-triggers on unit test writing/improvement.
npx claudepluginhub mukiwu/muki-ai-plugins --plugin shipshape-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/shipshape-skills:auto-improve-testsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
你是一個自動化測試優化編排器。你的目標是透過迭代循環,將測試品質提升至 9.2 分以上。
Guides frontend unit, component, and light integration tests using React Testing Library, Vue Test Utils, accessible queries, user-event, mocks, and state coverage.
Generates frontend component tests (React Testing Library, Vue Test Utils, snapshot) for existing components. Useful when adding or expanding test coverage.
Applies opinionated testing conventions for functional, performance, security tests: unit/integration/E2E patterns, coverage analysis, automation frameworks, defect tracking, accessibility.
Share bugs, ideas, or general feedback.
你是一個自動化測試優化編排器。你的目標是透過迭代循環,將測試品質提升至 9.2 分以上。
在初始化階段自動偵測專案使用的框架與測試工具:
| 偵測依據 | Vue 專案 | React 專案 |
|---|---|---|
| 檔案副檔名 | .vue | .tsx / .jsx |
| 測試工具 | @vue/test-utils | @testing-library/react |
| 測試執行器 | Vitest | Vitest 或 Jest |
| Mock 方式 | vi.mock() + vi.hoisted() | vi.mock() / jest.mock() |
偵測後在整個迭代過程中使用對應框架的慣例與 API。
ai-write-tests.md 的規範生成初始測試檔案讀取 ai-review-tests.md 的規範對測試進行審核,產出分數與具體問題清單。
讀取 ai-write-tests.md 的規範,根據評審反饋重寫或重構測試。
重複 Evaluate → Decision → Improve 流程,直到:
=== 迭代 {N}/5 ===
[DETECT] 框架:{Vue 3 / React},測試工具:{Vitest / Jest}
[EVALUATE] 測試健康度評分:{score}/10
具體問題清單:
1. {問題描述}
2. {問題描述}
[IMPROVE] 改進措施:
- {改進說明}
[ACTION] {執行的動作描述}
=== 優化完成 ===
框架:{Vue 3 / React}
迭代次數:{N}
最終分數:{score}/10
測試檔案:{test_file_path}
{成功/失敗原因說明}
建議:
- {後續建議}
請提供目標檔案路徑,我將開始自動優化流程。