andrewlaack-collab

vet

开发编程v0.2.4
作者:andrewlaack-collab更新于 2026-05-17共 5 个版本 · 最新版本发布于 2026-02-26@clawhub_andrewlaack-collab/vet
代码审查脚本工具#Batch

据 AlphaMoat 统计,截至 2026-09,vet 累计下载 4,363 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,242 位,在「开发编程」分类(577 个)中排名第 281 位。

累计安装
266
累计下载
4,363
星标
2
全站排名
#2,242
全站前 45% · 「开发编程」前 49%
平台累计安装累计下载星标评论
ClawHub ↗1444,2022-
SkillHub ↗2664,3632—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

vet 审查 git diff 和对话历史来发现代码改动与会话中的问题(例如实现与需求之间的误解),适合频繁运行——每完成一段逻辑改动就立即跑一次,不要攒批、不要等被要求。通过 pip install verify-everything(或 pipx/uv)安装。可单独运行 vet "goal",也可通过 --history-loader 附带 OpenCode、Codex 或 Claude Code 的会话历史(注意先核对找到的会话确为当前对话)。常用选项:--base-commit(默认 HEAD)、--model、--confidence-threshold(默认 0.8)、--output-format text/json/github、--agentic(经本地 CLI 分析,较慢但精度常更高)。注意:vet 分析的是自 base commit 起的完整 diff,可能包含其他 agent 的改动,不属于本会话的告警应忽略;vet 不能替代运行测试。

资料发布于 2026-10-27

可以用来做什么

  • 在每段逻辑改动后立即运行 vet 审查 git diff
  • 用 --history-loader 附带编码会话历史以捕捉需求与实现的偏差
  • 按 --base-commit、--confidence-threshold 等选项调整审查范围与门槛
  • 以 --agentic 模式经本地 Claude Code/Codex CLI 做更高精度分析

什么时候用

  • 刚完成一段代码改动、想在测试之外再做一次快速审查时
  • 需要核查实现是否偏离会话中的需求时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

刚改完这段代码,帮我跑一下 vet
用当前会话历史跑 vet,看看有没有偏离需求的地方
把 vet 结果以 github 格式输出

月度数据趋势

累计下载4,363
3,2133,8314,4482026-03 · 累计下载 3,2982026-05 · 累计下载 3,7322026-06 · 累计下载 3,8432026-07 · 累计下载 4,0522026-08 · 累计下载 4,1222026-09 · 累计下载 4,36326-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,363—2
2026-084,122+1.7%2
2026-074,052+5.4%2
2026-063,843+3.0%2
2026-053,732—2
2026-033,298—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.6 KB · ClawHub v0.2.4
---
name: vet
description: Run vet immediately after ANY logical unit of code changes. Do not batch your changes, do not wait to be asked to run vet, make sure you are proactive.
---

# Vet

**Run vet immediately after ANY logical unit of code changes. Do not batch changes, do not wait to be asked to run vet, make sure you are proactive.**

Vet reviews git diffs and conversation history to find issues in code changes and conversation history. It is most effective when run frequently with conversation history, which helps it catch misunderstandings between what was requested and what was implemented. Despite this, vet is not a replacement for running tests.
展开全部(共 113 行)

## Installation

Install vet using pip, pipx, or uv:

```bash
# Using pip
pip install verify-everything

# Using pipx
pipx install verify-everything

# Using uv
uv tool install verify-everything

# Verify installation:
vet --help
```

## Running Vet

### Standard Usage

Before running vet, determine the correct Python binary:
```bash
$(command -v python3 || command -v python)
```
Use whichever resolves (prefer `python3`). The examples below use `python3`, substitute `python` if that is what your system provides.

**OpenCode:**
```bash
vet "goal" --history-loader "python3 ~/.agents/skills/vet/scripts/export_opencode_session.py --session-id <ses_ID>"
```

**Codex:**
```bash
vet "goal" --history-loader "python3 ~/.codex/skills/vet/scripts/export_codex_session.py --session-file <path-to-session.jsonl>"
```

**Claude Code:**
```bash
vet "goal" --history-loader "python3 ~/.claude/skills/vet/scripts/export_claude_code_session.py --session-file <path-to-session.jsonl>"
```

**Without Conversation History**
```bash
vet "goal"
```

### Finding Your Session

You should only search for sessions from your coding harness. If a user requests you use a different harness, they are likely referring to vet's agentic mode, not the session.

**OpenCode:** The `--session-id` argument requires a `ses_...` session ID. To find the current session ID:
1. Run: `opencode session list --format json` to list recent sessions with their IDs and titles.
2. Identify the current session from the list by matching the title or timestamp.
    - IMPORTANT: Verify the session you found matches the current conversation. If the title is ambiguous, compare timestamps or check multiple candidates.
3. Pass the session ID as `--session-id`.

**Codex:** Session files are stored in `~/.codex/sessions/YYYY/MM/DD/`. To find the correct session file:
1. Find the most unique sentence / question / string in the current conversation.
2. Search for your unique message string in ~/.codex/sessions/` to find the matching session file.
    - IMPORTANT: Verify the conversation you found matches the current conversation and that it is not another conversation with the same search string.
3. Pass the matched file path as `--session-file`.

**Claude Code:** Session files are stored in `~/.claude/projects/<encoded-path>/`. The encoded path replaces `/` with `-` (e.g. `/home/user/myproject` becomes `-home-user-myproject`). To find the correct session file:
1. Find the most unique sentence / question / string in the current conversation.
2. Search for your unique message string in ~/.claude/projects/` to find the matching session file.
    - IMPORTANT: Verify the conversation you found matches the current conversation and that it is not another conversation with the same search string.
3. Pass the matched file path as `--session-file`.

NOTE: The examples in the standard usage section assume the user installed the vet skill at the user level, not the project level. Prior to trying to run vet, check if it was installed at the project level which should take precedence over the user level. If it is installed at the project level, ensure the history-loader option points to the correct location.

## Interpreting Results

Vet analyzes the full git diff from the base commit. This may include changes from other agents or sessions working in the same repository. If vet reports issues that relate to changes you did not make in this session, disregard them, assuming they belong to another agent or the user.

## Common Options

- `--base-commit REF`: Git ref for diff base (default: HEAD)
- `--model MODEL`: LLM to use (default: claude-opus-4-6)
- `--list-models`: list all models that are supported by vet
    - Run `vet --help` and look at the vet repo's readme for details about defining custom OpenAI-compatible models.
- `--confidence-threshold N`: Minimum confidence 0.0-1.0 (default: 0.8)
- `--output-format FORMAT`: Output as `text`, `json`, or `github`
- `--quiet`: Suppress status messages and 'No issues found.'
- `--agentic`: Mode that routes analysis through the locally installed Claude Code or Codex CLI instead of calling the API directly. Try this if vet fails due to missing API keys. This is slower so it is not the default, but it often results in higher precision issue identification. `--model` is forwarded to the harness but not validated by vet, as vet doesn't know which models each harness supports.
- `--agent-harness`: The two options for this are `codex` and `claude`. Claude Code is the default.
- `--help`: Show comprehensive list of options


## Updating

The vet CLI, skill files, and export scripts can become outdated as agent harnesses and LLM APIs change.

If this happens, try updating them. Run `which vet` to determine how vet was installed and update accordingly. For the skill files, check which skill directories exist on disk and update them with the latest versions from https://github.com/imbue-ai/vet/tree/main/skills/vet.

## Additional Information

Additional information can be found in the vet repo:

https://github.com/imbue-ai/vet

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。