ui-director-skill 2.1.1 → 3.0.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/CHANGELOG.md +9 -0
- package/INSTALL.md +5 -9
- package/README.md +26 -46
- package/SKILL.md +14 -20
- package/assets/capabilities.json +18 -19
- package/assets/install-manifest.json +4 -4
- package/assets/routing-rules.json +19 -63
- package/benchmark/README.md +54 -0
- package/benchmark/blind.mjs +141 -0
- package/benchmark/cases.json +66 -0
- package/benchmark/fixtures/reference.html +39 -0
- package/bin/ui.mjs +2 -1
- package/examples/usage.md +19 -50
- package/install.py +10 -9
- package/lib/workflows.mjs +115 -24
- package/package.json +3 -2
- package/references/delivery-contract.md +4 -3
- package/references/design-intelligence.md +1 -1
- package/references/integrations/skill-manager.md +5 -2
- package/references/integrations/upstream-adapters.md +24 -3
- package/references/integrations.md +1 -1
- package/references/motion-interaction.md +1 -1
- package/references/orchestration/context-management.md +13 -3
- package/references/orchestration/iteration-loop.md +7 -6
- package/references/orchestration/routing.md +10 -5
- package/references/platforms/hmi.md +5 -0
- package/references/quality-assurance.md +1 -1
- package/references/routing.md +1 -1
- package/references/stages/design-system.md +6 -3
- package/references/stages/deslop.md +3 -2
- package/references/stages/ux-strategy.md +10 -0
- package/references/stages/visual-direction.md +13 -2
- package/references/stages/visual-validation.md +23 -4
- package/references/visual-direction.md +1 -1
- package/skill_manager.py +4 -2
- package/templates/DESIGN.md +12 -12
- package/templates/PRODUCT.md +5 -7
- package/templates/REVIEW.md +16 -14
- package/assets/quality-rubric.json +0 -29
- package/config/optional-skills.json +0 -16
- package/config/quality-rubric.json +0 -13
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
#
|
|
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.
|
|
1
|
+
# Task routing
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
Determine intent, platform, deliverable and execution depth independently. Use the [route table](../../assets/routing-rules.json) as guidance. The CLI prefers an explicit platform flag, then platform cues in the request, then the project default. Its source-write flag includes standalone coded prototypes. Its product-source flag reports when the preview calls for modifying production code. The host determines actual scope from the brief.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
- Use AUDIT for findings and recommendations. Apply fixes only when requested. Add motion review when the task concerns animation.
|
|
6
|
+
- Use SYSTEM when the design system is the deliverable. Reusing a system is a constraint on a screen or flow task.
|
|
7
|
+
- Use REFERENCE when asked to match a reference and AUDIT to assess fidelity. A single supplied-reference component may be Quick. An original flagship experience may be High Fidelity.
|
|
8
|
+
- Use LOCAL for a clearly scoped edit and CLEANUP for targeted visual refinement. For a change that affects navigation, information priority, form structure or recovery, include UX strategy regardless of depth.
|
|
9
|
+
- Use the prototype stage only for a buildable implementation or requested prototype. Keep Figma-only work outside product source. Capture a baseline for existing scope when available.
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
Use Quick for targeted work, Standard by default, and High Fidelity when the brief calls for deep exploration or close comparison. Legacy FAST, CRAFT and REFERENCE mode flags map to Quick or High Fidelity. Legacy DESLOP intent maps to CLEANUP. The CLI reports a null repair limit for buildable work, where the evidence and user budget guide refinement.
|
|
12
|
+
|
|
13
|
+
The core leads every task. Match the required work to available host Skills, applying the project's list when configured. Confirm task fit and carry accepted specialist outputs into dependent work. See [specialist selection and handoff](../integrations/upstream-adapters.md).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Cocos and automotive HMI
|
|
2
|
+
|
|
3
|
+
Use the actual scene, Canvas and rendered surface layout as the starting point. Inspect design resolution and fit policy, fonts and atlases, component layout, focus/touch dispatch and the signal-to-view state mapping. Use approved target dimensions, display profiles, input rules and performance budgets from the project.
|
|
4
|
+
|
|
5
|
+
For the affected task, replay representative normal, stale, missing and reconnecting signals. Exercise touch or the supported input method at runtime, including relevant split-screen, focus, interruption and surface resize states. Check text and key indications at actual target scale, applicable day/night variants, frame pacing and latency against the project budget. For a transition spanning Android surfaces or RenderServices, compare target captures and traces for handoff timing, input ownership and view continuity. Use the applicable Cocos Creator, Android or QNX runtime. Record the specific device/build or simulator and mark device-only checks that still need evidence.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# Compatibility reference
|
|
2
|
-
See [stages/visual-validation](stages/visual-validation.md)
|
|
2
|
+
See [stages/visual-validation](stages/visual-validation.md).
|
package/references/routing.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# Compatibility reference
|
|
2
|
-
See [orchestration/routing](orchestration/routing.md)
|
|
2
|
+
See [orchestration/routing](orchestration/routing.md).
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
# Design system
|
|
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.
|
|
1
|
+
# Design system
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
Locate implemented tokens, themes, shared components and test or Storybook examples. Read approved constraints and trace existing values and component variants in the code before proposing changes. When docs and implementation disagree, follow [project memory](../orchestration/context-management.md).
|
|
4
|
+
|
|
5
|
+
Reuse semantic roles and component states. Check contrast, focus, text expansion, typography fallbacks, density, locale and platform behavior against the actual component. For greenfield work establish the smallest set of named roles and variants that supports the user flows. Document new shared tokens or exceptions with rationale and impact. Link DESIGN.md to the sources that actually own token values.
|
|
6
|
+
|
|
7
|
+
Use the supplied template if the project needs a DESIGN.md. If the project uses a structured DESIGN.md format, follow its schema. The local validator checks document structure only.
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# Visual cleanup
|
|
2
|
+
|
|
3
|
+
Use the targeted cleanup guidance in [design critique](visual-validation.md).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UX strategy
|
|
2
|
+
|
|
3
|
+
Start with a user in a concrete situation. Specify what prompted the task, the information available at entry, the choice or action to complete, and the observable result. Mark assumptions when user research or analytics is unavailable.
|
|
4
|
+
|
|
5
|
+
1. **Organize information by decisions.** Rank what the user must see to act, what they may need to inspect, and what belongs in secondary detail. Give the same concept the same label across navigation and screens. Keep critical context visible when users filter, switch tabs or open details.
|
|
6
|
+
2. **Trace the primary path.** Use a sequence such as entry → find → decide → act → confirm. For each step name the goal, primary control, prerequisite and feedback. Count unnecessary decisions, repeated input and context switches. Move optional detail into a secondary view when it helps comprehension.
|
|
7
|
+
3. **Model meaningful states.** For a complex interaction, map current state, event, next state, visible feedback and recovery. Include applicable loading, empty, partial, offline, stale, error, disabled and success states. Define async behavior for retries and repeat actions. Preserve user input during recoverable failures and explain the next action. Use undo or confirmation where the cost of a wrong action warrants it.
|
|
8
|
+
4. **Set observable checks.** Write scenarios with inputs and expected outcomes. Verify the happy path, one likely recovery path, and the input modes and screens that matter. For example, filter a stock list, compare two symbols without losing the current filter, and retry a failed load with the comparison selection intact. Record observed friction and the context in which it occurred.
|
|
9
|
+
|
|
10
|
+
Produce only enough detail to implement and test the task. A local change usually needs one flow slice and its affected states. A new product or complex flow may need a short hierarchy, flow diagram and transition table. Use the platform adapter to determine real input and runtime constraints.
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# Art direction
|
|
2
|
+
|
|
3
|
+
Translate product positioning into a visual premise that can guide implementation. Describe what should draw the eye first, what users should read or act on next, and how the composition supports the task.
|
|
4
|
+
|
|
5
|
+
## Explore and select
|
|
6
|
+
|
|
7
|
+
For a flagship or High Fidelity brief with open visual direction, sketch two or three substantially different options before implementing. Make differences in composition, hierarchy, type scale, rhythm, density, treatment of content, and imagery explicit. Use short written sketches, wireframes or visual studies appropriate to the brief. Examples include an editorial composition that establishes a reading sequence, a tool layout with aligned dense tables and persistent controls, and a brand narrative built around imagery and material. Treat these as examples rather than a fixed menu.
|
|
8
|
+
|
|
9
|
+
Compare options against the user task, brand and tone, real content, accessibility, platform constraints, and cost of reuse. Choose one and record the meaningful tradeoff. For a narrow edit, a prescribed reference, or an established visual language, use the applicable constraints and resolve only the choices still open.
|
|
10
|
+
|
|
11
|
+
## Carry it into the implementation
|
|
12
|
+
|
|
13
|
+
Specify a dominant focal point, grid and alignment logic, semantic type roles, spacing rhythm, imagery purpose and how the layout changes under real content and smaller screens. Show what makes the result recognizable in grayscale or before images load. Choose media with suitable rights and use actual content where available. Reuse approved tokens or propose a justified exception. Inspect the rendered result at the target size and adjust any choices that lose hierarchy, make real content hard to scan, or weaken the intended character.
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
#
|
|
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.
|
|
1
|
+
# Design critique and verification
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
Capture comparable baseline and final states where applicable. Record environment, viewport or device, scale/DPR, theme, locale, dataset and interaction state. Exercise the primary task and likely failure/recovery path. Check real content, responsive widths or target screens, input methods, accessibility, and performance when material to the task. Attach screenshot or video evidence for visual findings and reproduction steps or runtime output for behavior.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
For a runnable delivery, use the target browser, mobile device or simulator, or desktop runtime. For each required task path and key state, record the expected behavior, actual observation, evidence and result. After repair, re-exercise the affected path and any impacted behavior. Include the post-repair observation in the evidence record. For a design-only deliverable, verify the agreed artifact and scope using the evidence it permits.
|
|
6
|
+
|
|
7
|
+
## Three levels of acceptance
|
|
8
|
+
|
|
9
|
+
| Level | Record |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| Hard gates | Status and evidence for scope, core functionality, layout overflow, critical accessibility and applicable safety. Add project-required checks such as build or performance budgets. Use PASS, FAIL or NOT VERIFIED. Omit irrelevant gates and explain material scope exclusions. |
|
|
12
|
+
| Experience | Task and state exercised, expected and actual result, observed friction, recovery behavior and concrete repair. |
|
|
13
|
+
| Visual quality | Screenshot-based observations about hierarchy, rhythm, typography, content, character, brand and consistency. Compare to the baseline, direction or supplied reference under equivalent conditions. |
|
|
14
|
+
|
|
15
|
+
A failed or unverified required gate prevents a verified delivery claim. A build, static inspection or visual preview can support only the checks it actually exercised. Apply evidence expectations to the requested artifact type.
|
|
16
|
+
|
|
17
|
+
## Reviewer handoff
|
|
18
|
+
|
|
19
|
+
- **Designer** produces the implementation, comparable renders and reproducible paths to the relevant states.
|
|
20
|
+
- **Critic** inspects a fresh evidence packet with the original brief, constraints, renders and steps to reproduce. Keep the Designer's rationale, self-review and proposed fixes out of that packet. Ask for findings with evidence, relevance to the task and severity. Use a separate reviewer only when the host supports it and the task permits delegation. Otherwise perform a distinct second pass against the same evidence packet and label it second self-review.
|
|
21
|
+
- **Director** checks which findings reproduce, prioritizes them by user impact and decides which changes fit the brief. Recheck affected behavior and views after each meaningful repair.
|
|
22
|
+
|
|
23
|
+
Inspect generic patterns during visual critique, including repetitive framing, decorative labels, unnecessary surfaces, weak imagery and motion that obscures state. Keep choices with a clear purpose. For an explicit cleanup request, capture a baseline, make narrow fixes and verify the affected states.
|
|
24
|
+
|
|
25
|
+
Use severity critical/high/medium/low. Record each material finding with expected versus observed behavior, exact state or evidence path, affected task, proposed repair and retest outcome.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# Compatibility reference
|
|
2
|
-
See [stages/visual-direction](stages/visual-direction.md)
|
|
2
|
+
See [stages/visual-direction](stages/visual-direction.md).
|
package/skill_manager.py
CHANGED
|
@@ -626,8 +626,10 @@ def rollback(root, dry=False, requested=None):
|
|
|
626
626
|
def run(args, roots):
|
|
627
627
|
if args.cmd in ('bundle', 'update-upstreams'):
|
|
628
628
|
update = args.cmd == 'update-upstreams'
|
|
629
|
-
profile = getattr(args, 'profile', None)
|
|
630
|
-
|
|
629
|
+
profile = getattr(args, 'profile', None)
|
|
630
|
+
if not any((update, profile, args.provider, args.plan, args.offline)):
|
|
631
|
+
raise ValueError('Bundle requires --provider, --profile, or an existing --plan.')
|
|
632
|
+
default_providers = list(PROVIDERS) if update else REGISTRY['profiles'].get(profile, [])
|
|
631
633
|
selected = list(dict.fromkeys(args.provider or default_providers))
|
|
632
634
|
apply_plan(roots, selected, 'update' if update else 'install', args)
|
|
633
635
|
return 0
|
package/templates/DESIGN.md
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
name: Unconfigured project
|
|
3
3
|
---
|
|
4
4
|
# Overview
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
Draft pending review. Link the files that own the shared tokens, themes and components. Record approval and rationale for project-wide choices.
|
|
6
7
|
|
|
7
8
|
## Colors
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
Link semantic roles, contrast rules and theme sources.
|
|
9
11
|
|
|
10
12
|
## Typography
|
|
11
|
-
TODO: font families, size, weight, line height and fallback.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
TODO: spacing scale, grid, responsive rules and density.
|
|
14
|
+
Link type roles, fallback and localization rules.
|
|
15
15
|
|
|
16
|
-
##
|
|
17
|
-
TODO: elevation and surface rules.
|
|
16
|
+
## Layout
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
TODO: radius and border rules.
|
|
18
|
+
Link layout and density rules, including behavior at target sizes.
|
|
21
19
|
|
|
22
20
|
## Components
|
|
23
|
-
TODO: variants, states, interaction and accessibility.
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
Link shared components, relevant variants, interaction states and accessibility expectations.
|
|
23
|
+
|
|
24
|
+
## Decisions
|
|
25
|
+
|
|
26
|
+
Record visual intent and approved exceptions with their scope and rationale.
|
package/templates/PRODUCT.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Product context
|
|
2
|
-
Draft — verify before use.
|
|
3
2
|
|
|
4
|
-
- Audience and primary job
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
- Success criteria and required evidence: TODO
|
|
3
|
+
- Audience, situation and primary job
|
|
4
|
+
- Entry point, key decisions and success state
|
|
5
|
+
- Likely failure and recovery
|
|
6
|
+
- Platform, real content and project constraints
|
|
7
|
+
- Success criteria with observable checks
|
package/templates/REVIEW.md
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
# Design review
|
|
2
|
-
Scope / platform / mode / deliverable: TBD
|
|
3
|
-
Actual providers and fallback: TBD
|
|
4
|
-
Baseline / final evidence: NOT VERIFIED
|
|
5
|
-
Repair rounds: 0
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
- Scope, platform and target states
|
|
4
|
+
- Baseline and final evidence
|
|
5
|
+
- Review method
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
7
|
+
## Hard gates
|
|
8
|
+
|
|
9
|
+
| Gate | Status | Evidence |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Core functionality | NOT VERIFIED | |
|
|
12
|
+
| Layout and overflow | NOT VERIFIED | |
|
|
16
13
|
| Critical accessibility | NOT VERIFIED | |
|
|
14
|
+
| Applicable safety | NOT VERIFIED | |
|
|
15
|
+
|
|
16
|
+
## Experience and visual quality
|
|
17
|
+
|
|
18
|
+
| Level | Severity | Finding and affected task | Evidence | Repair and retest |
|
|
19
|
+
| --- | --- | --- | --- | --- |
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
Remaining risks: TBD
|
|
21
|
+
## Open issues
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"standard_target": 85,
|
|
3
|
-
"craft_target": 92,
|
|
4
|
-
"minimum_coverage_for_score": 1.0,
|
|
5
|
-
"dimensions": {
|
|
6
|
-
"visual": 25,
|
|
7
|
-
"ux": 20,
|
|
8
|
-
"consistency": 15,
|
|
9
|
-
"distinctiveness": 15,
|
|
10
|
-
"motion": 10,
|
|
11
|
-
"engineering": 10,
|
|
12
|
-
"accessibility": 5
|
|
13
|
-
},
|
|
14
|
-
"rating_scale": [
|
|
15
|
-
0,
|
|
16
|
-
1,
|
|
17
|
-
2,
|
|
18
|
-
3,
|
|
19
|
-
4,
|
|
20
|
-
5
|
|
21
|
-
],
|
|
22
|
-
"hard_gates": [
|
|
23
|
-
"scope",
|
|
24
|
-
"functionality",
|
|
25
|
-
"safety",
|
|
26
|
-
"required_evidence",
|
|
27
|
-
"critical_accessibility"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{ "id": "pro-max", "aliases": ["ui-ux-pro-max"], "stages": ["research", "system"], "platforms": ["web", "mobile", "desktop"] },
|
|
3
|
-
{ "id": "frontend", "aliases": ["frontend-design"], "stages": ["visual"], "platforms": ["web"] },
|
|
4
|
-
{ "id": "taste", "aliases": ["design-taste-frontend", "taste-skill"], "stages": ["visual"], "platforms": ["web"] },
|
|
5
|
-
{ "id": "taste-classics", "aliases": ["design-taste-frontend", "high-end-visual-design", "minimalist-ui", "industrial-brutalist-ui"], "stages": ["visual"], "platforms": ["web"] },
|
|
6
|
-
{ "id": "hallmark", "aliases": ["hallmark"], "stages": ["research", "system", "visual", "deslop", "qa"], "platforms": ["web"] },
|
|
7
|
-
{ "id": "unslop", "aliases": ["unslop"], "stages": ["deslop"], "platforms": ["web"] },
|
|
8
|
-
{ "id": "impeccable", "aliases": ["impeccable"], "stages": ["baseline", "deslop", "qa"], "platforms": ["web"] },
|
|
9
|
-
{ "id": "emil", "aliases": ["animate", "review-animations", "animation-performance"], "stages": ["motion", "motion-review"], "platforms": ["web"] },
|
|
10
|
-
{ "id": "vercel", "aliases": ["web-design-guidelines"], "stages": ["qa"], "platforms": ["web"] },
|
|
11
|
-
{ "id": "stitch", "aliases": ["stitch", "design-md", "stitch-design"], "stages": ["research", "system", "prototype"], "platforms": ["web"] },
|
|
12
|
-
{ "id": "figma", "aliases": ["figma-implement-design", "figma-generate-design", "figma"], "stages": ["research", "prototype"], "platforms": ["web", "mobile", "desktop"] },
|
|
13
|
-
{ "id": "playwright", "aliases": ["playwright-interactive", "playwright", "screenshot"], "stages": ["baseline", "qa"], "platforms": ["web"] },
|
|
14
|
-
{ "id": "design-qa", "aliases": ["design-qa"], "stages": ["qa"], "platforms": ["web", "mobile", "desktop"] },
|
|
15
|
-
{ "id": "cook", "aliases": ["cook"], "stages": ["qa"], "platforms": ["web"] }
|
|
16
|
-
]
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"targets": { "STANDARD": 85, "CRAFT": 92, "REFERENCE": 92 },
|
|
3
|
-
"dimensions": {
|
|
4
|
-
"visual": 25,
|
|
5
|
-
"ux": 20,
|
|
6
|
-
"consistency": 15,
|
|
7
|
-
"distinctiveness": 15,
|
|
8
|
-
"motion": 10,
|
|
9
|
-
"engineering": 10,
|
|
10
|
-
"accessibility": 5
|
|
11
|
-
},
|
|
12
|
-
"hardGates": ["scope", "functionality", "safety", "required_evidence", "critical_accessibility"]
|
|
13
|
-
}
|