Agent Skills › warp-drive-data/warp-drive › mock-cache-checkin

mock-cache-checkin

GitHub

确保使用 @warp-drive/holodeck 的测试修改时,相关的 .mock-cache 存根文件被正确暂存和提交,防止 CI 回放失败。

.claude/skills/mock-cache-checkin/SKILL.md warp-drive-data/warp-drive

Trigger Scenarios

使用 holodeck mock server 的测试发生变更 准备提交代码或创建 PR

Install

npx skills add warp-drive-data/warp-drive --skill mock-cache-checkin -g -y
More Options

Non-standard path

npx skills add https://github.com/warp-drive-data/warp-drive/tree/main/.claude/skills/mock-cache-checkin -g -y

Use without installing

npx skills use warp-drive-data/warp-drive@mock-cache-checkin

指定 Agent (Claude Code)

npx skills add warp-drive-data/warp-drive --skill mock-cache-checkin -a claude-code -g -y

安装 repo 全部 skill

npx skills add warp-drive-data/warp-drive --all -g -y

预览 repo 内 skill

npx skills add warp-drive-data/warp-drive --list

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.

Version History

  • 84081dc Current 2026-09-27 19:39

    新增 testing 文档章节,重构 Holodeck 指南结构,将 mock-cache 检查规则迁移为贡献者技能以便 Agent 访问。

  • 5c1296a 2026-08-27 16:30

Same Skill Collection

.claude/skills/ast-grep-codemods/SKILL.md
.claude/skills/ast-grep/SKILL.md

Metadata

Files
0
Version
84081dc
Hash
5c8989b5
Indexed
2026-08-27 16:30

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-07 02:10
浙ICP备14020137号-1