Back to Skills

sdv-ui-layout

This skill should be used when the user asks to "create a menu layout", "fix UI spacing", "adjust positioning", "design a menu", or discusses UI alignment, element placement, or visual layout. Also use when working on files in the Menus/ directory or when the user mentions layout, positioning, spacing, or menu design.

2starsUpdated 4/3/2026

Security Assessment

Safe(100/100)
Security Score100/100

About sdv-ui-layout

The sdv-ui-layout skill is designed to assist developers and designers in creating, adjusting, and validating user interface layouts for Stardew Valley menus. It addresses common challenges such as inconsistent spacing, misaligned elements, and trial-and-error positioning by providing a structured approach to UI layout. By using this skill, users can focus on semantic design and anchor-based positioning rather than relying on hardcoded coordinates, ensuring more maintainable and visually consistent interfaces.

Key features of sdv-ui-layout include a step-by-step design workflow that emphasizes conceptual layout diagrams, semantic positioning, and the definition of layout constants for standard spacing, button sizes, and element dimensions. The skill promotes anchor-based positioning, where elements are placed relative to other components instead of absolute coordinates, reducing layout errors. Additionally, it includes validation checks for bounds, overlaps, gamepad navigation, and multiple resolutions, helping developers catch potential issues before testing in-game. Standard Stardew Valley UI conventions, such as button and tab sizes, are also integrated to maintain consistency with the game's design language.

This skill is particularly useful for mod developers, UI designers, and anyone working within the Menus/ directory of Stardew Valley who needs to design or refine menus. Typical use cases include creating new menu layouts, adjusting existing interfaces for better spacing and alignment, designing category selectors and action buttons, and ensuring cross-resolution compatibility. By following the structured workflow provided by sdv-ui-layout, users can streamline UI development, reduce visual errors, and improve the overall player experience.

FAQ

How do I start using sdv-ui-layout for a new menu?

Begin by creating a conceptual text diagram of your intended layout, then define layout constants and use semantic, anchor-based positioning for all UI elements.

Does this skill work with all Stardew Valley menus?

It is intended for menus within the Menus/ directory, particularly those involving layout, positioning, spacing, or menu design, but may be adapted for other menus following similar conventions.

What validation checks does sdv-ui-layout provide?

It includes bounds checks, overlap detection, gamepad navigation verification, and resolution testing at common resolutions like 1280x720, 1920x1080, and 2560x1440.

Can I use magic numbers instead of semantic positioning?

While technically possible, using semantic positioning and anchor-based layouts is strongly recommended to ensure maintainability and consistent spacing.

Are there predefined constants for standard spacing and button sizes?

Yes, constants for border width, element gaps, section gaps, button sizes, tab height, and portrait dimensions are provided for consistent UI design.

Install sdv-ui-layout

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill