Agent skill

Mock

by thun-res in thun-res/vlink

按功能编排 VLink 入口级 mock 集成测试,覆盖普通 doctest 难以触及的 全部 CLI 命令、Proxy、Viewer/Player/Analyzer、WebViz 及 bag 数据集 场景。用户要求"跑 mock"、"补测试死角"、"测试所有命令行"、"用 bag 数据集测试 viewer/webviz/proxy"或做发布前入口冒烟测试时使用。

Apache-2.0Auto-check passed

Install Mock

skills CLI
$ npx skills add thun-res/vlink --skill mock -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install thun-res/vlink mock --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/thun-res/vlink.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/mock .claude/skills/mock && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mock
GitHub stars
116
Token cost
~555 tokens
SKILL.md length
111 words
Files
8 (incl. references)
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

按功能编排 VLink 入口级 mock 集成测试,覆盖普通 doctest 难以触及的 全部 CLI 命令、Proxy、Viewer/Player/Analyzer、WebViz 及 bag 数据集 场景。用户要求"跑 mock"、"补测试死角"、"测试所有命令行"、"用 bag 数据集测试 viewer/webviz/proxy"或做发布前入口冒烟测试时使用。

  • Works in 3 steps: 功能路由 → 执行流程 → 结果报告
  • SKILL.md covers 1. 功能路由, 2. 执行流程 and 3. 结果报告
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mock is an agent skill from thun-res/vlink. 按功能编排 VLink 入口级 mock 集成测试,覆盖普通 doctest 难以触及的 全部 CLI 命令、Proxy、Viewer/Player/Analyzer、WebViz 及 bag 数据集 场景。用户要求"跑 mock"、"补测试死角"、"测试所有命令行"、"用 bag 数据集测试 viewer/webviz/proxy"或做发布前入口冒烟测试时使用。

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `agents/openai.yaml`, `references/BAG-DATASETS.md` and `references/BUILD.md`).

The repository describes itself as: VLink is a high-performance C++ communication middleware for autonomous driving and embodied intelligence, positioned as a full-scenario alternative to ROS 2. The licence is Apache-2.0.

Example prompts

  • “跑 mock”
  • “测试所有命令行”
  • “用 bag 数据集测试 viewer/webviz/proxy”
  • “/mock”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 功能路由
  2. 执行流程
  3. 结果报告

What it can do on your machine

Read from SKILL.md and the folder at commit 1793889. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mock loads about 555 tokens when it runs, and up to ~4.3k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 111 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~555
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from thun-res/vlink at commit 1793889, republished under its Apache-2.0 licence (© thun-res). 111 words, ~555 tokens.

Download SKILL.mdSave it as .claude/skills/mock/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
mock
description
按功能编排 VLink 入口级 mock 集成测试,覆盖普通 doctest 难以触及的 全部 CLI 命令、Proxy、Viewer/Player/Analyzer、WebViz 及 bag 数据集 场景。用户要求"跑 mock"、"补测试死角"、"测试所有命令行"、"用 bag 数据集测试 viewer/webviz/proxy"或做发布前入口冒烟测试时使用。

入口级 Mock 集成测试

本 skill 验证真实可执行入口及其协作链,不替代 /test、/asan 或 /bench。按用户指定模块执行;未指定时先根据当前 diff 选择受影响模块, 不得默认把所有 GUI、网络和长时任务一次性全跑。

1. 功能路由

只读取并执行本次需要的分册:

