verifying-changes
БесплатноБез исполняемых скриптовНе проверенPicks the cheapest check that is enough to confirm a change works, and says when a slower one is needed. Use before you report a task done, before you start…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Verifying changes
Verification has six layers, and each one costs roughly ten times the one before it. Start with the cheapest, and move up only when the current layer cannot see what the diff changes.
| Layer | Check | Command |
|---|---|---|
| 1 | Lint, format, typecheck | hogli verify --changed, or ruff check and pnpm --filter=@posthog/frontend typescript:check |
| 2 | The nearest unit test | hogli test <file>, hogli test --changed |
| 3 | Serializer and OpenAPI regen | hogli up -d, hogli build:openapi, then commit the generated diff |
| 4 | Storybook render | STORYBOOK_STORIES=<dir> pnpm storybook, open the affected story, compare before and after |
| 5 | The running stack | hogli up -d, hogli wait, then exercise the flow |
| 6 | Playwright or a recorded run | hogli test playwright/<spec>.spec.ts against a running stack |
hogli verify --changed classifies the diff against master, runs layers 1 and 2, and lists any higher layer you still have to run yourself.
It does not report the diff as verified when a check was skipped, when a check only printed advice, or when no test covers the changed files.
mypy is one of those advice-only checks. It runs repo-wide, so hogli verify prints its command instead of running it.
Use --plan to see the classification without running anything.
Each run records a stamp in the git directory: the layers that ran, passed, were skipped or were advice only, and the highest layer reached, or none.
The stamp is keyed on the content of every tracked and untracked file, so any later edit makes it stale.
The commit-msg hook compares the staged content with the stamp.
HOGLI_VERIFY_GATE sets its mode: observe (the default) only reports a commit it would block, enforce blocks it, and off skips the check.
To commit an unverified change under enforce, add an Unverified: <reason> line to the commit message.
Start the reason with docs, generated, config, trivial, wip, tooling or untestable. Telemetry records only that word, or other.
For layer 4, set STORYBOOK_STORIES to the directories or story files you need instead of editing the stories list in main.ts.
/working-with-storybook covers starting Storybook, opening a story by URL, screenshots, and writing the story itself.
Decision table
| Change | Enough | Wasted |
|---|---|---|
| Pure logic, Python or TS | 2: nearest unit test | 5: stack |
| DRF serializer or viewset | 3: OpenAPI regen, plus the endpoint test at layer 2 | 6: Playwright |
| Migration | 2: migration test, plus hogli migrations:check |
4: Storybook |
| Kea logic | 2: logic test, plus typecheck | 4: Storybook |
| React component | 4: Storybook render | 5: stack, unless the data wiring changed |
| CSS only | 4: Storybook render | 2: unit tests |
| CI workflow | 1: hogli lint:workflows, hogli ci:plan |
2: unit tests |
| SQL or HogQL | 2: the ClickHouse-backed query test | 5: stack |
| Docs or skills | 1: format, hogli lint:skills |
2 and above |
| Django template | 5: render the page in the running stack | 6: Playwright |
| Settings, URLs, middleware | 5: running stack | 6: Playwright |
A diff that mixes kinds needs the highest layer among them, and only for the files of that kind.
Other rules still apply
- Reading the code does not confirm visual or UX work, as the root
AGENTS.mdsays. A component or CSS change always needs at least a Storybook render. - Layer 2 says where a test runs. Use
/writing-teststo decide whether to add or change one. When a regression is hard to reach cheaply, extract the logic and test it at a lower layer. hogli ci:preflightstays the pre-push check, see/running-ci-preflight. `hog
Установить verifying-changes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл verifying-changes?
Picks the cheapest check that is enough to confirm a change works, and says when a slower one is needed. Use before you report a task done, before you start Storybook, the dev stack or a Playwright run to check your own work, and when you are unsure how much verification a diff needs. Maps each kind of change, such as pure logic, DRF serializer or viewset, migration, kea logic, React component, CSS, Django template, CI workflow, SQL or HogQL, or docs and skills, to the layer that is enough and the layer that is wasted. `hogli verify --changed` runs the cheap layers for the current diff and names the slower ones left to run yourself. Trigger terms: verify, how do I test this, is this enough testing, start the stack, render it, run e2e.
Как установить скилл verifying-changes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verifying-changes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic