verification-loop
Skill2 starsChanged 8 months agoMITView on GitHub
How to actually prove a UI change works before claiming it does. Covers AX-coordinate snapshots over screenshots, tap-by-label over coordinates, simulator state resets between iterations, and the build → screenshot → AX → math-check loop. Use this skill alongside testing-strategy whenever you're verifying a UI fix on simulator. Required reading before claiming any visual fix is "done.
53 other projects use a version of this.
Adopted by
Most recently taken up by
- imMamdouhaboammar/tiktok-growth-automation-meshtheir own version, first seen Oct 1, 2026
- smitshivalkar-spectims4567/hsj-agent-skillstheir own version, first seen Sep 29, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- themusecatcher/ai-coding-kittheir own version, first seen Sep 15, 2026
- Benkapner/claude-code-basecamptheir own version, first seen Sep 14, 2026
- talayash/agentriumtheir own version, first seen Sep 11, 2026
Used with
Projects with it also use springboot-tdd, django-verification and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
FaisalAlqarniSkillspringboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
Also in 9 projects that use this
FaisalAlqarniSkilldjango-verification
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.
Also in 9 projects that use this
joneqianSkillcontinuous-learning-v2
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
Also in 13 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 6 projects that use this
Microsoft AzureSkilliterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
Also in 15 projects that use this
johnrtiptonSkilldjango-security
This skill should be used when conducting security reviews, auditing Django applications, hardening security settings, implementing OWASP Top 10 protections, managing secrets, or ensuring multi-tenant security isolation. Provides automated security auditor that scans settings, code, dependencies, and multi-tenant configurations with auto-fix capabilities.
Also in 10 projects that use this
- +1 more from FaisalAlqarni
Other versions53 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 53
- Galaxy-Dawn/claude-scholar★ 5.7ksame name
- WorldFlowAI/everything-claude-code★ 4ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- loulanyue/awesome-claude-notes★ 272same name
- cloudnative-co/claude-code-starter-kit★ 151same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- hellangleZ/burn-in-cceverywhere-ralph★ 112same name
- cohen-liel/hivemind★ 110same name
- MRCalderon3D/everything-game-dev-code★ 90same name
43 more not listed
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 repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- app-specSkill
- app-store-prepSkill
- app-visionSkill
- dark-mode-legibilitySkill
- data-persistenceSkill
- design-systemSkill
- device-testingSkill
- figma-to-codeSkill
- git-workflowSkill
- mcp-setupSkill
- pixel-and-stroke-geometrySkill
- platform-gotchasSkill
- polish-and-refinementSkill
- post-launchSkill
- scaffoldingSkill
- screen-by-screenSkill
- session-managementSkill
- swiftui-native-firstSkill
- testing-strategySkill
- uikit-bridgingSkill
- xcode-integrationSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 49 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Before claiming any UI fix is "done" — required reading
- Distinctive: line 31
After every UI change, before claiming a fix is done:
- Distinctive: line 73
If the math doesn't check out, the fix isn't done.
- Distinctive: line 85
When automating taps to verify a flow:
- Distinctive: line 98
When AX targeting fails (rare), THEN fall back to coordinates — but treat that as a temporary fallback, not a default.
- Distinctive: line 150
If in doubt, run the AX step.
- Distinctive: line 167
If they disagree, the loop just paid for itself
“Common” is measured: kept by at least 6 in 10 of the 49 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
Verification Loop
The testing-strategy skill covers automated build verification, unit tests, and manual testing — three layers that prove the code is correct, the logic is correct, and the user experience is correct on a real device.
This skill covers the layer in between: the visual verification loop you run on simulator while iterating. It's where most "I fixed it!" → "actually no you didn't" cycles happen, because eyeballing a screenshot is unreliable for layout bugs.
When to Use
- Iterating on a layout, padding, alignment, or sizing fix
- Hooking up a new gesture and need to confirm it fires
- Diagnosing a visual bug from a user screenshot
- Before claiming any UI fix is "done" — required reading
Why Screenshots Alone Aren't Enough
Humans cannot reliably eyeball:
- 16pt vs 21pt padding
- 2pt off-center drift
- 40pt vs 44pt button heights
- A view extending 4pt past where it should
Every one of those is a real bug that ships in apps that "looked fine on simulator." The verification loop replaces "looks fine" with "the AX frame says width 396.66pt, parent says width 402, so right margin is 5.34pt — symmetric with the left's 24pt? No, off by 19pt — fix it."
The Four-Step Loop
After every UI change, before claiming a fix is done:
1. Build clean
Build with XcodeBuildMCP. If status is SUCCEEDED with zero errors,
proceed. If SourceKit reports phantom diagnostics that don't show
up in the actual build log (e.g. "Cannot find type X" while the
build log shows zero errors), ignore them — see the
xcode-integration skill for the SourceKit-lag distinction.2. Screenshot
Capture the screen state. Useful for "does it look right?" gut-check
but NEVER sufficient on its own for layout claims.3. AX snapshot — the critical step
XcodeBuildMCP's snapshot_ui returns the accessibility tree with every visible element's AXFrame (x, y, width, height) in real screen coordinates. Use this to verify layout numerically:
Get the AX snapshot. For the view you changed, locate its frame
in the output. Compare against:
- The parent's frame (is the child centered? offset? overlapping?)
- Sibling frames (is spacing equal? is alignment matching?)
- Screen bounds (is anything off-screen?)
- The expected values from the design (does padding match the spec?)Worked example — verifying a button is centered on a 402pt-wide screen:
Button AXFrame: x=80, width=242
- Right edge: 80 + 242 = 322
- Distance from screen right (402): 402 - 322 = 80
- Distance from screen left: 80
- Difference: 0 → centered ✓If the math doesn't check out, the fix isn't done. No "looks centered enough" — center is a number.
4. Math-check, then commit
If the AX numbers match the design spec, commit. Push. Open the PR.
If they don't match, the fix isn't done — go back to step 1 with
the next iteration.Tap by Label / ID, Never by Coordinates
When automating taps to verify a flow:
Prefer:
tap by accessibility id (AXUniqueId)
tap by accessibility label (AXLabel)
Avoid:
tap at coordinates (x, y)Coordinates break the moment layout changes. Labels survive layout changes — if the user-facing label is the same after your fix, the test still works. If the label changed, that's a UX-meaningful change worth a separate review.
When AX targeting fails (rare), THEN fall back to coordinates — but treat that as a temporary fallback, not a default.
Resetting Simulator State Cleanly
Many UI flows (welcome screens, first-run prompts, onboarding) only fire on first launch. Verifying them iteratively means resetting the launch flag between iterations.
# Terminate the running app
xcrun simctl terminate <SIMULATOR_UDID> <BUNDLE_ID>
# Relaunch with a UserDefaults override that resets the first-run flag
xcrun simctl launch --terminate-running-process <SIMULATOR_UDID> <BUNDLE_ID> -hasSeenWelcome NO@AppStorage keys can be overridden as launch arguments by prefixing with -. Use the same keys your @AppStorage properties use. The override only applies to the current launch — your normal first-launch detection logic still runs.
For state that's NOT in @AppStorage (in-memory state, SwiftData), use xcrun simctl uninstall followed by a fresh install — heavier, but guarantees a clean slate.
A Verification-Loop Template
A reusable prompt to give your coding agent at the end of any UI fix:
Before claiming this fix is done:
1. Build with XcodeBuildMCP. Confirm SUCCEEDED with zero errors.
(Phantom SourceKit diagnostics that don't appear in the build
log are SourceKit lag — ignore.)
2. Screenshot the screen state. Attach to the verification report.
3. Run snapshot_ui. For each view you changed, report the AXFrame
coordinates. Verify against the design spec or the parent
container math (centered? aligned? padded equally?).
4. If the math doesn't check out, iterate. Don't claim "done" on
a fix that hasn't been numerically verified.
Verification report format:
- Build status: [SUCCEEDED / FAILED]
- Screenshot path: [path]
- Modified view AXFrame: [x, y, width, height]
- Math check: [show your work — what was the expected number, what
was the actual number, by how much do they differ]
- Result: [PASS / FAIL with next steps]When to Skip the AX Step
The AX step is required for layout claims (padding, alignment, sizing, position). It's optional for:
- Pure logic changes that don't touch layout (e.g. a state-management refactor)
- Non-UI changes (data layer, networking)
- Fixes where the visual result is binary (a view either appears or it doesn't)
If in doubt, run the AX step. It costs 30 seconds and catches bugs that ship.
Anti-Patterns
| Temptation | Why It Fails |
| Eyeballing the screenshot to decide if padding is symmetric | Humans see 16pt and 21pt as the same. The user reports the bug a week later |
| Tapping by coordinates because "label targeting is fiddly" | Layout changes break the test; labels survive layout changes |
| Skipping the AX step on "obvious" fixes | The "obvious" fix is where regressions hide |
| Claiming a fix is done before pushing | Reviewer can't reproduce; you've shipped a half-fix |
| Running verification only on the simulator you usually use | Mini, SE, and 17 Pro Max have different widths; layout bugs love smaller screens |
Verification
For this skill itself:
- Pick a recent UI fix you made and re-verify it using the four-step loop
- Compare what the AX numbers tell you to what your initial gut-check said
- If they disagree, the loop just paid for itself
Time Estimate
The loop adds 1–3 minutes per iteration. Saves 30+ minutes of "I shipped it and the user found the bug" debugging downstream.
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.

