Skip to content
프로젝트

소개

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

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+3
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

gridlines

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.

Draw the lines first, then move the items.

Before and after: the guides draw, stray items get flagged, and on the right they glide onto their lines

Install

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's inside

File What it does
skills/gridlines/SKILL.md The process and the rules the agent follows
skills/gridlines/probe.js Runs in the page: measures the ink edges of text, icons and controls, draws the guides, lists every miss
skills/gridlines/audit.mjs Loads a page in headless Chromium, runs the probe, saves a 2x capture with the guides and a JSON report
examples/sidebar.html A sidebar with four planted misses, to see a report before pointing it at your app

Try the probe

The audit script needs Playwright. Install it anywhere and point PW_DIR at that folder:

npm i --prefix /tmp/gridlines-pw playwright
npx --prefix /tmp/gridlines-pw playwright install chromium
PW_DIR=/tmp/gridlines-pw node skills/gridlines/audit.mjs "file://$PWD/examples/sidebar.html" .gridlines 800
## Sidebar  x0 w240
   lead 12px  box -  icon centre 20px  label 36px  trailing 12px  trailing centre -
   MISS y56 trailing: 15px vs 12px  [12]
   MISS y88 leading: 15px vs 12px  Workspace
   MISS y120 label: 38px vs 36px  Views
   MISS y120 vertical-centre: 3px vs 0px  <svg> … Views

The probe also works without the script: paste probe.js into any page's console and call window.__gridlines().

How it works

The rules

Credits

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.

License

MIT

관련 프로젝트 살펴보기

불러오는 중…