用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/girijashankarj/cursor-handbook --skill flaky-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Generate a mock API server from OpenAPI specs, TypeScript interfaces, or endpoint descriptions for frontend development and testing. Use when the user asks to create a mock server, fake API, or stub endpoints.
Map and visualize module dependencies, detect circular imports, and identify coupling hotspots. Use when the user asks to analyze dependencies, find circular imports, or understand module relationships.
Generate typed error classes, error handling middleware, and HTTP error mapping following project conventions. Use when the user asks to set up error handling, create error classes, or implement error middleware.
基于 SOC 职业分类
正在显示 SKILL.md
| name | flaky-test |
| description | Diagnose and fix flaky tests. Use when a test passes sometimes and fails other times. |
When a test is flaky — passes intermittently, fails on CI but not locally, or depends on timing/order.
{{CONFIG.testing.testCommand}} -- --testPathPattern={file} --runInBandCommon causes:
setTimeout/setInterval; race conditionsDate.now(), Math.random(), uuid without seedawait for all async operationswaitFor or act for React updatessetTimeout with fake timers: jest.useFakeTimers()beforeEach: jest.clearAllMocks() or mockReset()beforeEach to create fresh fixtures; avoid module-level state--runInBand to isolate; fix root cause rather than rely on itDate.now(), Math.random(), or ID generatorsjest.setSystemTime() for date-dependent testsbeforeEach for setup; avoid afterAll that affects later testsfor i in {1..20}; do {{CONFIG.testing.testCommand}} -- --testPathPattern={file}; donesleep)