Skip to content
Back to search

gridlines

An agent skill for alignment passes: draw guide lines down an interface, find every item that misses its line, fix the padding.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/pritamux--gridlines/badge.svg)](/listings/pritamux--gridlines)

HTML

<a href="/listings/pritamux--gridlines"><img src="/api/listings/pritamux--gridlines/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npx skills add pritamux/gridlines

Or copy `skills/gridlines/` into your agent's skills folder (for Claude Code, `~/.claude/skills/gridlines/`).

Then ask your agent for an alignment pass, or call it directly:

/gridlines line up the settings sidebar

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 63 lines
  1. # gridlines
  2. An agent skill for alignment passes. It draws vertical guide lines down an interface, finds every item that misses its line, and fixes the padding so sidebars, toolbars, panels, menus and tables share a small set of edges.
  3. Draw the lines first, then move the items.
  4. [![Before and after: the guides draw, stray items get flagged, and on the right they glide onto their lines](media/before-after.png)](media/before-after.mp4)
  5. ## Install
  6. ```sh
  7. npx skills add pritamux/gridlines
  8. ```
  9. Or copy `skills/gridlines/` into your agent's skills folder (for Claude Code, `~/.claude/skills/gridlines/`).
  10. Then ask your agent for an alignment pass, or call it directly:
  11. ```
  12. /gridlines line up the settings sidebar
  13. ```
  14. ## What's inside
  15. | File | What it does |
  16. | --- | --- |
  17. | `skills/gridlines/SKILL.md` | The process and the rules the agent follows |
  18. | `skills/gridlines/probe.js` | Runs in the page: measures the ink edges of text, icons and controls, draws the guides, lists every miss |
  19. | `skills/gridlines/audit.mjs` | Loads a page in headless Chromium, runs the probe, saves a 2x capture with the guides and a JSON report |
  20. | `examples/sidebar.html` | A sidebar with four planted misses, to see a report before pointing it at your app |
  21. ## Try the probe
  22. The audit script needs Playwright. Install it anywhere and point `PW_DIR` at that folder:
  23. ```sh
  24. npm i --prefix /tmp/gridlines-pw playwright
  25. npx --prefix /tmp/gridlines-pw playwright install chromium
  26. PW_DIR=/tmp/gridlines-pw node skills/gridlines/audit.mjs "file://$PWD/examples/sidebar.html" .gridlines 800
  27. ```
  28. ```
  29. ## Sidebar x0 w240
  30. lead 12px icon centre 20px label 36px trailing 12px trailing centre 22px
  31. MISS y56 trailing: 15px vs 12px [12]
  32. MISS y88 leading: 15px vs 12px Workspace
  33. MISS y120 label: 38px vs 36px Views
  34. MISS y120 vertical-centre: 3px vs 0px <svg> … Views
  35. ```
  36. The probe also works without the script: paste `probe.js` into any page's console and call `window.__gridlines()`.
  37. ![How it works](media/how-it-works.png)
  38. ![The rules](media/the-rules.png)
  39. ## Credits
  40. The rules come from Karri Saarinen's redraw of the Linear sidebar and his notes on rhythm, edges and centring, backed by the layout chapter of Apple's Human Interface Guidelines.
  41. ## License
  42. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.