@maccesar/aiskills 1.16.1 → 1.17.1
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/README.md +26 -19
- package/commands/release.md +415 -0
- package/package.json +3 -2
- package/skills/humaniza/SKILL.md +1 -1
- package/skills/refactoring-ui/SKILL.md +35 -41
- package/skills/session-log/SKILL.md +80 -336
- package/skills/session-log/evals/README.md +16 -52
- package/skills/session-log/evals/ab-ronda-1.md +22 -67
- package/skills/session-log/evals/ab-ronda-2.md +28 -113
- package/skills/session-log/evals/defecto-experimento.md +3 -8
- package/skills/session-log/references/file-layout.md +69 -119
- package/skills/session-log/references/verification.md +22 -56
- package/skills/stitch-showcase/SKILL.md +7 -3
- package/skills/stitch-showcase/references/14-troubleshooting-known-issues.md +18 -47
- package/skills/vscode-extension-dev/SKILL.md +54 -50
- package/skills/vscode-extension-dev/references/architecture.md +13 -0
- package/skills/vscode-extension-dev/references/package-json-schema.md +12 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: refactoring-ui
|
|
3
|
-
description: '
|
|
3
|
+
description: 'Design advice grounded in the principles of "Refactoring UI" by Adam Wathan & Steve Schoger. Use this whenever someone is trying to make an interface look better, or asks about visual hierarchy, color palettes and greys, type scales, spacing systems, shadows and depth, images, empty states, borders, dark mode, motion and hover states, or the layout of a modal, form or table — including when they never say "design" and just paste a component asking why it looks off, or say it "feels cramped", "looks generic", "needs polish", "how do I make this look better?". Applies to any stack: Tailwind, plain CSS, React, Blade, mobile. Not for: writing the copy itself, logo or brand identity work, user research, or debugging CSS that renders wrong.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Refactoring UI Skill
|
|
@@ -9,26 +9,23 @@ Design advice grounded in the principles taught by Adam Wathan & Steve Schoger i
|
|
|
9
9
|
|
|
10
10
|
## Required workflow (read before responding)
|
|
11
11
|
|
|
12
|
-
The SKILL.md alone is an **index** of references. The detail you need
|
|
13
|
-
to give accurate answers lives in the reference files. **Reading this
|
|
14
|
-
SKILL.md is not enough.**
|
|
12
|
+
The SKILL.md alone is an **index** of references. The detail you need to give accurate answers lives in the reference files. **Reading this SKILL.md is not enough.**
|
|
15
13
|
|
|
16
14
|
### Step 1 — Open the relevant reference files
|
|
17
15
|
|
|
18
16
|
| Task involves | Required reading |
|
|
19
17
|
|---|---|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
| Color
|
|
23
|
-
| Empty states, borders, accents, finishing touches | [references/04-polish.md](references/04-polish.md) |
|
|
24
|
-
| Motion, microinteractions, transitions, hover/press states, loading | [references/05-motion.md](references/05-motion.md) |
|
|
25
|
-
| Dark mode, multi-theme color tokens, theme toggle, contrast strategy | [references/06-dark-mode.md](references/06-dark-mode.md) |
|
|
26
|
-
| Modals, forms, tables —
|
|
18
|
+
| Project mindset: feature-first work, scope discipline, defining systems, picking a voice | [references/01-foundations.md](references/01-foundations.md) |
|
|
19
|
+
| Visual hierarchy, layout, white space, spacing scales, typography | [references/02-page-mechanics.md](references/02-page-mechanics.md) |
|
|
20
|
+
| Color systems (HSL, shades, greys, contrast), depth and shadows, image handling | [references/03-visual-treatment.md](references/03-visual-treatment.md) |
|
|
21
|
+
| Empty states, borders, accents, decorative defaults, finishing touches | [references/04-polish.md](references/04-polish.md) |
|
|
22
|
+
| Motion, microinteractions, transitions, hover/press states, loading, `prefers-reduced-motion` — *complementary, not from the book* | [references/05-motion.md](references/05-motion.md) |
|
|
23
|
+
| Dark mode, multi-theme color tokens, theme toggle, contrast strategy — *complementary, extrapolates the book's HSL principles* | [references/06-dark-mode.md](references/06-dark-mode.md) |
|
|
24
|
+
| Modals (focus, layout), forms (labels, validation), tables (density, alignment) — *complementary, extends the book's principles* | [references/07-component-patterns.md](references/07-component-patterns.md) |
|
|
27
25
|
|
|
28
26
|
### Step 2 — Output contract
|
|
29
27
|
|
|
30
|
-
Every design recommendation, ratio, value, or rule you cite MUST be
|
|
31
|
-
backed by a citation in the form:
|
|
28
|
+
Every design recommendation, ratio, value, or rule you cite MUST be backed by a citation in the form:
|
|
32
29
|
|
|
33
30
|
`[source: references/<file>.md]`
|
|
34
31
|
|
|
@@ -36,43 +33,21 @@ Example: *"Use weight and color, not just font size, to establish hierarchy [sou
|
|
|
36
33
|
|
|
37
34
|
### Step 3 — If you must answer from memory
|
|
38
35
|
|
|
39
|
-
If you write a claim without having read the reference that backs it,
|
|
40
|
-
prepend `FROM_MEMORY (unverified):` to that claim. Do not hide it.
|
|
36
|
+
If you write a claim without having read the reference that backs it, prepend `FROM_MEMORY (unverified):` to that claim. Do not hide it.
|
|
41
37
|
|
|
42
38
|
### Banned behaviors
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
- ❌ Reproducing the book's prose, illustrations, or examples verbatim — paraphrase only
|
|
46
|
-
- ❌ Mixing in advice from unrelated design systems (Material, HIG, Tailwind defaults) as if it were *Refactoring UI* doctrine
|
|
47
|
-
- ❌ Marking the answer complete without listing which reference files you read
|
|
40
|
+
These four are where advice like this usually goes wrong, so they're worth naming:
|
|
48
41
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
- User asks about visual hierarchy or emphasis
|
|
54
|
-
- User is designing a UI component, page, or layout
|
|
55
|
-
- User wants a design review or critique
|
|
56
|
-
- User asks about shadows, depth, or layering
|
|
57
|
-
- User asks about handling images in UI
|
|
58
|
-
- User asks about empty states, borders, or decorative elements
|
|
42
|
+
- Inventing ratios, scale values, contrast numbers, or rules not in the references. A made-up number is indistinguishable from a real one once it's in someone's stylesheet.
|
|
43
|
+
- Reproducing the book's prose, illustrations, or examples verbatim. The references paraphrase on purpose — the original material belongs to its authors and is worth buying.
|
|
44
|
+
- Presenting advice from unrelated design systems (Material, HIG, Tailwind defaults) as *Refactoring UI* doctrine. Those systems are fine; attributing them here makes the citation meaningless.
|
|
45
|
+
- Marking the answer complete without listing which reference files you read. The list is what lets the reader tell a grounded answer from a plausible one.
|
|
59
46
|
|
|
60
47
|
## Source
|
|
61
48
|
|
|
62
49
|
Inspired by 'Refactoring UI' by Adam Wathan & Steve Schoger — refactoringui.com
|
|
63
50
|
|
|
64
|
-
## Reference Files
|
|
65
|
-
|
|
66
|
-
| File | Topics |
|
|
67
|
-
| ----------------------------------- | --------------------------------------------------------------------------------------- |
|
|
68
|
-
| `references/01-foundations.md` | Project mindset: feature-first work, scope discipline, defining systems, picking a voice |
|
|
69
|
-
| `references/02-page-mechanics.md` | Visual hierarchy, layout, white space, spacing scales, typography |
|
|
70
|
-
| `references/03-visual-treatment.md` | Color systems (HSL, shades, greys, contrast), depth and shadows, image handling |
|
|
71
|
-
| `references/04-polish.md` | Finishing touches: borders, accents, empty states, decorative defaults, design intuition |
|
|
72
|
-
| `references/05-motion.md` | Motion system (durations, easings), hover/press states, loading patterns, prefers-reduced-motion — **complementary** (not from RUI) |
|
|
73
|
-
| `references/06-dark-mode.md` | Dark mode color tokens, text contrast, shadow handling, images, theme toggle — **complementary** (extrapolates RUI's HSL principles) |
|
|
74
|
-
| `references/07-component-patterns.md` | Modals (focus, layout), forms (labels, validation), tables (density, alignment) — **complementary** (extends RUI principles to specific components) |
|
|
75
|
-
|
|
76
51
|
## Anti-Patterns to Watch For
|
|
77
52
|
|
|
78
53
|
- Designing layouts/navs/shells before designing real features [source: references/01-foundations.md]
|
|
@@ -84,6 +59,25 @@ Inspired by 'Refactoring UI' by Adam Wathan & Steve Schoger — refactoringui.co
|
|
|
84
59
|
- Designing with placeholder images instead of real content [source: references/03-visual-treatment.md]
|
|
85
60
|
- Shrinking a logo down to use as a favicon [source: references/03-visual-treatment.md]
|
|
86
61
|
- Using preprocessor `lighten()` / `darken()` to derive shades [source: references/03-visual-treatment.md]
|
|
62
|
+
- Leaving an empty state as a bare "No data" rectangle — it's often the first thing a new user sees [source: references/04-polish.md]
|
|
63
|
+
- Rendering tabs, filters or pagination that have nothing to operate on (reads as broken) [source: references/04-polish.md]
|
|
64
|
+
- Reaching for a border when a shadow, a second background color, or more space separates better [source: references/04-polish.md]
|
|
65
|
+
- Shipping browser-default bullets, checkboxes and radios [source: references/04-polish.md]
|
|
66
|
+
- Animating layout properties (`width`, `top`, `margin`) instead of `transform` / `opacity` [source: references/05-motion.md]
|
|
67
|
+
- Inventing a duration per component instead of picking from a fixed motion scale [source: references/05-motion.md]
|
|
68
|
+
- Scaling a whole element up on hover (1.05×), or animating font size [source: references/05-motion.md]
|
|
69
|
+
- Showing a spinner before ~150ms of waiting [source: references/05-motion.md]
|
|
70
|
+
- Ignoring `prefers-reduced-motion` [source: references/05-motion.md]
|
|
71
|
+
- Pure `#000` for the canvas, or pure white for text [source: references/06-dark-mode.md]
|
|
72
|
+
- Producing dark mode with `filter: invert(1)` [source: references/06-dark-mode.md]
|
|
73
|
+
- Reusing the light-mode brand color in dark mode without rechecking contrast [source: references/06-dark-mode.md]
|
|
74
|
+
- Applying the theme after first paint (flash of the wrong theme on every load) [source: references/06-dark-mode.md]
|
|
75
|
+
- Keeping every light-mode shadow unchanged on a dark canvas, where it's invisible [source: references/06-dark-mode.md]
|
|
76
|
+
- Using a placeholder as the only label [source: references/07-component-patterns.md]
|
|
77
|
+
- Validating a field on every keystroke instead of on blur [source: references/07-component-patterns.md]
|
|
78
|
+
- A modal with no focus trap, or centered vertically instead of anchored near the top [source: references/07-component-patterns.md]
|
|
79
|
+
- Left-aligning numeric columns, which hides magnitude [source: references/07-component-patterns.md]
|
|
80
|
+
- A translucent sticky table header, with rows showing through it [source: references/07-component-patterns.md]
|
|
87
81
|
|
|
88
82
|
## Attribution
|
|
89
83
|
|