跳到正文
cccskills
免费在 GitHub 公开

group-related-elements

Use proximity and spacing to show relationships

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills32026年8月28日 更新

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills32026年8月28日 更新

1password

免费

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills32026年8月28日 更新

Build integrated IS/BS/CF financial workbooks in Excel.

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills32026年8月28日 更新

9router

免费

Entry point for 9Router — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions 9Router, NINEROUTER_URL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability SKILL.md from the URLs below when needed.

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills32026年8月28日 更新

Chat / code generation via 9Router using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos. Use when the user wants to ask an LLM, generate code, summarize text, or run prompts through 9Router.

中文简介正在准备中。当前显示原文说明。

karanmrn/karanagentskills32026年8月28日 更新

查看 karanmrn 的全部技能

报告此技能的问题