group-related-elements

Adjust UI spacing to communicate element grouping and produce pass/fail guidance.

240|11|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/gnurio/refactoring-ui-plugin --skill group-related-elements
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: group-related-elements
Source: https://github.com/gnurio/refactoring-ui-plugin/tree/main/skills/10-group-related-elements
Command: npx skills add https://github.com/gnurio/refactoring-ui-plugin --skill group-related-elements

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Poor proximity makes related UI elements feel disconnected and unrelated elements feel grouped, harming clarity and scan speed.

Core Features & Use Cases

  • Proximity-based grouping: Brings label-input pairs and other related components closer while increasing space between distinct groups.
  • Spacing hierarchy: Enforces tight spacing within components, looser spacing between components, and the loosest spacing between sections to create a clear visual rhythm.
  • Pass/Fail assessment: Flags common issues like uniform spacing, label drift, section smushing, and border dependency, then recommends concrete spacing adjustments.

Quick Start

Run the skill on a UI draft by listing the elements and their current gaps, then ask it to recommend spacing changes and report whether the grouping passes or fails.

Frequently Asked Questions about group-related-elements

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use spacing to improve visual grouping in UI design?

To improve visual grouping in UI design, apply proximity-based spacing by enforcing tighter gaps within components, larger gaps between distinct groups, and the loosest gaps between sections to clarify relationships.

Why does my form layout feel disconnected and hard to scan?

Your form layout likely suffers from poor proximity, where uniform spacing or label drift makes related elements feel disconnected. Enforcing label-to-input closeness thresholds and distinct between-group gaps resolves this clarity issue.

What is the best way to assess information hierarchy in a card composition?

The best way to assess information hierarchy in a card composition is to run a pass/fail check on spacing rules, flagging uniform spacing or section smushing, and verifying that within-component gaps remain tighter than between-group gaps.

Can I get actionable spacing recommendations for a list layout?

Yes, you can receive actionable spacing recommendations for a list layout by listing your current gaps. The system analyzes the element relationships and recommends concrete adjustments to enforce a clear visual rhythm.

When should I not rely on borders for visual grouping in a UI?

You should not rely on borders when proximity can establish grouping naturally. Border dependency often masks poor spacing; adjusting within-component and between-section gaps creates clearer relationships without adding visual clutter.