Hierarchy

From aladicf/better-web-ui · View interactive version

Hierarchy is an AI agent skill from the GitHub repository aladicf/better-web-ui. Clarify priority and emphasis by fixing unclear primary actions, competing visual weight, loud section titles, and weak label/value treatment. Use when the user mentions hierarchy, prioritization, too much competition, grayscale confusion, loud headings, or unclear primary actions.

How to use this skill

Skill file

Assess and improve visual hierarchy so the interface communicates priority immediately instead of making users decode it manually.

Use this when the problem is mainly priority and emphasis. If the bigger issue is arbitrary spacing, weak grouping, or monotonous layout rhythm, use arrange.

MANDATORY PREPARATION

Users start this workflow with /hierarchy. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first.


Assess Hierarchy Problems

Analyze where the interface is failing to prioritize clearly:

  1. Run the grayscale test:
  1. Scan for competition:
  1. Check consistency and predictability:
  1. Check action priority:
  1. Check labels and values:
  1. Check visual harmony:
  1. Check spacing, proximity, and alignment:

If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer.

CRITICAL: Hierarchy problems are not cosmetic. If users can't tell what matters, the design is failing at communication.

Plan Hierarchy Fixes

Consult the hierarchy checklist for grayscale tests, label/value handling, action hierarchy, and de-emphasis techniques.

Consult the text hierarchy and readability when title restraint, label/value structure, line length, semantic-vs-visual hierarchy, or weight-versus-contrast balancing are part of the problem.

Consult the design-system alignment when hierarchy problems are partly caused by inconsistent action styles, icon logic, or drifted component treatments across the product.

Consult the spatial design and spacing system references when hierarchy problems are really spacing, grouping, or alignment problems in disguise.

Use the shared references as the canonical source for hierarchy and readability doctrine, then focus this skill on fixing priority and emphasis in the actual interface.

Create a plan around these levers:

Improve Hierarchy Systematically

Clarify the Pyramid

Emphasize by De-emphasizing

Fix Action Hierarchy

Restructure Labels and Values

Quiet Section Titles

Preserve Predictability

Improve Harmony, Not Just Loudness

Use Space to Clarify Priority

Use Proximity and Alignment Deliberately

Support the Intended Scan Pattern

Balance Weight and Contrast

NEVER:

Verify Hierarchy Improvements

Remember: Great hierarchy makes the right thing feel obvious. If users have to study the screen, the hierarchy still needs work.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.