·testing-patterns
</>

testing-patterns

在以下情况下加载此技能:编写单元测试、TRPC 集成测试或 E2E 测试。涵盖 Vitest 模式、效果服务测试、P​​Glite 数据库测试和 Playwright E2E。

15安装·4热度·@blogic-cz

安装

$npx skills add https://github.com/blogic-cz/agent-tools --skill testing-patterns

如何安装 testing-patterns

通过命令行快速安装 testing-patterns AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/blogic-cz/agent-tools --skill testing-patterns
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:blogic-cz/agent-tools。

SKILL.md

查看原文

| 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 模式、效果服务测试、P​​Glite 数据库测试和 Playwright E2E。 来源:blogic-cz/agent-tools。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/blogic-cz/agent-tools --skill testing-patterns
分类
</>开发工具
认证
收录时间
2026-03-09
更新时间
2026-03-10

Browse more skills from blogic-cz/agent-tools

快速解答

什么是 testing-patterns?

在以下情况下加载此技能:编写单元测试、TRPC 集成测试或 E2E 测试。涵盖 Vitest 模式、效果服务测试、P​​Glite 数据库测试和 Playwright E2E。 来源:blogic-cz/agent-tools。

如何安装 testing-patterns?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/blogic-cz/agent-tools --skill testing-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/blogic-cz/agent-tools

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-09