@skilly-hand/skilly-hand 0.26.0 → 0.26.2
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/CHANGELOG.md +33 -0
- package/README.md +2 -0
- package/catalog/README.md +3 -1
- package/catalog/catalog-index.json +2 -0
- package/catalog/skills/frontend-design/SKILL.md +22 -11
- package/catalog/skills/frontend-design/agents/critique.md +190 -0
- package/catalog/skills/frontend-design/agents/motion-designer.md +35 -1
- package/catalog/skills/frontend-design/manifest.json +17 -8
- package/catalog/skills/gsap-animation/SKILL.md +149 -0
- package/catalog/skills/gsap-animation/manifest.json +30 -0
- package/catalog/skills/gsap-animation/references/core-patterns.md +61 -0
- package/catalog/skills/gsap-animation/references/official-source-map.md +31 -0
- package/catalog/skills/gsap-animation/references/performance-accessibility.md +61 -0
- package/catalog/skills/gsap-animation/references/plugin-selection.md +42 -0
- package/catalog/skills/gsap-animation/references/react-patterns.md +59 -0
- package/catalog/skills/gsap-animation/references/scrolltrigger-patterns.md +61 -0
- package/catalog/skills/motion-animation/SKILL.md +148 -0
- package/catalog/skills/motion-animation/manifest.json +28 -0
- package/catalog/skills/motion-animation/references/js-patterns.md +81 -0
- package/catalog/skills/motion-animation/references/official-source-map.md +32 -0
- package/catalog/skills/motion-animation/references/performance-accessibility.md +49 -0
- package/catalog/skills/motion-animation/references/react-patterns.md +86 -0
- package/package.json +1 -1
- package/packages/catalog/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/core/package.json +1 -1
- package/packages/core/src/index.js +25 -2
- package/packages/detectors/package.json +1 -1
- package/packages/detectors/src/index.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,39 @@ All notable changes to this project are documented in this file.
|
|
|
16
16
|
### Removed
|
|
17
17
|
- _None._
|
|
18
18
|
|
|
19
|
+
## [0.26.2] - 2026-05-03
|
|
20
|
+
[View on npm](https://www.npmjs.com/package/@skilly-hand/skilly-hand/v/0.26.2)
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- Added portable `motion-animation` skill with official Motion guidance for JavaScript, React components, gestures, scroll animation, layout animation, exit animation, performance, accessibility, and source verification.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- Updated `frontend-design` to route Motion-native animation work through `motion-animation` alongside existing GSAP routing.
|
|
27
|
+
- Updated catalog and install expectations so Motion guidance is included in generated skill lists and frontend-design dependencies.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
- _None._
|
|
31
|
+
|
|
32
|
+
### Removed
|
|
33
|
+
- _None._
|
|
34
|
+
|
|
35
|
+
## [0.26.1] - 2026-05-03
|
|
36
|
+
[View on npm](https://www.npmjs.com/package/@skilly-hand/skilly-hand/v/0.26.1)
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
- Added portable `gsap-animation` skill with official-source GSAP guidance for timelines, ScrollTrigger, React `useGSAP`, plugin selection, performance, cleanup, and reduced-motion patterns.
|
|
40
|
+
- Added GSAP project detection so installs recommend `gsap-animation` when `gsap` or `@gsap/react` is present.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
- Updated `frontend-design` to route advanced motion work through `gsap-animation` and include the new critique workflow in catalog metadata.
|
|
44
|
+
- Updated selected skill installation to include portable skill dependencies automatically.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
- _None._
|
|
48
|
+
|
|
49
|
+
### Removed
|
|
50
|
+
- _None._
|
|
51
|
+
|
|
19
52
|
## [0.26.0] - 2026-05-01
|
|
20
53
|
[View on npm](https://www.npmjs.com/package/@skilly-hand/skilly-hand/v/0.26.0)
|
|
21
54
|
|
package/README.md
CHANGED
package/catalog/README.md
CHANGED
|
@@ -8,7 +8,9 @@ Published portable skills consumed by the `skilly-hand` CLI.
|
|
|
8
8
|
| `agents-root-orchestrator` | Author root AGENTS.md as a Where/What/When orchestrator that routes tasks and skill invocation clearly. | core, workflow, orchestration | all |
|
|
9
9
|
| `angular-guidelines` | Guide Angular code generation, review, and performance tuning using latest stable Angular verification, official Angular skill guidance, and modern framework best practices. Trigger: generating, reviewing, refactoring, or optimizing Angular code artifacts in Angular projects. | angular, frontend, workflow, best-practices | all |
|
|
10
10
|
| `figma-mcp-0to1` | Guide users from Figma MCP installation and authentication through first canvas creation, with function-level tool coverage and operational recovery patterns. | figma, mcp, workflow, design | all |
|
|
11
|
-
| `frontend-design` | Project-aware frontend design skill that detects the existing tech stack, UI libraries, CSS variables, and design tokens before proposing any UI work. Supports greenfield projects via DESIGN.md context setup,
|
|
11
|
+
| `frontend-design` | Project-aware frontend design skill that detects the existing tech stack, UI libraries, CSS variables, and design tokens before proposing any UI work. Supports greenfield projects via DESIGN.md context setup, post-generation critique, visual refinement, and Motion/GSAP-aware motion polish. | frontend, design, workflow, ui, motion, greenfield | all |
|
|
12
|
+
| `gsap-animation` | Guide GSAP animation implementation using only official GSAP documentation and the official greensock/gsap-skills source material. Trigger: implementing, reviewing, or choosing GSAP for frontend motion, timelines, ScrollTrigger, React useGSAP, JavaScript animation libraries, or advanced UI animation. | frontend, animation, motion, gsap, workflow | all |
|
|
13
|
+
| `motion-animation` | Guide Motion, formerly Framer Motion, animation implementation using only official Motion documentation. Trigger: implementing, reviewing, or choosing Motion for JavaScript animation, React motion components, gestures, scroll animation, layout animation, exit animation, or framework-agnostic UI motion. | frontend, animation, motion, framer-motion, workflow | all |
|
|
12
14
|
| `output-optimizer` | Optimize output token consumption through compact interpreter modes with controlled expansion when complexity, ambiguity, or risk requires more detail. Trigger: minimizing response verbosity while preserving clarity and correctness. | core, workflow, efficiency, communication | all |
|
|
13
15
|
| `project-security` | Scan project configuration and release surfaces for leak and security risks, and enforce security gates on commit, push, and publish workflows across GitHub, GitLab, npm, pnpm, yarn, and generic CI. Trigger: validating repository security posture, preventing secret leaks, or hardening delivery pipelines. | security, workflow, quality, core | all |
|
|
14
16
|
| `project-teacher` | Scan the active project and teach any concept, code path, or decision using verified information, interactive questions, and simple explanations. Trigger: user asks to explain, understand, clarify, or learn about anything in the project or codebase. | core, workflow, education | all |
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "frontend-design"
|
|
3
|
-
description: "Project-aware frontend design skill that detects the existing tech stack, UI libraries, CSS variables, and design tokens before proposing any UI work. Supports greenfield projects via DESIGN.md context setup,
|
|
3
|
+
description: "Project-aware frontend design skill that detects the existing tech stack, UI libraries, CSS variables, and design tokens before proposing any UI work. Supports greenfield projects via DESIGN.md context setup, post-generation critique, visual refinement, and Motion/GSAP-aware motion polish."
|
|
4
4
|
skillMetadata:
|
|
5
5
|
author: "skilly-hand"
|
|
6
|
-
last-edit: "2026-
|
|
6
|
+
last-edit: "2026-05-03"
|
|
7
7
|
license: "Apache-2.0"
|
|
8
|
-
version: "1.
|
|
9
|
-
changelog: "
|
|
10
|
-
auto-invoke: "Designing or generating UI components, pages, or layouts in a web or mobile project; setting up visual direction for a greenfield project; adding motion or micro-interactions to existing UI; refining or polishing generated UI output"
|
|
8
|
+
version: "1.4.0"
|
|
9
|
+
changelog: "Added Motion-aware routing through motion-animation alongside gsap-animation; improves animation handoffs for Motion-native JavaScript and React projects; affects frontend-design motion sequencing, metadata, and catalog dependencies"
|
|
10
|
+
auto-invoke: "Designing or generating UI components, pages, or layouts in a web or mobile project; setting up visual direction for a greenfield project; critiquing generated UI for AI slop; adding motion or micro-interactions to existing UI; refining or polishing generated UI output"
|
|
11
11
|
allowed-tools:
|
|
12
12
|
- "Read"
|
|
13
13
|
- "Grep"
|
|
@@ -15,6 +15,8 @@ skillMetadata:
|
|
|
15
15
|
- "Bash"
|
|
16
16
|
- "Edit"
|
|
17
17
|
- "Write"
|
|
18
|
+
- "Task"
|
|
19
|
+
- "SubAgent"
|
|
18
20
|
---
|
|
19
21
|
# Frontend Design Guide
|
|
20
22
|
|
|
@@ -45,8 +47,9 @@ Always run stack detection first. Never skip to design.
|
|
|
45
47
|
| 0 (always first) | Detect framework, UI library, CSS approach, tokens, and existing patterns | [agents/stack-detector.md](agents/stack-detector.md) |
|
|
46
48
|
| 0b (if no DESIGN.md and no existing components) | Gather design intent and create DESIGN.md | [agents/design-context-setter.md](agents/design-context-setter.md) |
|
|
47
49
|
| 1 (only after confirmation) | Design and implement components using confirmed stack | [agents/component-designer.md](agents/component-designer.md) |
|
|
48
|
-
| 2 (
|
|
49
|
-
| 3 (
|
|
50
|
+
| 2 (mandatory after generation) | Challenge the output for AI slop, weak hierarchy, heuristic failures, and unclear product fit | [agents/critique.md](agents/critique.md) |
|
|
51
|
+
| 3 (after critique) | Apply visual quality refinements routed by critique | [agents/visual-refiner.md](agents/visual-refiner.md) |
|
|
52
|
+
| 4 (optional) | Add motion and micro-interactions, routing Motion-native and GSAP-native work to the matching official-source skill | [agents/motion-designer.md](agents/motion-designer.md) |
|
|
50
53
|
|
|
51
54
|
---
|
|
52
55
|
|
|
@@ -58,8 +61,9 @@ Always run stack detection first. Never skip to design.
|
|
|
58
61
|
4. **If anything is unclear or ambiguous, ask** — do not proceed with partial or uncertain information.
|
|
59
62
|
5. **Scan existing tokens and components** — read what already exists before proposing anything.
|
|
60
63
|
6. **Design with confirmed context only** — hand off to `component-designer` only after steps 2–4 are complete.
|
|
61
|
-
7. **
|
|
62
|
-
8. **
|
|
64
|
+
7. **Critique after generation** — invoke `critique` for a frontend-only challenge pass before polish.
|
|
65
|
+
8. **Refine from critique** — invoke `visual-refiner` for visual fixes routed by critique.
|
|
66
|
+
9. **Optionally add motion** — invoke `motion-designer` if critique, refinement, or the user identifies a motion need. Route Motion-native JavaScript/React animation through `motion-animation`; route GSAP timelines, ScrollTrigger, and plugin decisions through `gsap-animation`.
|
|
63
67
|
|
|
64
68
|
---
|
|
65
69
|
|
|
@@ -190,8 +194,14 @@ Ready to implement?
|
|
|
190
194
|
YES -> Hand off to component-designer with full confirmed context
|
|
191
195
|
|
|
192
196
|
After generation:
|
|
197
|
+
-> Invoke critique to challenge design quality and route fixes
|
|
198
|
+
-> Invoke visual-refiner for critique-routed visual fixes
|
|
193
199
|
-> Does the component need motion? -> Invoke motion-designer
|
|
194
|
-
|
|
200
|
+
-> Does motion match existing Motion/Framer Motion, React motion props, layout, exit, gestures, or lightweight JS animation?
|
|
201
|
+
YES -> Use motion-animation for official-source Motion guidance
|
|
202
|
+
-> Does motion need GSAP timelines, ScrollTrigger, pin/scrub behavior, or GSAP plugins?
|
|
203
|
+
YES -> Use gsap-animation for official-source GSAP guidance
|
|
204
|
+
NO -> Use confirmed stack primitives
|
|
195
205
|
```
|
|
196
206
|
|
|
197
207
|
---
|
|
@@ -275,7 +285,8 @@ find src/components -maxdepth 2 -name "*.tsx" -o -name "*.vue" | head -10
|
|
|
275
285
|
- Stack detection procedure: [agents/stack-detector.md](agents/stack-detector.md)
|
|
276
286
|
- Design context setup (greenfield): [agents/design-context-setter.md](agents/design-context-setter.md)
|
|
277
287
|
- Component design rules: [agents/component-designer.md](agents/component-designer.md)
|
|
278
|
-
-
|
|
288
|
+
- Frontend design critique: [agents/critique.md](agents/critique.md)
|
|
279
289
|
- Visual quality refinement: [agents/visual-refiner.md](agents/visual-refiner.md)
|
|
290
|
+
- Motion and micro-interactions: [agents/motion-designer.md](agents/motion-designer.md)
|
|
280
291
|
- Full scan checklist: [assets/stack-scan-checklist.md](assets/stack-scan-checklist.md)
|
|
281
292
|
- Aesthetic archetypes reference: [assets/aesthetic-archetypes.md](assets/aesthetic-archetypes.md)
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# Critique
|
|
2
|
+
|
|
3
|
+
## Precondition
|
|
4
|
+
|
|
5
|
+
**Run only after `component-designer` has produced or proposed a concrete UI.**
|
|
6
|
+
|
|
7
|
+
This agent is the frontend-design challenge gate. It acts like a frontend-only roaster: direct, skeptical, and useful. Its job is to decide whether the design feels intentional or like generic AI output before `visual-refiner` applies polish.
|
|
8
|
+
|
|
9
|
+
Before critiquing:
|
|
10
|
+
|
|
11
|
+
1. Confirm stack detection has completed and the user accepted the stack summary.
|
|
12
|
+
2. Read `DESIGN.md` if it exists.
|
|
13
|
+
3. Inspect the generated/proposed UI source and, when available, the rendered page.
|
|
14
|
+
4. Compare against sampled project components, tokens, and interaction patterns.
|
|
15
|
+
|
|
16
|
+
Do not use this agent when:
|
|
17
|
+
|
|
18
|
+
- No concrete UI exists yet.
|
|
19
|
+
- The request is only stack discovery or design brief creation.
|
|
20
|
+
- The user explicitly asks to skip critique.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Critique Principles
|
|
25
|
+
|
|
26
|
+
- Challenge the design, not the user.
|
|
27
|
+
- Name the strongest weakness first.
|
|
28
|
+
- Prefer evidence from the codebase, `DESIGN.md`, or rendered UI over taste alone.
|
|
29
|
+
- Keep the roast constructive: a sharp sentence that exposes the gap, followed by a fix path.
|
|
30
|
+
- Do not apply changes in this agent. Route fixes to the right follow-up agent or skill.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Evaluation Protocol
|
|
35
|
+
|
|
36
|
+
Run all six passes. Do not skip a pass because the UI "mostly works."
|
|
37
|
+
|
|
38
|
+
### Pass 1 - Anti-Slop Detection
|
|
39
|
+
|
|
40
|
+
Flag visible tells of generic AI design. Use project evidence to decide whether a pattern is intentional or sloppy.
|
|
41
|
+
|
|
42
|
+
| Area | Patterns to Challenge |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| Visual details | Glassmorphism everywhere, generic rounded rectangles with shadows, thick side accent borders, decorative tiny charts, unexplained glow effects |
|
|
45
|
+
| Typography | Flat type hierarchy, overused default fonts, single font for every role, monospace as "technical" shorthand, all-caps body text |
|
|
46
|
+
| Color and contrast | Purple/violet gradients by reflex, neon-on-dark by reflex, gradient text, pure black or pure white, gray text on colored backgrounds, low contrast |
|
|
47
|
+
| Layout and space | Everything centered, hero metric blocks by default, identical card grids, monotonous spacing, nested cards, wrapping every section in cards, long line length |
|
|
48
|
+
| Motion | Bounce/elastic easing, motion without state meaning, animated layout properties |
|
|
49
|
+
| Interaction | Every button styled as primary, hidden actions, redundant labels, missing focus/disabled/loading states |
|
|
50
|
+
| Responsive | Critical features hidden on mobile, touch targets too small, desktop layout merely squeezed |
|
|
51
|
+
| General quality | Cramped padding, skipped heading levels, tiny body text, tight line height, wide tracking on body text, justified screen text |
|
|
52
|
+
|
|
53
|
+
For each finding, include:
|
|
54
|
+
|
|
55
|
+
- `what`: the pattern.
|
|
56
|
+
- `why`: why it weakens this specific interface.
|
|
57
|
+
- `fix`: the project-derived correction or the agent that should handle it.
|
|
58
|
+
|
|
59
|
+
### Pass 2 - Design Intent Fit
|
|
60
|
+
|
|
61
|
+
Check whether the UI serves the actual product context.
|
|
62
|
+
|
|
63
|
+
- Audience: Does the visual language match who uses it?
|
|
64
|
+
- Job: Does the layout prioritize the user's real task?
|
|
65
|
+
- Brand: Does it follow `DESIGN.md` personality and anti-references?
|
|
66
|
+
- Mode: Is this a brand surface where design is the product, or a product surface where design serves repeated use?
|
|
67
|
+
- Distinction: Would this still be recognizable if the logo and copy were removed?
|
|
68
|
+
|
|
69
|
+
### Pass 3 - Nielsen Heuristics
|
|
70
|
+
|
|
71
|
+
Score only what can be judged from the current UI. Use `0` to `4`.
|
|
72
|
+
|
|
73
|
+
| Heuristic | Score Meaning |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| Visibility of status | Loading, progress, saved, empty, and error states are clear |
|
|
76
|
+
| Match with real world | Labels, groupings, and controls use language the audience recognizes |
|
|
77
|
+
| User control | Escape, undo, cancel, back, and destructive action safety are available where needed |
|
|
78
|
+
| Consistency and standards | Component patterns match the project and platform expectations |
|
|
79
|
+
| Error prevention | The UI prevents likely mistakes before they happen |
|
|
80
|
+
| Recognition over recall | Available actions and context are visible without guessing |
|
|
81
|
+
| Flexibility and efficiency | Frequent users are not slowed by decorative friction |
|
|
82
|
+
| Aesthetic and minimalist design | Every visible element earns its place |
|
|
83
|
+
|
|
84
|
+
### Pass 4 - Cognitive Load
|
|
85
|
+
|
|
86
|
+
Count failures. A good interface reduces decisions, not just pixels.
|
|
87
|
+
|
|
88
|
+
- Too many equally weighted actions.
|
|
89
|
+
- Too many containers or borders.
|
|
90
|
+
- Too many text styles.
|
|
91
|
+
- Repeated explanatory copy.
|
|
92
|
+
- Competing focal points.
|
|
93
|
+
- Unclear next action.
|
|
94
|
+
- Dense controls without grouping.
|
|
95
|
+
- Decorative elements that look interactive.
|
|
96
|
+
|
|
97
|
+
### Pass 5 - Persona Pressure Tests
|
|
98
|
+
|
|
99
|
+
Use three personas unless `DESIGN.md` defines better ones:
|
|
100
|
+
|
|
101
|
+
- `The new user`: understands the first meaningful action in under five seconds.
|
|
102
|
+
- `The returning user`: can complete the repeated task quickly without rereading the page.
|
|
103
|
+
- `The skeptic`: has seen generic AI/SaaS layouts and needs proof this is specific.
|
|
104
|
+
|
|
105
|
+
Score each `0` to `4` and name the failure if the score is below `3`.
|
|
106
|
+
|
|
107
|
+
### Pass 6 - Route the Fixes
|
|
108
|
+
|
|
109
|
+
Every priority issue must name the next tool to use:
|
|
110
|
+
|
|
111
|
+
| Issue Type | Route To |
|
|
112
|
+
| --- | --- |
|
|
113
|
+
| Visual hierarchy, spacing, color, typography, card depth | `visual-refiner` |
|
|
114
|
+
| Missing or excessive motion, easing, reduced-motion coverage | `motion-designer` |
|
|
115
|
+
| Component API, structure, state model, or markup contract | `component-designer` |
|
|
116
|
+
| Missing product/design intent or unresolved brand direction | `design-context-setter` |
|
|
117
|
+
| Accessibility, semantics, keyboard, contrast, screen-reader behavior | `accessibility-audit` |
|
|
118
|
+
| Security-sensitive UI flows, release gates, unsafe forms | `project-security` |
|
|
119
|
+
| Test coverage for states, responsiveness, or interaction behavior | stack-specific tester or `test-driven-development` |
|
|
120
|
+
|
|
121
|
+
If a fix needs another sub-agent or skill, call that out explicitly. Do not silently merge responsibilities.
|
|
122
|
+
|
|
123
|
+
When the user or host workflow asks to continue after critique, invoke the routed agent that matches the highest-priority fix. Use one follow-up agent at a time so ownership stays clear. Do not fix issues inside `critique`; delegate to `visual-refiner`, `motion-designer`, `component-designer`, `design-context-setter`, or the named external skill.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Output Format
|
|
128
|
+
|
|
129
|
+
Use this compact report:
|
|
130
|
+
|
|
131
|
+
```text
|
|
132
|
+
FRONTEND DESIGN CRITIQUE
|
|
133
|
+
------------------------
|
|
134
|
+
Verdict: [pass / watch / fail] - [strongest reason]
|
|
135
|
+
Roast: [one constructive jab at the weakest design decision]
|
|
136
|
+
|
|
137
|
+
Scores:
|
|
138
|
+
- Anti-slop: [0-4] ([specific tells])
|
|
139
|
+
- Heuristics: [0-4 average] ([lowest heuristic])
|
|
140
|
+
- Cognitive load: [N/8 failures]
|
|
141
|
+
- Persona fit: [0-4 average] ([weakest persona])
|
|
142
|
+
|
|
143
|
+
Priority Fixes:
|
|
144
|
+
1. [what] - [why] - Fix: [specific change] - Use next: [agent/skill]
|
|
145
|
+
2. [what] - [why] - Fix: [specific change] - Use next: [agent/skill]
|
|
146
|
+
3. [what] - [why] - Fix: [specific change] - Use next: [agent/skill]
|
|
147
|
+
|
|
148
|
+
Questions:
|
|
149
|
+
- [only questions the interface cannot answer from project context]
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Keep priority fixes to three to five items. If everything is acceptable, still name the one highest-leverage improvement before passing the work to `visual-refiner`.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Severity Rules
|
|
157
|
+
|
|
158
|
+
Use these verdicts:
|
|
159
|
+
|
|
160
|
+
| Verdict | Meaning |
|
|
161
|
+
| --- | --- |
|
|
162
|
+
| `pass` | No slop tells or blockers; only minor polish remains |
|
|
163
|
+
| `watch` | Direction is viable, but one or two design decisions need correction |
|
|
164
|
+
| `fail` | The UI reads as generic, incoherent, inaccessible, or mismatched to product intent |
|
|
165
|
+
|
|
166
|
+
Raise severity when:
|
|
167
|
+
|
|
168
|
+
- The same slop pattern appears in multiple sections.
|
|
169
|
+
- The issue affects comprehension, conversion, task completion, or accessibility.
|
|
170
|
+
- The design contradicts `DESIGN.md` or sampled project components.
|
|
171
|
+
- The UI hides critical function on mobile.
|
|
172
|
+
|
|
173
|
+
Lower severity when:
|
|
174
|
+
|
|
175
|
+
- The pattern is established elsewhere in the project and works for the audience.
|
|
176
|
+
- The issue is isolated and easy for `visual-refiner` to correct.
|
|
177
|
+
- The user explicitly requested the aesthetic and it does not harm usability.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Finished Work
|
|
182
|
+
|
|
183
|
+
This agent is done when it has:
|
|
184
|
+
|
|
185
|
+
- Given a verdict.
|
|
186
|
+
- Named the weakest design decision.
|
|
187
|
+
- Scored anti-slop, heuristics, cognitive load, and persona fit.
|
|
188
|
+
- Listed three to five prioritized fixes.
|
|
189
|
+
- Routed each fix to the exact next agent or skill.
|
|
190
|
+
- Asked only unresolved product/design questions.
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
Motion must be implemented using the animation primitives already available in the project's stack. Never introduce a new animation library without the user's explicit approval.
|
|
8
8
|
|
|
9
|
+
For Motion-native animation needs, prefer a handoff to `motion-animation` when Motion or Framer Motion is already installed, explicitly requested, or approved as a new dependency. Use that skill for framework-agnostic JavaScript Motion APIs, React `motion` components, gestures, scroll-linked animation, scroll-triggered animation, layout animation, and exit animation.
|
|
10
|
+
|
|
11
|
+
For GSAP-native animation needs, prefer a handoff to `gsap-animation` when GSAP is already installed, explicitly requested, or approved as a new dependency. Use that skill for GSAP timelines, ScrollTrigger pin/scrub behavior, and GSAP plugin decisions.
|
|
12
|
+
|
|
9
13
|
---
|
|
10
14
|
|
|
11
15
|
## When to Use
|
|
@@ -40,7 +44,7 @@ grep -rn "transition" src/ --include="*.css" --include="*.scss" --include="*.mod
|
|
|
40
44
|
grep -rn "@keyframes" src/ --include="*.css" --include="*.scss" | head -5
|
|
41
45
|
|
|
42
46
|
# Check for Tailwind animation utilities
|
|
43
|
-
grep -
|
|
47
|
+
grep -rn "transition\|duration\|ease\|animate-" src/ --include="*.tsx" --include="*.vue" | head -10
|
|
44
48
|
```
|
|
45
49
|
|
|
46
50
|
Report what was found:
|
|
@@ -54,6 +58,10 @@ Animation stack:
|
|
|
54
58
|
|
|
55
59
|
If no animation primitives are found, ask: "This project has no existing animation setup. Should I use CSS transitions only (no new dependencies), or would you like to add a library? If so, which one?"
|
|
56
60
|
|
|
61
|
+
If Motion or Framer Motion is already established, or the user asks for Motion, React motion props, gestures, layout animation, exit animation, lightweight framework-agnostic JavaScript animation, `whileInView`, or `useScroll`, invoke `motion-animation`. If `motion` is not already installed, ask for approval before adding it.
|
|
62
|
+
|
|
63
|
+
If the motion needs GSAP timeline sequencing, ScrollTrigger pinning/scrub, GSAP plugins, or explicit GSAP behavior, invoke `gsap-animation`. If `gsap` is not already installed, ask for approval before adding it. If another animation library is already established and the user did not ask to switch, respect the existing library.
|
|
64
|
+
|
|
57
65
|
---
|
|
58
66
|
|
|
59
67
|
## Opportunity Assessment
|
|
@@ -101,6 +109,30 @@ Moments where a small motion adds personality without adding noise:
|
|
|
101
109
|
|
|
102
110
|
**Fix**: These are always optional and always ask the user first. Never add delight motion without explicit approval.
|
|
103
111
|
|
|
112
|
+
### 5. Motion Handoff Opportunities
|
|
113
|
+
|
|
114
|
+
Some motion work is better handled with official Motion guidance instead of local heuristics:
|
|
115
|
+
|
|
116
|
+
- The project already uses `motion`, `framer-motion`, or `@motionone/dom`.
|
|
117
|
+
- The user asks for Motion or Framer Motion.
|
|
118
|
+
- React animation should use `motion` components, `AnimatePresence`, `whileHover`, `whileTap`, `whileInView`, `useScroll`, `layout`, or `layoutId`.
|
|
119
|
+
- Framework-agnostic JavaScript animation should use Motion `animate()`, `scroll()`, `inView()`, `hover()`, `press()`, or `stagger()`.
|
|
120
|
+
- The project needs lightweight DOM/SVG/object animation and the user approves Motion as the dependency.
|
|
121
|
+
|
|
122
|
+
**Fix**: Invoke `motion-animation` and include the detected project stack, dependency status, component scope, requested motion behavior, and reduced-motion expectations. Do not add `motion` without user approval.
|
|
123
|
+
|
|
124
|
+
### 6. GSAP Handoff Opportunities
|
|
125
|
+
|
|
126
|
+
Some motion work is better handled with official GSAP guidance instead of local heuristics:
|
|
127
|
+
|
|
128
|
+
- Multi-step entrance or page choreography that needs timeline sequencing.
|
|
129
|
+
- Scroll reveals, scrubbed animation, pinned sections, or parallax-like effects.
|
|
130
|
+
- Existing GSAP, React `useGSAP()`, Next.js, Vue, Svelte, or Angular animation that needs GSAP lifecycle-safe cleanup.
|
|
131
|
+
- Flip, Draggable, ScrollTrigger, SplitText, SVG, custom easing, or other GSAP plugin decisions.
|
|
132
|
+
- Runtime controls such as pause, play, reverse, seek, progress, or timeScale.
|
|
133
|
+
|
|
134
|
+
**Fix**: Invoke `gsap-animation` and include the detected project stack, dependency status, component scope, requested motion behavior, and reduced-motion expectations. Do not add `gsap` or `@gsap/react` without user approval.
|
|
135
|
+
|
|
104
136
|
---
|
|
105
137
|
|
|
106
138
|
## Timing Reference
|
|
@@ -176,6 +208,8 @@ If the existing project has no `prefers-reduced-motion` handling anywhere, note
|
|
|
176
208
|
Before finalizing any motion work:
|
|
177
209
|
|
|
178
210
|
- [ ] All animation primitives are from the confirmed stack — no new dependencies added without approval.
|
|
211
|
+
- [ ] Motion-suitable work was routed through `motion-animation`.
|
|
212
|
+
- [ ] GSAP-suitable work was routed through `gsap-animation`.
|
|
179
213
|
- [ ] No layout-triggering properties are animated.
|
|
180
214
|
- [ ] All animations have a `prefers-reduced-motion` fallback.
|
|
181
215
|
- [ ] Timing values are within the reference ranges above.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "frontend-design",
|
|
3
3
|
"title": "Frontend Design",
|
|
4
|
-
"description": "Project-aware frontend design skill that detects the existing tech stack, UI libraries, CSS variables, and design tokens before proposing any UI work. Supports greenfield projects via DESIGN.md context setup,
|
|
4
|
+
"description": "Project-aware frontend design skill that detects the existing tech stack, UI libraries, CSS variables, and design tokens before proposing any UI work. Supports greenfield projects via DESIGN.md context setup, post-generation critique, visual refinement, and Motion/GSAP-aware motion polish.",
|
|
5
5
|
"portable": true,
|
|
6
6
|
"tags": ["frontend", "design", "workflow", "ui", "motion", "greenfield"],
|
|
7
7
|
"detectors": ["always"],
|
|
@@ -10,22 +10,31 @@
|
|
|
10
10
|
"agentSupport": ["codex", "claude", "cursor", "gemini", "copilot", "antigravity", "windsurf", "trae"],
|
|
11
11
|
"skillMetadata": {
|
|
12
12
|
"author": "skilly-hand",
|
|
13
|
-
"last-edit": "2026-
|
|
13
|
+
"last-edit": "2026-05-03",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
|
-
"version": "1.
|
|
16
|
-
"changelog": "
|
|
17
|
-
"auto-invoke": "Designing or generating UI components, pages, or layouts in a web or mobile project; setting up visual direction for a greenfield project; adding motion or micro-interactions to existing UI; refining or polishing generated UI output",
|
|
18
|
-
"allowed-
|
|
15
|
+
"version": "1.4.0",
|
|
16
|
+
"changelog": "Added Motion-aware routing through motion-animation alongside gsap-animation; improves animation handoffs for Motion-native JavaScript and React projects; affects frontend-design motion sequencing, metadata, and catalog dependencies",
|
|
17
|
+
"auto-invoke": "Designing or generating UI components, pages, or layouts in a web or mobile project; setting up visual direction for a greenfield project; critiquing generated UI for AI slop; adding motion or micro-interactions to existing UI; refining or polishing generated UI output",
|
|
18
|
+
"allowed-modes": [
|
|
19
|
+
"stack-detector",
|
|
20
|
+
"design-context-setter",
|
|
21
|
+
"component-designer",
|
|
22
|
+
"critique",
|
|
23
|
+
"visual-refiner",
|
|
24
|
+
"motion-designer"
|
|
25
|
+
],
|
|
26
|
+
"allowed-tools": ["Read", "Grep", "Glob", "Bash", "Edit", "Write", "Task", "SubAgent"]
|
|
19
27
|
},
|
|
20
28
|
"files": [
|
|
21
29
|
{ "path": "SKILL.md", "kind": "instruction" },
|
|
22
30
|
{ "path": "agents/stack-detector.md", "kind": "asset" },
|
|
23
31
|
{ "path": "agents/design-context-setter.md", "kind": "asset" },
|
|
24
32
|
{ "path": "agents/component-designer.md", "kind": "asset" },
|
|
25
|
-
{ "path": "agents/
|
|
33
|
+
{ "path": "agents/critique.md", "kind": "asset" },
|
|
26
34
|
{ "path": "agents/visual-refiner.md", "kind": "asset" },
|
|
35
|
+
{ "path": "agents/motion-designer.md", "kind": "asset" },
|
|
27
36
|
{ "path": "assets/stack-scan-checklist.md", "kind": "asset" },
|
|
28
37
|
{ "path": "assets/aesthetic-archetypes.md", "kind": "asset" }
|
|
29
38
|
],
|
|
30
|
-
"dependencies": []
|
|
39
|
+
"dependencies": ["motion-animation", "gsap-animation"]
|
|
31
40
|
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "gsap-animation"
|
|
3
|
+
description: "Guide GSAP animation implementation using only official GSAP documentation and the official greensock/gsap-skills source material. Trigger: implementing, reviewing, or choosing GSAP for frontend motion, timelines, ScrollTrigger, React useGSAP, JavaScript animation libraries, or advanced UI animation."
|
|
4
|
+
skillMetadata:
|
|
5
|
+
author: "skilly-hand"
|
|
6
|
+
last-edit: "2026-05-03"
|
|
7
|
+
license: "Apache-2.0"
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
changelog: "Added aggregate GSAP animation guidance backed by official GSAP docs and official GSAP AI skills; improves frontend motion implementation with verified timelines, ScrollTrigger, React cleanup, plugin, performance, and accessibility patterns; affects frontend animation routing and catalog discovery"
|
|
10
|
+
auto-invoke: "Implementing, reviewing, or choosing GSAP for frontend motion, timelines, ScrollTrigger, React useGSAP, JavaScript animation libraries, or advanced UI animation"
|
|
11
|
+
allowed-tools:
|
|
12
|
+
- "Read"
|
|
13
|
+
- "Edit"
|
|
14
|
+
- "Write"
|
|
15
|
+
- "Glob"
|
|
16
|
+
- "Grep"
|
|
17
|
+
- "Bash"
|
|
18
|
+
- "WebFetch"
|
|
19
|
+
- "WebSearch"
|
|
20
|
+
- "Task"
|
|
21
|
+
- "SubAgent"
|
|
22
|
+
---
|
|
23
|
+
# GSAP Animation Guide
|
|
24
|
+
|
|
25
|
+
## When to Use
|
|
26
|
+
|
|
27
|
+
Use this skill when:
|
|
28
|
+
|
|
29
|
+
- The user asks for GSAP, GreenSock, JavaScript animation, advanced frontend motion, timelines, scroll-driven animation, pinning, parallax, ScrollTrigger, or React `useGSAP()`.
|
|
30
|
+
- Another skill needs a verified GSAP handoff for richer UI motion than CSS transitions can comfortably express.
|
|
31
|
+
- A project needs animation that is sequenced, reversible, controllable at runtime, scroll-linked, SVG-heavy, or framework-agnostic.
|
|
32
|
+
|
|
33
|
+
Do not use this skill when:
|
|
34
|
+
|
|
35
|
+
- The project already uses another animation library and the user has not asked to add or migrate to GSAP.
|
|
36
|
+
- A simple CSS transition is sufficient and no richer timeline, scroll, plugin, or runtime control is needed.
|
|
37
|
+
- The work is backend-only or has no user-facing motion surface.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Official-Only Source Rule
|
|
42
|
+
|
|
43
|
+
Before generating GSAP-specific guidance, verify the pattern against official sources in [references/official-source-map.md](references/official-source-map.md).
|
|
44
|
+
|
|
45
|
+
Use only:
|
|
46
|
+
|
|
47
|
+
- GSAP docs at `https://gsap.com/docs/v3/`.
|
|
48
|
+
- GSAP learning/resources pages linked from the official docs.
|
|
49
|
+
- The official `greensock/gsap-skills` repository linked from the GSAP docs.
|
|
50
|
+
|
|
51
|
+
Do not use blog posts, snippets, Stack Overflow answers, social posts, or memory-only claims as source material for GSAP API behavior. If a detail is not covered by the reference files, check official docs before using it.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Routing
|
|
56
|
+
|
|
57
|
+
| Need | Use |
|
|
58
|
+
| --- | --- |
|
|
59
|
+
| One-off or simple animation | [references/core-patterns.md](references/core-patterns.md) |
|
|
60
|
+
| Multi-step sequencing or runtime control | GSAP timeline guidance in [references/core-patterns.md](references/core-patterns.md) |
|
|
61
|
+
| Scroll reveals, scrub, pin, snap, parallax | [references/scrolltrigger-patterns.md](references/scrolltrigger-patterns.md) |
|
|
62
|
+
| React or Next.js animation | [references/react-patterns.md](references/react-patterns.md) |
|
|
63
|
+
| Flip, Draggable, SplitText, SVG, ScrollSmoother, utility plugins | [references/plugin-selection.md](references/plugin-selection.md) |
|
|
64
|
+
| Reduced motion, cleanup, transform performance | [references/performance-accessibility.md](references/performance-accessibility.md) |
|
|
65
|
+
|
|
66
|
+
When the user asks for an animation library without naming one, prefer GSAP for timelines, scroll-driven animation, framework-agnostic animation, runtime control, or coordinated multi-element motion. If the project or user has already chosen another library, respect that choice unless they ask to compare or migrate.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Project Preflight
|
|
71
|
+
|
|
72
|
+
Always inspect the target project before proposing implementation:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
grep -E '"gsap"|"@gsap/react"|"framer-motion"|"@motionone/dom"|"animejs"|"motion"' package.json
|
|
76
|
+
grep -rn "gsap\\.|ScrollTrigger|useGSAP|registerPlugin" src --include="*.js" --include="*.jsx" --include="*.ts" --include="*.tsx" 2>/dev/null
|
|
77
|
+
grep -rn "prefers-reduced-motion|transition|@keyframes" src --include="*.css" --include="*.scss" --include="*.tsx" --include="*.jsx" 2>/dev/null
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
If `gsap` is not installed, ask before adding it. If React `useGSAP()` is needed and `@gsap/react` is not installed, ask before adding it. This skill teaches target projects how to use GSAP; it does not add GSAP to skilly-hand itself.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Implementation Rules
|
|
85
|
+
|
|
86
|
+
- Import GSAP from the official package and register every plugin used with `gsap.registerPlugin(...)`.
|
|
87
|
+
- Prefer timelines for choreography, overlap, labels, pause/play/reverse/seek control, and any sequence that would otherwise rely on chained delays.
|
|
88
|
+
- Prefer GSAP transform aliases like `x`, `y`, `scale`, `rotation`, `xPercent`, `yPercent`, and `transformOrigin` over raw `transform` strings.
|
|
89
|
+
- Prefer `autoAlpha` when fading elements that should become hidden and non-interactive at zero visibility.
|
|
90
|
+
- Scope selectors to a component or container when working inside frameworks.
|
|
91
|
+
- Clean up every component-owned animation with `useGSAP()`, `gsap.context().revert()`, or `gsap.matchMedia().revert()`.
|
|
92
|
+
- Use `gsap.matchMedia()` for breakpoints and `prefers-reduced-motion`; reduce, shorten, or skip animation when users request reduced motion.
|
|
93
|
+
- Avoid animating layout-heavy properties like `width`, `height`, `top`, `left`, `margin`, or `padding` when transforms can achieve the effect.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Framework Guidance
|
|
98
|
+
|
|
99
|
+
React and Next.js:
|
|
100
|
+
|
|
101
|
+
- Prefer `useGSAP()` from `@gsap/react` when available.
|
|
102
|
+
- Register `useGSAP` with `gsap.registerPlugin(useGSAP)`.
|
|
103
|
+
- Pass a `scope` ref so selector text stays inside the component.
|
|
104
|
+
- Use `contextSafe()` for event handlers, timers, or callbacks that create GSAP objects after the hook executes.
|
|
105
|
+
- Keep GSAP execution in client-only lifecycle. In React Server Components, the component using GSAP must be client-side.
|
|
106
|
+
|
|
107
|
+
Other frameworks:
|
|
108
|
+
|
|
109
|
+
- Run GSAP setup after DOM nodes exist.
|
|
110
|
+
- Scope selectors to the component root where possible.
|
|
111
|
+
- Revert GSAP contexts, matchMedia instances, ScrollTriggers, and event listeners during component teardown.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Output Contract
|
|
116
|
+
|
|
117
|
+
When using this skill, include:
|
|
118
|
+
|
|
119
|
+
- The official pattern source you used.
|
|
120
|
+
- Whether GSAP is already installed or requires approval.
|
|
121
|
+
- Which GSAP primitive is appropriate: tween, timeline, ScrollTrigger, plugin, `useGSAP()`, `context()`, or `matchMedia()`.
|
|
122
|
+
- Cleanup and reduced-motion behavior.
|
|
123
|
+
- A verification step appropriate to the project, such as unit tests, interaction tests, browser smoke checks, or visual inspection.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Commands
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Install GSAP in a target project only after user approval
|
|
131
|
+
npm install gsap
|
|
132
|
+
|
|
133
|
+
# Install React helper only after user approval and only for React projects
|
|
134
|
+
npm install @gsap/react
|
|
135
|
+
|
|
136
|
+
# Check for existing GSAP usage
|
|
137
|
+
grep -rn "gsap\\.|ScrollTrigger|useGSAP|registerPlugin" src --include="*.js" --include="*.jsx" --include="*.ts" --include="*.tsx"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Resources
|
|
143
|
+
|
|
144
|
+
- Source map: [references/official-source-map.md](references/official-source-map.md)
|
|
145
|
+
- Core patterns: [references/core-patterns.md](references/core-patterns.md)
|
|
146
|
+
- React patterns: [references/react-patterns.md](references/react-patterns.md)
|
|
147
|
+
- ScrollTrigger patterns: [references/scrolltrigger-patterns.md](references/scrolltrigger-patterns.md)
|
|
148
|
+
- Plugin selection: [references/plugin-selection.md](references/plugin-selection.md)
|
|
149
|
+
- Performance and accessibility: [references/performance-accessibility.md](references/performance-accessibility.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "gsap-animation",
|
|
3
|
+
"title": "GSAP Animation",
|
|
4
|
+
"description": "Guide GSAP animation implementation using only official GSAP documentation and the official greensock/gsap-skills source material. Trigger: implementing, reviewing, or choosing GSAP for frontend motion, timelines, ScrollTrigger, React useGSAP, JavaScript animation libraries, or advanced UI animation.",
|
|
5
|
+
"portable": true,
|
|
6
|
+
"tags": ["frontend", "animation", "motion", "gsap", "workflow"],
|
|
7
|
+
"detectors": ["react", "nextjs", "angular", "vite", "tailwindcss", "storybook"],
|
|
8
|
+
"detectionTriggers": ["auto"],
|
|
9
|
+
"installsFor": ["all"],
|
|
10
|
+
"agentSupport": ["codex", "claude", "cursor", "gemini", "copilot", "antigravity", "windsurf", "trae"],
|
|
11
|
+
"skillMetadata": {
|
|
12
|
+
"author": "skilly-hand",
|
|
13
|
+
"last-edit": "2026-05-03",
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"version": "1.0.0",
|
|
16
|
+
"changelog": "Added aggregate GSAP animation guidance backed by official GSAP docs and official GSAP AI skills; improves frontend motion implementation with verified timelines, ScrollTrigger, React cleanup, plugin, performance, and accessibility patterns; affects frontend animation routing and catalog discovery",
|
|
17
|
+
"auto-invoke": "Implementing, reviewing, or choosing GSAP for frontend motion, timelines, ScrollTrigger, React useGSAP, JavaScript animation libraries, or advanced UI animation",
|
|
18
|
+
"allowed-tools": ["Read", "Edit", "Write", "Glob", "Grep", "Bash", "WebFetch", "WebSearch", "Task", "SubAgent"]
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
{ "path": "SKILL.md", "kind": "instruction" },
|
|
22
|
+
{ "path": "references/official-source-map.md", "kind": "reference" },
|
|
23
|
+
{ "path": "references/core-patterns.md", "kind": "reference" },
|
|
24
|
+
{ "path": "references/react-patterns.md", "kind": "reference" },
|
|
25
|
+
{ "path": "references/scrolltrigger-patterns.md", "kind": "reference" },
|
|
26
|
+
{ "path": "references/plugin-selection.md", "kind": "reference" },
|
|
27
|
+
{ "path": "references/performance-accessibility.md", "kind": "reference" }
|
|
28
|
+
],
|
|
29
|
+
"dependencies": []
|
|
30
|
+
}
|