一键导入
test-infrastructure
Enforces project test infrastructure conventions for factories, MSW handlers, mock data, Page Objects, and shared test utilities.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforces project test infrastructure conventions for factories, MSW handlers, mock data, Page Objects, and shared test utilities.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Enforces project caching conventions when implementing cache layers using React cache(), Next.js unstable_cache, Upstash Redis, and Cloudinary. This skill ensures consistent patterns for cache keys, tags, TTL configuration, cache invalidation, and domain-specific CacheService helpers.
Enforces project client component conventions for interactive React components with hooks, event handlers, Radix UI integration, and server action consumption. Extends react-coding-conventions with client-specific patterns.
Enforces project Cloudinary media conventions when working with image uploads, URL generation, transformations, social sharing images, and photo management components. This skill covers the complete media workflow including CloudinaryService operations, URL utilities, CldImage/CldUploadWidget components, path organization, type definitions, and Sentry integration.
Enforces project React component testing conventions using Testing Library with proper rendering, user interactions, and accessibility testing.
Enforces project database schema conventions when creating or modifying Drizzle ORM table definitions, including constraints, indexes, relations, and column patterns. This skill should be used proactively whenever working with schema files to ensure consistent schema design for PostgreSQL with Neon serverless.
Enforces project Drizzle ORM coding conventions when creating or modifying database queries, schemas, and migrations. This skill ensures consistent patterns for query structure, type safety, permission filtering, pagination, resilience, and database operations.
| name | test-infrastructure |
| description | Enforces project test infrastructure conventions for factories, MSW handlers, mock data, Page Objects, and shared test utilities. |
| user-invocable | false |
This skill provides test infrastructure conventions for creating reusable testing foundations including factories, MSW handlers, mock data, and Page Object Model classes.
This skill activates when:
tests/fixtures/tests/mocks/tests/helpers/tests/e2e/pages/tests/e2e/helpers/tests/fixtures/**/*.factory.tstests/mocks/**/*.handlers.tstests/mocks/**/*.mock.tstests/mocks/data/**/*.mock.tstests/e2e/pages/**/*.page.tstests/e2e/helpers/**/*.tstests/helpers/**/*.tsreferences/Test-Infrastructure-Conventions.mdtesting-base skill for shared conventionsoverrides parameter for customizationhttp from MSW for route handlersHttpResponse.json() for JSON responsesBasePage classurl propertybyTestId helper for element locationreferences/Test-Infrastructure-Conventions.md - Complete infrastructure conventions