Agent Skills
› warp-drive-data/warp-drive
› mock-cache-checkin
mock-cache-checkin
GitHub确保在使用 Holodeck mock server 的测试变更后,将生成的 .mock-cache 夹具文件正确暂存并提交,防止遗漏。
触发场景
提交代码前检查
打开 PR 前验证
安装
npx skills add warp-drive-data/warp-drive --skill mock-cache-checkin -g -y
SKILL.md
Frontmatter
{
"name": "mock-cache-checkin",
"description": "Ensures `.mock-cache` fixture directories under `tests\/*` are staged and committed whenever a change adds or modifies a test that uses `@warp-drive\/holodeck`'s mock server (`GET`\/`POST`\/`PUT`\/`PATCH`\/`DELETE`\/`HEAD`\/`mock()`). Use before finalizing any commit or opening a PR in this repo, especially from a worktree or agent session where it's easy to stage only the files a task explicitly touched — local test runs silently regenerate these fixtures and it's easy to leave them out of the changeset.",
"user-invocable": false
}
Holodeck mock-cache check-in
Read and follow
warp-drive-packages/memory-alpha/skills/contributors/commit-mock-cache-fixtures.md.
That file is the canonical version of this rule. It lives in @warp-drive/memory-alpha so every
agent working in this repo reaches it through the contributor index, not only Claude Code. This
file exists to trigger at commit time and route you there.
版本历史
-
84081dc
当前 2026-09-27 19:39
新增 testing 文档章节,重构 Holodeck 指南结构,将 mock-cache 检查规则迁移为贡献者技能以便 Agent 访问。
- 5c1296a 2026-08-27 16:30


