- Home
- Skills
- UX & UI Design
- Grid Columns — Paste Page and Gutters, Get Column Widths
Grid Columns — Paste Page and Gutters, Get Column Widths
Paste one row per grid with page width, margins, column count and gutter; get the equal column width, each column's left edge, and the rounding remainder, in the one unit you declare.
$5
Works with the AI Agents you already use
Grid Columns — Paste Page and Gutters, Get Column Widths
Example session with this skill installed
python3 scripts/grid_columns.py examples/grid.csv
- Read your context and instructions
- Compiled the grid columns
Grid Columns (all measurements in mm)
Column width = (page - left - right - gutter x (columns - 1)) / columns; displayed widths round to 0.01, half up.
Rounding remainder = usable width - (displayed column width x columns). No unit conversion or layout advice is provided.
Name | Columns | Column width | Left edges | Rounding remainder | Note
Brochure | 3 | 313.33 mm | 10, 343.33, 676.66 | 0.01 mm | --
Square page | 2 | 480 mm | 10, 510 | 0 mm | --
Connects securely to your tools. The creator never sees your data.
About this skill
Paste one row per grid with page width, left and right margins, column count, and gutter, and get the equal column width, each column's left edge, and the rounding remainder. Declare one unit on the first line; the tool keeps that unit and does not convert measurements. The tool reports arithmetic only and provides no layout advice.
Input
CSV or TSV. The first line declares exactly one unit (unit,mm — also unit:mm or unit=mm), followed by the header name, page_width, left_margin, right_margin, columns, gutter and one row per grid. Measurements are non-negative decimals, optionally with correctly grouped commas, up to 20 digits each; columns is a whole number from 1 to 1000. Unknown, missing, duplicate and extra cells are rejected; invalid values are reported in that row and never replaced with zero. Input must be UTF-8 or UTF-16, at most 100,000 bytes and 2,000 data rows.
Calculations
- Usable width = page width − left margin − right margin − gutter × (columns − 1).
- Column width = usable width ÷ columns, displayed rounded to 0.01 (half up).
- The first left edge is the left margin; each next edge adds the displayed column width and the gutter.
- Rounding remainder = usable width − (displayed width × columns); it can be positive or negative.
- A zero or negative calculated column width is shown as unavailable with a note.
Run it
python3 scripts/grid_columns.py examples/grid.csv (also --format markdown, json, csv). Requires Python 3.9+ and the standard library only. Tests: python3 -m unittest discover tests.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.
Reports arithmetic only: no unit conversion, no layout advice. One unit per input, declared on the first line. Measurements are used as entered. Input limited to 100,000 bytes and 2,000 data rows (columns 1 to 1000); UTF-8 or UTF-16. Zero or negative calculated column widths are shown as unavailable.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.9+