/coleoni-layout

Off by 2px. Felt by everyone.

Pages built section by section drift: one padded 30px, the next 32, the one after 34. Nobody can see the numbers; everyone feels the page is crooked. The skill measures where every block starts, draws it over the page, and puts the layout back on one container and one rhythm.

npx skills add c0le0ni/skills --skill coleoni-layout
View on GitHub
Claude Code, Codex, Cursor, Gemini CLI and more Edges drawn on the page Rhythm between sections 390, 768 and 1280px
Loaders at 390px with every vertical gap painted and a ruler beside it: inside the card, 16 between fields and 8 from label to control, but only 8px between the npm command and the card, against 12 between the card and the grid The top of Loaders at 390, 700, 768 and 1280px on the same scale, page margins in white and whatever escapes them in green: at 700px the logo sits 8px in and GitHub 18px; at the other widths GitHub stops 10px before the edge The fixed Loaders at 1280px with the container drawn over it: a 20px margin on both sides with the logo and GitHub on it, 16px between the grid and the card, and the 16 and 8px bands inside the card
Example

Four pixels outside the column.

I ran it on Loaders, my library of loading animations, at 390, 700, 768 and 1280px. The engine flagged one thing: a centered footer line 2px off the card at 390px, a coincidence I left alone. Loaders is mostly divs and buttons, so the engine sees few edges; I applied the same rule (an edge 1 to 6px from a more used one) to every visible box with a small measuring script. That found the selected color ring 4px outside the column, the header leaving the margin between 640 and 767px and 8px between the npm command and the card on the phone. By eye, past the rule: GitHub ending 10px before the edge. Four lines fixed it, in a local copy.

fix.diff
# top-bar.tsx · header, one margin switch
- px-3 sm:px-5
+ px-3 md:px-5

# top-bar.tsx · GitHub, on the edge
- h-8 gap-1.5 px-2.5
+ -mr-2.5 h-8 gap-1.5 px-2.5

# color-picker.tsx · selected ring, inside
- 0_0_0_2px_var(--pulse-surface),
  0_0_0_4px_var(--pulse-foreground)
+ inset_0_0_0_2px_var(--pulse-foreground),
  inset_0_0_0_4px_var(--pulse-surface)

# app.tsx · npm command, 12px to the card
- px-3 pb-2 lg:hidden
+ px-3 pb-3 md:px-5 lg:hidden
4pxselected ring outside the column
10 → 0px from GitHub to the edge
8 → 12px from the npm command to the card
4lines changed
Checks

What it measures.

Room for translations and long content belongs to /coleoni-break; spacing inside components to /coleoni-polish.

CheckWhat counts as a problem
AlignmentA left edge 1 to 6px from a more used one
RhythmGaps between sections close but different
GroupingA heading with as much space below as above
WidthsSideways scroll at 390 or 768px
Install

One command, any agent.

The only package is playwright-core. Part of the interface family with polish, type and color.

AgentClaude Code, Codex, Cursor…
Node.js18 or newer
Chrome or Edgealready on the machine
01Install
npx skills add c0le0ni/skills --skill coleoni-layout
02Use it in your agent
/coleoni-layout https://yoursite.com
For your whole user, not just the project-g
Claude Code only-a claude-code
Codex only-a codex
Every Coleoni skillnpx skills add c0le0ni/skills
Examples

When something feels off.

It shows the overlay first.

Draw the grid a page really has.

/coleoni-layout https://yoursite.com

Put it on one container.

/coleoni-layout the landing page, one container and one rhythm

Check the phone.

/coleoni-layout why does it scroll sideways on my phone
Options

The engine, from the terminal.

node layout.mjs https://yoursite.com --out layout-report

OptionWhat it does
--select "main"Only one part of the page
--width 1280Desktop width
--lang en|ptLanguage of the report

Straight edges, steady rhythm.

npx skills add c0le0ni/skills --skill coleoni-layout