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

mock-cache-checkin

GitHub

确保使用 Holodeck mock 服务器时,相关的 .mock-cache 测试夹具被正确暂存和提交。在最终提交或打开 PR 前执行,防止因静默生成导致遗漏文件。

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

Trigger Scenarios

修改了使用 @warp-drive/holodeck 的测试代码 准备进行 git commit 操作 准备打开 Pull Request

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
4bc8a7b
Hash
5c8989b5
Indexed
2026-08-27 16:30

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 00:05
浙ICP备14020137号-1