Skip to content
Back to skills

Layout Spacing Checker

ASecurity

[Design System] Validate margin/padding/gap values against spacing scale and grid rules. Use when (1) checking if spacing values follow the design system scale, (2) finding off-scale or inconsistent spacing, (3) auditing layout consistency across components, (4) user asks to 'check spacing', 'validate layout', 'audit margins/padding', or 'find off-scale values'.

  • 666 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added February 9, 2026
developmentpythonswiftbash

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill layout-spacing-checker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Layout Spacing Checker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Layout Spacing Checker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-layout-spacing-checker/badge)](https://www.skillsdirectory.com/skills/majiayu000-layout-spacing-checker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: layout-spacing-checker
description: "[Design System] Validate margin/padding/gap values against spacing scale and grid rules. Use when (1) checking if spacing values follow the design system scale, (2) finding off-scale or inconsistent spacing, (3) auditing layout consistency across components, (4) user asks to 'check spacing', 'validate layout', 'audit margins/padding', or 'find off-scale values'."
---

# Layout & Spacing Scale Checker

Validate spacing values against a defined scale and find inconsistencies.

## Quick Start

```bash
python3 scripts/check_spacing.py --scale spacing.yml --source src/
```

## Issue Types

| Type | Severity | Description |
|------|----------|-------------|
| `off-scale` | warning | Value not in spacing scale |
| `inconsistent` | info | Different spacing for similar components |
| `zero-spacing` | info | Potentially missing spacing |
| `excessive` | warning | Unusually large spacing value |

## Detection Examples

### CSS/SCSS
```css
/* off-scale: 17px not in scale */
.card { padding: 17px; }
/* Suggested: 16px (md) or 20px */
```

### SwiftUI
```swift
// off-scale: 15 not in scale
.padding(15)
// Suggested: .padding(16) or spacing token .md
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.