- Home
- Skills
- Productivity
- Fitts Index — Paste Distance and Width, Get Difficulty
Fitts Index — Paste Distance and Width, Get Difficulty
Calculate the Fitts index of difficulty from supplied target distances and widths. Optional movement time uses coefficients supplied by the user.
$5
Works with the AI Agents you already use
Fitts Index — Paste Distance and Width, Get Difficulty
Example session with this skill installed
python3 scripts/fitts_index.py examples/targets.csv --unit px --a 80 --b 120
- Read your context and instructions
- Compiled the fitts index
Fitts Index (distance and width in px)
Formula: log2(distance / width + 1) bits.
Movement time: a + b × difficulty; a=80 ms, b=120 ms/bit.
| Line | Label | Distance (px) | Width (px) | Index of difficulty (bit) | Movement time (ms) | Status |
|---|---|---|---|---|---|---|
| 2 | Primary|navigation button | 240 | 40 | 2.807 | 416.9 | readable |
| 3 | Compact button | 32 | 32 | 1.000 | 200.0 | readable |
| 4 | Zero offset | 0 | 18 | 0.000 | 80.0 | readable |
| 5 | Mismatched unit | 120 | — | — | — | UNREADABLE |
| 3 readable rows; 1 unreadable row (line 5) | ||||||
| Readable rows only have calculated results; no total difficulty is calculated. |
Connects securely to your tools. The creator never sees your data.
About this skill
Paste target distances and widths to calculate the Fitts index of difficulty, log2(distance / width + 1), in bits. This is arithmetic only; it does not judge layouts or recommend target sizes.
Input: a CSV with the exact header label,distance,width. Each data row describes one target. Choose one unit for the whole table with --unit (for example px, mm, pt, or rem); distance and width must use the same unit, and an optional cell suffix must match it. Distance may be zero; width must be greater than zero. Percentages, negative distances, zero widths, unit mismatches, malformed comma groups, and values with more than 30 digits are unreadable and shown as UNREADABLE; later rows still run.
Movement time (optional): provide both --a and --b to calculate a + b × difficulty in milliseconds. The coefficients are supplied by the user; the tool does not choose them or claim that the formula predicts a person's actual movement time.
Output: text by default, or markdown, json, or csv with --format. Use --delimiter tab for tab-separated input, - for standard input, and --output PATH to write UTF-8 to a new file. Difficulty is rounded to three decimal places (ROUND_HALF_UP); movement time to one decimal place. Input supports UTF-8, UTF-8 BOM, and BOM-less UTF-16, up to 100,000 bytes and 5,000 data rows.
Includes examples, tests, and a runnable Python command-line script (python3 scripts/fitts_index.py).
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 applies one mathematical formula to the supplied distances and widths. It does not inspect a screen, judge a design, check accessibility standards, compare layouts, or recommend target dimensions. Movement-time coefficients are supplied by the user; this tool does not choose them or claim that the formula predicts a person's actual movement time. Limits: 100,000 input bytes, 5,000 data rows, and 30 digits per numeric value.
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+