skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
gnurio/refactoring-ui-plugin149 installs

group-related-elements

Use proximity and spacing to show relationships

How do I install this agent skill?

npx skills add https://github.com/gnurio/refactoring-ui-plugin --skill group-related-elements
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill is a purely instructional guide for UI design principles focusing on grouping elements through proximity and spacing. It contains no executable code, script calls, or network operations, and presents no security risks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Skill: Group Related Elements

Purpose

Use proximity and spacing to visually group related elements together and separate unrelated groups.

Type

Generative + Evaluative

Input

  • Element inventory
  • Relationship mapping (what belongs together)
  • Current spacing between elements

Output

  • Spacing recommendations to show relationships
  • Pass/Fail assessment of current grouping

Transformation Performed

Adjusts spacing so elements within a group are closer together than elements in different groups, using the Gestalt principle of proximity.

Decision Criteria

PASS (Good Grouping)

  • Related elements have small gap (8-16px)
  • Unrelated groups have larger gap (24-48px)
  • Form labels close to their inputs (4-8px)
  • Sections clearly separated
  • Hierarchy of space: tightest within component, looser between components, loosest between sections

FAIL (Poor Grouping)

  • Uniform spacing everywhere
  • Labels far from inputs
  • Related elements visually disconnected
  • Unrelated elements too close
  • Using borders instead of space to group

The Proximity Principle

Elements that are close together are perceived as more related than elements that are farther apart.

Spacing Hierarchy

Within component (label + input): 4-8px
Between related components: 16-24px
Between sections: 32-64px
Between major page areas: 64-96px

Common Grouping Patterns

PatternStructureSpacing
Form fieldLabel → Input4-8px between, 16-24px after
CardHeader → Content → Footer16-24px internal padding
List itemsItem 1 / Item 2 / Item 38-12px between items
Button groupPrimary + Secondary8-12px between
SectionsSection A (gap) Section B48-64px between

Common Failure Modes

FailureDescriptionFix
The Great DivideEqual spacing everywhereTighten within groups, expand between groups
Label DriftLabels 20px+ from inputsReduce to 4-8px
Section SmushSections barely separatedAdd 48px+ between major sections
Border DependencyBoxes around everythingUse space instead of borders
Card ClumpCards touching each otherAdd 16-24px gap between cards

Prerequisites

  • Spacing system defined
  • Content grouped logically

Dependencies

  • apply-consistent-spacing (uses spacing scale)

Refactoring UI References

  • "Group related information"
  • "Use whitespace to create relationships"
  • "Proximity beats similarity"

Example Assessment

Input: Form with: Title (24px margin), Label (8px margin), Input, Label (8px), Input, Section header (16px margin), Label (8px), Input

Evaluation: PARTIAL

  • Label to input spacing not specified
  • Section header too close to previous section
  • Consistent 8px but not creating hierarchy

Recommendation:

  • Label to input: 4px (tight coupling)
  • After input group: 24px
  • Section header margin-top: 48px (clear break)
  • Within section: 16px between fields

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/gnurio/refactoring-ui-plugin/group-related-elements">View group-related-elements on skillZs</a>