模块分册主要目标
CLICLI.md10 个 cli/* 工具及全部子命令
ProxyPROXY.mdvlink-proxy、发现、转发与进程生命周期
ViewerVIEWER.mdvlink-viewer、vlink-player、vlink-analyzer
WebVizWEBVIZ.mdFoxglove、Rerun、bag2mcap、bag2rrd
Bag 数据集BAG-DATASETS.md数据集选择、只读保护、正常/异常场景
本地构建BUILD.md物理核心探测、并行上限与构建命令

2. 执行流程

  1. 先读仓库根 AGENTS.md、.agents/REPO-REFERENCE.md,再读上表中选中的 分册及其指向的 doc/ 小节。
  2. 明确模块、平台、构建目录、二进制目录、bag 数据集和允许的外部依赖。 用户未提供数据集时只执行不依赖数据集的场景,并把其余项标为未覆盖。
  3. 需要构建时只能使用仓库根 build-ai/skill_mock_<function_name>,例如 build-ai/skill_mock_cli、build-ai/skill_mock_proxy、 build-ai/skill_mock_viewer 或 build-ai/skill_mock_webviz;固定 ENABLE_CXX_STD_20=OFF,只开启目标模块 并构建所需 target。构建前必须读取并执行 BUILD.md。执行 Python、CMake、测试或辅助脚本前设置 PYTHONPYCACHEPREFIX={project}/build-ai/skill_mock_<function_name>/__pycache__。 编译前按平台取得真实物理核心数,显式使用 max(真实物理核心数 - 1, 1) 个并行 job;探测失败时固定单核。禁止 逻辑 CPU 计数、裸 --parallel/-j、固定高并行度或同时启动多个 本地构建,也不得复用、删除或重置维护者、IDE、CI 的构建目录。
  4. 为本次运行创建独立临时目录。输入数据集始终只读;clone、fix、 reindex、tag、录制和导出等写操作只针对临时副本或临时输出。
  5. 先做参数解析和预期失败,再做单进程入口,最后做需要多个进程、GUI、 端口或数据回放的场景。每个后台进程都要记录 PID、日志和就绪证据, 结束时先正常终止,只清理本次创建的资源。
  6. 失败后保留首个有效错误、命令、退出码、日志和产物;不得靠重试、 放宽退出码、扩大排除项或更换数据集把失败改写为通过。

显式调用本 skill 授权选定模块的本地配置、构建、参数解析、预期失败、 单进程只读运行和临时文件写入。实时回放、联网、GUI、长驻进程与可变 数据场景必须在用户明确选中对应功能后执行;不授权上传、发布、修改原始 数据集、绑定公网地址、安装系统依赖或终止非本次启动的进程。

3. 结果报告

按功能模块分别列出:

  • 平台、构建目录、target、二进制版本和数据集标识;
  • 场景总数及通过/失败/未覆盖数;
  • 每个场景的入口、关键参数、期望与实际退出码、关键输出或产物;
  • GUI/网络/外部服务/缺失 schema 导致的未覆盖项;
  • 首个失败的复现命令、日志路径和输入数据集副本路径。

只有实际运行并核对结果的场景才可写"通过";仅 --help 成功不能代表 对应业务子命令或 GUI 数据路径已覆盖。

© thun-res, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in .agents/skills/mock of thun-res/vlink.

  • SKILL.md
  • agents/openai.yaml
  • references/BAG-DATASETS.md
  • references/BUILD.md
  • references/CLI.md
  • references/PROXY.md
  • references/VIEWER.md
  • references/WEBVIZ.md

Open the folder on GitHubat commit 1793889

Compare with similar skills

Mock next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mock compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mock this skillthun-res/vlink116—~555Automated safety check: PassApache-2.0
Mock Huntersickn33/agentic-awesome-skills47k1 repos~1.9kAutomated safety check: PassMIT
Mock Interviewreactive-resume/reactive-resume44k—~11kAutomated safety check: PassMIT
Mock Serverscalar/scalar16k—~1.2kAutomated safety check: PassMIT
Mock Best Practicesthedaviddias/Front-End-Checklist74k—~425Automated safety check: PassMIT
Studio Mock API Testssupabase/supabase111k—~3kAutomated safety check: PassApache-2.0

Similar skills

  • Mock Hunter

    sickn33/agentic-awesome-skills

    Audit a live web page in five phases (catalog, click, trace, classify, report) to identify mock data, hardcoded values, LLM-generated metrics, and broken endpoints.

    47k GitHub starsUsed in 1 repo~1.9k tokens
    Productivity & AutomationAuto-check passed
  • Mock Interview

    reactive-resume/reactive-resume

    Runs a mock interview for a specific job description. An agent skill from reactive-resume/reactive-resume.

    44k GitHub stars~11k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Mock Server

    scalar/scalar

    Build, customize, and troubleshoot OpenAPI mock servers with @scalar/mock-server, including x-handler, x-seed, authentication, and Docker.

    16k GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Mock Best Practices

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing CI coverage, automated checks, or test strategy related to Follow mocking best practices.

    74k GitHub stars~425 tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Studio Mock API Tests

    supabase/supabase

    Official

    Component tests for Supabase Studio that mock API requests at the network layer with MSW.

    111k GitHub stars~3k tokensUpdated today
    Testing & QAAuto-check passed
  • Azldev Mock

    microsoft/azurelinux

    Official

    Read this before testing or inspecting a built RPM; do not drive mock by hand from memory.

    5.3k GitHub stars~1k tokensUpdated today
    Testing & QAAuto-check passed

More from thun-res/vlink

All 16 skills in this repo
  • Issue

    thun-res/vlink

    调查 VLink 中可复现的缺陷、文档遗漏或功能建议,搜索 open/closed Issue 去重,按仓库模板用自然、具体、证据充分的简体中文草拟或创建 Issue, 可读取既有 Issue 上下文后草拟或发布单条回复.用户要求"提 issue"、 "创建 issue"、"检查是否已有 issue"、"回复 issue"、"评论 issue"、 "帮我回应…

    116 GitHub stars~753 tokensUpdated yesterday
    Auto-check passed
  • Asan

    thun-res/vlink

    以 AddressSanitizer(ENABLETESTSANITIZE=ON)构建并运行 vlink-test 单元测试,复现 CI 的 ASan 门禁。用户要求"跑 asan"、"内存检测测试"、 排查 ci-test 的 sanitize 失败时使用。

    116 GitHub stars~683 tokensUpdated yesterday
    Auto-check passed
  • Bench

    thun-res/vlink

    构建并运行 vlink-bench 性能基准(showcase/quick/full 预设),生成 HTML/JSON 报告。用户要求"跑 bench"、"性能测试"、对比后端吞吐/延迟、 验证性能回归时使用。

    116 GitHub stars~993 tokensUpdated yesterday
    Auto-check passed
  • Cicd

    thun-res/vlink

    用 gh CLI 触发/查看 GitHub CI/CD:手动 dispatch 工作流 (release/coverage/docker)、查看运行状态与失败日志、重跑失败 job.

    116 GitHub stars~856 tokensUpdated yesterday
    Auto-check passed
  • Clang Tidy

    thun-res/vlink

    对指定文件或全仓库运行 clang-tidy(WarningsAsErrors='')。用户要求 "跑 clang-tidy"、"tidy 检查某文件"、排查 CI tidy 门禁失败时使用。

    116 GitHub stars~712 tokensUpdated yesterday
    Auto-check passed
  • Commit

    thun-res/vlink

    提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit…

    116 GitHub stars~931 tokensUpdated yesterday
    Auto-check passed

Questions about Mock

What does Mock do?

按功能编排 VLink 入口级 mock 集成测试,覆盖普通 doctest 难以触及的 全部 CLI 命令、Proxy、Viewer/Player/Analyzer、WebViz 及 bag 数据集 场景。用户要求"跑 mock"、"补测试死角"、"测试所有命令行"、"用 bag 数据集测试 viewer/webviz/proxy"或做发布前入口冒烟测试时使用。. Mock is an agent skill from thun-res/vlink.

How do I install Mock in Claude Code?

Run `npx skills add thun-res/vlink --skill mock -a claude-code`. Or copy the skill folder (.agents/skills/mock in thun-res/vlink) into .claude/skills/mock in your project. Claude Code loads it when a task matches its description.

How do I install Mock in Codex?

Run `npx skills add thun-res/vlink --skill mock -a codex`. Or copy the skill folder (.agents/skills/mock in thun-res/vlink) into .agents/skills/mock in your project. Codex loads it when a task matches its description.

Can I use Mock in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add thun-res/vlink --skill mock -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mock, .gemini/skills/mock, .github/skills/mock and .opencode/skills/mock in your project.

What does Mock need to run?

SKILL.md names no scripts, command-line tools or credentials: Mock is instructions for the agent only.

Does Mock access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mock safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mock use?

Mock is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mock use?

About 555 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.8k tokens, read only when the agent opens those files.

What are the alternatives to Mock?

Skills that share tags, products or a category with Mock: Mock Hunter (sickn33/agentic-awesome-skills, 47k stars), Mock Interview (reactive-resume/reactive-resume, 44k stars), Mock Server (scalar/scalar, 16k stars) and Mock Best Practices (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mock?

thun-res (a GitHub user) maintains it in thun-res/vlink, which has 116 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 9, 2026.

Source: thun-res/vlink on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.