Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"name": "design-skills",
"source": "./plugins/design-skills",
"description": "Skills: apple-design, animate, choreograph, gestures, review-animations, remove-animations, animation-performance, break-ui, prototype (Emil Kowalski) and hallmark (Nutlope) for better-looking web UI. Includes unslop-ui for interface copy and chart cleanup.",
"version": "0.7.0",
"version": "0.7.1",
"category": "skills"
},
{
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ It fits the workflow beside step 10: use it for the video that goes with a relea
| "Make this sheet feel like iOS" | `apple-design`: springs, gestures, interruptible transitions, materials, reduced motion |
| "Animate this dropdown" | `animate`: decides whether it should move, then easing, duration and origin |
| "Stagger this list" / "the hero entrance feels robotic" | `choreograph`: order, overlap and what stays still across the group |
| "Make this card swipe to dismiss" | `gestures`: follows the finger 1:1, velocity-aware release, interruptible; Vaul for drawers |
| "Make this card swipe to dismiss" | `gestures`: follows the finger 1:1, velocity-aware release, interruptible; Base UI Drawer for drawers |
| "The app feels slow, too much animation" | `remove-animations`: deletes motion the interface doesn't need. Only subtracts |
| "Review the animations here" | `review-animations`: a strict review of the motion code |
| "This animation is janky" | `animation-performance`: finds what costs the frame (layout properties, React re-renders, blur, `will-change`) and swaps it for a cheaper path |
Expand Down
2 changes: 1 addition & 1 deletion plugins/design-skills/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "design-skills",
"version": "0.7.0",
"version": "0.7.1",
"description": "Design skills we use: apple-design, animate, choreograph, gestures, review-animations, remove-animations, animation-performance, break-ui and prototype (Emil Kowalski) for motion that feels right, drag and swipe, motion review and cleanup, smooth frames, worst-case data and UI variants, and hallmark (Nutlope) against generic AI-looking pages. Includes unslop-ui (Felipe Basurto) for interface copy and chart cleanup.",
"author": {
"name": "lippstack"
Expand Down
20 changes: 10 additions & 10 deletions plugins/design-skills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ Third-party design skills, copied here so they install with the rest of lippstac

| Skill | Source | What it does |
| :- | :- | :- |
| `apple-design` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/apple-design) @ `64eb3de` | Apple's approach to interface design and physical motion, for the web: springs, gestures, sheets, materials, type. |
| `review-animations` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/review-animations) @ `64eb3de` | Reviews motion code against a high bar. Flags by default; approval is earned. |
| `break-ui` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/break-ui) @ `64eb3de` | Feeds a component worst-case data (long names, empty lists, huge numbers, emoji) behind a toggle and reports what broke, with fixes. |
| `prototype` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/prototype) @ `64eb3de` | Builds several genuinely different versions of a UI piece behind a live picker so you choose one. Only runs when called by name. |
| `animation-performance` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/animation-performance) @ `64eb3de` | Finds why an animation drops frames and fixes it: composite-only properties, CSS vs WAAPI vs rAF, Framer Motion's accelerated path, React re-renders per frame, `will-change`. |
| `animate` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/animate) @ `64eb3de` | Builds one animation in the order that decides whether it feels right: should it move at all, purpose, easing, duration, origin. The other motion skills hand easing and timing to it. |
| `choreograph` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/choreograph) @ `64eb3de` | Coordinates several elements moving together: order, overlap, stagger and what stays still, so a group reads as one motion. |
| `gestures` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/gestures) @ `64eb3de` | Drag, swipe and sheet interactions that follow the finger 1:1 and can be caught mid-animation. Points to Vaul for drawers. |
| `remove-animations` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/remove-animations) @ `64eb3de` | Finds motion the interface doesn't need (keyboard actions, high-frequency surfaces, decoration) and deletes it. Only subtracts. |
| `apple-design` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/apple-design) @ `cdc447a` | Apple's approach to interface design and physical motion, for the web: springs, gestures, sheets, materials, type. |
| `review-animations` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/review-animations) @ `cdc447a` | Reviews motion code against a high bar. Flags by default; approval is earned. |
| `break-ui` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/break-ui) @ `cdc447a` | Feeds a component worst-case data (long names, empty lists, huge numbers, emoji) behind a toggle and reports what broke, with fixes. |
| `prototype` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/prototype) @ `cdc447a` | Builds several genuinely different versions of a UI piece behind a live picker so you choose one. Only runs when called by name. |
| `animation-performance` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/animation-performance) @ `cdc447a` | Finds why an animation drops frames and fixes it: composite-only properties, CSS vs WAAPI vs rAF, Framer Motion's accelerated path, React re-renders per frame, `will-change`. |
| `animate` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/animate) @ `cdc447a` | Builds one animation in the order that decides whether it feels right: should it move at all, purpose, easing, duration, origin. The other motion skills hand easing and timing to it. |
| `choreograph` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/choreograph) @ `cdc447a` | Coordinates several elements moving together: order, overlap, stagger and what stays still, so a group reads as one motion. |
| `gestures` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/gestures) @ `cdc447a` | Drag, swipe and sheet interactions that follow the finger 1:1 and can be caught mid-animation. Defaults to Base UI Drawer for drawers. |
| `remove-animations` | [emilkowalski/skills](https://github.com/emilkowalski/skills/tree/main/skills/remove-animations) @ `cdc447a` | Finds motion the interface doesn't need (keyboard actions, high-frequency surfaces, decoration) and deletes it. Only subtracts. |
| `hallmark` | [nutlope/hallmark](https://github.com/nutlope/hallmark) @ `04977e1` (2.0.0) | Pushes generated pages away from the generic AI look: a fixed floor of rules, a dealt theme, and a lint script (`sloplint`, needs Node) that must pass before it hands back. Builds from the real product when it can capture it. Verbs `audit` and `redesign`. |
| `unslop-ui` | [felipebasurto/unslop-ui](https://github.com/felipebasurto/unslop-ui) @ `bf70916` | Removes generic AI patterns from interface copy and charts; optional surface cleanup. Runs only when requested. |
| `unslop-ui` | [felipebasurto/unslop-ui](https://github.com/felipebasurto/unslop-ui) @ `78cf65d` | Removes generic AI patterns from interface copy and charts; optional surface cleanup. Runs only when requested. |

## Install

Expand Down
17 changes: 9 additions & 8 deletions plugins/design-skills/skills/gestures/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: gestures
description: Build drag, swipe, and sheet interactions that track the finger 1:1 and stay interruptible. Use when building or fixing anything the user drags, swipes, flings, holds, or dismisses with a gesture — drawers, sheets, swipe-to-dismiss toasts and cards, drag-to-reorder, pull-to-refresh, hold-to-confirm — or when a gesture feels laggy, disconnected from the finger, jumps on release, or can't be caught mid-animation. Triggers on — gesture, drag, swipe, fling, sheet, snap points, Vaul, Motion drag props, rubber-band, pull to refresh, hold to delete, touch-action, "doesn't follow my finger", "jumps when I let go", "can't grab it mid-animation".
description: Build drag, swipe, and sheet interactions that track the finger 1:1 and stay interruptible. Use when building or fixing anything the user drags, swipes, flings, holds, or dismisses with a gesture — drawers, sheets, swipe-to-dismiss toasts and cards, drag-to-reorder, pull-to-refresh, hold-to-confirm — or when a gesture feels laggy, disconnected from the finger, jumps on release, or can't be caught mid-animation. Triggers on — gesture, drag, swipe, fling, sheet, snap points, Base UI Drawer, Vaul, Motion drag props, rubber-band, pull to refresh, hold to delete, touch-action, "doesn't follow my finger", "jumps when I let go", "can't grab it mid-animation".
---

# Gesture-Driven UI
Expand All @@ -9,7 +9,7 @@ How to build gestures that feel physical. A gesture is direct manipulation: whil

## First decision: build it, or use a solution that exists?

Doing a drawer gesture *right* means momentum-based dragging, overlay opacity matched to drag progress, velocity-aware dismissal, focus trapping, and Escape-to-close. That is weeks of edge cases, not an afternoon. **For a bottom sheet / drawer, default to [Vaul](https://vaul.emilkowal.ski/)** — it exists precisely because this is hard to hand-roll. Build the gesture yourself only when no library covers the interaction (custom swipe cards, bespoke drag interactions). When unsure, use `pick-ui-library` if installed, or evaluate accessible libraries yourself.
Doing a drawer gesture *right* means momentum-based dragging, overlay opacity matched to drag progress, velocity-aware dismissal, focus trapping, and Escape-to-close. That is weeks of edge cases, not an afternoon. **For a bottom sheet / drawer, default to [Base UI's Drawer](https://base-ui.com/react/components/drawer)** (`@base-ui/react/drawer`): swipe-to-dismiss, snap points, and focus trapping, because this is hard to hand-roll. If the project already uses another drawer library, such as Vaul, keep it. Build the gesture yourself only when no library covers the interaction (custom swipe cards, bespoke drag interactions). When unsure, use `pick-ui-library` if installed, or evaluate accessible libraries yourself.

## The two phases of every gesture

Expand All @@ -21,7 +21,7 @@ Is the pointer currently down?
│ No easing. No duration. No spring. The element IS the finger.
└── No → RELEASE phase: physics finishes the motion.
A spring seeded with the release velocity, or a CSS transition
when the component is CSS-only (Vaul, hold-to-confirm). Never a keyframe.
when the component is CSS-only (Base UI Drawer, hold-to-confirm). Never a keyframe.
```

### Track phase rules
Expand Down Expand Up @@ -73,18 +73,19 @@ const y = useMotionValue(0);

`dragMomentum` is on by default — right for a flung card, wrong for a simple reposition; disable it when the element should stop where the finger stops. The example above disables it because `onDragEnd` hands the release to its own spring. `dragConstraints` takes a ref or bounds object.

## Sheets without springs: the Vaul curve
## Sheets without springs: the iOS sheet curve

Vaul mimics the iOS sheet with pure CSS to stay small: `cubic-bezier(0.32, 0.72, 0, 1)` over **500ms**. The curve is extremely steep at the start — that's what lets a 500ms duration still feel snappy while landing with a spring-like gentle settle. Two rules from it:
Base UI's Drawer is unstyled, so its motion is yours to write. Use the curve Vaul uses to mimic the iOS sheet with pure CSS: `cubic-bezier(0.32, 0.72, 0, 1)` over **500ms**. The curve is extremely steep at the start — that's what lets a 500ms duration still feel snappy while landing with a spring-like gentle settle. Three rules for it:

- A **small floating drawer** (not touching the screen edge) should override to ~200ms — the 500ms iOS timing only reads right on a full-width edge-attached sheet:
```css
[data-vaul-drawer] { transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
[data-vaul-overlay] { transition: opacity 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
.DrawerPopup { transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
.DrawerBackdrop { transition: opacity 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
```
- **The component must feel like a single entity.** If the drawer opens in 200ms, its height changes and content crossfades must live in the same timing family — one slow sub-animation makes the whole thing feel broken.
- **No transition while the finger is down.** The popup has `data-swiping` during a drag, so turn the transition off there (`.DrawerPopup[data-swiping] { transition: none; }`), or the drawer trails the finger.

Mark interactive children with `data-vaul-no-drag` so pressing a button inside the drawer doesn't start a drag.
Mark interactive children with `data-base-ui-swipe-ignore` so pressing a button inside the drawer doesn't start a drag. On a widget that scrolls along one axis, like a horizontal row of chips, set it to `x` so vertical drags still move the drawer. With Vaul, the attribute is `data-vaul-no-drag`.

## Spatial consistency

Expand Down
8 changes: 4 additions & 4 deletions plugins/design-skills/skills/unslop-ui/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Strip AI-generated UI copy, decorative chrome (eyebrows, 01/02/03
disable-model-invocation: true
license: MIT
metadata:
version: "1.0.1"
version: "1.0.2"
---

# Unslop UI
Expand Down Expand Up @@ -68,7 +68,7 @@ The test for real state, in U6, U9 and U10: the element renders from a condition

## Writing rules

Apply these to every sentence you keep or write. Cite them as "unslop 13", so they don't read as U rules. They come from the unslop skill in [pstack](https://github.com/cursor/plugins/tree/main/pstack) by Lauren Tan (MIT), and keep its numbers, so gaps are expected. For copy in another language, apply their intent and skip what only makes sense in English.
Apply these to every sentence you keep or write, citing them as "unslop 13" (adapted from Lauren Tan's unslop in [pstack](https://github.com/cursor/plugins/tree/main/pstack), MIT; gaps in numbering are expected). In other languages, apply the intent and skip English-only rules.

- **3. Superficial -ing phrases.** "showing strong momentum", "ensuring a smooth experience". Delete the phrase.
- **5. Vague attributions.** "Experts believe", "Loved by industry leaders". Name a real source or cut (specific unverified numbers or named quotes still become tasks).
Expand Down Expand Up @@ -130,8 +130,8 @@ For before/after pairs, read [references/examples.md](references/examples.md) wh

If you can render the screen, look at it: a hole where an element was, or a row with one item left, is a leftover to fix.
5. **Report**, in the language the owner used to ask you, quoting screen copy as it is:
- **When unslop-ui is the whole task:** open with the verdict (plus `Off by taste file: ...` if any), then the table below (omit the table on `None` or `--plan`), then up to three lists, and nothing else. `Kept` is how many you left on purpose.
- **When running as a final pass after building or restyling a screen:** apply the rules as part of the edit and add only a short note on what you cleaned and any tasks left for the owner. Skip the note if nothing needed cleaning and there are no tasks.
- **Standalone run:** open with the verdict (plus `Off by taste file: ...` if any), then the table below (omit on `None` or `--plan`), then up to three lists, nothing else. `Kept` counts items left on purpose.
- **Final pass after building/restyling:** apply the rules in the edit and add a short note on what you cleaned and any tasks. Omit if nothing changed and there are no tasks.

| Rule | Found | Fixed | Kept |
|---|---|---|---|
Expand Down
7 changes: 7 additions & 0 deletions plugins/design-skills/skills/unslop-ui/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
interface:
display_name: "Unslop UI"
short_description: "Strip AI-generated UI copy, decorative chrome and chart clutter"
default_prompt: "Run $unslop-ui on the changed UI files to cut AI copy and decorative chrome."

policy:
allow_implicit_invocation: false
6 changes: 6 additions & 0 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ for (const f of skills) {
const msg = `${where}: disable-model-invocation is Claude-only; say in the description that it runs only when explicitly asked`
;(where.startsWith(VENDORED) ? warnings : errors).push(msg)
}
if (fm['disable-model-invocation'] === 'true') {
const openaiYaml = join(dirname(f), 'agents/openai.yaml')
if (existsSync(openaiYaml) && /^\s*allow_implicit_invocation:\s*true\b/m.test(readFileSync(openaiYaml, 'utf8'))) {
errors.push(`${rel(openaiYaml)}: allow_implicit_invocation must be false when SKILL.md sets disable-model-invocation: true`)
}
}
}

// 4. Every local plugin is installed by both setup scripts and the README's manual steps.
Expand Down
8 changes: 8 additions & 0 deletions scripts/sync-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ for (const name of ['prototype', 'review-animations', 'unslop-ui']) {
});
if (!/^description: .*only runs when explicitly/im.test(text)) throw new Error(`Missing explicit invocation description in ${file}`);
fs.writeFileSync(file, text);

const openaiFile = path.join(dest, name, 'agents', 'openai.yaml');
if (fs.existsSync(openaiFile)) {
let yaml = fs.readFileSync(openaiFile, 'utf8');
yaml = yaml.replace(/^(\s*allow_implicit_invocation:\s*)true\b/m, '$1false');
if (!/^\s*allow_implicit_invocation:\s*false\b/m.test(yaml)) throw new Error(`Missing allow_implicit_invocation: false in ${openaiFile}`);
fs.writeFileSync(openaiFile, yaml);
}
}
for (const name of ['animate', 'gestures']) {
const file = path.join(dest, name, 'SKILL.md');
Expand Down
Loading