Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

verify

БесплатноБез исполняемых скриптовНе проверен

Prove or disprove that a change does what it claims, by exercising it at its real user-facing surface and comparing a control capture against a treatment…

sliamh11от sliamh11★ 50 звёзд на GitHub

Об этом скилле

Verify

A verification stands on two legs. Remove either one and it is not a verification.

  • Observation at the real surface. The claim is exercised where a user meets it, and what the software actually emitted is captured.
  • A controlled contrast. A second capture, from the unchanged state, measured identically — so the difference is attributable to the change and not to the weather.

One leg alone has a name. A treatment capture with no control is a demo. A control/treatment pair measured somewhere other than the real surface is a laboratory result about code nobody runs.

What does not count

Three substitutes, each of which feels like evidence and is not:

  1. Suites and typecheckers. They re-assert what someone already wrote down. They cannot speak to a claim nobody has encoded yet — which is precisely the claim under verification. Read a test as a specification if it helps; then go exercise the software.
  2. Calling the changed function directly. Reaching past the public boundary to invoke an internal and printing the result is a test you authored moments ago, graded by its author. The function behaved as written; reading it told you that. Nothing that ships was exercised.
  3. Narrating the diff. A description of what changed is a claim awaiting verification, never its discharge.

1. Fix the claim, and fix what would refute it

Two sentences, written before anything is measured, and not revised afterwards:

Claim. Under <condition>, at <surface>, <observable> <holds>. Refuted if. <the specific observation that would end this as a failure>.

Worked examples:

Claim: invoked with an empty --from, the CLI exits non-zero and names the flag in its message. Refuted if: it exits 0, or the message omits --from.

Claim: the twelfth request inside a minute receives 429 carrying Retry-After. Refuted if: a twelfth request succeeds, or the header is absent or unparseable.

Claim: p95 cold start on this host is at or under 400 ms across 10 trials. Refuted if: p95 exceeds 400 ms, or the trials scatter too widely to place it.

The refutation sentence is the whole point of writing this down. Fixing the failure condition in advance is what stops the bar from drifting to wherever the output happened to land. Quote it verbatim in the report.

Where the claim comes from. Intended behaviour is owned by the request, the issue, or the acceptance criteria — not by the diff. The diff is authoritative only about what changed. Where the two disagree, that disagreement is the finding. If no external statement of intent exists, derive the claim from the diff and label it inferred: you may then verify that the observed change is real, but you may not present it as proof the software does what was wanted.

Unmeasurable claims ("cleaner", "more robust", "better structured") carry no refutation condition and so cannot be verified. Obtain a measurable one, or ask; if you cannot ask — you are running as a subagent — report INCONCLUSIVE naming the claim you could not pin down.

2. Establish scope

Resolve the real base branch first, then measure from the merge base. A branch may be many commits, and the change may not be committed at all:

# The base is the PR's own, else whatever the remote calls its default.
# Test emptiness rather than chaining with ||: a pipeline's exit status is the
# LAST command's, so `base=$(git ... | sed ...)` succeeds even when git failed.
base=$(gh pr view --json baseRefName --jq .baseRefName 2>/dev/null)
[ -n "$base" ] || base=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's#^origin/##')

# A named base is authoritative: use it, fetch it, or stop. Never substitute a
# trunk for a base you were actually told — that compares a different branch.
ref=""
if [ -n "$base" ]; then
  for c in "origin/$base" "$base"; do
    git rev-parse --verify -q "$c" >/dev/null 2>&1 && { ref="$c"; break; }
  done
  if [ -z "$ref" ] && git fetch -q origin "$base" 2>/dev/null; then
    git rev-parse --verify -q FETCH_HEAD >/dev/null 2>&1 && ref=FETCH_HEAD
  fi
else
  # Only with no base named anywhere is a conventional trunk a fair guess.
  for c in origin/main main origin/master master; do
    git rev-parse --verify -q "$c" >/dev/null 2>&1 && { ref="$c"; break; }
  done
fi

mb=""
[ -n "$ref" ] && mb=$(git merge-base HEAD "$ref" 2>/dev/null)

if [ -z "$mb" ]; then
  echo "STOP: could not resolve base '${base:-unnamed}' (tried '${ref:-nothing}')."
  echo "Ask which branch to compare against; do not guess one."
else
  git rev-list --count "$mb"..HEAD            # how many commits
  git --no-pager diff --stat "$mb"..HEAD      # committed work
  git --no-pager diff --stat HEAD             # staged + unstaged
  git ls-files --others --exclude-standard    # untracked — also part of the change
  git rev-parse "$mb" HEAD                    # the two SHAs, for the report
fi

**If it prints STOP, sto

Полный SKILL.md на GitHub

Установить verify в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

PROVENANCE.mdreference/control.mdreference/measurement.mdreference/surfaces.md

FAQ

Что делает скилл verify?

Prove or disprove that a change does what it claims, by exercising it at its real user-facing surface and comparing a control capture against a treatment capture. Use before committing or handing off a nontrivial behavioural change, for bug-fix reproduction, manual QA or smoke testing, acceptance-criteria checks, or when asked to show evidence that something works. Covers any change something outside it can observe — including a public type or API signature, whose surface is the compiler as an external consumer meets it. Skip only when nothing observes the change at all: prose, comments, or tests alone.

Как установить скилл verify?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл verify запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить verify с