agentleFS
MingYuan0415MingYuan0415/MicroTech/.agents/skills/ui-review/SKILL.md

ui-review

Skill1 starsChanged 8 days agoMITView on GitHub

Review MicroTech visible UI and interaction changes using affected-page simulator states, geometry lint, screenshots, and gestures. Use for layout, rendering, touch, or visible-state changes; pure logic and documentation changes do not automatically need a UI matrix.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility, design-system and 3 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.
  • MicrosoftSkill

    accessibility

    Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

    Also in 4 projects that use this

  • AnthropicSkill

    design-system

    Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

    Also in 3 projects that use this

  • GoogleSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 4

    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
  1. Very specific:

    Use the simulator's real LVGL layout and fonts to check the changed behavior, not just source structure or a default-state screenshot.

    line 8
  2. Distinctive:

    Do not assume every service call change necessarily changes the interface.

    line 32
  3. Distinctive:

    Geometry and visuals: Run the affected-page lint and snapshot capture.

    line 41
  4. Distinctive:

    Read snapshots for composition, color, icons and wrong-state visuals.

    line 42
  5. Distinctive:

    Do not treat a green lint run or a generated file as visual approval.

    line 122

“Common” is measured: kept by at least 6 in 10 of the 21 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI Review

Use the simulator's real LVGL layout and fonts to check the changed behavior, not just source structure or a default-state screenshot. General validation follows doc/verification.md; authorization follows AGENTS.md. Commands, tree fields, fixture seeding, and session operation are maintained in sim/README.md.

Choose Scope Before Running

A full review protocol is not the same as the full repository page set.

ChangeAutomated coverageHuman inspection and interactions
Copy onlyLint and snapshot capture for touched pagesRead touched states; no unrelated gesture set
Visible behavior/state fixAffected pages and relevant scenariosInspect states the fix touches and replay involved interactions
New page, new state, local re-layout/restyleFull protocol for that page; add/update relevant spec entriesRelevant reachable states, gestures, entry and return paths
Shared widget/helperIts actual consumers; full spec if scope cannot be bounded reliablyRepresentative consumers and changed interactions
Global font/theme/viewport or navigation foundationCross-page/full coverage as required by impactCross-page state and input regressions
Pure logic with no visible/input impactOwning host testsNo automatic screenshot matrix

review_pages.py --pages selects pages; --state narrows executable states to named states for targeted debugging. Automated full-page review executes all selected pages' executable spec states. Human screenshot review may focus on the affected states. Related scenarios can be selected with sim/ci/run_ci.sh --scenario <name>; omit the filter for the full scenario set. Do not assume every service call change necessarily changes the interface.

Full Protocol for an Affected Page

  1. State coverage. Identify relevant reachable empty, loading, populated, disabled/busy, error, and transient states. Add deterministic seeds and expectations to sim/ci/review/spec.json where practical. Record states the simulator cannot reproduce as hardware-only limitations; do not invent evidence or demand screenshots for impossible combinations.
  2. Geometry and visuals. Run the affected-page lint and snapshot capture. Read snapshots for composition, color, icons and wrong-state visuals; use tree coordinates and rendered lines for exact fit. Inspect long external input, signs/units and Chinese prose where they affect the page.
  3. Input. Exercise changed taps and drags from labels, icons and gaps. Ordinary taps dragged off must not activate; scroll owners must move in both directions, pinned content must remain pinned, and toggles must persist for the lifetime the feature promises. Include navigation away/back where state or resource ownership is involved.
  4. Current artifact. Build once after relevant edits, then review a newly launched instance of that binary. A successful build does not update an already running process. After a relevant edit, rebuild/restart and repeat affected evidence only; unrelated prior results remain reusable.

What the Harness Does and Does Not Prove

  • Automatic: rendered-line completeness, some WRAP-height and ancestor clipping, observable ... truncation, control reachability through scroll travel, unexpected disabled controls, unknown image IDs, and snapshot capture. Consult sim/tools/review_pages.py for exact implementation; these checks are not a general proof of all horizontal/vertical clipping.
  • Spec-dependent: single_line and balanced_prose match explicit text selectors; expect_visible, expect_absent, and expect_image cover only their listed expectations. Deliberate summary ellipses use allow_truncation. A green run cannot prove unlisted label policy, that a selector still matches, or that an external row uses content-driven sizing.
  • Manual/source review: T1/T2/T3 classification (lvgl-ui-layout), complete identifiers at decision surfaces, appropriate row sizing, meaning preserved by copy edits, primary-control placement, fallback visibility, and intentional disabled-state styling. Disabled can be correct for busy, ineligible, or unavailable actions; add narrow spec allowances with the intended reason rather than changing product behavior merely to appease the lint.
  • System layers: request sim.tree {include_layers:true} to inspect top/sys overlays. The current page harness walks children, not the separate overlays array, so review these with explicit tree assertions, screenshots, and the appropriate system hook/gesture; do not count page lint as coverage.
  • Hardware: real touch feel, panel timing/color, DMA, radio, I2S and sleep require their own evidence. The simulator does not replace those checks or authorize hardware operations.

Run and Interpret

python3 tools/agent/mt.py ui --pages settings/wifi,settings/bluetooth
python3 tools/agent/mt.py ui --pages settings/wifi --state scan_truncated --no-build
python3 tools/agent/mt.py sim --scenario smoke_pages
python3 tools/agent/mt.py sim --jobs 4 --no-build

mt.py ui builds the current simulator, runs the affected-page check on an isolated port, and prints state/snapshot/failure counts plus the snapshot directory. It follows the product selected by the current root build; use a separate -DSIM_PRODUCT=<product-id> build directory when reviewing another product. A page owned by an App that the selected product does not compile is not part of that product's review scope; do not report its absence as a UI defect. Do not open every snapshot: the full spec currently has 34 pages and 82 states. Read only failing or changed states, and prefer tree coordinates/rendered lines over images when checking fit. Raw commands remain available:

cmake --build build/sim -- --quiet
python3 sim/tools/review_pages.py --pages settings/wifi,settings/bluetooth
sim/ci/run_ci.sh --scenario smoke_pages

The review harness normally launches and owns fresh headless sessions with isolated NVS/SD directories; an occupied port is an error, not permission to reuse or terminate its owner. For deliberate interactive reuse pass --no-launch after confirming the process/binary and seeded state yourself; this mode has no per-page process isolation and never stops the external sim. The harness derives build-context.json from --build when no explicit --build-context exists, then compares its product/target/panel with the live sim.ping response. An explicit --build-context may describe another build; when the live response exposes a pid, the harness also compares the process binary hash. External --no-launch sessions must be started with --ci. --keep-sim retains the final owned instance and its temporary data for probing; end it explicitly when finished. Detailed operation lives in sim/README.md.

A lint failure requires understanding the violated contract. Snapshots are review evidence, not a pass/fail baseline: inspect the captures for the changed states and judge composition, color, icons, and wrong-state visuals yourself. Do not treat a green lint run or a generated file as visual approval. Snapshots are not committed; keep them local or attach them to the review artifact.

Report selected pages/states and scenarios, important gestures, artifact/session identity, failures, and unexecuted checks. A green harness plus a single default screenshot is not evidence for states or paths you did not exercise.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.