Wink Pings

A Claude skill that fixes UI misalignment

On UIs generated by Claude, some elements are always a few pixels off. This skill, called /gridlines, draws baseline guides, identifies elements that are off, and fixes alignment at the container level. The rules include rationales, so the AI can apply the reasoning to new cases.

Pritam Paul wrote a skill for Claude called /gridlines. Its purpose is simple: draw reference lines, find components in the UI that are not aligned, and then fix padding and visual alignment. A skill is a set of specialized instructions for an AI that enables it to perform a specific task.

This skill is used after Claude generates an interface. Claude's output is broadly correct in terms of layout, but the details are always off by a few pixels. The author says he now runs this tool on every interface he makes, gets a baseline, and then adjusts the pixels little by little.

In his tweet, he listed several rules:

  • Keep the icon column and text rows on the same line
  • Align headings to the icon edges
  • Keep toolbars on a single center line
  • Fix the container, not individual elements

Each rule comes with a rationale. That way the AI understands why, and can make its own judgments in situations that aren't spelled out.

The inspiration came from Karri Saarinen's explanation of the perfectly aligned Linear sidebar. This context is key: good alignment requires establishing a baseline first, then fine-tuning pixels. That's also why the fourth rule says 'fix the container, not individual items'—if the container is right, newly added elements will automatically align correctly.

The video shows it in action.

In the comments, a fellow designer said he had been using a similar method to polish Claude's first-pass designs, and the difference was night and day. Others said more small skills like this should be made. Some also raised questions about details: the dropdown arrow on the left looks awkward; and whether padding inside the SVG viewBox should be considered, because even if the icon is aligned in CSS, it can still appear visually offset.

These follow-up questions show that UI alignment really is a headache, especially in AI-generated code. A skill that provides a baseline may be small, but it is practical.

发布时间: 2026-11-22 07:01