@sloppy-ai/skill 0.0.0-stage → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +95 -0
- package/package.json +23 -4
- package/references/annotations.md +76 -0
- package/references/backgrounds.md +30 -0
- package/references/bento.md +63 -0
- package/references/brands.md +32 -0
- package/references/choreography.md +32 -0
- package/references/craft.md +160 -0
- package/references/framing.md +106 -0
- package/references/kit.md +185 -0
- package/references/looks.md +66 -0
- package/references/motion.md +185 -0
- package/references/products.md +26 -0
- package/references/rehearse.md +117 -0
- package/references/review.md +26 -0
- package/references/teaching.md +111 -0
- package/references/verify.md +84 -0
- package/skill.json +17 -0
- package/README.md +0 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Product studies
|
|
2
|
+
|
|
3
|
+
These examples reproduce recognizable product interfaces. Use them when the brief needs product fidelity, denser content, native chrome or a specific interaction. They sit under **Real products** in the playground. They are illustrations, not working clients, and not affiliated with the products shown.
|
|
4
|
+
|
|
5
|
+
| Product | Source | Focus |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| Figma | `examples/figma/` | Canvas objects, properties and comments |
|
|
8
|
+
| Linear | `examples/linear/` | Command menu, issue context and assignment |
|
|
9
|
+
| Slack | `examples/slack/` | Reactions, message layout and a thread reply |
|
|
10
|
+
| Raycast | `examples/raycast/` | Keyboard search and clipboard navigation |
|
|
11
|
+
| Finder | `examples/finder/` | Quick Look, file selection and drag |
|
|
12
|
+
| Finder with glass | `examples/finder-glass/` | Translucent window surfaces |
|
|
13
|
+
| Spotify | `examples/spotify/` | Library and media controls |
|
|
14
|
+
| Notion | `examples/notion/` | Document blocks and editing controls |
|
|
15
|
+
| Gmail | `examples/gmail/` | Inbox and message actions |
|
|
16
|
+
| Google Calendar | `examples/google-calendar/` | Event and calendar views |
|
|
17
|
+
| Google Docs | `examples/google-docs/` | Document editing and collaboration |
|
|
18
|
+
| PowerPoint | `examples/powerpoint/` | Slide editing |
|
|
19
|
+
| Excel | `examples/excel/` | Cells, selection and calculations |
|
|
20
|
+
| Wikipedia | `examples/wikipedia/` | Search suggestions and article navigation |
|
|
21
|
+
| Telegram | `examples/telegram/` | Phone conversation and message arrival |
|
|
22
|
+
| iMessage | `examples/imessage/` | Native composer and delivery feedback |
|
|
23
|
+
|
|
24
|
+
Some studies import `lucide-react`, which the playground installs. When copying one into a host, keep its local CSS and assets and install that icon dependency, or swap the icons for the host's own set. The kit itself needs React, react-dom and lucide-react (for its `Icon`). Product names, marks and imagery are covered by `NOTICE.md`.
|
|
25
|
+
|
|
26
|
+
Open the source and look at it at the intended width before borrowing. A recognizable interface can still have a weak crop, reset or transition, so give it the same rehearsal as a new scene. Being in this list is not a review.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Rehearse
|
|
2
|
+
|
|
3
|
+
A dress rehearsal: run the whole demo at real speed and watch it as the audience will, before anyone does. Read every image you make, and confirm the page you filmed runs the code you wrote. The rules the film lines enforce are in `framing.md`, `craft.md` and `motion.md`; this file is how to film and what to watch.
|
|
4
|
+
|
|
5
|
+
## Prove the still before choreography
|
|
6
|
+
|
|
7
|
+
Render the opening and the payoff at both shipping widths beside the gold at shown size; the reduced-motion poster is not the opening, and it has to work as the only frame (`motion.md`, Story). Ask the still questions in `verify.md` (Framing, Hierarchy and density), then:
|
|
8
|
+
|
|
9
|
+
- Can the viewer find the focal object and what changes before any branding or copy?
|
|
10
|
+
- Compare the quality (hierarchy, density, spacing, crop, material) against the gold, separately from whether every object in the brief is present.
|
|
11
|
+
- Do the same for the busiest mid-story frame and every resting state that changed. A clean tool report does not close a composition question.
|
|
12
|
+
|
|
13
|
+
## The host's own controls
|
|
14
|
+
|
|
15
|
+
A demo lives in a page with a picker, playback buttons and labels, and those get judged too. `scripts/layout.mjs` checks ordinary UI outside a Stage, including a bento tile's inner crop (`nested-composition-crop`):
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
node scripts/layout.mjs "<url>/?example=hero-demo" --select .pg --width 390 --report shots/host-layout.json --screenshot shots/host-layout.png --strict
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Run it on the viewer page, the direct scene route and the real destination page at its real width. Moving geometry is reported as incomplete, not passed. Watch each control at rest, hover in and out, pressed, focused, label changed and interrupted mid-transition; geometry cannot vouch for text rendering, focus styling or a filtered silhouette.
|
|
22
|
+
|
|
23
|
+
## Film
|
|
24
|
+
|
|
25
|
+
`scripts/film.mjs` opens a page in headless Chrome and shoots the stage at a fixed interval into one contact sheet at true size. It prints console and `[stageshow]` warnings (loop seams, missing targets); `--help` lists every flag.
|
|
26
|
+
|
|
27
|
+
First time: copy `scripts/` beside `kit/`, `npm i -D playwright-core` (and `postcss` for the CSS check); `CHROME_PATH` picks another Chrome. The kit itself needs neither.
|
|
28
|
+
|
|
29
|
+
In the playground, film the direct `?capture=<name>` route (the ordinary viewer wraps the scene in an iframe); on a site, the real page URL (open an embedded frame's URL directly when needed). Still watch playback, pause, resume and Replay in the viewer yourself.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
node scripts/film.mjs "<url>/?capture=hero-demo" --out shots/hero.png --every 1000 --count 18
|
|
33
|
+
node scripts/film.mjs <url> --out shots/still.png --still # one clean image of a still
|
|
34
|
+
node scripts/film.mjs <url> --out shots/phone.png --width 390 --every 2500 --count 6
|
|
35
|
+
node scripts/film.mjs <url> --out shots/drop.png --at drop --every 50 --count 24 # one beat, frame by frame
|
|
36
|
+
node scripts/film.mjs <url> --out shots/zoom.png --zoom 380,40,240,120 --still # close-up, in stage design px
|
|
37
|
+
node scripts/film.mjs <url> --out shots/hover.png --hover --every 300 # play="hover": rest, hover, leave
|
|
38
|
+
node scripts/film.mjs <host-url> --select "#feature-demo" --report shots/report.json --strict
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- **Selection and marks.** Film discovers every visible `.ss-stage` (hidden compact or wide twins skipped); `--select` narrows; `--at` and `--zoom` need one stage. Call `act.mark('drop')` at a beat and film with `--at drop`; never guess delays.
|
|
42
|
+
- **Close-ups.** `--zoom x,y,w,h` is in stage design pixels at high resolution; `--zoom target:<name>[,pad]` follows a `data-target` every frame. Stills wait for a rolling `Count` to land.
|
|
43
|
+
- **Hover stages.** `--hover` films rest, hover and the settle after leaving; the rest frame must stand as a still and leaving must glide back without a jump.
|
|
44
|
+
- **Looks and widths.** `--dark` films the dark theme; `--width 566` for a 550 column; `--slow 6 --every 40` samples a landing or press closely (stage and CSS both slow).
|
|
45
|
+
- **Jumps.** Film records geometry every animation frame and reports `jump:` and `drift:` candidates at their timestamps. Fix accidental ones; mark an intentional step narrowly with `data-snap`. `node scripts/jumps.mjs "<url>/?capture=<name>" --ms 30000 --report shots/jumps.json` runs a longer scan without screenshot overhead.
|
|
46
|
+
- **Coverage.** Empty, short or gapped recordings (gaps over 1.6x the typical interval, intervals over 40ms) are `inconclusive`, exit 2. Camera omissions and same-box text changes are listed for manual review.
|
|
47
|
+
- **Reports.** `--report <path>` writes JSON (`status` and `exitCode`, with each stage's `coverage`, `findings` and `manual` under `stages`); `--strict` exits 1 on candidates; `no-issues-detected` is not approval; exit 3 on persistent dev reloads.
|
|
48
|
+
- **Class clashes.** `node scripts/class-clash.mjs <demo folders>` (needs postcss) checks overlapping class namespaces. A scoped `.row` is fine, an unscoped one is not; complex roots are inconclusive. Check repeated demos together on the host too.
|
|
49
|
+
|
|
50
|
+
## Lines that are never intentional
|
|
51
|
+
|
|
52
|
+
Not candidates for judgment: fix the cause and re-shoot. `film.mjs --gate` ends `rehearsal passed` only when all are at 0. Clearing a line by hiding, removing or marking (`data-crop`, `data-snap`) the thing it points at is a bug, and the fresh eye re-judges every line you call intentional.
|
|
53
|
+
|
|
54
|
+
| Line | What it means |
|
|
55
|
+
|---|---|
|
|
56
|
+
| `framing:` | A gutter, bleed, crop or window shape `framing.md` forbids; a hero floating whole; a popover against an edge |
|
|
57
|
+
| `cut by the crop:` | An action or chip sliced by the stage edge; filler bleeds, actions read whole or not at all |
|
|
58
|
+
| `tight stack:` / `loose stack:` | A title on its subtitle with under 3px of ink between, or drifting past 10px in a small label (4 to 6px is right) |
|
|
59
|
+
| `tight mark:` | A status dot within 5px of the avatar or text, or outside its row (6px clear) |
|
|
60
|
+
| `tight inset:` | Words under 8px from a window's, card's or row's edge (12px is right) |
|
|
61
|
+
| `skeleton ladder:` | At realistic fidelity, a list in frame (4+ rows) where the wordless rows (at least 3) outnumber the worded ones |
|
|
62
|
+
| `onion skin:` | See-through fills overlapping at rest |
|
|
63
|
+
| `kit override:` | Your CSS reshaping a kit part's geometry (rows, bubbles, stamps, avatars, phones) |
|
|
64
|
+
| `unit wrapped:` | A stat's unit on its own line |
|
|
65
|
+
| `unsized text:` | Text in a window left at the stage's 16px baseline because nothing sized it |
|
|
66
|
+
| `clipped glyph:` | An icon drawn past its box |
|
|
67
|
+
| `loose list:` | Rows spread out to fill a pane |
|
|
68
|
+
| `fat row:` | A one-line row three times taller than its words |
|
|
69
|
+
| `empty pane:` | A void under a pane's or screen's content |
|
|
70
|
+
| `emoji icon:` | An emoji where an icon belongs |
|
|
71
|
+
| `anchor drift:` | An open popover moving as its list changes height |
|
|
72
|
+
| `uneven padding:` | A card or tile whose content sits about a third closer to one edge than the side inset, or past it |
|
|
73
|
+
| `mixed icons:` | Filled and outline glyphs side by side in one nav, list or toolbar |
|
|
74
|
+
| `tight control:` | A button or chip with under 8px between it and the field, line or card edge above it |
|
|
75
|
+
| `invented mark:` | A one-letter tile in a brand color beside a real company's name |
|
|
76
|
+
| `uneven inset:` | A bar, pill or row of controls whose children sit much closer to one end than the other |
|
|
77
|
+
| `uneven gutters:` | A window or panel in a tile much closer to one side than the other |
|
|
78
|
+
| `avatar alignment:` | A body under an avatar row starting under the avatar instead of at the name's edge |
|
|
79
|
+
| `spills its slot:` | Content running past the width it was laid out in, or closing its row's gap; a ring drawn as its own layer running into a neighbor's words or past its card |
|
|
80
|
+
|
|
81
|
+
A `[stageshow] selection drift` kit warning (a text selection that isn't under the I-beam) fails the gate too.
|
|
82
|
+
|
|
83
|
+
## Other film lines
|
|
84
|
+
|
|
85
|
+
Candidates, each named beside its rule. In `craft.md`: `touching` (text within 5px of a box) and `tight lines` (bars closer than the text they stand for), `lopsided`, `uneven`, `near-tangent`, `half-pixel glyph`, `squeezed`. In `motion.md`: `covers`, `dashed edge resizes`, `handoff shift`, `settle snap`, `fly size`, `hard edge`, `appears, then moves`, `near-empty frames`, `lands on a transform`, `steps in its box`. Defined only here:
|
|
86
|
+
|
|
87
|
+
- `clipped:` is a mark sliced by a container edge inside the stage; fix it, or mark the container `data-crop` only if the crop is deliberate.
|
|
88
|
+
- `unclipped:` means the page decides the crop: give the stage `overflow: hidden`. `double corner` means two rounded clips share an edge with different radii: give one the corner.
|
|
89
|
+
- `appears with no entrance` and `vanishes with no exit` can be missed in a sampling gap; film each appear and disappear at 50ms. Instant typing feedback may be intentional: `data-typing` or `data-snap` on the exact changing node, never a whole field or subtree.
|
|
90
|
+
- `shrunk, not laid out for the phone: drawn at 0.72` means the type will read small at that width: give it a `compact`. `grown past the design size` means it reads large; `small text: X renders at Npx` is text under 10px, checked at widths under 600.
|
|
91
|
+
- A pen tip intentionally leading a draw carries `data-lead`.
|
|
92
|
+
|
|
93
|
+
## What to watch
|
|
94
|
+
|
|
95
|
+
- **Framing first.** Film the still and clear every `framing:` and `cut by the crop:` line before motion work; after moving anything, re-shoot the whole loop.
|
|
96
|
+
- **Every frame, at the real width,** including the figure in view before it has loaded.
|
|
97
|
+
- **Measure, don't eyeball.** Compare computed styles across the page (one shadow, plate, radius set); sample a morph every animation frame, not from a sheet.
|
|
98
|
+
- **The loop, end to end.** Film one full loop plus the start of the next; investigate every `loop seam` warning.
|
|
99
|
+
- **Text and glyphs.** Inspect pixels at `--slow 4` after a move; a compositing layer is a possible fix, not proof the pixels stayed still. Nothing spills out of its box on any frame.
|
|
100
|
+
- **The whole drag,** hover to settle at speed, then stepped: the surface never lifts before the press; track the hand's hotspot through every transform. A temporary zero-size child at the grip point makes the browser project every transform (subtract the parent border); a hand-written matrix can miss separate `translate`, `rotate` or `scale`.
|
|
101
|
+
- **Overlays land.** Highlights, selections and markers sit on the thing they describe at every scale; check a drag box against the items it claims.
|
|
102
|
+
- **Crops explain themselves.** Every edge where screen meets stage fades, bleeds with intent, or is a real window edge.
|
|
103
|
+
- **Edges and corners.** Zoom into hover fills and selected rows: rounded corners intact under a parent's `overflow: hidden`.
|
|
104
|
+
- **The narrowest shipping host.** Film the whole loop at 390 and at the brief's own width when it names one, gutters included, read as closely as the wide pass.
|
|
105
|
+
- **Every look shipped,** filmed separately.
|
|
106
|
+
- **Check the host.** The demo works in the real page at every shipping width (plate, ground, padding, crop). Page backgrounds stay in the host; a component brings no full-page wrapper.
|
|
107
|
+
- **Reduced motion.** `--reduced` shows the poster, still and complete; overlays from `rect()` sit right in it; toggle the preference during playback and back. Drop presentation waits; keep task timing and reading time.
|
|
108
|
+
- **Live pacing.** The virtual clock proves geometry, not frame rate: log rAF timestamps against the transform on the real page; repeated poses then a jump mean a clock bug. Pause, offscreen, hidden tab and finished `once` scenes stop their work; resume and replay never skip a beat or replay an accumulation. Say which browser and device you checked.
|
|
109
|
+
- **Typecheck.** Run the host's typecheck (`npm run typecheck` from the skill folder); report unrelated failures separately, never filter them into a pass.
|
|
110
|
+
- **Blueprint grid.** Lines sit at `--ss-grid-x` and `--ss-grid-y`; set them on the Stage so a window's edge lands on a grid line.
|
|
111
|
+
- **What the tools can't sign off.** A contact sheet misses a one-frame flash; a scan does not know whether a morph, a story or a gesture is right. Watch playback at speed, slowed transitions, loop plus next start, an interruption, reduced motion, a return from offscreen; again after the final edit. The playground isolates each example in an iframe; Pause and Step advance one clock; Phone changes width but not touch, so check touch on a device or with input emulation.
|
|
112
|
+
|
|
113
|
+
Then put your sheet beside the closest gold's: is this instantly a real product, quiet, with one clear story? Iterate until yes.
|
|
114
|
+
|
|
115
|
+
## The last pass
|
|
116
|
+
|
|
117
|
+
`verify.md` from frames; `--gate` passing on the wide loop, the phone loop and `--states`; a fresh-eye review (`review.md`) returning nothing; `REHEARSAL.md` written beside the component. It lists the widths, looks, interactions and stages captured and the cases not. An empty, late or gapped capture is inconclusive, not a pass.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Review
|
|
2
|
+
|
|
3
|
+
The brief for a fresh-eye review after rehearsal. Give the reviewer this file, `verify.md`, the `examples/` folder, the scene's URL and the frames the builder filmed, with a one-line brief that names the gold and attaches its still beside the scene's. Nothing else: not the builder's plan, not its reasons, never its REHEARSAL.md.
|
|
4
|
+
|
|
5
|
+
Your first question, before the checklist: does this composition answer this product and this page, or could it be any product in its category? A layout the brief did not shape (a window pinned with even margins whatever the product, the same phone framing every phone brief gets) is a finding, ranked with framing, even when every check passes. From the two stills, judge whether the scene gives its focal content as much of the frame as the gold does.
|
|
6
|
+
|
|
7
|
+
Start from the brief's own words. If it says "white page", a tinted plate behind the device is the first thing on your list; if it names a size, a look or a page color, hold the scene to it before anything else.
|
|
8
|
+
|
|
9
|
+
## The reviewer's brief
|
|
10
|
+
|
|
11
|
+
You are reviewing a faux product UI scene someone else built. You have the frames, the URL, `references/verify.md` and the gold examples in `examples/`. You have not seen the brief's intent beyond the one-line brief, and you do not need it: you are judging the picture.
|
|
12
|
+
|
|
13
|
+
Look at the frames the way the most exacting designer you know would, the one who screenshots the single wrong thing and sends it back with "what is this?". Then answer every item in `verify.md` from a frame, not from the code. If a frame you need does not exist (a beat at 40ms, a 4x zoom of a glyph, the phone width, `--states`), film it with `scripts/film.mjs` yourself before answering; a predicted failure is not a finding, and neither is a predicted pass.
|
|
14
|
+
|
|
15
|
+
Put the scene beside the gold example it is closest to and say the one difference.
|
|
16
|
+
|
|
17
|
+
Return a ranked list, framing first, then hierarchy and density, then motion, then polish. Each item: what you would screenshot, which frame shows it, and what the fix is in one line. Say what you could not check. If there is nothing, say "nothing" and list the frames you looked at.
|
|
18
|
+
|
|
19
|
+
Rules of the review:
|
|
20
|
+
- The bar for a finding is a frame. Quote the frame file.
|
|
21
|
+
- Rank by how much of the scene it spoils, not by how easy it is to fix.
|
|
22
|
+
- A line the builder judged intentional is not settled: look at the frame and judge it again.
|
|
23
|
+
- Do not fix anything. Do not soften a finding because the build is nearly there.
|
|
24
|
+
- A whole window floating with even margins, rows with more air between them than they are tall, a pane whose content stops well above its bottom, a list of gray bars where the eye lands, a phone drawn small: these are findings even when no film line names them.
|
|
25
|
+
|
|
26
|
+
Platform conventions are not placeholders. An iPhone messaging thread in Messages' blue with the plus and mic in its composer, a macOS window with its lights, an iOS banner at its true size: these are the product's chrome and stay. Send back an invented accent or a redrawn system control; never send back the convention.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Teaching pairs
|
|
2
|
+
|
|
3
|
+
`teaching/` holds bad/good pairs: the same scene twice, with one thing wrong on the left. Open **Comparisons** in the playground (`?example=contrasts`) and pick a principle; only that pair mounts, so its controls stay nearby and the others don't keep running. Use **Replay pair** to restart both halves together.
|
|
4
|
+
|
|
5
|
+
Use a pair to diagnose a problem in your own demo: find the one that looks like your bug, then read why the good half works. The bad halves are never starting points. Watch at normal speed first, then pause and step through the transition. On a narrow screen the halves stack rather than shrink. Under reduced motion the motion pairs show matching endpoints, because the difference is in the transition, not the end state.
|
|
6
|
+
|
|
7
|
+
## Motion
|
|
8
|
+
|
|
9
|
+
Both halves share one stage and one timeline, with a duplicated stationary pointer so each gets exactly the same input at the same moment. That pointer is a teaching device; a product demo uses the Stage's real cursor and `a.click`. The first four pairs use a 180ms press and hold the result for 1.8s before returning. The longer ones play once and hold their ending.
|
|
10
|
+
|
|
11
|
+
| Failure | Look at | Correction |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Instant label replacement | "Open preview" becoming "Back to editor", then returning | A stable button and a clipped label slot; the old words leave as the new words enter (`Roll`). |
|
|
14
|
+
| Result without press feedback | "Save changes" under the pointer, before "Saved" appears | A small press and surface response before the result. In a demo, change state after `a.click` completes. |
|
|
15
|
+
| New row shoves its neighbors | "Standard shipping" below the delivery note | Animate the note's containing track so the line moves with its height. Reserving the space is the other option. |
|
|
16
|
+
| Object loses its identity | The plus becoming a close icon, then returning | Keep the same strokes and rotate them; replacing the icon skips the relationship between the shapes. |
|
|
17
|
+
| Exit is skipped | "Link copied" when its close control is pressed | Keep the message mounted for its 320ms exit, then remove it. |
|
|
18
|
+
| Interrupted motion restarts | The highlight heading to Month, redirected to Week after 200ms | Keep the highlight mounted and retarget from where it is; re-keying its entrance restarts it from Day. |
|
|
19
|
+
| Landing jumps at handoff | The 24px avatar when the flyer becomes the assignee | Measure the avatar itself with `rect()`, not its padded wrapper. The bad flight takes the wrapper's origin and lands four pixels off. |
|
|
20
|
+
| Loop erases accumulated work | Three files clearing after they have been added | Give the reset a visible cause: the good side presses Clear. |
|
|
21
|
+
| Added content shifts its neighbor | A status icon appearing beside a label | Open the icon's width and gap together while the label travels; close both on removal. |
|
|
22
|
+
| A list jumps around a new row | Existing rows during insertion and removal | Animate their space as the new row enters whole; let it exit before its space closes. |
|
|
23
|
+
| A changing action shoves another | The secondary action beside a growing label | Carry the neighbor with the changing width, not in one frame at the end. |
|
|
24
|
+
| Surface and content resize separately | A popup opening its details, returning, reversing | Surface and content on one coordinated geometry, with text that never stretches. |
|
|
25
|
+
| Drag starts from the wrong point | The file just after an off-center grab | Keep the pointer's offset inside the object through travel and release. |
|
|
26
|
+
| Spinner begins after appearing | The first saving-state frames | Start rotation before the spinner is visible; keep it turning through the fade out. |
|
|
27
|
+
| Text shifts as it settles | The changed label and the word "Optional" as the old label hides | Move the label by transform inside a stable grid. Margin travel on overlapping inline-grid items moves the shared baseline even while hidden. |
|
|
28
|
+
| A label hits a hard edge | Letters crossing the top and bottom of a label slot | Soften the moving boundary locally; resting text stays sharp and wholly inside the control. |
|
|
29
|
+
| Scrolling reveals a harsh crop | Rows crossing the viewport edge | Start with whole rows; after scrolling, fade only the edges hiding content, and clear the fade at the end. |
|
|
30
|
+
| Dependent changes start together | Currency, price, payment method and address in one checkout | Offset the related starts while their movements overlap. Same layout, curve and masks on both sides; see `choreography.md`. |
|
|
31
|
+
|
|
32
|
+
The neighbor pairs live in `teaching/relationships.tsx`, the drag and spinner pairs in `teaching/continuity.tsx`, the label and scroll edges in `teaching/edges.tsx`, and the baseline bug in `teaching/text-settle.tsx`. They are small standalone patterns, not imports from a library.
|
|
33
|
+
|
|
34
|
+
## Motion between neighbors
|
|
35
|
+
|
|
36
|
+
An insertion changes two things: the arriving object and the space of what was already there. Animate both. Fading an icon in while its label jumps still breaks the relationship. The rules are in `motion.md` (Changing text and values; Things that appear, travel and leave; The cursor): a label's icon opens its width and gap together, a list's height carries the rows below (`Collapse reveal="drop"`), the cursor stays where the press happened, a resizing surface moves size, position and content as one transition. For a changing control, a measured `Roll variant="fade"` resizes its label; keep the actions beside it in normal flex flow so they follow, because a transform that only moves the new label can't move its neighbor.
|
|
37
|
+
|
|
38
|
+
Watch the unchanged neighbor through an insertion and a removal, then the popup's reversal before its first move finishes. Matching endpoint screenshots prove nothing about the frames between.
|
|
39
|
+
|
|
40
|
+
## UI details (stills)
|
|
41
|
+
|
|
42
|
+
Thirteen still pairs in `teaching/composition.tsx`, same content on both sides, so the difference is framing and structure, not a prettier story. Each pair's rule lives in `craft.md` or `framing.md`; the pair shows it.
|
|
43
|
+
|
|
44
|
+
- **Framing:** clear gutters around the useful part; a window may continue past an edge, a cropped title or a status covering a row hides the story (`framing.md`, rules 2, 4 and 10).
|
|
45
|
+
- **Anatomy:** headings, values, metadata and actions read as different roles; related rows share columns (`craft.md`, Spacing and alignment).
|
|
46
|
+
- **Emphasis:** nested borders, shadows and accents make every subpart compete; quieten the supporting details before adding another container (`craft.md`, Restraint; Color and looks).
|
|
47
|
+
- **Compact:** reflow before shrinking; a desktop screen scaled into a small slot passes an overflow check while its text becomes unreadable (`framing.md`, Small formats and the page).
|
|
48
|
+
- **Edges:** near-tangents; check corners too (`craft.md`, Spacing and alignment).
|
|
49
|
+
- **Nested spacing:** carry the inset round the bottom (`craft.md`, Spacing and alignment).
|
|
50
|
+
- **Control alignment:** label and icons on one balanced row; judge the visible glyph, not its SVG box (`craft.md`, Spacing and alignment).
|
|
51
|
+
- **Density:** whitespace groups information (`craft.md`, Spacing and alignment).
|
|
52
|
+
- **Contrast:** quiet is not faint (`craft.md`, Color and looks).
|
|
53
|
+
- **Icons:** one construction, one stroke, one optical size (`craft.md`, Icons and logos).
|
|
54
|
+
- **Decoration:** a gradient or glow serves the story or goes (`craft.md`, Color and looks).
|
|
55
|
+
- **Task anatomy:** chrome for the task (`craft.md`, Chrome and devices).
|
|
56
|
+
- **Unread gutter:** an unread dot never pushes its row in (`kit.md`, Row).
|
|
57
|
+
|
|
58
|
+
## Whole scenes (stills)
|
|
59
|
+
|
|
60
|
+
Nine larger pairs in `teaching/scenes.tsx`, each 540 wide with a compact composition down to 280. The ground, the hero and the supporting pieces are judged as one picture.
|
|
61
|
+
|
|
62
|
+
- **Dashboard and phone:** each device gets a readable role; the phone never covers the amount or state it explains (`craft.md`, Chrome and devices). Compact stacks them and crops the phone's unused lower screen.
|
|
63
|
+
- **Window and satellite:** the result sits in the hero's quiet margin; a product's own popup is not a satellite (`framing.md`, rules 16 and 19).
|
|
64
|
+
- **Several windows:** choose the active step; supporting windows keep their titles and context while quieter contrast and shadow push them back (`craft.md`, Chrome and devices). Three equally loud surfaces compete even when all of them fit.
|
|
65
|
+
- **Colored grounds:** the background frames the product. Choose surface, text and accent against that ground; tinting everything alike removes the separation (`backgrounds.md`).
|
|
66
|
+
- **Dark and light materials:** a light document over a dark workspace stays a readable light document (`craft.md`, Color and looks).
|
|
67
|
+
- **Action and payoff:** a whole application becomes an unreadable thumbnail. Crop to the useful content at reading size and let chrome run off; the title, action and result stay whole (`framing.md`, Small formats and the page).
|
|
68
|
+
- **Result weight:** ask what the eye lands on first. A new file that is one thin row in a long list loses to the list; fewer, larger rows make it the heaviest thing in the frame (`examples/upload`).
|
|
69
|
+
- **Crop filler, never the story:** move the window or narrow the column until the last value that matters is whole (`framing.md`, rule 4).
|
|
70
|
+
- **One tile leads:** four equal tiles of heading and bars read as a template (`bento.md`, rule 2).
|
|
71
|
+
|
|
72
|
+
## Style (stills)
|
|
73
|
+
|
|
74
|
+
The same deploys card in every pair; the good side never changes, and each bad side has one fault. `?example=contrasts`, Style group.
|
|
75
|
+
|
|
76
|
+
- **Purple slop:** a violet-to-pink gradient ground, gradient text and a tinted card read as generated. The product's own neutrals, one accent on the thing that matters (`craft.md`, Color and looks).
|
|
77
|
+
- **Tiny text:** 9 to 10px type shrunk to fit more in reads as a wireframe. 13 to 14px names, 11 to 12px metadata, fewer rows.
|
|
78
|
+
- **Over-detailed:** a branch, hash, author, duration and badge on every row makes every row the subject. Real detail on the one row the story is about.
|
|
79
|
+
- **Glow:** colored light on the card, button or status is a neon template. One soft neutral shadow.
|
|
80
|
+
- **Capitals:** tracked caps on headings, labels and buttons. Sentence case, unless the product itself capitalizes.
|
|
81
|
+
- **Invented icons:** glyphs drawn for the demo, in rainbow tiles, filled beside outlined. The product's own set or one pack, one stroke, color only where it carries status; draw an icon only when no pack has it (`craft.md`, Icons and logos).
|
|
82
|
+
- **AI shorthand:** sparkles, wands and gradient "AI" chips say nothing about the feature. The product's own mark, or a plain label that says what happens (`craft.md`, Icons and logos).
|
|
83
|
+
- **Onion skin:** an icon in a translucent ink paints darker wherever its strokes cross or join. One opaque color; a lighter opaque gray for a quieter icon.
|
|
84
|
+
|
|
85
|
+
## Making a comparison
|
|
86
|
+
|
|
87
|
+
Change one thing. Same content, layout, endpoints and input timing; only the behavior being taught differs. No extra cards, status marks or decorative backgrounds competing for attention. Say the exact difference under each side, give the pair a replay, and make it readable at normal speed. If the lesson only shows at slow speed, the pair needs another go. How a bad example is marked on a page is in `craft.md`, A page of demos.
|
|
88
|
+
|
|
89
|
+
## What a pair can't show
|
|
90
|
+
|
|
91
|
+
Some faults need the real demo, not a contrived pair:
|
|
92
|
+
|
|
93
|
+
- **Other text shifts:** the baseline pair reproduces one cause; the others are in `motion.md`, Changing text and values.
|
|
94
|
+
- **Story continuity:** does the reset make sense for what the viewer just did? Compare `examples/story/`.
|
|
95
|
+
- **Handoff timing:** does the flying object vanish before its destination takes over? Compare `examples/subscriptions/` and inspect the frame where ownership changes.
|
|
96
|
+
- **Desktop at phone width:** can you read the important labels? A recognizable silhouette is not readable UI.
|
|
97
|
+
- **Motion without hierarchy:** `motion.md`, Story.
|
|
98
|
+
|
|
99
|
+
A checker can flag a jump and still miss a wrong path, an implausible gesture, a bad story or an unreadable crop. Say what the tools covered and what you watched yourself.
|
|
100
|
+
|
|
101
|
+
## Details
|
|
102
|
+
|
|
103
|
+
Six small pairs in `teaching/details.tsx`, `?example=contrasts`, Details group. Four move, two are stills; the scene is the same on both sides but for the one choice.
|
|
104
|
+
|
|
105
|
+
- **Throw a swipe at the finger's speed:** released, the row carries on at the speed it was moving and the gap closes in one ease. A pause at the hand-over, an ease-in from rest or a gap that snaps shut reads as harsh (`examples/swipe`).
|
|
106
|
+
- **Draw a reaction as the app does:** the real emoji in a small pill on the bubble's lower corner, ringed in the ground, scaling in from that corner. Never a drawn glyph in a disc over the words.
|
|
107
|
+
- **Draw a chart on from its start:** the line draws left to right, the area follows under it, the end dot lands when the line reaches it. Faded in whole, the trend is never seen (`examples/chart-scrub` for hover).
|
|
108
|
+
- **Balance a top bar:** one control and an empty side reads as unfinished. Put what the product puts there, or drop the bar.
|
|
109
|
+
- **Choose copy that fits:** unless the brief fixes them, pick names, emails and values whose length suits the layout: no truncated chips, wrapped names or ragged labels.
|
|
110
|
+
- **Pin a changing label to its icon:** in a fixed-width control the label sits against its chevron and grows away from it, so the gap never changes.
|
|
111
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Verify
|
|
2
|
+
|
|
3
|
+
The last pass. Every answer comes from a frame you looked at, never from the code. Fix the largest visible failure first, re-shoot, return to the top, iterate until every answer is yes. The rules are in `framing.md`, `craft.md` and `motion.md`.
|
|
4
|
+
|
|
5
|
+
## Gate
|
|
6
|
+
|
|
7
|
+
- `film.mjs <url> --gate` on the wide loop ends `rehearsal passed`? (For a still, `--still --gate`.)
|
|
8
|
+
- The same at `--width 390`, and at the brief's own width when it names one?
|
|
9
|
+
- `--states --gate`: one sheet of the opening, every mark settled and the end, with nothing you would send back?
|
|
10
|
+
|
|
11
|
+
## Framing (first, because nothing else matters if this is wrong)
|
|
12
|
+
|
|
13
|
+
- One gutter, and the window or phone bleeds off at least one edge, or sits whole because the brief wants it?
|
|
14
|
+
- Is anything cut by the crop that has words on it, or that the eye needs whole?
|
|
15
|
+
- Is the ground the page the brief named, no plate behind the device on a white or dark page?
|
|
16
|
+
- Is any corner of the stage empty for no reason?
|
|
17
|
+
- Panes full: no void under a list (`empty pane:`), rows at their own pitch (`loose list:`)?
|
|
18
|
+
- Phone: nothing under the island, a sheet below the status bar, a cropped phone losing status bar and nav together?
|
|
19
|
+
|
|
20
|
+
## Hierarchy and density
|
|
21
|
+
|
|
22
|
+
- The closest gold's still beside yours: say the one difference. Is yours the sparser, flatter or smaller one, and why?
|
|
23
|
+
- Still: is the subject real words and values, with bars only beside it and on what the crop cuts?
|
|
24
|
+
- Label and value both words or both bars?
|
|
25
|
+
- Named avatars colored, gray discs only for filler?
|
|
26
|
+
- At realistic fidelity, does a list of six or more rows have at most as many placeholders as real rows?
|
|
27
|
+
- The heaviest mark sits on what the story is about?
|
|
28
|
+
- A date range: air between weeks, fading where the range continues, capped only on real start and end days?
|
|
29
|
+
- Bento: every tile a specific moment with its words on it; no tile that is a title over bars; stat and unit on one line?
|
|
30
|
+
|
|
31
|
+
## Motion (animated scenes)
|
|
32
|
+
|
|
33
|
+
- Each beat filmed at 40 to 80ms with `--at` and looked at: presses, morphs, hand-offs, exits, the seam?
|
|
34
|
+
- Nothing appears without an entrance or leaves without an exit, except `Bubble` and `Fly` with a visible hand-off?
|
|
35
|
+
- A swipe lands, presses, flicks a third of the screen, lifts still moving, and the page carries on as one motion?
|
|
36
|
+
- A reaction grows from the bubble's corner with the room opening on the same clock?
|
|
37
|
+
- A terminal's marks are glyphs in the grid, each line owning its own, swapped in place?
|
|
38
|
+
- Rolling numbers roll in the right direction and settle once?
|
|
39
|
+
- The loop ends where it began, or resets with a visible cause?
|
|
40
|
+
|
|
41
|
+
## Polish (last)
|
|
42
|
+
|
|
43
|
+
- Zoom every hand-drawn thing at 4x: would a stranger know what it is, and is any stroke clipped by its box?
|
|
44
|
+
- No translucent icon, no onion skin, no hand-drawn mark where the kit has one?
|
|
45
|
+
- Spacing even: words 12px from edges, stacks 4 to 6px of ink apart, dots 6px clear?
|
|
46
|
+
- Type: nothing under 10px on the phone, nothing wrapping that shouldn't?
|
|
47
|
+
|
|
48
|
+
## What you see, what you do
|
|
49
|
+
|
|
50
|
+
| You see | You do |
|
|
51
|
+
|---|---|
|
|
52
|
+
| A void under a list or pane (`empty pane:`) | More product into it until it runs off the crop, or crop the pane; never spread the rows |
|
|
53
|
+
| A one-line row three times taller than its words (`fat row:`) | Padding 12px (8px dense) and more rows; never air inside the row |
|
|
54
|
+
| Rows spaced wider than they are tall (`loose list:`) | Tighten the pitch to the row's padding; add rows |
|
|
55
|
+
| A whole window floating with even margins on a hero | Bleed it off two edges with one gutter, or fill it |
|
|
56
|
+
| Gray bars where the eye lands | Words there; bars beside it and off the crop stay |
|
|
57
|
+
| A label beside a real value drawn as a bar | Both words, or drop the row |
|
|
58
|
+
| A stat's unit on its own line (`unit wrapped:`) | Nowrap the pair, size the number to the tile, or move the unit to the lead |
|
|
59
|
+
| A phone drawn small, or whole, in a narrow host | Crop it: a gutter from one edge, off the other, screen 1:1 |
|
|
60
|
+
| A grabber or sheet under the island | Start the sheet below the status bar |
|
|
61
|
+
| A popover that shifts while open (`anchor drift:`) | Pin it by the edge it opened from; reserve the height |
|
|
62
|
+
| An emoji where an icon belongs (`emoji icon:`) | A drawn glyph from one family; emoji stay in messages and reactions |
|
|
63
|
+
| An icon cut by its box (`clipped glyph:`) | Fit the drawing in its viewBox, or use the kit's glyph |
|
|
64
|
+
| A reaction, dot or mark on the words | Move it to the edge or gutter the kit gives it |
|
|
65
|
+
| A gate line you think is intentional | Look again; if it still looks fine, say so in REHEARSAL.md with the frame; never clear it by hiding the thing |
|
|
66
|
+
| Ten film runs, gate green, frame unchanged | Stop. Fresh eye |
|
|
67
|
+
|
|
68
|
+
## Hand over
|
|
69
|
+
|
|
70
|
+
- `REHEARSAL.md` written beside the component? A template:
|
|
71
|
+
|
|
72
|
+
```md
|
|
73
|
+
# Rehearsal: <demo>
|
|
74
|
+
Gold: <example> (what you kept, what you changed)
|
|
75
|
+
Beats: 1 … 2 … 3 … payoff, loop <n>s
|
|
76
|
+
Captured: widths <wide, 390>, looks, states, reduced motion
|
|
77
|
+
Gate: <the last line of film.mjs --gate on the loop, pasted>
|
|
78
|
+
Film: <each gate line> → <frame> → <fix or why it stands>
|
|
79
|
+
Review: <reviewer's list> → <your response>
|
|
80
|
+
Assumptions:
|
|
81
|
+
Unresolved:
|
|
82
|
+
Not checked:
|
|
83
|
+
```
|
|
84
|
+
- Did you say what you did not watch?
|
package/skill.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sloppy",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Universal anti-slop UI craft engine. Enforces 3-tier severity gates (Floor/Reflex/Finish), wiring guard, multi-width rendering, and design DNA extraction.",
|
|
5
|
+
"entry": "SKILL.md",
|
|
6
|
+
"author": "Pavanspoojary",
|
|
7
|
+
"repository": "https://github.com/Pavanspoojary/slopy",
|
|
8
|
+
"tags": [
|
|
9
|
+
"ui",
|
|
10
|
+
"craft",
|
|
11
|
+
"design-system",
|
|
12
|
+
"anti-slop",
|
|
13
|
+
"mcp",
|
|
14
|
+
"react",
|
|
15
|
+
"stageshow"
|
|
16
|
+
]
|
|
17
|
+
}
|
package/README.md
DELETED