medesign 1.6.1 → 1.7.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/README.md +71 -23
- package/SKILL.md +169 -0
- package/bin/medesign.js +93 -24
- package/data/cip/deliverables.csv +51 -0
- package/data/cip/industries.csv +21 -0
- package/data/cip/mockup-contexts.csv +21 -0
- package/data/cip/styles.csv +21 -0
- package/data/icon/styles.csv +16 -0
- package/data/logo/colors.csv +56 -0
- package/data/logo/industries.csv +56 -0
- package/data/logo/styles.csv +56 -0
- package/docs/architecture/v1.7-proposal.md +279 -0
- package/docs/audit/COMPETITIVE-BENCHMARK.md +101 -0
- package/docs/audit/INITIAL-SOURCE-AUDIT.md +89 -0
- package/docs/benchmark/BENCHMARK-SUITE.md +97 -0
- package/docs/roadmap/FRONTEND-DESIGN-SKILL-ROADMAP.md +277 -0
- package/examples/snapshots/cadastral-qaqc-slide-desktop-1440x900.png +0 -0
- package/examples/snapshots/cadastral-qaqc-slide-mobile-390x844.png +0 -0
- package/examples/snapshots/cadastral-qaqc-slide-tablet-820x1180.png +0 -0
- package/package.json +7 -3
- package/presets/metha/design-tokens.css +12 -12
- package/references/design-routing.md +96 -207
- package/references/quality-gate.md +1 -1
- package/references/slides-copywriting-formulas.md +5 -8
- package/references/slides-layout-patterns.md +8 -23
- package/references/slides-strategies.md +0 -10
- package/tests/browser-audit.js +24 -6
- package/tests/linter.js +131 -13
- package/tests/visual-testbed.html +682 -681
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Competitive Benchmark: Frontend Design Skills
|
|
2
|
+
|
|
3
|
+
**Reviewed:** 2026-11-24
|
|
4
|
+
**Purpose:** Extract design and engineering patterns that can inform ME-DESIGN without copying proprietary text, data or implementation.
|
|
5
|
+
|
|
6
|
+
This is a qualitative source review of public repository files, not a controlled performance benchmark. Repository popularity is not treated as proof of quality.
|
|
7
|
+
|
|
8
|
+
## 1. References reviewed
|
|
9
|
+
|
|
10
|
+
| Project | Source | Observed strength | Lesson for ME-DESIGN |
|
|
11
|
+
|---|---|---|---|
|
|
12
|
+
| Anthropic Frontend Design | [anthropics/skills - frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design) | Distinctive design direction grounded in real subject matter; plan, critique and restraint; careful UX copy | Make the brief and product context drive the aesthetic. Keep the root skill compact and opinionated. |
|
|
13
|
+
| UI UX Pro Max | [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) | Searchable structured data across products, styles, typography, colours, landing patterns, charts, UX and stacks; BM25 + regex search; design-system generation; source-of-truth and asset-sync process | Turn the existing ME-DESIGN catalogue into a curated, queryable knowledge system with provenance and validation. |
|
|
14
|
+
| Impeccable | [pbakaus/impeccable](https://github.com/pbakaus/impeccable) | Small targeted commands for design iteration; persistent `PRODUCT.md` and `DESIGN.md`; scored critique and technical audit; deterministic detection; hooks and CI integration | Make the common actions obvious and targeted. Persist product/design context and let checks run without relying on memory. |
|
|
15
|
+
| Vercel Web Design Guidelines | [vercel-labs/agent-skills - web-design-guidelines](https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines) | Focused review skill; explicit instruction to read bundled rules; pinned upstream commit and SHA-256; terse file-oriented findings | Use short instructions, versioned rule snapshots and precise file/line output. |
|
|
16
|
+
| Taste Skill | [Leonxlnx/taste-skill](https://github.com/Leonxlnx/taste-skill/tree/main/skills/taste-skill) | Page-kind and business-aware design planning; concrete layout/asset workflow; build finish gate and browser checks | Use explicit page/domain context and real rendered verification, but keep recipes optional and context-specific. |
|
|
17
|
+
|
|
18
|
+
## 2. What makes each approach useful
|
|
19
|
+
|
|
20
|
+
### Anthropic Frontend Design: taste and creative direction
|
|
21
|
+
|
|
22
|
+
The reviewed skill puts the subject, audience and primary job ahead of visual styling. It asks the agent to commit to a clear concept, plan a compact token system, review that plan against the brief, then build and critique. It also warns against repeating the same aesthetic defaults across projects and treats interface writing as part of design.
|
|
23
|
+
|
|
24
|
+
**Adopt:** brief-led direction, specificity, critique, restraint, copy quality and creative complexity matched to the task.
|
|
25
|
+
|
|
26
|
+
**Do not over-apply:** a mandatory planning ceremony for one-line edits. The value is intentionality, not extra chat turns.
|
|
27
|
+
|
|
28
|
+
### UI UX Pro Max: design knowledge as a product
|
|
29
|
+
|
|
30
|
+
The reviewed repository describes structured datasets, domain-based search, stack-specific guidance and a hybrid BM25/regex ranking engine. It also documents a clear source-of-truth and generated-asset sync process.
|
|
31
|
+
|
|
32
|
+
**Adopt:** well-structured and searchable knowledge; framework-aware recommendations; explicit data provenance; schema checks; reproducible generated outputs.
|
|
33
|
+
|
|
34
|
+
**Do not over-apply:** letting a large database choose the design in place of the product brief. Search should narrow options and explain fit, not force a template.
|
|
35
|
+
|
|
36
|
+
### Impeccable: useful iteration verbs and operational QA
|
|
37
|
+
|
|
38
|
+
The README describes targeted actions such as critique, audit, polish, harden, adapt and optimize. It also describes product/design context files and automated detector workflows in an agent or CI environment. Its documentation distinguishes code-only static rules from checks that require a rendered URL.
|
|
39
|
+
|
|
40
|
+
**Adopt:** targeted workflows, persistent project context, priority-ranked findings, automatic checks and distinct static/browser execution.
|
|
41
|
+
|
|
42
|
+
**Do not over-apply:** a long command vocabulary that users must memorise. ME-DESIGN should accept natural-language requests first and use concise aliases second.
|
|
43
|
+
|
|
44
|
+
### Vercel Web Design Guidelines: concise and reviewable
|
|
45
|
+
|
|
46
|
+
The reviewed skill is deliberately narrow: read a bundled rules file, inspect specified files, apply the rules and return concise file-oriented findings. Its upstream rules are pinned to a commit and checksum.
|
|
47
|
+
|
|
48
|
+
**Adopt:** a small routing skill, immutable/versioned reference snapshots, narrow scope and precise findings.
|
|
49
|
+
|
|
50
|
+
**Do not over-apply:** treating a review checklist as a complete design-generation process.
|
|
51
|
+
|
|
52
|
+
### Taste Skill: real-world specificity and finish gates
|
|
53
|
+
|
|
54
|
+
The reviewed skill uses explicit site/page kinds, business context, actual assets and a repeatable build sequence. It also calls for a finish gate and a browser-verified result.
|
|
55
|
+
|
|
56
|
+
**Adopt:** page/domain-aware composition, asset planning, real implementation and rendered finish checks.
|
|
57
|
+
|
|
58
|
+
**Do not over-apply:** universal page-height, section-count, photography or motion rules. A GIS workbench, admin dashboard, finance table and marketing page should not share the same rigid recipe.
|
|
59
|
+
|
|
60
|
+
## 3. ME-DESIGN's differentiated strengths
|
|
61
|
+
|
|
62
|
+
ME-DESIGN already has valuable assets that should be refined rather than discarded:
|
|
63
|
+
|
|
64
|
+
- Engineering, GIS, cadastral, CAD, telemetry, field-survey and QA/QC archetypes that many general frontend skills do not foreground.
|
|
65
|
+
- Thai/Latin typography guidance and attention to diacritics.
|
|
66
|
+
- Optical geometry and perceptual colour work.
|
|
67
|
+
- A Node CLI, presets, token export, SARIF output, fixtures, CDP browser tooling and snapshot generation.
|
|
68
|
+
- A substantial reference library and cross-agent adapters.
|
|
69
|
+
|
|
70
|
+
The opportunity is to make these assets easier to reach, less prescriptive and more rigorously verified.
|
|
71
|
+
|
|
72
|
+
## 4. The target synthesis
|
|
73
|
+
|
|
74
|
+
ME-DESIGN should combine five strengths:
|
|
75
|
+
|
|
76
|
+
1. **Anthropic-like design intent:** subject, users, primary job and original visual direction.
|
|
77
|
+
2. **Pro Max-like intelligence:** curated, searchable, stack-aware design knowledge.
|
|
78
|
+
3. **Impeccable-like iteration:** clear targeted actions and persistent project context.
|
|
79
|
+
4. **Vercel-like review discipline:** concise rules, pinned sources and file/line findings.
|
|
80
|
+
5. **Taste-like finish quality:** real assets, domain-aware layout and browser verification.
|
|
81
|
+
|
|
82
|
+
The differentiator should be the integration of these strengths with ME-DESIGN's engineering/GIS knowledge and safe frontend QA.
|
|
83
|
+
|
|
84
|
+
## 5. Anti-patterns ME-DESIGN should avoid
|
|
85
|
+
|
|
86
|
+
- One default font family, colour palette, radius, grid or card treatment for every product.
|
|
87
|
+
- Mandatory dark mode, three-pane cockpit, Bento layout, gradients or motion.
|
|
88
|
+
- Treating "zero em dash" or a preferred aesthetic as an accessibility invariant.
|
|
89
|
+
- Requiring every possible UI state for every component irrespective of its function.
|
|
90
|
+
- Treating one regex match as proof that all interactive elements are accessible.
|
|
91
|
+
- Treating a static heuristic score as a visual/browser measurement.
|
|
92
|
+
- Auto-rewriting arbitrary code or visible/non-visible text because a pattern matched.
|
|
93
|
+
- Requiring users to answer a large intake form when the repository or brief already contains the answer.
|
|
94
|
+
- Presenting a long list of style options without a recommendation and rationale.
|
|
95
|
+
|
|
96
|
+
## 6. Source-review limitations
|
|
97
|
+
|
|
98
|
+
- This review inspects selected public repository files, not every file, issue, release or user workflow.
|
|
99
|
+
- No comparative implementation benchmark was executed in the same model, framework, prompt set or browser environment.
|
|
100
|
+
- Public examples and feature claims are treated as project documentation, not independent proof of quality.
|
|
101
|
+
- ME-DESIGN should conduct a reproducible prompt-and-code benchmark in Phase 6 before making superiority claims.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Initial Source Audit: ME-DESIGN
|
|
2
|
+
|
|
3
|
+
**Baseline commit:** `48296cb49b0da6ae60ff6edcbd77cc82616335b6`
|
|
4
|
+
**Baseline version:** `1.6.1`
|
|
5
|
+
**Review date:** 2026-11-24
|
|
6
|
+
**Scope:** Source and workflow review through GitHub repository files. No local install, `npm test`, browser execution or visual user testing was performed during this baseline review.
|
|
7
|
+
|
|
8
|
+
## 1. Executive summary
|
|
9
|
+
|
|
10
|
+
ME-DESIGN has a meaningful foundation: domain-specific design references, reusable presets, token export, CLI commands, a fixture-based linter, a CDP browser verifier, snapshots and CI workflows.
|
|
11
|
+
|
|
12
|
+
The primary risk is not missing features. It is the gap between the strength of the claims and the evidence produced by the current implementation. The first priority is to make the safety and verification model trustworthy, then improve skill usability and only then expand the design knowledge and automation surface.
|
|
13
|
+
|
|
14
|
+
## 2. Confirmed source findings
|
|
15
|
+
|
|
16
|
+
| ID | Priority | File(s) | Finding | Risk |
|
|
17
|
+
|---|---|---|---|---|
|
|
18
|
+
| AUD-001 | P0 | `tests/linter.js` | MD001-MD005 take their severity from `config.rules`; the hard-failure calculation only includes hard invariants whose severity is `error`. | A custom `off` or weaker severity can bypass the hard gate. |
|
|
19
|
+
| AUD-002 | P0 | `tests/linter.js` | Inline suppression preprocessing accepts generic rule IDs, including hard-invariant IDs. | A hard rule can be hidden by a suppression comment. |
|
|
20
|
+
| AUD-003 | P0 | `bin/medesign.js` | `polish` writes the candidate to the original file before the post-repair audit. The post-audit starts with `isPassed = true` and catches errors without failing closed. | A missing or malformed post-audit report can leave modified code and a misleading PASS. A rejected candidate is not rolled back. |
|
|
21
|
+
| AUD-004 | P1 | `tests/linter.js` | The engine uses global text/pattern checks for several rules, while descriptions call it AST/semantic analysis. For example, one occurrence of `:focus-visible` can satisfy the global focus-presence test. | False confidence and false positives/negatives. |
|
|
22
|
+
| AUD-005 | P1 | `tests/linter.js` | The score is derived from rule-count deductions; hierarchy starts at a constant 95. | The Q-Score is a static heuristic, not a direct measurement of rendered hierarchy or visual quality. |
|
|
23
|
+
| AUD-006 | P1 | `tests/browser-audit.js` | Some browser checks use fixed delays and the text-contrast check samples a limited set of text nodes. | Slow-loading or later-page elements may be missed; results can be timing-sensitive. |
|
|
24
|
+
| AUD-007 | P1 | `package.json`, `tests/browser-audit.js`, `tests/snapshot.js` | The package declares Node `>=18`, while browser tooling instantiates the global `WebSocket`. Node documents the global WebSocket as added in v20.10.0 and stable in v22.4.0. | The advertised minimum runtime does not match the browser tool's runtime API requirements. |
|
|
25
|
+
| AUD-008 | P2 | `.github/workflows/ci.yml` | SARIF upload uses `continue-on-error: true`. | A report-upload failure can be hidden from the workflow result. |
|
|
26
|
+
| AUD-009 | P2 | `SKILL.md` | The root instructions require a full brief/direction ritual and announce a mode even for work that could be small and unambiguous. | Higher interaction cost and unnecessary questions. |
|
|
27
|
+
| AUD-010 | P2 | `SKILL.md`, `references/` | The entry skill routes into a large reference collection, while many design rules are phrased as broad universal requirements. | Cognitive load and the risk of applying a domain-specific preference to the wrong product. |
|
|
28
|
+
|
|
29
|
+
## 3. Important implementation details
|
|
30
|
+
|
|
31
|
+
### AUD-001 / AUD-002 - hard invariants
|
|
32
|
+
|
|
33
|
+
The code marks MD001-MD005 as `hardInvariant: true`, but severity is resolved from user configuration. The gate later filters with both conditions: `hardInvariant && severity === 'error'`. Inline suppression preprocessing also accepts generic identifiers.
|
|
34
|
+
|
|
35
|
+
**Required behaviour:** MD001-MD005 must remain blocking. If exceptions are needed in the future, they must use an explicit, reviewable waiver model and must not silently turn a gate green.
|
|
36
|
+
|
|
37
|
+
### AUD-003 - polish gate
|
|
38
|
+
|
|
39
|
+
The current flow:
|
|
40
|
+
1. Reads and transforms the source.
|
|
41
|
+
2. Writes the transformed content directly to the original path.
|
|
42
|
+
3. Runs the linter afterward.
|
|
43
|
+
4. Defaults to a passing state and swallows post-audit exceptions.
|
|
44
|
+
|
|
45
|
+
It also used a truthy fallback for the pre-audit score (`parsed.qScore || 80.0`), which does not preserve a legitimate numeric zero.
|
|
46
|
+
|
|
47
|
+
**Required behaviour:** validate the candidate in a temporary sibling file, require a valid machine-readable report, replace the original only after a genuine pass, and remove the temporary file on every failure path.
|
|
48
|
+
|
|
49
|
+
### AUD-004 / AUD-005 - honesty of the verification model
|
|
50
|
+
|
|
51
|
+
The current linter is a static heuristic engine using source-pattern checks. It does not parse every HTML/CSS/JSX construct into an AST and does not render the page. The score's category values are also partly fixed and deducted according to detected rule counts.
|
|
52
|
+
|
|
53
|
+
**Required behaviour:** call it a static pattern/heuristic check until parser-backed analysis exists. Expose the score as `static-heuristic`; do not describe it as a browser-verified or perceptual design score.
|
|
54
|
+
|
|
55
|
+
### AUD-006 - browser evidence
|
|
56
|
+
|
|
57
|
+
The browser verifier does use Chrome DevTools Protocol, which is a useful foundation. However, fixed waits and limited element sampling reduce confidence. Browser startup and cleanup/error paths also need focused tests.
|
|
58
|
+
|
|
59
|
+
**Required behaviour:** use explicit readiness conditions, inspect the complete relevant element set, distinguish audit failure from environment failure, and close child processes and CDP resources in a guaranteed cleanup path.
|
|
60
|
+
|
|
61
|
+
### AUD-007 - runtime compatibility
|
|
62
|
+
|
|
63
|
+
The package currently advertises `node >=18.0.0`. The browser tooling uses the global `WebSocket`; the official Node.js documentation records this API as added in v20.10.0 and stable in v22.4.0. See [Node.js global WebSocket documentation](https://nodejs.org/api/globals.html#class-websocket).
|
|
64
|
+
|
|
65
|
+
**Required decision:** either raise the engine floor to a version with stable native WebSocket support, or add and test a compatible WebSocket implementation for the declared minimum runtime. Do not leave the mismatch undocumented.
|
|
66
|
+
|
|
67
|
+
## 4. Skill-level findings
|
|
68
|
+
|
|
69
|
+
- The main skill combines frontend design, graphic design, slides, reports and brand systems. This breadth can remain in the repository, but the primary frontend workflow should be clearer.
|
|
70
|
+
- A full A/B direction pitch should be optional for substantial or ambiguous projects, not mandatory for a simple task.
|
|
71
|
+
- Project context (product, users, design conventions and stack) should be inspected and recorded where useful.
|
|
72
|
+
- The skill should distinguish universal engineering constraints from visual preferences and context-specific heuristics.
|
|
73
|
+
- "No em dash", a particular font pairing, a dark palette or a Bento layout should never be described as an accessibility requirement.
|
|
74
|
+
- Existing project conventions and business logic should be preserved unless the user asks to change them.
|
|
75
|
+
|
|
76
|
+
## 5. Immediate remediation order
|
|
77
|
+
|
|
78
|
+
1. **P0:** make hard invariants non-overridable and suppression-safe.
|
|
79
|
+
2. **P0:** make `polish` fail-closed and atomic.
|
|
80
|
+
3. **P1:** correct terminology and expose the static score type.
|
|
81
|
+
4. **P1:** resolve the Node/WebSocket compatibility contract.
|
|
82
|
+
5. **P1:** improve browser readiness, coverage and cleanup.
|
|
83
|
+
6. **P2:** simplify the root skill and adopt the fast/deep workflow.
|
|
84
|
+
7. **P2:** organise and validate the design knowledge base.
|
|
85
|
+
8. **P2:** improve CI, compatibility and release provenance.
|
|
86
|
+
|
|
87
|
+
## 6. Verification status
|
|
88
|
+
|
|
89
|
+
This is a source review, not an executed test report. The findings above are derived from the reviewed source and workflow files. No claim is made that the existing test suite passes or fails in a live runtime. Each remediation must add regression coverage and record actual command output before being marked complete.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# ME-DESIGN — Competitive Benchmark Evaluation Suite
|
|
2
|
+
|
|
3
|
+
**Document Version:** 2.0.0
|
|
4
|
+
**Methodology:** Standardized Multi-Task Evaluation Rubric for AI Frontend Design Skills
|
|
5
|
+
**Target Skills Evaluated:** Anthropic Frontend Design, UI UX Pro Max, Impeccable, Vercel Web Design Guidelines, Taste Skill, and ME-DESIGN vNext.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Benchmark Task Dataset (8 Standardized Tasks)
|
|
10
|
+
|
|
11
|
+
Each task is defined with a fixed prompt, target audience, technical constraints, and verifiable success criteria:
|
|
12
|
+
|
|
13
|
+
### Task 1: B2B Developer SaaS Landing Page
|
|
14
|
+
- **Prompt:** "Design a modern landing page for an edge database platform targeting backend developers. Include hero with code snippet preview, architectural value pillars, interactive pricing slider, customer logos, and clear sign-up action."
|
|
15
|
+
- **Stack:** Tailwind CSS / HTML5 semantic structure.
|
|
16
|
+
- **Constraints:** No generic centered purple gradients or 3 identical feature cards. Must use developer-oriented typography (Geist / JetBrains Mono) and crisp monochrome-leaning palette.
|
|
17
|
+
|
|
18
|
+
### Task 2: Real-Time Telemetry & Operations Dashboard
|
|
19
|
+
- **Prompt:** "Build a real-time cluster health and telemetry dashboard with cluster status badges, throughput time-series canvas, node latency table, and quick mitigation action buttons."
|
|
20
|
+
- **Stack:** Pure CSS or Tailwind, High-DPI canvas/SVG.
|
|
21
|
+
- **Constraints:** 100dvh viewport stability, tabular mono numerals, distinct interactive states for all buttons, no `grid-auto-flow: dense` DOM scrambling.
|
|
22
|
+
|
|
23
|
+
### Task 3: Survey & Cadastral GIS Mapping Workbench
|
|
24
|
+
- **Prompt:** "Create a cadastral land-survey parcel inspection interface with split 16:10 spatial canvas, parcel attribute inspector sidebar, coordinate reference system switcher, and legal boundary QA/QC status chips."
|
|
25
|
+
- **Stack:** Modern CSS (CSS Grid, OKLCH, Custom Properties).
|
|
26
|
+
- **Constraints:** High spatial density, dark slate canvas with Electric Cyan (#00f5fb) active parcel stroke, Thai-Latin bilingual support with `line-height >= 1.7`.
|
|
27
|
+
|
|
28
|
+
### Task 4: High-Density Financial Data Table
|
|
29
|
+
- **Prompt:** "Implement a high-density financial market order-book and transaction log with sortable sticky table headers, alternating hairline borders, tabular alignment, and positive/negative delta pill badges."
|
|
30
|
+
- **Stack:** HTML5 Table semantics, CSS Sticky positioning.
|
|
31
|
+
- **Constraints:** Zero horizontal layout breaking, WCAG AA contrast for delta text (min 4.5:1), keyboard tab traversal through action rows.
|
|
32
|
+
|
|
33
|
+
### Task 5: Mobile Booking & Verification Form
|
|
34
|
+
- **Prompt:** "Build a responsive mobile appointment booking form with calendar date selector, time slot chips, contact inputs, and sticky bottom confirmation bar."
|
|
35
|
+
- **Stack:** Mobile-first viewport (390x844).
|
|
36
|
+
- **Constraints:** 100% touch targets >= 44x44px with >=8px optical clearance, no horizontal overflow, virtual keyboard scrollbar tolerance.
|
|
37
|
+
|
|
38
|
+
### Task 6: Existing Project Modernization / Retrofit
|
|
39
|
+
- **Prompt:** "Modernize this legacy 2018 corporate portal: update typography to contemporary pairings, replace raw 100vh with 100dvh, fix missing focus indicators, and elevate contrast while preserving existing forms and API handlers."
|
|
40
|
+
- **Stack:** Vanilla HTML/CSS with inline handlers.
|
|
41
|
+
- **Constraints:** Zero regression on form submission names, IDs, or JavaScript event bindings; atomic safe diff.
|
|
42
|
+
|
|
43
|
+
### Task 7: Asymmetric Bento Content Grid
|
|
44
|
+
- **Prompt:** "Create a product feature showcase grid for a high-end hardware audio interface featuring an asymmetric bento grid with highlighted primary feature, waveform interactive preview, and technical specs card."
|
|
45
|
+
- **Stack:** CSS Grid with `@media (min-width: 768px)` spans.
|
|
46
|
+
- **Constraints:** Legitimate visual hierarchy (featured span-2 vs sub-features), concentric border radius math (`r_inner = max(0, r_outer - border - pad)`).
|
|
47
|
+
|
|
48
|
+
### Task 8: Deep Accessibility & High-Contrast Gate
|
|
49
|
+
- **Prompt:** "Audit and repair this failing accessible component suite: restore missing focus rings, enforce Windows High Contrast (`forced-colors: active`) physical outline persistence, add prefers-reduced-motion gates, and eliminate button scale hit-crush."
|
|
50
|
+
- **Stack:** Accessible HTML5 + CSS.
|
|
51
|
+
- **Constraints:** Strictly passes all 5 Hard Invariants (MD001-MD005) under headless browser audit.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 2. Ten-Dimension Evaluation Rubric (1 to 5 Points Each)
|
|
56
|
+
|
|
57
|
+
| # | Dimension | Scoring Standard (1: Poor, 3: Acceptable, 5: Elite) |
|
|
58
|
+
|---|---|---|
|
|
59
|
+
| **1** | **Visual Quality & Craft** | 1: AI slop (purple gradient, generic cards); 3: Clean standard template; 5: Bespoke, polished art direction with refined typography and micro-interactions. |
|
|
60
|
+
| **2** | **Product Specificity** | 1: Generic layout applied to every topic; 3: Partial domain fit; 5: Deeply tailored to product semantics, audience expectation, and industry data models. |
|
|
61
|
+
| **3** | **Usability & IA** | 1: Confusing reading order, weak visual hierarchy; 3: Standard layout; 5: Immediate scannability, clear primary action, obvious affordances. |
|
|
62
|
+
| **4** | **Accessibility (WCAG 2.2)** | 1: Focus killed, contrast < 3:1, hit targets < 30px; 3: WCAG AA contrast; 5: WCAG AAA, full keyboard flow, Windows High Contrast Mode outline verified. |
|
|
63
|
+
| **5** | **Responsive Integrity** | 1: Horizontal scroll on mobile, layout jump; 3: Basic breakpoint collapse; 5: Tested at 390px, 820px, 1440px with dynamic viewport units (dvh). |
|
|
64
|
+
| **6** | **Engineering Safety** | 1: Rewrites business logic, adds unrequested packages; 3: Retains logic; 5: Minimal safe diff, zero unnecessary dependencies, backward compatible. |
|
|
65
|
+
| **7** | **Design Consistency** | 1: Arbitrary padding/margin (13px, 27px); 3: Standard 4px scale; 5: Strict closed token scale, optical concentric radius, OKLCH perceptual color. |
|
|
66
|
+
| **8** | **Interactive Completeness** | 1: Dead buttons, missing feedback; 3: Basic CSS hover; 5: Complete 10-state matrix (hover, active, focus-visible, disabled, loading, empty). |
|
|
67
|
+
| **9** | **Agent Usability & Efficiency**| 1: Forces 15-question intake for minor edits; 3: Multi-turn ritual; 5: Two-level workflow (fast path for edits, deep path for new products). |
|
|
68
|
+
| **10**| **Verification Truthfulness** | 1: Claims "0 errors / verified" without running tools; 3: Static regex check only; 5: Grounded CDP headless browser audit, explicit static vs browser separation. |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 3. Qualitative Comparative Synthesis
|
|
73
|
+
|
|
74
|
+
| Skill | Observed Strengths | Observed Tradeoffs / Gaps | Ideal Use Case |
|
|
75
|
+
|---|---|---|---|
|
|
76
|
+
| **Anthropic Frontend Design** | Superb conceptual restraint, rich copywriting, product-grounded aesthetic planning. | Lacks automated mechanical code verification; can be verbose on small 1-line edits. | Brand new consumer/B2B products needing fresh creative art direction. |
|
|
77
|
+
| **UI UX Pro Max** | Vast structured knowledge base across products, styles, and stacks; BM25 search. | High token footprint; risk of letting database catalog override the brief's true intent. | Searching diverse style recipes and component blueprints across stacks. |
|
|
78
|
+
| **Impeccable** | Excellent verb-based workflow (`critique`, `polish`, `audit`); persistent context. | Heavy CLI installation footprint; command vocabulary must be learned. | Iterative UI hardening in mature teams with persistent project specs. |
|
|
79
|
+
| **Vercel Web Design** | Ultra-concise rule bundling; immutable pinned source snapshots; low token overhead. | Pure review checklist; does not generate design systems or solve complex spatial layouts. | Automated pull-request linting in Next.js / Vercel ecosystems. |
|
|
80
|
+
| **Taste Skill** | Concrete section recipes, asset pipelines, visual finish gates. | Very prescriptive; page recipes can collide with enterprise apps or dashboards. | High-converting marketing landing pages and portfolio sites. |
|
|
81
|
+
| **ME-DESIGN vNext** | Native CDP browser verification, 38 engineering/cadastral archetypes, Thai-Latin typography, zero-dependency Node CLI, non-overridable hard invariants. | Static engine uses pattern heuristics (not full AST); browser checks require Chromium runtime. | Mission-critical engineering, GIS, telemetry, and enterprise frontend projects. |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 4. ME-DESIGN Honest Self-Appraisal: Strengths & Limitations
|
|
86
|
+
|
|
87
|
+
### Verified Strengths
|
|
88
|
+
1. **Evidence-Based Quality Gates:** Unlike prompt-only skills, ME-DESIGN ships with a deterministic test runner, headless Chromium CDP audit across 7 matrix conditions, and OASIS SARIF v2.1.0 output for GitHub Code Scanning.
|
|
89
|
+
2. **True Invariant Protection:** Hard invariants (MD001-MD005) cannot be suppressed by configuration or comments, preventing accidental accessibility regressions.
|
|
90
|
+
3. **Safe Atomic Auto-Repair:** `medesign polish` validates candidates in temporary files, executes post-audit verification, prevents quality score regressions, and provides unified line diffs with automatic rollback on failure.
|
|
91
|
+
4. **Specialized Engineering Archetypes:** Deep support for CAD, GIS, cadastral surveying, real-time telemetry, and technical cockpits that general web design skills neglect.
|
|
92
|
+
5. **Dual-Script Typography:** Built-in safeguards for Thai-Latin pairing, preventing diacritic clipping through strict `line-height >= 1.7` and Latin-first font family declaration.
|
|
93
|
+
|
|
94
|
+
### Current Limitations & Known Boundaries
|
|
95
|
+
1. **Static Heuristic Linter:** Current static checks use regular expressions and token pattern matching. They are labeled as `static-pattern-heuristic`, not full AST parser passes. Complex multi-file CSS cascading is verified via CDP browser audit rather than static AST.
|
|
96
|
+
2. **Browser Audit Runtime Requirement:** Full headless browser verification requires Chromium/Chrome on the host and Node.js >= 20.10.0 (native WebSocket). In constrained environments without Chromium, the skill gracefully degrades to static pattern analysis and manual 11-point craft checklist.
|
|
97
|
+
3. **No Forced Universal Presets:** ME-DESIGN avoids enforcing dark mode, 3-pane cockpits, or bento layouts onto standard marketing or consumer applications.
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# ME-DESIGN Frontend Design Skill: Product Roadmap
|
|
2
|
+
|
|
3
|
+
**Status:** Working plan
|
|
4
|
+
**Baseline:** `main` at `48296cb49b0da6ae60ff6edcbd77cc82616335b6`
|
|
5
|
+
**Working branch:** `feat/frontend-design-skill-v2`
|
|
6
|
+
**Product direction:** A brief-led frontend design skill with searchable design intelligence and evidence-based implementation QA.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Product vision
|
|
11
|
+
|
|
12
|
+
ME-DESIGN should help an AI coding agent move from an incomplete product brief to a distinctive, usable, maintainable and verifiably working frontend.
|
|
13
|
+
|
|
14
|
+
The product is not a larger prompt library. It is a connected workflow:
|
|
15
|
+
|
|
16
|
+
1. Understand the user, product, primary task and constraints.
|
|
17
|
+
2. Inspect the existing codebase and preserve its architecture and behaviour.
|
|
18
|
+
3. Choose a deliberate visual direction that belongs to this product.
|
|
19
|
+
4. Implement real interface behaviour, not only a static mockup.
|
|
20
|
+
5. Review the result at relevant viewport sizes and interaction states.
|
|
21
|
+
6. Report what was checked, what passed, what failed and what remains uncertain.
|
|
22
|
+
|
|
23
|
+
**Positioning statement:** ME-DESIGN is a design-minded frontend engineering skill: distinctive by intent, practical in implementation, and honest about verification.
|
|
24
|
+
|
|
25
|
+
## 2. North-star quality attributes
|
|
26
|
+
|
|
27
|
+
| Attribute | What good looks like |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Easy to invoke | A short natural-language request is enough for common tasks. No ritual intake for small edits. |
|
|
30
|
+
| Context-aware | Inspects the repository, framework, existing components, tokens and product conventions before proposing changes. |
|
|
31
|
+
| Distinctive | Makes visual choices from the product, audience, content and brand - not from a fixed template. |
|
|
32
|
+
| Usable | Prioritises information architecture, clear actions, interaction feedback, responsive behaviour and readable content. |
|
|
33
|
+
| Technically safe | Preserves business logic, routing, data flow, component APIs and established dependencies unless change is requested. |
|
|
34
|
+
| Verifiable | Separates static checks, browser checks and human design judgement. Never claims a check ran when it did not. |
|
|
35
|
+
| Efficient | Loads only the references and tools relevant to the task. Uses a fast path for small changes and a deeper path for larger work. |
|
|
36
|
+
| Portable | Works across supported coding agents and common frontend stacks with clear capability fallbacks. |
|
|
37
|
+
|
|
38
|
+
## 3. Competitive synthesis
|
|
39
|
+
|
|
40
|
+
The benchmark is not a feature-count contest. The strongest pattern from each reference should inform one part of ME-DESIGN:
|
|
41
|
+
|
|
42
|
+
- **Anthropic Frontend Design:** brief-led creative direction, specificity to subject matter, plan-before-code, critique, restraint and purposeful copy.
|
|
43
|
+
- **UI UX Pro Max:** structured design knowledge, domain-aware search, stack-specific guidance, reusable design-system generation and a maintained source-of-truth/sync workflow.
|
|
44
|
+
- **Impeccable:** task-oriented commands, persistent product/design context, targeted critique and audit, automatic detection and a clear distinction between findings and fixes.
|
|
45
|
+
- **Vercel Web Design Guidelines:** concise instructions, focused review tasks, pinned source snapshots and predictable finding output.
|
|
46
|
+
- **Taste Skill:** explicit page-type and business context, a repeatable build sequence, working assets and a browser-based finish gate. Its highly prescriptive page recipes should not become universal rules for dashboards or complex applications.
|
|
47
|
+
|
|
48
|
+
Full notes and source links: [COMPETITIVE-BENCHMARK.md](../audit/COMPETITIVE-BENCHMARK.md).
|
|
49
|
+
|
|
50
|
+
## 4. Proposed product architecture
|
|
51
|
+
|
|
52
|
+
### Layer A - Skill orchestrator
|
|
53
|
+
|
|
54
|
+
The root `SKILL.md` should be a compact router, not an encyclopedia. It should identify intent, inspect context, select the right workflow and load only the required reference modules.
|
|
55
|
+
|
|
56
|
+
Core workflow families:
|
|
57
|
+
|
|
58
|
+
- **Create:** build a new page, flow, component or application surface.
|
|
59
|
+
- **Improve:** work on an existing UI while preserving its business logic and project conventions.
|
|
60
|
+
- **Review:** critique UX/design or audit implementation quality.
|
|
61
|
+
- **Targeted craft:** typography, layout, colour, motion, responsive behaviour, accessibility, performance or copy.
|
|
62
|
+
- **Design intelligence:** search archetypes, patterns, tokens, examples and stack guidance.
|
|
63
|
+
|
|
64
|
+
A natural-language request should work without requiring slash-command syntax. Short aliases may remain as conveniences.
|
|
65
|
+
|
|
66
|
+
### Layer B - Design intelligence
|
|
67
|
+
|
|
68
|
+
Keep the existing archetypes, brand systems, engineering patterns and Thai/Latin typography knowledge, but organise them around retrieval and provenance:
|
|
69
|
+
|
|
70
|
+
- product/domain and user task;
|
|
71
|
+
- page or surface type;
|
|
72
|
+
- visual language and spatial model;
|
|
73
|
+
- framework and styling stack;
|
|
74
|
+
- accessibility and interaction needs;
|
|
75
|
+
- token schema, rationale, source and review date.
|
|
76
|
+
|
|
77
|
+
Do not treat a brand reference as permission to copy proprietary assets or a site's exact implementation. Extract general design principles and implement an original, context-fitting interface.
|
|
78
|
+
|
|
79
|
+
### Layer C - Implementation toolkit
|
|
80
|
+
|
|
81
|
+
Separate design decisions from mechanical code transformations. The toolkit should provide:
|
|
82
|
+
|
|
83
|
+
- lint and audit with stable rule identifiers;
|
|
84
|
+
- token inspection and export;
|
|
85
|
+
- safe, previewable code transformations;
|
|
86
|
+
- browser snapshots and responsive checks;
|
|
87
|
+
- clear machine-readable output for CI and coding agents.
|
|
88
|
+
|
|
89
|
+
Auto-repair must be narrower and safer than creative design guidance. A rule being desirable does not automatically make it safe to rewrite code.
|
|
90
|
+
|
|
91
|
+
### Layer D - Evidence and evaluation
|
|
92
|
+
|
|
93
|
+
Provide distinct evidence types:
|
|
94
|
+
|
|
95
|
+
1. **Static analysis:** source patterns, semantics and structural checks.
|
|
96
|
+
2. **Browser verification:** computed styles, real geometry, keyboard interaction, overflow, console errors and screenshots.
|
|
97
|
+
3. **Design critique:** task fit, hierarchy, distinctiveness, content quality and visual craft.
|
|
98
|
+
4. **Human/product validation:** user feedback and task success where available.
|
|
99
|
+
|
|
100
|
+
A single numeric score must never imply that all four types were measured.
|
|
101
|
+
|
|
102
|
+
## 5. Phased delivery plan
|
|
103
|
+
|
|
104
|
+
### Phase 0 - Trust and safety foundation (current)
|
|
105
|
+
|
|
106
|
+
**Goal:** Ensure the existing gates cannot report a false pass or silently ignore critical rules.
|
|
107
|
+
|
|
108
|
+
Work:
|
|
109
|
+
- Make hard-invariant severity non-overridable.
|
|
110
|
+
- Prevent inline suppression from disabling hard invariants.
|
|
111
|
+
- Make `polish` fail closed when the before/after linter cannot produce a valid report.
|
|
112
|
+
- Validate the repaired candidate before replacing the original file; preserve the original when validation fails.
|
|
113
|
+
- Correctly handle a legitimate score of `0`; never use truthy fallback for numeric scores.
|
|
114
|
+
- Label the current Q-Score as a static heuristic until its measurement model is redesigned.
|
|
115
|
+
- Confirm the Node engine range against actual runtime APIs used by browser tooling.
|
|
116
|
+
|
|
117
|
+
**Acceptance criteria:**
|
|
118
|
+
- A config setting such as `MD001: 'off'` cannot turn a hard invariant into a pass.
|
|
119
|
+
- An inline suppression cannot hide MD001-MD005.
|
|
120
|
+
- A rejected or unverifiable polish operation leaves the source file unchanged.
|
|
121
|
+
- Missing/malformed audit output cannot produce a PASS.
|
|
122
|
+
- Tests cover each condition.
|
|
123
|
+
|
|
124
|
+
### Phase 1 - Make the skill effortless to use
|
|
125
|
+
|
|
126
|
+
**Goal:** Improve instruction quality before increasing feature count.
|
|
127
|
+
|
|
128
|
+
Work:
|
|
129
|
+
- Rewrite the root skill as a short, clear operating contract with fast and deep paths.
|
|
130
|
+
- Inspect project context before asking questions; ask only when a missing fact changes the implementation materially.
|
|
131
|
+
- Remove mandatory A/B pitches and full brief rituals for small, clearly specified tasks.
|
|
132
|
+
- Preserve existing framework, component library, naming, tokens, routes, state management and business logic by default.
|
|
133
|
+
- Avoid forced visual defaults: no mandatory dark mode, font family, three-pane layout, card grid, gradient, animation or brand imitation.
|
|
134
|
+
- Add a compact task-routing table and concise output expectations.
|
|
135
|
+
- Keep slide, banner, logo and other graphic work as optional adjacent workflows rather than making them compete with the primary frontend-design purpose.
|
|
136
|
+
|
|
137
|
+
**Acceptance criteria:**
|
|
138
|
+
- A simple request such as "make this button clearer" can proceed without a questionnaire.
|
|
139
|
+
- An existing React/Next/Vite app is inspected before any architecture or styling recommendation.
|
|
140
|
+
- The skill explains assumptions and preserves unrelated code.
|
|
141
|
+
- The agent loads only the references needed for the task.
|
|
142
|
+
- A new-user quickstart can be followed without reading the full reference library.
|
|
143
|
+
|
|
144
|
+
### Phase 2 - Improve design intelligence
|
|
145
|
+
|
|
146
|
+
**Goal:** Make the knowledge base useful, searchable and maintainable.
|
|
147
|
+
|
|
148
|
+
Work:
|
|
149
|
+
- Audit all archetype, brand, token and pattern records for duplicates, contradictions and unsupported claims.
|
|
150
|
+
- Add metadata for task/domain, page type, framework, density, motion, accessibility, directionality and evidence source.
|
|
151
|
+
- Distinguish inspiration, implementation recipe and hard engineering requirement.
|
|
152
|
+
- Improve ranking and query routing; return a small number of relevant results with rationale, not a long catalogue.
|
|
153
|
+
- Add reproducible design-system output with a rationale and editable tokens.
|
|
154
|
+
- Establish source attribution, review dates, schema validation and a documented update process.
|
|
155
|
+
|
|
156
|
+
**Acceptance criteria:**
|
|
157
|
+
- Queries for specific domains and stacks return relevant, explainable results.
|
|
158
|
+
- Every externally sourced recommendation has provenance or is labelled as a general heuristic.
|
|
159
|
+
- Invalid and duplicate knowledge records are caught by tests.
|
|
160
|
+
- Search results do not force an archetype when the user's brief already specifies a direction.
|
|
161
|
+
|
|
162
|
+
### Phase 3 - Make static analysis trustworthy
|
|
163
|
+
|
|
164
|
+
**Goal:** Replace overbroad pattern assumptions with precise, explainable checks.
|
|
165
|
+
|
|
166
|
+
Work:
|
|
167
|
+
- Rename the current pattern-based engine accurately and separate it from any future AST-aware engine.
|
|
168
|
+
- Evaluate HTML, CSS and JSX/TSX parsing options before choosing dependencies.
|
|
169
|
+
- Make rules context-aware and report file/line/column, severity, rationale and remediation.
|
|
170
|
+
- Add configuration schema validation and explicit rule policy classes.
|
|
171
|
+
- Make hard invariants non-overridable; allow documented, auditable suppressions only for eligible rules.
|
|
172
|
+
- Separate accessibility requirements from platform recommendations and optional design opinions.
|
|
173
|
+
- Correct the score model or retire the score in favour of a transparent finding summary.
|
|
174
|
+
|
|
175
|
+
**Acceptance criteria:**
|
|
176
|
+
- Rule tests include positive, negative, edge and suppression cases.
|
|
177
|
+
- Findings point to the responsible source location.
|
|
178
|
+
- Static results never claim to verify computed contrast, actual hit-target geometry or rendered responsive behaviour.
|
|
179
|
+
- Invalid configuration exits non-zero with an actionable message.
|
|
180
|
+
- Hard requirements and heuristic recommendations are visibly distinct.
|
|
181
|
+
|
|
182
|
+
### Phase 4 - Upgrade browser verification
|
|
183
|
+
|
|
184
|
+
**Goal:** Verify the rendered interface rather than infer quality from source text.
|
|
185
|
+
|
|
186
|
+
Work:
|
|
187
|
+
- Use deterministic readiness conditions (document readiness, fonts, required assets and app-specific ready markers) instead of relying only on fixed sleeps.
|
|
188
|
+
- Test configurable mobile, tablet, laptop and desktop viewports.
|
|
189
|
+
- Inspect keyboard traversal, focus visibility, visible overflow, target geometry, computed foreground/background contrast and browser console/runtime errors.
|
|
190
|
+
- Traverse all relevant text and interactive elements rather than sampling only a small first-page subset.
|
|
191
|
+
- Ensure browser processes, debugging ports, temporary files and WebSocket clients are closed in every exit path.
|
|
192
|
+
- Save screenshots and machine-readable reports that can be compared across revisions.
|
|
193
|
+
- Clearly report browser-unavailable or partial runs as **not verified**, not PASS.
|
|
194
|
+
|
|
195
|
+
**Acceptance criteria:**
|
|
196
|
+
- Browser checks are deterministic across repeated runs on the same environment.
|
|
197
|
+
- A page with a real rendered violation is detected by a browser fixture.
|
|
198
|
+
- Browser startup, timeout and crash failures are distinct from a clean audit.
|
|
199
|
+
- Results identify viewport, theme and element location.
|
|
200
|
+
|
|
201
|
+
### Phase 5 - Make auto-repair safe and useful
|
|
202
|
+
|
|
203
|
+
**Goal:** Turn repair into a predictable, reviewable action.
|
|
204
|
+
|
|
205
|
+
Work:
|
|
206
|
+
- Move transformations to AST-aware tooling where appropriate.
|
|
207
|
+
- Classify transformations as safe, advisory or unsupported.
|
|
208
|
+
- Default to preview/diff for broad or destructive changes.
|
|
209
|
+
- Preserve formatting and unrelated content; never rewrite arbitrary prose or JavaScript strings as a side effect of a CSS rule.
|
|
210
|
+
- Use temporary files and atomic replacement, with rollback on failure.
|
|
211
|
+
- Make each transformation idempotent and covered by regression tests.
|
|
212
|
+
- Separate aesthetic suggestions (font, layout, colour, asymmetry) from automatic correctness fixes.
|
|
213
|
+
|
|
214
|
+
**Acceptance criteria:**
|
|
215
|
+
- A transformation modifies only the intended syntax nodes.
|
|
216
|
+
- Running the same repair twice makes no additional changes.
|
|
217
|
+
- Failed validation preserves the original byte-for-byte.
|
|
218
|
+
- Preview output shows a reviewable diff and explains each change.
|
|
219
|
+
- Tests cover comments, nested rules, strings, media queries, CSS variables and malformed inputs.
|
|
220
|
+
|
|
221
|
+
### Phase 6 - Benchmark, package and release
|
|
222
|
+
|
|
223
|
+
**Goal:** Prove that ME-DESIGN is improving real outcomes, not just accumulating rules.
|
|
224
|
+
|
|
225
|
+
Work:
|
|
226
|
+
- Build a balanced benchmark set: landing pages, dashboards, forms, data-heavy tables, GIS/engineering tools, mobile app surfaces and existing-project refactors.
|
|
227
|
+
- Include multiple frameworks and visual directions, including intentionally minimal and non-card-based designs.
|
|
228
|
+
- Evaluate task fit, visual distinctiveness, usability, responsive behaviour, accessibility, code safety and maintainability.
|
|
229
|
+
- Compare baseline and candidate versions on identical prompts and codebases.
|
|
230
|
+
- Publish a compatibility matrix, installation guide, examples, changelog and known limitations.
|
|
231
|
+
- Pin CI actions, verify package contents and align package engine requirements with actual APIs.
|
|
232
|
+
|
|
233
|
+
**Acceptance criteria:**
|
|
234
|
+
- Benchmark prompts, fixtures and evaluation rubric are versioned.
|
|
235
|
+
- A regression in one dimension cannot be hidden by an aggregate score.
|
|
236
|
+
- A release has reproducible tests and clearly stated supported environments.
|
|
237
|
+
- README claims match shipped and verified capabilities.
|
|
238
|
+
|
|
239
|
+
## 6. Product interaction model
|
|
240
|
+
|
|
241
|
+
Use two execution speeds:
|
|
242
|
+
|
|
243
|
+
**Fast path** - small, clear requests. Inspect the relevant files, make the smallest appropriate change, run focused checks and summarise the result. Do not ask for confirmation of obvious defaults.
|
|
244
|
+
|
|
245
|
+
**Deep path** - new product surfaces, major redesigns, multi-page work or architectural changes. Inspect the product and repo, define a concise design direction, plan structure and tokens, implement iteratively, review in-browser and report evidence.
|
|
246
|
+
|
|
247
|
+
Ask a question only when the answer is material and cannot be inferred safely. Prefer one high-value question over a form or a long intake ritual.
|
|
248
|
+
|
|
249
|
+
## 7. Evaluation metrics
|
|
250
|
+
|
|
251
|
+
Track these separately instead of collapsing them into a single "design score":
|
|
252
|
+
|
|
253
|
+
- **Task success:** Can the primary user action be completed?
|
|
254
|
+
- **Design fit:** Does the design reflect the specific product, audience and content?
|
|
255
|
+
- **Distinctiveness:** Does the design avoid generic defaults without adding irrelevant decoration?
|
|
256
|
+
- **Accessibility:** Which applicable checks were actually run and passed?
|
|
257
|
+
- **Responsive integrity:** Which viewport and layout checks were actually run?
|
|
258
|
+
- **Engineering safety:** Were existing behaviours preserved? Did tests pass?
|
|
259
|
+
- **Repair safety:** Did the diff remain within the intended scope? Was rollback verified?
|
|
260
|
+
- **Workflow efficiency:** How many questions, files and reference modules were needed?
|
|
261
|
+
|
|
262
|
+
## 8. Working agreement
|
|
263
|
+
|
|
264
|
+
- All changes happen on `feat/frontend-design-skill-v2`, not directly on `main`.
|
|
265
|
+
- Each phase should be delivered in reviewable commits with focused tests.
|
|
266
|
+
- No broad rewrite of the linter, skill or knowledge base without a migration plan.
|
|
267
|
+
- Preserve backward compatibility where practical; document intentional breaking changes.
|
|
268
|
+
- Do not claim tests, browser audits, visual comparisons or external benchmarks that were not run.
|
|
269
|
+
- Open a PR for review; do not merge it automatically.
|
|
270
|
+
|
|
271
|
+
## 9. Immediate next actions
|
|
272
|
+
|
|
273
|
+
1. Complete Phase 0 fixes and regression tests.
|
|
274
|
+
2. Record a baseline test run on supported Node versions.
|
|
275
|
+
3. Redesign the root `SKILL.md` around the fast/deep workflow.
|
|
276
|
+
4. Re-map existing references so the skill reads only what is relevant.
|
|
277
|
+
5. Start the knowledge-base audit and static/browser verifier redesign as separate workstreams.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "medesign",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Autonomous Design Engineering Toolkit & Automated Linter for AI Coding Assistants",
|
|
5
5
|
"main": "bin/medesign.js",
|
|
6
6
|
"bin": {
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"presets",
|
|
18
18
|
"references",
|
|
19
19
|
"integrations",
|
|
20
|
+
"SKILL.md",
|
|
21
|
+
"docs",
|
|
22
|
+
"data",
|
|
20
23
|
"scripts/export-tokens.js",
|
|
21
24
|
"tests/linter.js",
|
|
22
25
|
"tests/browser-audit.js",
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
"medesign.config.js"
|
|
28
31
|
],
|
|
29
32
|
"scripts": {
|
|
30
|
-
"test": "node tests/runner.js && node tests/validate-sarif.js && node tests/test-tokens.js && node tests/test-cli.js && node tests/test-behavioral-matrix.js",
|
|
33
|
+
"test": "node tests/runner.js && node tests/test-hard-invariants.js && node tests/validate-sarif.js && node tests/test-tokens.js && node tests/test-cli.js && node tests/test-gamut.js && node tests/test-behavioral-matrix.js",
|
|
31
34
|
"test:unit": "node tests/runner.js",
|
|
32
35
|
"test:sarif": "node tests/validate-sarif.js",
|
|
33
36
|
"test:tokens": "node tests/test-tokens.js",
|
|
@@ -45,7 +48,8 @@
|
|
|
45
48
|
"tokens": "node bin/medesign.js tokens",
|
|
46
49
|
"doctor": "node bin/medesign.js doctor",
|
|
47
50
|
"prepublishOnly": "npm test",
|
|
48
|
-
"test:behavioral": "node tests/test-behavioral-matrix.js"
|
|
51
|
+
"test:behavioral": "node tests/test-behavioral-matrix.js",
|
|
52
|
+
"test:gamut": "node tests/test-gamut.js"
|
|
49
53
|
},
|
|
50
54
|
"repository": {
|
|
51
55
|
"type": "git",
|