law-of-common-region
Apply the Law of Common Region to group elements using containers, backgrounds, and boundaries.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 You Do
- The Principle
- Common Region vs Proximity
- Applications
- When Containment Is Counterproductive
- Best Practices
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.
