From 111623994ea848dbe4b578407f20254be3767376 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Fri, 21 Aug 2026 14:00:14 +0300 Subject: [PATCH] docs(skills): add frontend design and UX guidance --- .codex/skills/frontend-design/SKILL.md | 136 ++++++++++ .codex/skills/ui-ux-pro-max/SKILL.md | 341 +++++++++++++++++++++++++ AGENTS.md | 1 + MEMORY.md | 1 + 4 files changed, 479 insertions(+) create mode 100644 .codex/skills/frontend-design/SKILL.md create mode 100644 .codex/skills/ui-ux-pro-max/SKILL.md diff --git a/.codex/skills/frontend-design/SKILL.md b/.codex/skills/frontend-design/SKILL.md new file mode 100644 index 0000000..2739a9b --- /dev/null +++ b/.codex/skills/frontend-design/SKILL.md @@ -0,0 +1,136 @@ +--- +name: frontend-design +description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics. +license: Complete terms in LICENSE.txt +--- + +# Frontend Design + +This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic detail and creative choices. + +The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints. + +--- + +## Step 1 — Ground the Brief + +If the brief doesn't define the subject, pin it yourself: name one concrete subject, its audience, and the page's single job. State your choice before proceeding. The subject's own world — its materials, instruments, artifacts, vernacular — is where distinctive choices come from. Build with the brief's real content throughout. + +--- + +## Step 2 — Commit to a Direction + +Before writing a single line of code, define the full aesthetic direction: + +- **Purpose**: What problem does this interface solve? Who uses it? +- **Tone**: Pick an extreme and own it. Options: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, handcrafted/artisanal, dark/moody, lo-fi/zine. Treat these as starting points — the final direction should feel singular. +- **Constraints**: Framework, performance, accessibility requirements. +- **Differentiation**: What makes this UNFORGETTABLE? The one element someone will remember. + +**CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work — the key is intentionality, not intensity. + +### Design Token Plan + +Create a compact token system before coding: + +- **Color**: 4–6 named hex values. Dominant colors with sharp accents outperform timid, evenly-distributed palettes. Use CSS variables for everything. +- **Type**: 2–3 typeface roles — a characterful display face used with restraint, a complementary body face, a utility face for captions/data if needed. +- **Layout**: One-sentence prose concept + ASCII wireframe to pressure-test the idea. +- **Signature**: The single element this design will be remembered by. + +### Calibration Check + +Before building, compare your plan against known AI design clichés: + +1. Warm cream background (~#F4F1EA) + high-contrast serif + terracotta accent +2. Near-black background + single acid-green or vermilion accent +3. Broadsheet layout + hairline rules + zero border-radius + dense columns + +These are defaults, not choices — they appear regardless of subject matter. If your plan converges on any of these without a brief-specific reason, revise it and state what you changed and why. Where the brief explicitly specifies a visual direction, follow it exactly. + +--- + +## Step 3 — Implement + +Produce working code (HTML/CSS/JS, React, Vue, etc.) that is: + +- Production-grade and fully functional +- Visually striking and memorable +- Cohesive with a single, clear aesthetic point-of-view +- Meticulously refined in every detail + +--- + +## Aesthetics Reference + +### Typography + +Choose fonts that are beautiful, unique, and characterful. The type treatment should itself be a memorable part of the design — not a neutral delivery vehicle. + +- Pair a distinctive display face with a refined body face +- Set a clear type scale with intentional weights, widths, and spacing + +**NEVER use**: Arial, Inter, Roboto, or bare system font stacks as primary typefaces. Do not default to Space Grotesk or similar overused "safe" choices. + +### Color & Theme + +Commit to a cohesive aesthetic. Dominant colors with sharp accents outperform timid, evenly-distributed palettes. Define all tokens as CSS variables at `:root`. + +**NEVER use**: Purple-gradient-on-white as a default, or any palette that reads as a generic SaaS template. + +### Motion + +Use animations for effects and micro-interactions. One well-orchestrated moment lands harder than scattered effects. + +- **HTML/CSS**: Prefer CSS-only solutions. `animation-delay` staggering on page load creates delight. +- **React**: Use the Motion library when available. +- **Scroll-triggered reveals** and hover states should surprise. +- Restraint is better than scatter-fire: extra animation contributes to the AI-generated feeling. + +### Spatial Composition + +Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Choose generous negative space OR controlled density — never the safe middle ground. + +### Backgrounds & Visual Details + +Create atmosphere and depth — never default to solid colors. Match texture and effect to the aesthetic direction: +gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, grain overlays. + +### Hero + +The hero is a thesis. Open with the most characteristic thing in the subject's world: a headline, image, animation, live demo, or interactive moment. A big number + gradient accent is the template answer; only use it if it's genuinely the best option for this specific brief. + +### Structure + +Structural devices (numbering, eyebrows, dividers, labels) should encode something true about the content, not decorate it. Numbered markers (01 / 02 / 03) are only appropriate when content is an actual ordered sequence. + +--- + +## CSS Implementation Notes + +- Define all color, spacing, and type tokens as CSS custom properties. +- Watch specificity conflicts: `.section` (type-based) vs `.cta` (class-based) frequently cancel each other on padding/margin. Audit before finishing. +- Do not write classes that silently override each other across sections. + +--- + +## Copy & Content + +Words are design material, not filler. + +- Write from the user's side of the screen — name things by what people control, not how the system is built. +- Use active voice: "Save changes," not "Submit." Actions keep the same name throughout the entire flow. +- Errors explain what went wrong and how to fix it. Empty states are invitations to act. +- Sentence case. Plain verbs. No filler. Tone matched to brand and audience. + +--- + +## Self-Critique + +Spend boldness in one place — the signature element. Keep everything else quiet and disciplined. Cut decoration that doesn't serve the brief. + +Before submitting, ask: does any part of this read like it was generated for a different brief? Revise that part. + +--- + +Remember: Codex is capable of extraordinary creative work. Don't hold back — show what can truly be created when committing fully to a distinctive, brief-specific vision. diff --git a/.codex/skills/ui-ux-pro-max/SKILL.md b/.codex/skills/ui-ux-pro-max/SKILL.md new file mode 100644 index 0000000..9e50bee --- /dev/null +++ b/.codex/skills/ui-ux-pro-max/SKILL.md @@ -0,0 +1,341 @@ +--- +name: ui-ux-pro-max +description: UI/UX design intelligence for web and mobile. Covers accessibility, touch interaction, performance, typography, animation, forms, navigation, and data visualization. Use when the task involves UI structure, visual design decisions, interaction patterns, or user experience quality control. Projects include websites, landing pages, dashboards, admin panels, SaaS, portfolios, and mobile apps. Stacks include React, Next.js, Vue, Svelte, HTML/CSS/Tailwind, and shadcn/ui. +license: Adapted from nextlevelbuilder/ui-ux-pro-max-skill (MIT). Source: https://github.com/nextlevelbuilder/ui-ux-pro-max-skill +--- + +# UI/UX Pro Max — Design Intelligence + +Comprehensive UX/UI guidance for web and mobile. Covers 10 rule categories: accessibility, touch & interaction, performance, style, layout, typography & color, animation, forms & feedback, navigation, and data visualization. Applied with priority weighting — fix CRITICAL first, HIGH second, MEDIUM third. + +--- + +## When to Apply + +### Must Use +- Designing new pages (landing, dashboard, admin, SaaS, mobile app) +- Creating or refactoring UI components (buttons, modals, forms, tables, charts) +- Choosing color schemes, typography, spacing, or layout systems +- Reviewing UI code for accessibility, visual consistency, or UX quality +- Implementing navigation, animations, or responsive behavior +- Making product-level design decisions (style, hierarchy, brand) + +### Recommended +- UI looks "unprofessional" but the reason is unclear +- Receiving feedback on usability or experience +- Pre-launch UI quality pass +- Aligning cross-platform design (Web / iOS / Android) +- Building design systems or reusable component libraries + +### Skip +- Pure backend logic, API/database design, DevOps, infrastructure, non-visual scripts + +**Decision rule**: If the task changes how something *looks, feels, moves, or is interacted with* — use this skill. + +--- + +## How to Use + +**Step 1 — Analyze requirements** +Identify: product type, target audience, style keywords, tech stack. + +**Step 2 — Apply the rule categories below** in priority order (1→10). Focus on CRITICAL and HIGH first. + +**Step 3 — Run the Pre-Delivery Checklist** before submitting any UI code. + +| Scenario | Start From | +|---|---| +| New project / page | Step 1 → Style Selection → Layout → Typography | +| New component | Animation + Forms + Interaction rules | +| Review existing UI | Quick Reference checklist, §1–§3 first | +| Fix a UI bug | Relevant section from Quick Reference | +| Improve / optimize | §3 Performance + §5 Layout | +| Add charts / data viz | §10 Charts & Data | + +--- + +## Rule Categories by Priority + +| Priority | Category | Impact | Key Checks (Must Have) | Anti-Patterns (Avoid) | +|---|---|---|---|---| +| 1 | Accessibility | CRITICAL | Contrast 4.5:1, Alt text, Keyboard nav, Aria-labels | Removing focus rings, Icon-only buttons without labels | +| 2 | Touch & Interaction | CRITICAL | Min size 44×44px, 8px+ spacing, Loading feedback | Reliance on hover only, Instant state changes (0ms) | +| 3 | Performance | HIGH | WebP/AVIF, Lazy loading, Reserve space (CLS < 0.1) | Layout thrashing, Cumulative Layout Shift | +| 4 | Style Selection | HIGH | Match product type, Consistency, SVG icons (no emoji) | Mixing flat & skeuomorphic randomly | +| 5 | Layout & Responsive | HIGH | Mobile-first, Viewport meta, No horizontal scroll | Fixed px widths, Disable zoom | +| 6 | Typography & Color | MEDIUM | Base 16px, Line-height 1.5, Semantic color tokens | Text < 12px body, Raw hex in components | +| 7 | Animation | MEDIUM | 150–300ms, Motion conveys meaning, Spatial continuity | Decorative-only animation, No reduced-motion support | +| 8 | Forms & Feedback | MEDIUM | Visible labels, Error near field, Progressive disclosure | Placeholder-only label, Overwhelm upfront | +| 9 | Navigation Patterns | HIGH | Predictable back, Bottom nav ≤5, Deep linking | Overloaded nav, Broken back behavior | +| 10 | Charts & Data | LOW | Legends, Tooltips, Accessible colors | Relying on color alone | + +--- + +## Quick Reference + +### §1 Accessibility (CRITICAL) + +- `color-contrast` — Minimum 4.5:1 for normal text; 3:1 for large text +- `focus-states` — Visible focus rings on all interactive elements (2–4px) +- `alt-text` — Descriptive alt text for meaningful images +- `aria-labels` — aria-label for icon-only buttons; accessibilityLabel in native +- `keyboard-nav` — Tab order matches visual order; full keyboard support +- `form-labels` — `