Integrating cm-ux-master into Your Design Process
Hướng dẫn chi tiết về Integrating cm-ux-master into Your Design Process trong Vibe Coding dành cho designer.
Integrating cm-ux-master into Your Design Process
The Designer’s Dilemma: From Pixel Pusher to Design Orchestrator
For years, the design process followed a predictable, if somewhat grueling, linear path: wireframe, mockup, prototype, handoff, and the inevitable “telephone game” where the final implementation looked only vaguely like your original Figma file. Then came the era of AI and “Vibe Coding.” Suddenly, developers are shipping features in minutes, but there’s a catch—the UIs often look like generic Bootstrap templates from 2014, and the user experience feels like an afterthought.
As a designer in a Vibe Coding environment, your biggest pain point isn’t that AI is “taking your job.” It’s that the AI-driven development cycle is moving so fast it’s leaving design integrity in the dust. You’re facing the “Generic UI Trap”: AI generates functional code, but it lacks soul, brand identity, and rigorous UX logic. You’re no longer just pushing pixels; you need to find a way to inject “design intelligence” directly into the AI’s workflow.
This is exactly where cm-ux-master changes the game. It is not just another UI kit; it is a specialized design intelligence layer that bridges the gap between high-level aesthetic intent and production-grade implementation. By integrating cm-ux-master into your process, you stop being a bottleneck and start being the architect of the “design vibe.”
Core Concepts: How cm-ux-master Works
To use cm-ux-master effectively, you need to understand that it operates as a “knowledge-heavy” agent. It doesn’t just “guess” what looks good; it applies a multi-layered framework of design principles to every prompt and component it touches.
1. Harvester v4: The Intelligence Gatherer
The first pillar of cm-ux-master is the Harvester v4 engine. Think of this as your “visual reverse-engineering” tool. When you see a landing page or an app interaction that perfectly captures the mood you want, Harvester analyzes it not just as an image, but as a set of design tokens—spacing ratios, typography hierarchies, color harmonies, and shadow elevations. It translates “I like this vibe” into “A 1.618 line-height ratio with a 4px border radius and a #1A1A1B neutral-900 background.”
2. The 48 UX Laws & 37 Design Tests
Generic AI often ignores the cognitive load on the user. cm-ux-master is hard-coded with 48 fundamental UX laws (like Fitts’s Law, Miller’s Law, and the Peak-End Rule) and 37 automated design tests. When you ask it to generate a UI, it’s simultaneously checking:
- Accessibility (WCAG): Is the contrast ratio high enough? Are touch targets large enough?
- Usability Heuristics: Does the user have a clear “emergency exit”? Is the system state visible?
- Visual Balance: Does the bento grid layout maintain a consistent gutter width?
3. The Stitch & Pencil Connection
In the Vibe Coding world, cm-ux-master acts as the brain, while tools like Google Stitch and the Pencil MCP server act as the hands. cm-ux-master provides the “Design system manifesto” (the DESIGN.md file), and the Pencil tools execute the visual layout within your workspace. This integration ensures that your “design intent” is never lost in translation.
The Vibe Design Loop: A Practical Example
Let’s walk through a real-world scenario. You are tasked with designing a complex “Analytics Dashboard” for a fintech startup. In a traditional workflow, this would take two weeks. With cm-ux-master, we use the Intelligence -> Strategy -> Execution loop.
Step 1: Intelligence Gathering (The Inspiration)
Instead of starting from a blank canvas, you find three dashboards that represent the “vibe” you want: one for its clean typography, one for its data visualization style, and one for its navigation.
Your Prompt to cm-ux-master:
“Analyze these three URLs using Harvester v4. Extract the typography scales, the ‘glassmorphism’ elevation styles, and the specific color palette for success/error states. Synthesize these into a new Design System for a Fintech Dashboard.”
cm-ux-master won’t just give you a list; it will generate a DESIGN.md file that acts as the source of truth for all future AI generations in this project.
Step 2: Defining the JTBD (Job To Be Done)
UX isn’t just about looks; it’s about utility. Use cm-ux-master’s JTBD framework to define the user’s primary goal.
The JTBD Statement:
“When a financial analyst logs in, they want to see the ‘at-a-glance’ liquidity status so they can decide which assets to rebalance without digging through tables.”
Step 3: Generating the Wire-Visual (Pencil Integration)
Now, you invoke the pencil tools. Because cm-ux-master knows your design system and your JTBD, it doesn’t just drop a random table. It uses batch_design to create a layout that prioritizes the most important information based on Miller’s Law (limiting items to 7+/-2).
// Internal command used by the agent via Pencil
batch_design([
"Hero=I('canvas', { type: 'BentoGrid', theme: 'Fintech-Glass' })",
"LiquidityCard=I('Hero', { title: 'Total Liquidity', visual: 'AreaChart' })",
"ActionSection=I('Hero', { type: 'Sidebar', position: 'right' })"
]);
Step 4: The 37-Point Audit
Before you show this to the team, you run the audit. cm-ux-master scans the generated layout and identifies issues:
- “Alert: The AreaChart contrast ratio for the ‘caution’ line is 3.2:1. Recommend adjusting to #E67E22 for WCAG AA compliance.”
- “UX Hint: The ‘Rebalance’ button is 200px from the Liquidity Card. According to Fitts’s Law, this increases interaction time. Recommend moving the action closer to the data source.”
Best Practices & Tips for Designers
To get the most out of cm-ux-master, you need to change how you communicate with AI. Stop describing what you want and start describing how it should behave.
1. Speak in Tokens, Not Adjectives
Instead of saying “make it look modern,” say “apply a minimal-brutalism aesthetic with a 2px black border, #FFFFFF background, and Inter Tight typography with a -2% letter spacing.” cm-ux-master thrives on specificity. The more you use technical design terminology, the more “senior” the output will feel.
2. Leverage the “Strangler Pattern” for Refactoring
If you have an existing app that looks terrible, don’t try to fix it all at once. Use cm-ux-master to “harvest” the current structure, then ask it to “apply a modern design layer while preserving the functional hierarchy.” This allows you to modernize a codebase without breaking the underlying logic.
3. Use the DESIGN.md as your “Shield”
The DESIGN.md file generated by cm-ux-master is your best defense against “developer-driven design.” Tell your developers (and the AI agents they use): “All code must adhere to the constraints in /docs/DESIGN.md.” This ensures that every new button, modal, or page automatically inherits the brand colors, spacing, and UX rules you’ve established.
4. Focus on the “Edge Cases”
AI is great at the “Happy Path” (the perfect user journey). As a designer, your value is in the edge cases. Use cm-ux-master to brainstorm these:
“Analyze the current Dashboard design. Generate the ‘Empty State’ for when there is no data, and the ‘Error State’ for when the API fails. Ensure they follow the emotional design principles of the Fintech-Glass theme.”
Avoiding the “AI Aesthetic”
One of the biggest risks of using design agents is the “uncanny valley” of AI design—where everything looks “nice” but feels generic. To avoid this, use cm-ux-master’s specialized style libraries.
- Bento Grids: Perfect for dashboards and SaaS landing pages.
- Neumorphism/Glassmorphism: Use these sparingly to create depth.
- Minimalism/Brutalism: Great for developer tools or high-end agency sites.
Always provide one “Anchor Image” or “Anchor Style Guide.” By giving the agent a specific reference (e.g., “The aesthetic of the Linear app, but with the color palette of a 1970s Braun calculator”), you force it out of its “average” training data and into a unique creative space.
Conclusion: The New Design Workflow
The integration of cm-ux-master doesn’t remove the designer from the process; it amplifies them. You are no longer the person who draws the boxes; you are the person who defines the rules for how the boxes are drawn.
By using cm-ux-master, you achieve:
- Speed: Go from idea to a high-fidelity, validated preview in minutes.
- Rigor: Ensure every design follows UX laws and accessibility standards automatically.
- Consistency: Maintain a single source of design truth across a rapidly evolving codebase.
In the world of Vibe Coding, the winner is the one who can move the fastest without breaking the “vibe.” With cm-ux-master, you’re not just moving fast—you’re moving with the precision of a master architect. Stop pushing pixels and start orchestrating intelligence. Your next great design isn’t a file; it’s a prompt, a system, and a vibe.