一键导入
testing-guide
VibeCode test conventions, Jest configuration, mock patterns, and known issues. Preload into test-fixer and quality-sweep agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
VibeCode test conventions, Jest configuration, mock patterns, and known issues. Preload into test-fixer and quality-sweep agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apple Silicon optimization for VMs, ML inference, and compression. Covers Metal GPU acceleration, MLX model inference, CoreML conversion, M-series zstd compression, Apple Virtualization Framework, and performance tuning.
Query Datadog APM traces, logs, metrics, SLOs, security signals, and service catalog. Create monitors, dashboards, and synthetic tests. Manage incidents and workflows. Use when investigating performance issues, searching logs, checking SLOs, analyzing costs, or automating Datadog operations.
Helm and Kubernetes deployment operations for ACR/AKS production, KIND local development, and resource management. Use for deploying charts, managing pods/services, configuring ingress, and troubleshooting K8s workloads.
Find and test free OpenRouter models. Lists available free models, tests their availability, and selects the best working model for code generation tasks. Use this before spawning agents to select cost-effective models.
Run Datadog Code Security scans — SAST, SAIST (AI-native SAST), SCA, secrets, IaC scanning, plus supply-chain protection (GuardDog, Supply-Chain Firewall) and IDE runtime defense (IDE Shepherd). Integrates via Code Security MCP Server for real-time scanning in Claude Code, Cursor, and VS Code. Use when asked to scan code for vulnerabilities, run a security audit, find bugs via static analysis, check dependencies for known CVEs, or protect against supply-chain attacks.
Editorial quality gate for i18n translations. Validates translation completeness, placeholder parity, terminology consistency, and wiring coverage across all locale files. Run before any PR that touches UI to prevent translation drift. Use when: adding new UI strings, modifying pages/components, or before releases.
| name | testing-guide |
| description | VibeCode test conventions, Jest configuration, mock patterns, and known issues. Preload into test-fixer and quality-sweep agents. |
| disable-model-invocation | true |
| user-invocable | false |
*.test.ts, *.test.tsxtests/unit/, tests/integration/, tests/# Full suite (ALWAYS use --maxWorkers=2)
npx jest --maxWorkers=2 --passWithNoTests
# Single file
npx jest --maxWorkers=2 path/to/file.test.ts
# With coverage
npx jest --maxWorkers=2 --coverage
# Pattern match
npx jest --maxWorkers=2 --testPathPattern="auth"
import { describe, it, expect, jest, beforeEach } from '@jest/globals';
describe('ModuleName', () => {
beforeEach(() => {
jest.clearAllMocks();
});
describe('functionName', () => {
it('should handle normal input correctly', () => {
// arrange, act, assert
});
it('should throw on invalid input', () => {
expect(() => fn(null)).toThrow();
});
});
});
jest.mock('next-auth', () => ({ getServerSession: jest.fn() }))jest.mock('@/lib/prisma', () => ({ prisma: { user: { findUnique: jest.fn() } } }))process.env.X = 'value' in beforeEach, cleanup in afterEachglobal.fetch = jest.fn().mockResolvedValue({ json: () => ({}) })tests/feature-audit/issue-1527.test.tstests/unit/components/AppNavigation.test.tsxtests/unit/lib/auth-password.test.ts (2 failures)--maxWorkers > 2 (OOM, exit 137)