code-review
80提升代码审查质量
缓慢且不清晰的审查会延迟发布并漏掉缺陷。此技能为作者、审查者和团队负责人提供实用流程,用于创建重点明确的拉取请求。
构建可靠的 Vitest 测试套件
当示例分散在单元、集成、组件和 E2E 工作流中时,编写有用的测试会很困难。此技能为 Claude、Codex 和 Claude Code 提供结构化的 Vitest 指南,用于选择模式、编写测试并提升可测试性。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "vitest-testing" from https://skillstore.io/skills/adammanuel-dev-vitest-testing.md and its manifest at https://skillstore.io/api/skills/adammanuel-dev-vitest-testing/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“vitest-testing”。 Help me test a service that validates users and writes to a database.
预期结果:
正在使用“vitest-testing”。 My React component test passes locally but fails in CI.
预期结果:
正在使用“vitest-testing”。 Convert these Jest mocks to Vitest.
预期结果:
Most static matches are false positives caused by testing documentation, Markdown links, JavaScript template literals, and normal Vitest examples. I confirmed a smaller set of risks around user-local hidden Claude skill paths, environment mutation or state capture, API-key configuration, shell guidance, and destructive database cleanup examples that should be clarified before publication. Static review was capped at 400/442 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/adammanuel-dev-vitest-testing/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/adammanuel-dev-vitest-testing?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/adammanuel-dev-vitest-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/adammanuel-dev-vitest-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/adammanuel-dev-vitest-testing.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>AdamManuel-dev. (2026). vitest-testing security audit report (audit version 10) [Author version unspecified]. Skillstore. https://skillstore.io/skills/adammanuel-dev-vitest-testing/audits/10@techreport{adammanuel-dev-adammanuel-dev-vitest-testing-2026,
author = {AdamManuel-dev},
title = {vitest-testing security audit report (audit version 10)},
institution = {Skillstore},
year = {2026},
number = {10},
url = {https://skillstore.io/skills/adammanuel-dev-vitest-testing/audits/10},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "vitest-testing security audit report (audit version 10)"
version: "unspecified"
type: report
authors:
- name: "AdamManuel-dev"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/adammanuel-dev-vitest-testing/audits/10"
identifiers:
- type: other
value: "skillstore:adammanuel-dev-vitest-testing:audit:10"
description: "Skillstore immutable audit report identifier"
在开始实现之前,选择合适的单元、集成、组件和 E2E 测试组合。
围绕稳定行为、更好的 fixtures 和聚焦的断言来重构测试。
将常见的 Jest API 和 mocking 技术映射到 Vitest 等价用法,并提供实用注意事项。
Use the vitest-testing skill to help me decide what kind of tests to write for this feature. Explain whether unit, integration, component, or E2E tests fit best.
Use the vitest-testing skill to draft Vitest tests for this module. Follow AAA structure, test behavior, and include only necessary mocks.
Use the vitest-testing skill to review these tests for brittleness. Suggest behavior-focused assertions, better fixtures, and safer async handling.
Use the vitest-testing skill to design a Vitest strategy for this project. Cover test pyramid balance, test data management, mocks, integration boundaries, CI concerns, and migration risks.
许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
7db9b9f06e0ab79c575b58bc48c4d8dc9849f424
维护新鲜度
2026/7/18
使用量
6 次下载 · 209 次浏览
提升代码审查质量
缓慢且不清晰的审查会延迟发布并漏掉缺陷。此技能为作者、审查者和团队负责人提供实用流程,用于创建重点明确的拉取请求。
使用 JSDoc 记录 TypeScript API
TypeScript 团队经常编写重复类型信息或遗漏重要行为的注释。此技能会指导你为 API、示例、错误和维护说明编写聚焦的 JSDoc。
使用架构模式构建 TypeScript 系统
AI 生成的 TypeScript 代码常常会因为缺少清晰的架构边界而逐渐偏离。此 skill 为 DDD、Clean Architecture、Hexagonal Architecture 和 POM 测试提供可复用的模式指导。
使用 Playwright 自动化浏览器测试
手动浏览器检查速度慢,而且很容易遗漏表单、链接和不同屏幕尺寸下的问题。此技能可帮助 Claude、Codex 和 Claude Code 运行 Playwright 自动化、捕获截图并验证 Web 流程。
将开发请求路由到合适的工具
开发者常常在选择合适的助手、命令或技能时耗费时间。此路由器会分析意图和项目上下文,以选择高效路径。
提升 Playwright 测试覆盖率
由 C0ntr0lledCha0s
当配置、定位器和 fixtures 不一致时,Playwright 测试套件可能会变得不稳定。此技能提供可靠浏览器测试、调试和可复用页面对象的实用模式。
构建可靠的测试自动化
由 89jobrien
薄弱的测试会拖慢发布并掩盖回归问题。此技能可指导测试策略、TDD、自动化、覆盖率审查以及 Playwright Web 检查。
构建类型安全的 React 组件
由 softaworks
React TypeScript 工作通常需要精确的事件、hook 和路由类型。此技能提供针对类型化组件、React 19 API 和路由的聚焦模式。
构建可用于生产的前端功能
由 davila7
前端团队需要在各项目中获得一致的 React 和 Next.js 指导。此技能提供用于前端分析的参考工作流、质量实践和辅助脚本。
构建可靠的 Jest 测试套件
由 C0ntr0lledCha0s
Jest 项目通常需要一致的设置、mock 和断言模式。此技能为 JavaScript、TypeScript、React 和 Vitest 风格的测试提供聚焦的指导、模板和检查。
Audit NestJS Code with Evidence-Backed Findings
由 amirtaherkhani
NestJS repositories can hide boundary flaws and runtime risks that lint results alone cannot reveal. This skill combines local evidence collection and semantic review into one prioritized report.