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

mock-cache-checkin

GitHub

确保在使用 Holodeck mock server 的测试变更后,将生成的 .mock-cache 夹具文件正确暂存并提交,防止遗漏。

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

触发场景

提交代码前检查 打开 PR 前验证

安装

npx skills add warp-drive-data/warp-drive --skill mock-cache-checkin -g -y
更多选项

非标准路径

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

不安装直接使用

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.

版本历史

  • 84081dc 当前 2026-09-27 19:39

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

  • 5c1296a 2026-08-27 16:30

同 Skill 集合

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

元信息

文件数
0
版本
bef6efb
Hash
5c8989b5
收录时间
2026-08-27 16:30

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-10 09:07
浙ICP备14020137号-1