Product UI Director | He Qingfeng Custom Edition
Transform "make it look good" into a repeatable product engineering process: First understand the product, then establish a design system; first create differentiation, then write code; final acceptance must be done in a real browser.
Required Use Cases
- New products, pages, landing pages, workbenches, dashboards, mobile or desktop UI;
- Modifying layout, color scheme, typography, spacing, navigation, forms, animations, charts, and responsive design;
- User feedback like "looks unprofessional," "too AI-like," "too cluttered," "breaks on mobile," "interaction feels off";
- UI code review, pre-release acceptance, competitive visual analysis, and design system creation.
Tasks that are purely backend, database, deployment, or do not change the interface experience should not load this Skill.
Non-Negotiable Principles
- Product before Style: First confirm target users, core tasks, usage frequency, platform, content density, and risk, then choose a style.
- Real Content before Placeholders: Do not use fabricated metrics, fake reviews, meaningless lorem ipsum, or decorative numbers as product evidence.
- Differentiation before Templates: Prohibit the default AI aesthetic of "purple gradient + three glass cards + huge border radius" without a reason.
- One Design Memory per Project: When a
design-system/<slug>/MASTER.mdalready exists, read it first; do not silently overwrite it. - Functionality First: Visuals must not break business flows, data states, error recovery, keyboard navigation, or mobile usability.
- Real Acceptance: Do not claim completion by only looking at code; you must open the page, operate the core flow, and check at least 390px and desktop viewports.
- Preserve Source: This Skill is customized from an MIT open-source project; the license and upstream attribution must not be removed.
Six-Phase Workflow
0. Read the Context
- Read PRD, README, existing pages, brand assets, tech stack, and recent changes;
- Detect the tech stack; do not guess blindly;
- Find and read existing
design-system/**/MASTER.md, page overrides, and UI acceptance reports; - For new products, browse 3–5 direct or adjacent competitor official pages, record structure and interactions, but do not copy visual skins.
1. Establish Product UI Brief
At minimum, clarify: product task, audience, platform, primary CTA, key information, risk, content density, brand personality, accessibility requirements, and supported viewports. If information can be inferred from the project, proceed directly without repeatedly asking.
To create project documentation, run:
python3 scripts/qf_project_init.py --project-root <project-root> --project-name "Project Name" --product-type "Product Type" --platform web
By default, the script does not overwrite existing files.
2. Generate and Persist the Design System
For new projects or system-level redesigns, you must run:
python3 scripts/search.py "<product type industry style constraints>" --design-system --persist -p "Project Name" --output-dir "<project-root>"
Available modifiers: --variance 1-10, --motion 1-10, --density 1-10. Workbenches typically increase density; content products decrease density; motion should serve only states and causality.
If a MASTER already exists, read it first; do not use --force unless the user explicitly authorizes it.
3. Define the "Product Signature"
Each product must define at least 3 identifiable signatures that do not hinder usability:
- A typographic signature (e.g., editorial grid, production timeline, paper-like reading area);
- An information signature (e.g., quality gate, evidence chain, review status);
- An interaction signature (e.g., rehearsal mode, local redo, progressive preview).
Signatures must come from the product mechanism, not from random gradients, excessive motion, or decorative graphics.
For He Qingfeng's existing product types, read references/heqingfeng-product-patterns.md as needed.
4. Implement and Perform Targeted Retrieval
Query only the current problem; do not load all rules at once:
python3 scripts/search.py "keyboard focus modal" --domain ux
python3 scripts/search.py "dashboard dense filters" --domain style
python3 scripts/search.py "form error recovery" --domain ux
python3 scripts/search.py "responsive card grid" --stack <detected tech stack>
If a query returns empty results, narrow the query and retry only once. If still empty, explicitly use general rules; do not fabricate database hits.
Implementation requirements:
- Use semantic tokens; do not scatter meaningless colors and spacing across components;
- Body text on mobile defaults to at least 16px; controls have visible labels;
- Web keyboard focus is visible; touch targets follow platform specifications;
- Do not rely on hover for primary tasks;
- Async flows include loading, success, error, and recovery states;
- Animations respect
prefers-reduced-motion; - Long Chinese text, long English text, URLs, numbers, and empty data must not break the layout.
5. Real Browser Acceptance
When a page is runnable, use a browser to complete core tasks. Prioritize calling the installed ego-browser Skill:
- Desktop viewport ~1440px: First screen hierarchy, core flow, modals/forms/exports;
- Mobile viewport 390px: Verify
scrollWidth === innerWidth, no horizontal overflow; - Keyboard operation: Focus visible, logical order, Esc/Back to restore;
- States: empty, loading, error, success, disabled;
- Readability: contrast, long text, zoom, reduced motion;
- Record actual results; do not pass "code exists" as "acceptance passed."
For web/desktop acceptance, read §1–§3 of references/quick-reference.md; for native/mobile delivery, read references/pro-rules.md before handover.
You may first run a static pre-check:
python3 scripts/product_ui_audit.py <project-root> --format markdown
Static results are only risk indicators and cannot replace browser acceptance.
6. Document Iteration Memory
Upon delivery, update:
design-system/<slug>/MASTER.md: stable design rules;design-system/<slug>/pages/<page>.md: page-specific differences;design-system/<slug>/DECISIONS.md: important trade-offs and reasons;design-system/<slug>/UI-ACCEPTANCE.md: viewports, tasks, states, defects, and evidence.
Only record real verification. If grayscale data, conversion rates, or adoption rates have not been collected, mark them as "pending verification."
Quality Priorities
- Accessibility: contrast, focus, keyboard, semantics, alt text;
- Touch & Interaction: target size, feedback, error recovery;
- Performance: image size, CLS, fonts, main thread;
- Product Fit: whether the style matches the product task;
- Responsive: mobile-first, no horizontal overflow;
- Typography & Color: type scale, line height, semantic colors;
- Motion: expresses only causality, interruptible, reducible;
- Forms & Feedback; 9. Navigation; 10. Charts.
For full rules, read references/quick-reference.md as needed.
Hard Delivery Gates
UI may not be declared complete if any of the following exist:
- The primary task cannot be completed, or buttons have only visual presence with no behavior;
- Horizontal scrolling occurs at 390px;
- Fictional user numbers, performance metrics, or testimonials are shown without a source;
- Forms lack labels, error reasons, or recovery paths;
- Icon buttons lack accessible names, or keyboard focus is not visible;
- Text/key control contrast clearly fails;
- Modals cannot be closed, returns break state, or fixed bars obscure content;
- Only code has been reviewed; the page has not been run or interacted with;
- For new projects, there is no design system, or an existing MASTER has been overwritten without authorization.
Local Knowledge Base
This Skill retains the upstream searchable data: 79 styles, 192 product categories with color/reasoning, 74 font combinations, 119 UX guidelines, icons, animations, charts, and 22 tech stacks. scripts/search.py and data files come from upstream; customized workflows, project templates, and acceptance tools are added by this repository.