# M Grid

> Snap all spacing values to the 4px base grid. Replaces arbitrary values with the nearest scale token.

- Skill: `dragoon0x/m-grid` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dragoon0x/m-grid`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dragoon0x/m-grid/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dragoon0x (https://skillmd.com/u/dragoon0x)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dragoon0x/m-grid

---

# /m-grid — Grid Snap
Scan every padding, margin, and gap. For off-grid values:\n1. Find nearest scale value\n2. Replace with var(--space-N)\n3. Show before/after with pixel difference\n\nReport: total checked, on-grid %, corrections applied.

