fitts-law

fitts-law is a skill for Claude Code from Infrasity-Labs/dev-gtm-claude-skills. It costs 21 tokens per session (744 once invoked), scanned A, a copy of fitts-law, MIT.

A user-interface design skill based on Fitts's Law, which describes how target size and distance affect the time and accuracy needed to select something. It applies that idea to interactive controls.

In plain words
What is it for?
It is for sizing and positioning buttons, links, touch targets, and other interactive elements for easier selection.
Why use it?
It helps reduce missed clicks and taps by addressing controls that are too small or too far away.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the marketing-skills plugin — 166 skills, 8 commands, 23 agents, 1 hook shipped together , and of writing-skills

Good fit It is for sizing and positioning buttons, links, touch targets, and other interactive elements for easier selection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/infrasity-labs/dev-gtm-claude-skills/fitts-law
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Infrasity-Labs/dev-gtm-claude-skills --skill fitts-law
Clone the repo
git clone --depth 1 https://github.com/Infrasity-Labs/dev-gtm-claude-skills

Made for: Claude Code.

Or install marketing-skills, the plugin that ships this one along with the rest of its 166 skills, 8 commands, 23 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fitts-law

README.md
[![agentmods](https://agentmods.dev/badge/skills/infrasity-labs/dev-gtm-claude-skills/fitts-law/github.svg)](https://agentmods.dev/skills/infrasity-labs/dev-gtm-claude-skills/fitts-law)
Your own site
<a href="https://agentmods.dev/skills/infrasity-labs/dev-gtm-claude-skills/fitts-law"><img src="https://agentmods.dev/badge/skills/infrasity-labs/dev-gtm-claude-skills/fitts-law/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fitts-law

Your own site · 80×15
<a href="https://agentmods.dev/skills/infrasity-labs/dev-gtm-claude-skills/fitts-law"><img src="https://agentmods.dev/badge/skills/infrasity-labs/dev-gtm-claude-skills/fitts-law.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00744
Opus 5.5 $0.00008 $0.00298
Sonnet 5.5 $0.00004 $0.00149
Haiku 4.5 $0.00002 $0.00074

Measured 7d ago against content hash c0c57cac57b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fitts-law scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to fitts-law — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/fitts-law/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fitts's Law

You are an expert in the relationship between target size, distance, and interaction accuracy.

What You Do

You apply Fitts's Law to ensure interactive targets are sized and positioned to minimize the time and effort required to reach and activate them.

The Principle

The time to acquire a target is a function of distance to the target and target size: MT = a + b × log₂(2D / W) Where: MT = movement time, D = distance to target, W = width of target, a/b = empirically derived constants. In plain terms: large targets close to the pointer are fast to hit; small targets far away are slow and error-prone. Both dimensions — size and proximity — matter independently.

Practical Implications

Target Size

  • Minimum touch target: 44×44pt (Apple HIG) / 48×48dp (Material Design) for touch interfaces
  • Pointer targets can be smaller but should still be generous — 24×24px minimum for pointer, more for small or dense UIs
  • Target size is the interactive area, not the visual icon — a 16px icon can have a 44px tap area
  • Increase size for high-frequency or high-consequence actions (primary CTA, destructive confirm)

Target Distance

  • Place related actions near the content they act on — a card action should live on the card, not across the screen
  • Edges and corners of the screen are infinite-size targets (pointer cannot overshoot) — use them for persistent navigation (macOS menu bar, Windows taskbar)
  • On mobile, bottom-of-screen placement reduces reach distance for right-hand thumb use
  • Dialogs with confirmation actions should not require crossing the full screen to reach "OK"

What Fitts's Law Does Not Cover

  • Cognitive cost: it models motor time, not the time to decide what to tap. A perfectly sized, well-positioned button still fails if the label is ambiguous.
  • Touch accuracy vs pointer accuracy: touch has a larger contact zone and is less precise; pointer mechanics differ. The law applies to both but parameters vary.
  • Gesture targets: swipe areas, drag handles, and scroll zones follow the same principles (bigger + closer = faster) but interact with accidental activation risk in ways the basic model doesn't capture.

Read the full file on GitHub · 45 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 45 lines · 21 tokens per session scan A c0c57cac57b3

Subscribe to this mod's changes

fitts-law is a skill published in the GitHub repository Infrasity-Labs/dev-gtm-claude-skills (193 stars, last pushed 7d ago), licensed MIT. It adds 21 tokens to every session and 744 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to fitts-law, differing in 2 lines, and is treated as a copy.

Related

fitts-law compared with skills from other repositories

fitts-law next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fitts-lawInfrasity-Labs/dev-gtm-claude-skillsSkill1937d agoMITA21Claude Code
user-research-synthesismohitagw15856/pm-claude-skillsSkill1.6ktodayMITA114Claude Code, Codex
sxonowork-studio/notfair-pluginSkill4.3k12d agoMITA211Claude Code
user-interview-synthesismohitagw15856/pm-claude-skillsSkill1.6ktodayMITA113Claude Code, Codex
prototypetobihagemann/turboSkill428yesterdayMITA46Claude Code
ultimate-design-system-masterfabricioctelles/skillsSkill1504d agoApache-2.0A88Claude Code, Codex
themingnimadorostkar/Claude-Skills-collectionSkill41todayMITA88Claude Code