什麼是 testing-patterns?
在以下情況下載入此技能:編寫單元測試、TRPC 整合測試或 E2E 測試。涵蓋 Vitest 模式、效果服務測試、PGlite 資料庫測試和 Playwright E2E。 來源:blogic-cz/agent-tools。
在以下情況下載入此技能:編寫單元測試、TRPC 整合測試或 E2E 測試。涵蓋 Vitest 模式、效果服務測試、PGlite 資料庫測試和 Playwright E2E。
透過命令列快速安裝 testing-patterns AI 技能到你的開發環境
來源:blogic-cz/agent-tools。
| Pure function, parser, util | Unit | Write immediately | | Effect service with dependencies | Unit with mock layers | Write immediately | | TRPC procedure (DB logic) | TRPC Integration | Ask user first | | User-facing flow, UI behavior | E2E | Ask + warn about maintenance |
| packages/X/src/file.ts | packages/X/src/tests/file.test.ts | | apps/web-app/src/infrastructure/trpc/routers/X.ts | apps/web-app/src/tests/X.test.ts | | apps/web-app/src/routes/ | apps/web-app/e2e/feature.e2e.ts |
Ask user before writing: "Does an integration test make sense for this TRPC endpoint?"
在以下情況下載入此技能:編寫單元測試、TRPC 整合測試或 E2E 測試。涵蓋 Vitest 模式、效果服務測試、PGlite 資料庫測試和 Playwright E2E。 來源:blogic-cz/agent-tools。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/blogic-cz/agent-tools --skill testing-patterns在以下情況下載入此技能:編寫單元測試、TRPC 整合測試或 E2E 測試。涵蓋 Vitest 模式、效果服務測試、PGlite 資料庫測試和 Playwright E2E。 來源:blogic-cz/agent-tools。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/blogic-cz/agent-tools --skill testing-patterns 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/blogic-cz/agent-tools