ui-director-skill 0.1.0 → 2.1.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/CHANGELOG.md +16 -0
- package/INSTALL.md +42 -91
- package/README.md +48 -284
- package/SKILL.md +25 -109
- package/assets/bundle-profiles.json +178 -0
- package/assets/capabilities.json +260 -0
- package/assets/install-manifest.json +27 -0
- package/assets/project-profile.example.json +23 -0
- package/assets/quality-rubric.json +29 -0
- package/assets/routing-rules.json +68 -0
- package/assets/upstreams.json +100 -0
- package/bin/ui.mjs +148 -26
- package/config/optional-skills.json +16 -0
- package/config/quality-rubric.json +13 -0
- package/examples/usage.md +25 -27
- package/install.py +303 -0
- package/lib/core.mjs +60 -9
- package/lib/workflows.mjs +168 -0
- package/package.json +8 -3
- package/references/delivery-contract.md +4 -0
- package/references/design-intelligence.md +2 -0
- package/references/integrations/security-policy.md +2 -0
- package/references/integrations/skill-manager.md +2 -0
- package/references/integrations/upstream-adapters.md +4 -0
- package/references/integrations.md +2 -0
- package/references/motion-interaction.md +2 -0
- package/references/orchestration/context-management.md +4 -0
- package/references/orchestration/iteration-loop.md +8 -0
- package/references/orchestration/routing.md +8 -0
- package/references/platforms/desktop.md +3 -0
- package/references/platforms/mobile.md +3 -0
- package/references/platforms/web.md +3 -0
- package/references/quality-assurance.md +2 -0
- package/references/routing.md +2 -58
- package/references/stages/design-research.md +2 -0
- package/references/stages/design-system.md +4 -0
- package/references/stages/deslop.md +2 -0
- package/references/stages/motion-interaction.md +31 -0
- package/references/stages/prototyping.md +2 -0
- package/references/stages/visual-direction.md +2 -0
- package/references/stages/visual-validation.md +6 -0
- package/references/visual-direction.md +2 -0
- package/skill_manager.py +655 -0
- package/templates/DECISIONS.md +3 -0
- package/templates/DESIGN.md +26 -0
- package/templates/PRODUCT.md +9 -0
- package/templates/REVIEW.md +19 -0
- package/references/project-inspection.md +0 -25
- package/references/quality-gates.md +0 -59
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Evidence-driven iteration
|
|
2
|
+
1. Freeze scope, capture baseline where available, choose target states/viewport/device and explicit success criteria.
|
|
3
|
+
2. Implement the smallest coherent change. Run build and relevant tests. Render at actual target dimensions; record viewport, scale/DPR, state, environment and artifact path. Capture comparable final screenshots or video.
|
|
4
|
+
3. Evaluate against reference and rubric; separate visual, interaction, functional and performance findings. Independent reviewer if host supports it, otherwise a clearly labelled separate self-review pass. Never claim independent agents unless spawned.
|
|
5
|
+
4. Repair highest-severity issues first; rerun affected checks, compare evidence and log residuals. One repair+recheck is one round; initial implementation is not a repair round.
|
|
6
|
+
5. Stop if required gates pass, user budget exhausted, no material gain across two rounds, critical blocker, or max rounds. Do not hide a failing gate by relaxing criteria. Final report includes iterations actually completed and missing evidence.
|
|
7
|
+
|
|
8
|
+
Modes FAST=1, STANDARD=3, CRAFT=5, REFERENCE=8 maximum repair rounds. No network, image generation, paid tools or external publishing without appropriate user authority. Audit-only has no repair rounds unless separately authorized.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Semantic routing
|
|
2
|
+
Independently determine intent, platform, product type, deliverable and execution mode. A request for findings or repair recommendations is an AUDIT unless the user also asks you to apply the fixes. Keep requests for concepts and specifications within the requested deliverable. Reusing an existing design system is a constraint on a screen task. Use SYSTEM when the design system itself is the requested work. Motion-only preserves unrelated UI. Use REFERENCE to reproduce a reference and AUDIT to assess fidelity.
|
|
3
|
+
|
|
4
|
+
Start from the workflows in [routing-rules.json](../../assets/routing-rules.json). Add `motion` when a change calls for animation or a major transition. For an audit of motion, add `motion-review` before QA and keep the audit read-only. Apply the platform adapter throughout. For a concept or specification, assess the gates relevant to the requested deliverable. For a requested Figma prototype, keep prototype and QA stages and leave product source untouched. Capture a baseline before editing an existing target; if the target is new, record baseline as not applicable. For an audit, inspect the existing rendered state when available within scope.
|
|
5
|
+
|
|
6
|
+
Provider selection: system → pro-max or hallmark; web brand → taste or frontend, never both as competing directors; web app → frontend or hallmark; reference → core reference loop + applicable renderer; motion → Emil on web; deslop → Unslop or Hallmark; QA → Impeccable or design-qa, plus web guideline specialist for distinct accessibility checks. For native interfaces, adapt the core stages to the project's actual stack; never apply DOM instructions mechanically. In each stage choose the first actually available, compatible option consistent with project rules; core fallback always exists. No requirement to load all optional skills.
|
|
7
|
+
|
|
8
|
+
Mode: FAST simple local task; STANDARD default; CRAFT complex flagship deliverable; REFERENCE high-fidelity matching. Honor explicit user limits. Runtime tool availability controls actual execution, not design intent.
|
package/references/routing.md
CHANGED
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
UI Director routes by *capability*, not by hard-coded provider names.
|
|
4
|
-
|
|
5
|
-
## Task types
|
|
6
|
-
|
|
7
|
-
- `CREATE`: a new product/surface from scratch.
|
|
8
|
-
- `EXTEND`: add a page, flow or component to an existing product.
|
|
9
|
-
- `REDESIGN`: materially replace an existing UI direction.
|
|
10
|
-
- `FIX`: solve a bounded UX/UI problem.
|
|
11
|
-
- `AUDIT`: review before changing anything.
|
|
12
|
-
|
|
13
|
-
## Routes
|
|
14
|
-
|
|
15
|
-
### CREATE — visual direction unclear
|
|
16
|
-
|
|
17
|
-
`research -> interface -> layout -> typography -> colors -> implementation -> accessibility -> audit -> distill -> polish`
|
|
18
|
-
|
|
19
|
-
Do not load every capability blindly. Colors, writing and accessibility are loaded only when relevant.
|
|
20
|
-
|
|
21
|
-
### CREATE — visual direction already clear
|
|
22
|
-
|
|
23
|
-
Skip broad `research`.
|
|
24
|
-
|
|
25
|
-
`interface -> layout -> typography -> implementation -> audit -> polish`
|
|
26
|
-
|
|
27
|
-
### EXTEND — existing product
|
|
28
|
-
|
|
29
|
-
`design-system -> relevant design-engineering capabilities -> implementation -> audit -> polish`
|
|
30
|
-
|
|
31
|
-
External inspiration must not override incumbent product conventions.
|
|
32
|
-
|
|
33
|
-
### REDESIGN
|
|
34
|
-
|
|
35
|
-
`design-system -> optional research -> interface -> layout -> typography -> optional colors -> implementation -> critique -> audit -> polish`
|
|
36
|
-
|
|
37
|
-
### FIX
|
|
38
|
-
|
|
39
|
-
Use the narrowest capability set:
|
|
40
|
-
|
|
41
|
-
- spacing, hierarchy, grouping, responsive structure -> `layout`
|
|
42
|
-
- type scale, line length, wrapping, truncation -> `typography`
|
|
43
|
-
- palette, theme, semantic color, contrast -> `colors`
|
|
44
|
-
- keyboard, focus, ARIA, hit target, reduced motion -> `accessibility`
|
|
45
|
-
- labels, errors, empty states, microcopy -> `writing`
|
|
46
|
-
- radius, shadows, motion, interaction polish -> `interface`
|
|
47
|
-
|
|
48
|
-
### AUDIT
|
|
49
|
-
|
|
50
|
-
`audit -> critique (if needed) -> targeted remediation capability`
|
|
51
|
-
|
|
52
|
-
Do not redesign before identifying defects.
|
|
53
|
-
|
|
54
|
-
## Mode selection
|
|
55
|
-
|
|
56
|
-
- `FAST`: small, bounded fixes; usually 1-2 capabilities.
|
|
57
|
-
- `STANDARD`: normal feature/page work; inspect, build, audit, polish.
|
|
58
|
-
- `DEEP`: new products, major redesigns, complex flows, design systems or high-impact surfaces.
|
|
1
|
+
# Compatibility reference
|
|
2
|
+
See [orchestration/routing](orchestration/routing.md) for v2 guidance.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
# Design research
|
|
2
|
+
Identify audience, primary job, entry/exit, content priority, competing flows and constraints. Inspect current UI before prescribing. If references supplied, label source, viewport/device, time/frame and distinguish literal requirements from inspiration. Analyze typography, rhythm, layout, hierarchy, palette, components, states, imagery and motion. For video record keyframes, timing and uncertain occlusions; do not assume unseen states. Produce concise reference matrix (observed feature, implication, adopt/adapt/reject, reason). Use original or licensed assets; don't copy protected brand assets by default. If no reference access, say so; never fabricate visual observations. Optional Hallmark/Figma/Stitch when available. Core fallback: manual inspection and evidence notes.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# Design system and token lock
|
|
2
|
+
Read approved DESIGN.md and actual code tokens; when legacy MASTER.md exists, reconcile before declaring canonical. Google DESIGN.md supports structured YAML tokens with Markdown rationale. Use the supplied skeleton, then populate only verified values with valid token categories (colors, typography, spacing, rounded, components). Quote hex colors and token references. No invented palette for existing products. Unknown values remain TODO in prose, not fake token values. See https://github.com/google-labs-code/design.md for exact schema. Local validate command is structural only; optional official linter may be run if already available and authorized.
|
|
3
|
+
|
|
4
|
+
Define semantic roles, scale, font fallback, component variants, contrast, localization, states, motion and platform constraints. Derive screen exceptions from system. Token lock: use existing tokens, do not add arbitrary values; if required propose an explicit exception or reviewed token addition. Audit actual implementation against source of truth; document decisions. For native interfaces, map tokens to the project's actual component and styling system rather than CSS. For greenfield choose meaningful tokens based on user context, not generic style defaults.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
# DESLOP: targeted visual refinement
|
|
2
|
+
Inspect actual product context and baseline. Prioritize problems by user impact: spacing and alignment; hierarchy and density; color and contrast; typography; icons and imagery; copy; repetitive card grids; unnecessary badges/gradients/glows; interaction feedback and motion. A card, gradient, rounded corner or animation is not inherently wrong: keep it when it serves the product. Replace decorative elements with clear actions/content; avoid generic filler, repetitive claims and arbitrary style changes. Lock approved tokens and preserve functionality. Make narrow edits, re-render and compare. For audit-only report findings without editing. Use Unslop/Hallmark/Impeccable optionally, with core checklist as fallback.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Stage 3 — Motion & Interaction
|
|
2
|
+
|
|
3
|
+
## Goal
|
|
4
|
+
|
|
5
|
+
Make interaction comprehensible, interruptible and responsive. Only animate when motion helps spatial continuity, feedback, orientation or brand; no animation is also a valid outcome.
|
|
6
|
+
|
|
7
|
+
## Optional upstreams
|
|
8
|
+
|
|
9
|
+
- `animate` for implementation.
|
|
10
|
+
- `review-animations` for review.
|
|
11
|
+
- `emil-design-eng` for broader design-engineering advice if installed.
|
|
12
|
+
|
|
13
|
+
Each is a distinct Skill. Do not assume `review-animations` builds features or that `animate` audits a repo.
|
|
14
|
+
|
|
15
|
+
## State coverage
|
|
16
|
+
|
|
17
|
+
For each component include: trigger, start state, end state, cancellation/interruption, repeated input, async completion/failure, focus/touch feedback, reduced-motion behavior. Distinguish latency feedback (spinner/skeleton) from aesthetic easing.
|
|
18
|
+
|
|
19
|
+
## Motion fallback
|
|
20
|
+
|
|
21
|
+
- Use property changes that avoid unnecessary layout/texture regeneration; select curve/duration through platform/design reference rather than arbitrary defaults.
|
|
22
|
+
- Check compositing costs and main-thread impacts; never claim stable frame rate without measurement.
|
|
23
|
+
- Respect user/system reduced-motion preference where accessible.
|
|
24
|
+
- Prefer compositional transitions that are interruptible/reversible over fire-and-forget tweens.
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
|
|
28
|
+
Interaction state chart, animation intent, properties/easing/duration rationale (specified only when grounded), cancel/re-entry behavior, actual implementation (if asked), manual test cases and known gaps.
|
|
29
|
+
|
|
30
|
+
## V2 additions
|
|
31
|
+
Create transition table: trigger, source state, destination, duration/easing, interruption, cancel/re-entry, reduced motion, performance metric. Capture motion at target refresh rate when possible. For Web avoid unnecessary layout/paint; for native interfaces use the project's animation primitives and measure runtime cost. Treat Emil as an optional web specialist; adapt principles to native stacks without applying DOM instructions. Motion-only preserves unrelated layout and palette.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
# Prototype and implementation
|
|
2
|
+
Respect requested output: a concept/spec is not a code task; Figma artifact is not equivalent to an image. Read existing stack, routes, tokens, data, component contracts and tests. Use compatible components and minimal dependencies. Figma/Stitch require discovered tool access; never claim upload or design file creation without evidence. For reference matching normalize target dimensions, scale and states; compare geometry, type, color, spacing and assets; don't stretch reference to hide deviations. Build and exercise real interactions if possible. Keep mock data clearly marked, preserve real business behavior. Do not change unrelated source, commit or deploy unless asked.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
# Visual direction
|
|
2
|
+
Select one visual director consistent with audience, category and existing system. Define a clear composition, dominant action, hierarchy, type rhythm, density and imagery strategy; make concrete choices rather than buzzwords. Use meaningful variation, not decoration. For marketing web prioritize brand narrative; for apps prioritize repeatable workflows, data density and states. Read current Taste instructions if using it; legacy aliases are not a current capability guarantee. Use original design or licensed images. Implement in existing stack and reuse components; don't impose a redesign on a narrow task. Check responsive layouts, long text, contrast and real content. Core fallback: sketch hierarchy, choose constraints, render and review.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Quality gates and evidence
|
|
2
|
+
Capture baseline and final screenshots with the same viewport, DPR, theme, locale and state; annotate discrepancies rather than claiming pixel-perfect. Include primary flow, error/empty/loading/disabled, responsive or actual screen sizes, keyboard/touch/focus where applicable, reduced motion, build/tests and performance measurements as available. Real browser/device evidence is distinct from static code review. Native interfaces need validation in their target runtime; a design preview cannot establish real-device behavior.
|
|
3
|
+
|
|
4
|
+
Record each finding: severity (critical/high/medium/low), evidence path or observation, expected vs actual, fix, retest status. Gate status PASS/FAIL/NOT VERIFIED/NOT APPLICABLE, with rationale. Required gates: scope, functionality, safety, required evidence, critical accessibility. A critical issue or failed hard gate blocks release. An unverified required gate prevents PASS. For concept tasks assess only relevant gates; never call concept production-ready.
|
|
5
|
+
|
|
6
|
+
Rubric: read `../../assets/quality-rubric.json`; assign 0–5 only with evidence (0 broken, 1 severe, 2 major gaps, 3 adequate, 4 good, 5 excellent). Weighted score = sum(weight*rating/5). Mark untested dimensions UNKNOWN and do not generate overall score with unknown applicable dimensions; explicitly excluded dimensions may be renormalized with rationale, coverage reported separately. Standard target 85, CRAFT/REFERENCE 92 as guidance, not objective guarantees. Report evidence coverage, score if justified, remaining blockers and suggested next validation. No claimed independent review without a separate reviewer.
|