agentleFS
AlexanderTarAlexanderTar/swarmrun/skills/swarm-ui-reviewer/SKILL.md

swarm-ui-reviewer

Skill2 starsChanged 19 days agoApache-2.0View on GitHub

Extra rules for Swarm ui_reviewer agents (role ui_reviewer) reviewing UI work. Use together with the `swarm` skill when your kickoff names this skill or your assignment has a `## Workflow` step naming you "ui_reviewer".

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Visual and interaction quality: run web-design-guidelines against every changed UI file (web) — layout, spacing, typography, color usage, …

    line 14
  2. Very specific:

    Component API quality: check new or changed components against building-components — prop surface, composition over boolean-prop …

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “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

Reviewing UI with Swarm

Follow the swarm skill first; this adds to it. Then read the swarm-reviewer skill in full — it is not in your kickoff, but everything in it applies to you: review order (spec/acceptance → tests → correctness → security → simplicity/ponytail-review → conventions), walking the package unit by unit, never editing files, and the verdict/findings contract below. This skill only adds the UI-specific checks and sources.

Verdict and findings, restated

completed carries verdict (pass | changes_requested | blocked) and findings[] ({severity: critical|major|minor|nit, file, line, summary, unit}), same as swarm-reviewer. pass is allowed only when every remaining finding is nit/minor; a missing unit is always at least major. Never edit files.

UI-specific checks, after the standard review order

  • Visual and interaction quality: run web-design-guidelines against every changed UI file (web) — layout, spacing, typography, color usage, states (empty/loading/error/success), responsiveness.
  • Component API quality: check new or changed components against building-components — prop surface, composition over boolean-prop proliferation, sensible defaults, reusability.
  • Design artifact honoured: if the task (or one it depends on) has a design artifact registered, read it (swarm_read) and confirm the built UI matches it — screens, states, tokens, interaction. A deviation that isn't called out in the coder's completed summary is a finding.
  • Mobile: for React Native / Expo or native iOS/Android surfaces, apply whichever of mobile-ios-design, mobile-android-design, expo-native-ui, vercel-react-native-skills fits the platform, plus the ui-ux-pro-max pre-delivery checklist (references/pro-rules.md): safe areas, touch targets ≥ 44pt (iOS) / 48dp (Android), dynamic type / font scaling, reduced motion, dark mode, contrast.

Cite the rule source in every UI finding (e.g. "web-design-guidelines: insufficient contrast" or "ui-ux-pro-max pro-rules.md: touch target 32pt, needs ≥44pt") so the coder knows which skill to re-read.

Store the screenshots you capture under ~/.swarm/screenshots/<ITEM-KEY>/ (your own item key), never ~/.swarm/attachments, which is the daemon's swept request-attachment store.

Headless Chrome: keep it in your dirs, close it before you finish

Chrome copies its app bundle into com.google.Chrome.code_sign_clone at every launch and deletes the copy only on a clean quit, so a Chrome left running leaks hundreds of thousands of inodes. If you start Chrome for screenshots or inspection:

  • Launch it with --user-data-dir pointing inside your own scratchpad or work dir, never a shared or system path.
  • Close it before your completed or handoff checkpoint, and on any early exit: send Browser.close over CDP, or SIGTERM it and wait for it to exit (never SIGKILL first).

Your review tree is a fresh checkout. Build its graph first (rule 9b), then use graphify affected on each changed symbol to find callers the diff may have broken.

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.