verifying-changes
Skill728 starsChanged 7 days agoMITView on GitHub
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.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- raalarcon9705/gated-dev-agentstheir own version, first seen Nov 1, 2026
- vadimvitvickiy/vv-agent-kittheir own version, first seen Oct 20, 2026
- Mr-Quin/danmaku-anywheretheir own version, first seen Oct 8, 2026
- BuilderIO/agent-nativetheir own version, first seen Oct 8, 2026
- teispace/teitunneltheir own version, first seen Sep 27, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- BuilderIO/agent-native★ 7.6ksame name
- Mr-Quin/danmaku-anywhere★ 550same name
- teispace/teitunnel★ 2same name
- raalarcon9705/gated-dev-agents★ 0same name
- vadimvitvickiy/vv-agent-kit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository125 other files it gives its agents.
- AGENTS.mdAGENTS.md
- common/AGENTS.mdAGENTS.md
- hog/AGENTS.mdAGENTS.md
- proto/AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- .cursor/rules/django-python.mdcCursor rule
- .cursor/rules/react-typescript.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- adding-activity-loggingSkill
- adding-api-scopesSkill
- adding-inbound-webhooksSkill
- adding-inbox-sourcesSkill
- adding-ingestion-warningsSkill
- adding-mcp-store-serversSkill
- adding-personhog-rpcSkill
- adding-product-alertingSkill
- adding-project-secret-api-key-authSkill
- adding-today-highlightsSkill
- adopting-generated-api-typesSkill
- analyzing-experiment-precompute-canarySkill
- analyzing-experiment-query-performanceSkill
- analyzing-insights-across-teamsSkill
- announcing-behavior-changesSkill
- auditing-llm-gateway-paritySkill
- auditing-warehouse-source-coverageSkill
- authenticating-to-clickhouseSkill
- authoring-ci-workflowsSkill
- building-product-empty-statesSkill
- building-the-toolbarSkill
- clickhouse-migrationsSkill
- debugging-ci-failuresSkill
- debugging-local-replaySkill
- debugging-local-task-agent-runsSkill
- debugging-mcp-analyticsSkill
- debugging-signals-pipelineSkill
- debugging-table-access-deniedSkill
- depot-ciSkill
- depot-container-buildsSkill
- depot-github-runnersSkill
- developing-subscriptionsSkill
- django-migrationsSkill
- django-startup-timeSkill
- documenting-warehouse-sourcesSkill
- editing-agents-mdSkill
- establishing-code-ownershipSkill
- extending-hobby-smoke-testsSkill
- extending-personhog-test-harnessSkill
- extending-the-admin-consoleSkill
- finding-llm-gateway-migration-candidatesSkill
- fixing-flaky-testsSkill
- formatting-slack-messagesSkill
- gating-production-deploysSkill
- gating-sensitive-actionsSkill
- generating-clickhouse-query-performance-reportsSkill
- hogliSkill
- implementing-mcp-toolsSkill
- implementing-mcp-ui-appsSkill
- implementing-warehouse-sourcesSkill
- improving-drf-endpointsSkill
- improving-mcp-toolsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Start with the cheapest, and move up only when the current layer cannot see what the diff changes.
- Very specific: line 30
Use --plan to see the classification without running anything.
- Distinctive: line 61
Start the stack only when the behavior spans more than one process and no layer 2 test runs both sides:
- Distinctive: line 75
If you could not run a required layer, say so and name the command, so a reviewer knows what is unverified.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
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.hogli verifyreuses its lint and format checks, so a pass here usually means a pass there too.
When the stack is required
Start the stack only when the behavior spans more than one process and no layer 2 test runs both sides:
- Settings, URL routing, middleware, or the Content Security Policy, because only the browser applies them.
- A Django template, because only Django renders it.
- A change that a person has to see in the app: a new scene, a navigation change, or data flowing from ingestion to a UI.
- A Celery task, Temporal workflow, or plugin-server path whose wiring changed. A change to its logic alone stays at layer 2.
- A Playwright spec you changed, because it runs against the stack.
Everything else can skip the stack.
Django and ClickHouse-backed tests need the Postgres and ClickHouse services but not the web app, so hogli up -d plus a scoped hogli test still counts as layer 2.
Report what you ran
Say which layer you stopped at and why the next one was not needed. If you could not run a required layer, say so and name the command, so a reviewer knows what is unverified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

