medesign 1.6.0 → 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 +152 -86
- package/SKILL.md +169 -0
- package/bin/medesign.js +130 -27
- 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 +85 -81
- 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/snapshot.js +5 -2
- package/tests/visual-testbed.html +682 -681
|
@@ -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,81 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "medesign",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Autonomous Design Engineering Toolkit & Automated Linter for AI Coding Assistants",
|
|
5
|
-
"main": "bin/medesign.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"medesign": "bin/medesign.js",
|
|
8
|
-
"mepolish": "bin/mepolish.js",
|
|
9
|
-
"mebolder": "bin/mebolder.js",
|
|
10
|
-
"mequiet": "bin/mequiet.js",
|
|
11
|
-
"melint": "bin/melint.js",
|
|
12
|
-
"mesearch": "bin/mesearch.js",
|
|
13
|
-
"mesnapshot": "bin/mesnapshot.js"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"bin",
|
|
17
|
-
"presets",
|
|
18
|
-
"references",
|
|
19
|
-
"integrations",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"tests/
|
|
25
|
-
"tests/
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"test
|
|
34
|
-
"test:
|
|
35
|
-
"test:
|
|
36
|
-
"test:
|
|
37
|
-
"test:
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
"url": "https://github.com/methastrategy/medesign
|
|
57
|
-
},
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "medesign",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"description": "Autonomous Design Engineering Toolkit & Automated Linter for AI Coding Assistants",
|
|
5
|
+
"main": "bin/medesign.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"medesign": "bin/medesign.js",
|
|
8
|
+
"mepolish": "bin/mepolish.js",
|
|
9
|
+
"mebolder": "bin/mebolder.js",
|
|
10
|
+
"mequiet": "bin/mequiet.js",
|
|
11
|
+
"melint": "bin/melint.js",
|
|
12
|
+
"mesearch": "bin/mesearch.js",
|
|
13
|
+
"mesnapshot": "bin/mesnapshot.js"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"bin",
|
|
17
|
+
"presets",
|
|
18
|
+
"references",
|
|
19
|
+
"integrations",
|
|
20
|
+
"SKILL.md",
|
|
21
|
+
"docs",
|
|
22
|
+
"data",
|
|
23
|
+
"scripts/export-tokens.js",
|
|
24
|
+
"tests/linter.js",
|
|
25
|
+
"tests/browser-audit.js",
|
|
26
|
+
"tests/snapshot.js",
|
|
27
|
+
"tests/schemas",
|
|
28
|
+
"tests/visual-testbed.html",
|
|
29
|
+
"examples",
|
|
30
|
+
"medesign.config.js"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
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",
|
|
34
|
+
"test:unit": "node tests/runner.js",
|
|
35
|
+
"test:sarif": "node tests/validate-sarif.js",
|
|
36
|
+
"test:tokens": "node tests/test-tokens.js",
|
|
37
|
+
"test:cli": "node tests/test-cli.js",
|
|
38
|
+
"test:benchmark": "node tests/test-blind-benchmark.js",
|
|
39
|
+
"test:browser": "node tests/runner.js --browser",
|
|
40
|
+
"test:snapshot": "node tests/snapshot.js examples/cadastral-qaqc-slide.html",
|
|
41
|
+
"search": "node bin/medesign.js search",
|
|
42
|
+
"polish": "node bin/medesign.js polish",
|
|
43
|
+
"bolder": "node bin/medesign.js bolder",
|
|
44
|
+
"quiet": "node bin/medesign.js quiet",
|
|
45
|
+
"lint": "node bin/medesign.js lint",
|
|
46
|
+
"audit": "node bin/medesign.js audit",
|
|
47
|
+
"snapshot": "node bin/medesign.js snapshot",
|
|
48
|
+
"tokens": "node bin/medesign.js tokens",
|
|
49
|
+
"doctor": "node bin/medesign.js doctor",
|
|
50
|
+
"prepublishOnly": "npm test",
|
|
51
|
+
"test:behavioral": "node tests/test-behavioral-matrix.js",
|
|
52
|
+
"test:gamut": "node tests/test-gamut.js"
|
|
53
|
+
},
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/methastrategy/medesign.git"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://github.com/methastrategy/medesign#readme",
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/methastrategy/medesign/issues"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"design-tokens",
|
|
67
|
+
"linter",
|
|
68
|
+
"accessibility",
|
|
69
|
+
"design-systems",
|
|
70
|
+
"oklch",
|
|
71
|
+
"tailwind",
|
|
72
|
+
"dtcg",
|
|
73
|
+
"sarif",
|
|
74
|
+
"ai-coding-assistant",
|
|
75
|
+
"antigravity",
|
|
76
|
+
"claude-code"
|
|
77
|
+
],
|
|
78
|
+
"author": "Metha Tripraphankit (Survey Engineering & Geoinformatics, Kasetsart University)",
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=18.0.0"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {},
|
|
84
|
+
"devDependencies": {}
|
|
85
|
+
}
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
:root {
|
|
9
9
|
/* 01. Typography */
|
|
10
|
-
--font-display: "
|
|
11
|
-
--font-sans: "
|
|
12
|
-
--font-mono: "IBM Plex Mono", "
|
|
10
|
+
--font-display: "Geist", "Inter", sans-serif;
|
|
11
|
+
--font-sans: "Geist", "IBM Plex Sans Thai", sans-serif;
|
|
12
|
+
--font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
|
|
13
13
|
--tracking-heading: -0.020em;
|
|
14
14
|
--tracking-coord: 0.04em;
|
|
15
15
|
--leading-ui: 1.25;
|
|
16
|
-
--leading-prose: 1.
|
|
16
|
+
--leading-prose: 1.70;
|
|
17
17
|
--thai-headroom: 4px;
|
|
18
18
|
|
|
19
19
|
/* 02. Color Tokens (Deep Slate / Geodetic Field Rig) */
|
|
20
|
-
--color-canvas: #
|
|
20
|
+
--color-canvas: #0a0d14;
|
|
21
21
|
--color-surface-raised: #141721;
|
|
22
22
|
--color-surface-inset: #090a0f;
|
|
23
23
|
--color-surface-dock: rgba(20, 23, 33, 0.88);
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
--color-text-tertiary: #545d68;
|
|
27
27
|
--color-border-subtle: rgba(255, 255, 255, 0.09);
|
|
28
28
|
--color-border-strong: rgba(255, 255, 255, 0.18);
|
|
29
|
-
--color-border-focus: oklch(0.
|
|
29
|
+
--color-border-focus: oklch(0.85 0.18 198);
|
|
30
30
|
|
|
31
|
-
/* Brand Accents (Survey Electric
|
|
32
|
-
--color-accent: oklch(0.
|
|
33
|
-
--color-accent-hover: oklch(0.
|
|
34
|
-
--color-accent-fg: #
|
|
31
|
+
/* Brand Accents (Survey Electric Cyan & Precision Geodetic Green) */
|
|
32
|
+
--color-accent: oklch(0.85 0.18 198);
|
|
33
|
+
--color-accent-hover: oklch(0.88 0.18 198);
|
|
34
|
+
--color-accent-fg: #0a0d14;
|
|
35
35
|
|
|
36
|
-
--color-status-info: oklch(0.
|
|
36
|
+
--color-status-info: oklch(0.85 0.18 198);
|
|
37
37
|
--color-status-success: oklch(0.72 0.18 145);
|
|
38
38
|
--color-status-warning: oklch(0.78 0.16 75);
|
|
39
39
|
--color-status-critical: oklch(0.62 0.22 25);
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
--hit-target-min: 44px;
|
|
45
45
|
|
|
46
46
|
/* 04. Motion Tokens (Sub-second Field Precision) */
|
|
47
|
-
--duration-entry:
|
|
47
|
+
--duration-entry: 120ms;
|
|
48
48
|
--duration-exit: 90ms;
|
|
49
49
|
--ease-entry: cubic-bezier(0.16, 1, 0.3, 1);
|
|
50
50
|
--ease-exit: cubic-bezier(0.4, 0, 1, 1);
|