Ux brief

From majesticlabs-dev/majestic-marketplace · View interactive version

Ux brief is an AI agent skill from the GitHub repository majesticlabs-dev/majestic-marketplace. Create junior-dev-ready design systems through guided discovery before implementation

How to use this skill

Skill file

Design System Generator

Create comprehensive, junior-dev-ready design system documents through guided discovery.

Design Target

<design_target> $ARGUMENTS </design_target>

If empty, ask: "What would you like to design? Describe the component, page, or feature."

Phase 0: Interview Option (Optional)

For complex features where requirements are unclear, offer a deep interview first:

AskUserQuestion: "This design could benefit from a requirements interview to clarify goals and constraints. Would you like to explore it in depth first?"
Options:
- "Yes, interview me first" → Skill(skill: "majestic-tools:workflows:interview", args: "[design target]"), then use refined output
- "No, proceed to design discovery" → Continue to Phase 1

When to suggest interview:

Skip interview suggestion for:

Phase 1: Context Gathering

Before asking questions, understand the project:

  1. Check for existing design tokens (tailwind.config.js, CSS variables)
  2. Look at existing UI components for patterns
  3. Identify tech stack (React, Vue, Rails/Hotwire, vanilla)
  4. Check for style guides or brand documentation

Phase 2: Discovery Questions

Ask questions ONE AT A TIME. Prefer multiple choice when options are bounded.

Question Areas

  1. Purpose & Goals - What is this UI trying to achieve?
  2. Target Audience - Who will use this interface?
  3. Aesthetic Direction - Pick one: Brutalist, Minimalist, Maximalist, Luxury, Playful, Retro-futuristic
  4. Typography - Display and body font preferences
  5. Color Palette - Primary brand color, light/dark theme, accent strategy
  6. Motion & Interaction - Animation intensity (none, subtle, dramatic)
  7. Inspiration & References - Sites they admire (Stripe, Linear, Vercel, etc.)
  8. Technical Constraints - Browser support, performance, accessibility (WCAG level)
  9. Framework (REQUIRED) - Based on tech_stack, suggest:

Visual Language Questions (if comprehensive design system needed)

  1. Photography style - "What mood should photos convey?"
  1. Illustration style - "Do you need illustrations? If so, what style?"
  1. Iconography - "What icon style fits your brand?"

Question Guidelines

Phase 3: Reference Research

When user mentions reference sites:

  1. Fetch the site using WebFetch
  2. Identify: typography, color palette, layout patterns, animation, unique details
  3. Present findings to confirm what resonates

Common References

Phase 4: Design System Generation

Load the design system template directly:

Read(file_path="references/design-system-template.md")

Then customize it with the user's specific choices:

Write the completed design system to docs/design/design-system.md.

Design principles applied during generation:

Phase 5: Save & Configure

Step 1: Determine Output Path

Check .agents.yml for design_system_path, default to docs/design/design-system.md.

Step 2: Auto-Preview Check

AUTO_PREVIEW = config_read("auto_preview", "false")

If AUTO_PREVIEW is "true": Execute open <design-system-path>

Step 3: Present Options

Use AskUserQuestion:

If NOT auto-previewed:

If auto-previewed:

Integration with Workflow

After completing the design system:

  1. Skill("blueprint") - Automatically detects UI features and references design system
  2. Skill("build-task") - Loads design system as context
  3. visual-validator - Verifies implementation against specifications

Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.