web-ui
Skill2 starsChanged 17 days agoMITView on GitHub
Design and build UI in the AppScreenMap web viewer (apps/viewer/) — new views, components, layout or styling changes, motion, icons, polish passes — following the design-system skill (tokens in packages/design-tokens/tokens.css: Ghost dark × Xcode blue, Geist), apps/viewer/DESIGN.md, the live reference at #/design, and Emil Kowalski's design-engineering approach. Use for any visual or interaction change in apps/viewer/, "make it look better", "add icons", "make it interactive", or a UI review of the viewer.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- dimastriann/odoo-erp-mcptheir own version, first seen Nov 8, 2026
- emergent-wisdom/understanding-graphtheir own version, first seen Nov 1, 2026
- darknecrocities/SkillBuildertheir own version, first seen Nov 1, 2026
- nc9/skillstheir own version, first seen Sep 19, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- darknecrocities/SkillBuilder★ 13same name
- nc9/skills★ 4same name
- dimastriann/odoo-erp-mcp★ 2same name
- emergent-wisdom/understanding-graph★ 1same 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 repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- adaptiveSkill
- add-a11y-ruleSkill
- add-exporterSkill
- android-intent-securitySkill
- android-permissions-securitySkill
- crawl-appSkill
- design-systemSkill
- edge-to-edgeSkill
- extend-crawlerSkill
- ios-a11y-rulesSkill
- ios-simulatorSkill
- maintain-crawlerSkill
- play-policy-insightsSkill
- security-auditSkill
- security-rulesSkill
- stack-iosSkill
- stack-rulesSkill
- store-requirementsSkill
- tune-crawlerSkill
- wcag-mobile-rulesSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
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
- Very specific: line 10
Don't edit it for UI work.
- Very specific: line 18
Read apps/viewer/DESIGN.md: principles, components, motion and accessibility rules, checklist.
- Distinctive: line 30
No icon fonts, no new icon dependencies.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Viewer UI work
The viewer is React + TypeScript + Vite in apps/viewer/, run with Bun (never npm). It has no backend: it reads
runs/ as static files, plus a PUT for notes.json and a DELETE for a run folder (Runs page). The crawler (src/) belongs to another workstream.
Don't edit it for UI work. If the UI needs new data, ask for a map.json field (see docs/MAP_SCHEMA.md).
1. Load the design context first
- Invoke the
design-systemskill: the tokens, the five rules (dark only, hairlines, Xcode blue only for actions, status never alone, built around the phone), type, icons, and what was rejected. - Invoke the
emil-design-engskill: motion decision framework, easing, press feedback, review table format. Also useanimateto build a specific animation, orimprove-animationsto audit existing motion. - Read
apps/viewer/DESIGN.md: principles, components, motion and accessibility rules, checklist. - Open
#/designin the running viewer to see the current tokens and components rendered.
2. Build with the system
- Tokens only. Colours, radii, curves, durations come from
packages/design-tokens/tokens.css(var(--…)), never a hex in a view or instyles.css. Use the semantic names (--line,--dim,--accent-14,--font-mono), not the legacy aliases inapps/viewer/src/tokens.css. Adding or changing a token follows thedesign-systemskill (contrast check included), thenDESIGN.mdand#/design(src/views/DesignSystem.tsx). - Reuse components (
.panel,.btn,.chip,.seg,Stat,StatusBadge,.tbl,.effect,Icon,.sec-title,.stage-swap,.stagger) before inventing. A pattern used twice goes into the system. - Icons:
apps/viewer/src/components/Icon.tsxonly (Lucide-style inline SVG; paste new shapes intoPATHS). No icon fonts, no new icon dependencies. - Motion: answer "should this animate?" first. Frequent views (map, tables, filters) get colour/opacity
only; press feedback
scale(0.97); explanatory pages may use.stage-swapand.stagger. Custom curves (--ease-out), name the transitioned properties (neverall), hover effects inside@media (hover: hover) and (pointer: fine), and extend theprefers-reduced-motionblock when you add movement. - Data: address runs by
runKey(row)(indexpath); personal UI state viauseStored(src/storage.ts); shared user data viasrc/notes.ts. No directlocalStoragein views. - Accessibility: real
button/aelements,aria-pressed/aria-selectedon toggles and tabs, labels on icon-only controls, status never colour-only, visible:focus-visible.
3. Verify like a user
cd apps/viewer && bun run build # tsc + vite; must pass
# serve real or copied runs (don't write notes into runs you don't own)
uv run appscreenmap-engine serve --runs <runs-dir> --no-open --port 8795 &
bun ../../.claude/skills/web-ui/scripts/shot.ts --base http://127.0.0.1:8795/ --out <scratchpad> \
"#/" "#/how" "#/r/<project>%2F<run-id>/map" --themes dark # 1400 + 390 px
bun ../../.claude/skills/web-ui/scripts/shot.ts ... --reduced-motion --themes dark --widths 1400Then look at every screenshot (Read the PNGs). Check: nothing clipped or overflowing at 390px, empty and
loading states, real data with long titles. The viewer is dark only, so pass --themes dark.
Also run the scroll check after any layout change. The app scrolls inside .main, so the document must never scroll:
bun ../../.claude/skills/web-ui/scripts/scroll-check.ts --base http://127.0.0.1:8795/ # exit 1 + the page, if one is flaggedIt flags a page whose document is taller than the window (an absolutely positioned element escaped the scroll container, which shows as empty space when you scroll past the end), content wider than the container, and empty space after the last element.
Don't use
chrome --headless --screenshotfor animated pages. It runs on virtual time, so CSS animations stay at frame 0 and animated panels look empty.shot.tsdrives Chrome over CDP and waits in real time.
For interactions (clicks, typing, triage), drive the page over CDP the same way: Runtime.evaluate to click,
then assert on the DOM or on files written. A test that only looks at a static screenshot hasn't tested behaviour.
4. Report
Summarise visible changes with a Before / After / Why table (the emil-design-eng review format), and list what
you verified (themes, widths, reduced motion, keyboard). If you changed tokens or components, say that
DESIGN.md and #/design were updated too.
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.

