- Home
- Skills
- Productivity
- Type Scale — Paste Base Size and Ratio, Get Each Step
Type Scale — Paste Base Size and Ratio, Get Each Step
Calculate numeric type scale sizes from per-row base sizes and ratios across positive and negative steps.
$5
Works with the AI Agents you already use
Type Scale — Paste Base Size and Ratio, Get Each Step
Example session with this skill installed
Run python3 scripts/type_scale.py examples/scale.csv and show the result.
- Read your context and instructions
- Compiled the type scale
Label Base px Ratio Step -2 (px) Step -1 (px) Step 0 (px) Step 1 (px) Step 2 (px) Step 3 (px) Step 4 (px) Step 5 (px) Status
Body 16 1.25 10.24 12.80 16.00 20.00 25.00 31.25 39.06 48.83 readable
Heading 24 1.25 15.36 19.20 24.00 30.00 37.50 46.88 58.59 73.24 readable
2 readable rows; 0 unreadable rows
Formula: size = base × ratio^n; for n < 0, size = base ÷ ratio^|n|. No total is calculated.
Connects securely to your tools. The creator never sees your data.
About this skill
Paste labeled base sizes and one positive ratio per row (CSV with a label,base,ratio header, or TSV). Get the calculated size at each requested integer step, including negative steps. Choose one unit label for the table with --unit px or --unit rem (no unit conversion is attempted) and an inclusive step range with --steps FIRST LAST within -20 through 20.
For step n >= 0: size = base × ratio^n. For step n < 0: size = base ÷ ratio^|n|. Values use exact Decimal calculations and are displayed rounded to two decimal places. Base and ratio must be positive decimals of at most 30 digits; quoted comma groups such as "1,200" are accepted. Ratios such as 5:4 and 125%, zero, negative, empty, malformed values and rows with the wrong number of cells are marked UNREADABLE and shown as dashes; later rows still calculate. Unreadable cells are never treated as zero.
Output is text by default; Markdown, JSON and CSV are also available. Labels may contain quoted commas or line breaks. --output PATH creates a new UTF-8 file and refuses to overwrite an existing file. Python 3.9+, standard library only.
Run from the package folder: python3 scripts/type_scale.py examples/scale.csv. The exact output is in examples/expected_output.txt.
This tool calculates a numeric progression from the values supplied. It does not choose a scale, assess readability, measure rendered fonts, recommend font pairings, or account for optical adjustments.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Productivity.
This tool calculates a numeric progression from the values supplied. It does not choose a scale, assess readability, measure rendered fonts, recommend font pairings, or account for optical adjustments. Inputs are limited to 30 significant digits and steps to -20..20; check that all rows use the intended unit.
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 7 days ago
- Software
Python 3.9+