# M Grid

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

- Skill: `dragoon0x/m-grid-2` (Agent Skill)
- Install (CLI): `npx get-skill add dragoon0x/m-grid-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dragoon0x/m-grid-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dragoon0x (https://skillmd.com/u/dragoon0x)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/dragoon0x/m-grid-2

---

# /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.

