Community生產力與協作github.com

hanson-hex/frontend-test-pattern-skill

用於 React + Vite 專案的 Claude Code 技能 — 自動為工具函式、元件、鉤子及 Zustand 儲存產生 Vitest 與 Testing Library 測試。與 python-test-pattern 搭配使用。

frontend-test-pattern-skill 是什麼?

此技能專為使用 Claude Code 的 React + Vite 專案設計,能自動產生 Vitest 與 React Testing Library 測試。它支援常見的測試目標,包括工具函式(utils)、元件(components)、自訂鉤子(hooks)以及 Zustand 狀態管理儲存(stores)。此技能旨在提升開發效率與測試覆蓋率,透過標準化測試架構減少手動編寫樣板程式碼的需求。它與 python-test-pattern 技能相輔相成,形成跨語言(前端與後端)的測試自動化解決方案。支援平台包括 Claude Code(作為 Agent 技能)以及任何整合 Claude Code 或相容 Agent 的開發環境。其運作方式基於 SKILL.md 文件中的提示與規則,當開發者要求為特定程式碼單元產生測試時,Claude Code 會自動應用這些模式與最佳實踐產生對應的測試檔。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add hanson-hex/frontend-test-pattern-skill

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

frontend-test-pattern-skill 是做什麼的?

用於 React + Vite 專案的 Claude Code 技能 — 自動為工具函式、元件、鉤子及 Zustand 儲存產生 Vitest 與 Testing Library 測試。與 python-test-pattern 搭配使用。

相關技能