Back to skills
SKILL.md
Ui Layout And Composition Engineer
ASecurityArchitects spatial hierarchy, 8pt grid alignment, concentric border radius geometry (R_outer = R_inner + Padding), and ergonomic composition layouts (bento grids, split views, dense analytical dashboards). Eliminates awkward whitespace gaps, misaligned card edges, and unnested border radius distortions.
- 7 stars
- 0 votes
- 0 copies
- 4 views
- Added November 9, 2026
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill ui-layout-and-composition-engineer --agent claude-codeAre you the author of Ui Layout And Composition Engineer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-ui-layout-and-composition-engineer)---
name: ui-layout-and-composition-engineer
description: 'Architects spatial hierarchy, 8pt grid alignment, concentric border radius geometry (R_outer = R_inner + Padding), and ergonomic composition layouts (bento grids, split views, dense analytical dashboards). Eliminates awkward whitespace gaps, misaligned card edges, and unnested border radius distortions.'
version: 1.0.0
last-updated: 2026-10-30
skills:
- better-ui
- adapt
- shape
tools: Read, Grep, Glob, Bash, Edit, Write
scripts-binding:
- .agent/scripts/lint_runner.js
- .agent/scripts/verify_all.js
inputs:
layoutStructure: 'string'
containerPadding: 'number'
innerRadius: 'number'
outputs:
compositionGridCss: 'string'
geometryReport: 'object'
layoutBlueprint: 'object'
trigger:
- 'layout-composition'
- 'spatial-hierarchy'
- 'grid-alignment'
- 'nested-radius-math'
---
# UI Layout & Composition Engineer — Spatial Hierarchy & Concentric Geometry
## Mandatory Pre-Flight Context Inspection
Before establishing or adjusting component layouts, inspect these 5 critical parameters:
1. **Concentric Border Radius Invariant**: Enforce mathematical nesting on all containers enclosing rounded children:
$$R_{\text{outer}} = R_{\text{inner}} + \text{Padding}$$
Flag any child radius greater than or equal to its container's radius without proportional offset.
2. **8pt Spatial Grid Discipline**: Constrain all spacing (margins, padding, gap) to multiples of 4px / 8px (4, 8, 12, 16, 24, 32, 48, 64px). Never use arbitrary values like `p-[13px]`.
3. **Information Hierarchy**: Place primary scanning targets at natural focal points (top-left for LTR readers), grouping related controls via Gestalt proximity.
4. **Asymmetric / Bento Grid Composition**: When designing product dashboards, structure cards with intentional visual rhythm (e.g. 2/3 primary chart, 1/3 quick actions).
5. **Optical Padding Symmetry**: Ensure vertical and horizontal padding preserve visual balance (vertical padding may be 20% smaller than horizontal on pill buttons for optical centering).
## Activation Boundaries
- **Activate when:** Designing page layouts, configuring bento grid structures, fixing nested radius clashes, aligning complex forms, or establishing spacing systems.
- **DO NOT activate when:** Writing isolated state reducers or authoring server-side backend queries.
## 🔁 Multi-Pass Layout & Composition Protocol
| Pass | Phase | Core Action | Observable Target |
| :--------- | :--------------------------- | :--------------------------------------------------------------------------------------------- | :-------------------------- |
| **Pass 1** | **Macro Spatial Grid** | Structure outer container with CSS Grid or Flexbox on 8pt spacing units. | Macro Layout Structure |
| **Pass 2** | **Concentric Radius Math** | Compute and apply $R_{\text{outer}} = R_{\text{inner}} + \text{Padding}$ on nested containers. | Concentric Geometry |
| **Pass 3** | **Bento / Rhythm Balancing** | Allocate grid column and row spans to reflect relative data importance. | Bento Grid Composition |
| **Pass 4** | **Optical Padding Refine** | Verify text optical alignment against container borders and sibling icons. | Symmetrical Margins |
| **Pass 5** | **Layout Verification** | Run `verifyConcentricRadius()` and spatial grid audit to certify geometry. | Certified Spatial Blueprint |
---
## 🛠️ Technical Architecture & Layout Recipes
### 1. Concentric Nested Radius Formula & Implementation
```javascript
const { verifyConcentricRadius } = require('../../src/design_intelligence/spatial_layout_engine');
// Verify container with 16px padding, 8px inner button radius, 24px outer card radius
const check = verifyConcentricRadius(24, 8, 16);
// check.isConcentric === true (24 === 8 + 16)
```
```html
<!-- Mathematically concentric card with inner badge -->
<!-- Outer container: R = 20px, Padding = 14px -> Inner badge: R = 6px (20 - 14) -->
<div
className="p-[14px] rounded-[20px] bg-[var(--surface-1)] border border-[oklch(1_0_0/0.08)] flex items-center justify-between"
>
<span className="text-sm font-medium text-[var(--text-primary)]"> Service Status </span>
<span
className="px-2.5 py-1 rounded-[6px] text-xs font-semibold bg-[oklch(0.25_0.08_145)] text-[oklch(0.85_0.14_145)]"
>
Healthy
</span>
</div>
```
### 2. High-Craft Bento Grid Layout
```html
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 p-6 bg-[var(--surface-0)]">
<!-- Primary Feature Card (2 Columns) -->
<article
className="md:col-span-2 p-6 rounded-[24px] bg-[var(--surface-1)] border border-[oklch(1_0_0/0.08)] min-w-0"
>
<h3 className="text-base font-semibold text-[var(--text-primary)]">Real-Time Telemetry</h3>
</article>
<!-- Secondary Metric Card (1 Column) -->
<article
className="p-6 rounded-[24px] bg-[var(--surface-1)] border border-[oklch(1_0_0/0.08)] min-w-0"
>
<h3 className="text-base font-semibold text-[var(--text-primary)]">Throughput</h3>
</article>
</div>
```
---
## 🏛️ Tribunal Verification & Guardrails
### 🛑 Verification-Before-Completion (VBC) Protocol
1. Verify nested border radii satisfy $R_{\text{outer}} = R_{\text{inner}} + \text{Padding}$.
2. Confirm all margin, padding, and gap values conform to the 8pt base grid.
3. Validate that bento grid cards prevent flex truncation or text overflow.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.