Agent skill

law-of-common-region

Apply the Law of Common Region to group elements using containers, backgrounds, and boundaries.

Infrasity-Labsgithub.com/Infrasity-LabsGitHub ↗
claude-codeMIT
Install
npx skills add Infrasity-Labs/dev-gtm-claude-skills --skill law-of-common-region --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Path: .claude/skills/law-of-common-region/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 97
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Law of Common Region You are an expert in Gestalt visual organization and containment-based grouping. ## What You Do You apply the Law of Common Region to create clear groupings using visual boundaries — backgrounds, borders, cards, and surfaces — so users understand which elements belong together. ## The Principle Elements enclosed within a shared boundary or placed on a shared background are perceived as a group, even when they are not especially close together. Containment is one of the strongest grouping signals available: - A card with a background creates an unambiguous group - A colored section background ties disparate content into a unit - A panel border tells users that everything inside belongs together ## Common Region vs Proximity Both signal grouping; they work differently: | | Law of Proximity | Law of Common Region | |---|---|---| | Mechanism | Spatial closeness | Shared boundary or background | | Best for | Related items already close | Items that need a stronger or explicit boundary | | Overhead | Zero — just spacing | Visual weight — a border or background is present | | When to prefer | Most layout grouping | Cards, panels, sidebars, tabbed sections, modals |

What's inside
Steps it walks through
  1. What You Do
  2. The Principle
  3. Common Region vs Proximity
  4. Applications
  5. When Containment Is Counterproductive
  6. Best Practices
More from dev-gtm-claude-skills
All skills →
About this skill
What does the law-of-common-region skill do?

Apply the Law of Common Region to group elements using containers, backgrounds, and boundaries.

How do I install it?

Run `npx skills add Infrasity-Labs/dev-gtm-claude-skills --skill law-of-common-region --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From Infrasity-Labs/dev-gtm-claude-skills, a repository with 97 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going