Agent skill

Fitts Law Screen Edges

by hashgraph-online in hashgraph-online/awesome-codex-plugins

A skill your agent uses when designing for the edges and corners of the screen — where the cursor cannot overshoot, making them effectively infinite-sized targets along one axis.

Apache-2.0Auto-check passedFrontend & Design

Install Fitts Law Screen Edges

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill fitts-law-screen-edges -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins fitts-law-screen-edges --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/HDeibler/universal-design-principles/plugins/interaction-and-control-principles/skills/fitts-law-screen-edges .claude/skills/fitts-law-screen-edges && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fitts-law-screen-edges
GitHub stars
1.3k
Token cost
~2.7k tokens
SKILL.md length
1,309 words
Files
2 (incl. references)
Skills in repo
716
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when designing for the edges and corners of the screen — where the cursor cannot overshoot, making them effectively infinite-sized targets along one axis.

  • Works in 5 steps: Sticky headers earn their position → Bottom toolbars on mobile → Full-bleed CTAs → …
  • Designing for the edges and corners of the screen — where the cursor cannot overshoot
  • SKILL.md covers Why edges matter, The classic examples, What this means for web design and What to put at edges, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Fitts Law Screen Edges is an agent skill from hashgraph-online/awesome-codex-plugins. Use this skill when designing for the edges and corners of the screen — where the cursor cannot overshoot, making them effectively infinite-sized targets along one axis. Trigger when designing global navigation, system menus, sticky headers, fixed sidebars, full-bleed CTAs, or anywhere you can put the most-frequent or hardest-to-find actions. Trigger when reviewing an app that has wasteful margins on every side and asks the user to aim for tiny targets in the middle. Sub-aspect of fitts-law; read that first if…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/edge-patterns.md`).

It sits in Frontend & Design. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is Apache-2.0.

When your agent uses it

  • Designing for the edges and corners of the screen — where the cursor cannot overshoot
  • Making them effectively infinite-sized targets along one axis
  • Designing global navigation
  • Full-bleed CTAs

Example prompts

  • “/fitts-law-screen-edges”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Sticky headers earn their position
  2. Bottom toolbars on mobile
  3. Full-bleed CTAs
  4. Side panels and drawers
  5. The corner advantage

What it can do on your machine

Read from SKILL.md and the folder at commit 3e1456a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are html).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fitts Law Screen Edges loads about 2.7k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 140 tokens; SKILL.md has 1,309 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~140
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hashgraph-online/awesome-codex-plugins at commit 3e1456a, republished under its Apache-2.0 licence (© hashgraph-online). 1,309 words, ~2,734 tokens.

Download SKILL.mdSave it as .claude/skills/fitts-law-screen-edges/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
fitts-law-screen-edges
description
Use this skill when designing for the edges and corners of the screen — where the cursor cannot overshoot, making them effectively infinite-sized targets along one axis. Trigger when designing global navigation, system menus, sticky headers, fixed sidebars, full-bleed CTAs, or anywhere you can put the most-frequent or hardest-to-find actions. Trigger when reviewing an app that has wasteful margins on every side and asks the user to aim for tiny targets in the middle. Sub-aspect of `fitts-law`; read that first if you haven't already.

Fitts's Law and the screen edge

The screen edge is the most undervalued real estate in modern web UI. Because the cursor cannot move past the edge, an element placed flush against an edge is effectively infinite in size along the axis perpendicular to that edge — the user can fly the cursor past the screen boundary and the cursor stops on the target without precision.

Why edges matter

The Fitts's Law equation depends on target width along the axis of motion:

T = a + b · log₂(D / W + 1)

When W approaches infinity, the log term collapses to nearly zero — the only remaining cost is the constant base time. This is why Mac's menu bar at the top edge is faster to acquire than a menu in a window: the cursor can fly upward without ever overshooting.

Three consequences:

  1. Edges are faster targets than mid-screen elements, regardless of element size.
  2. Corners are even faster — they're "infinite" along two axes. The cursor can fly up-and-left to reach a top-left button without precision.
  3. Modern web apps systematically waste this advantage by adding margins, rounded containers, or "card layouts" that pull all interactive elements away from edges.

The classic examples

  • macOS menu bar. Top edge of the entire display. Reaching File is fast; reaching the menu inside an application window is slow. (Windows menus inside windows lose this advantage; one of the design debates of the 1990s.)
  • Windows Start button. Bottom-left corner of the display. Effectively infinite in two axes.
  • iOS home indicator / app switcher gesture. Bottom edge of the screen — your thumb can swipe up from past the edge and the gesture still registers.
  • Browser back button (when in the browser chrome). Top edge of the browser window.

What this means for web design

1. Sticky headers earn their position

A position: fixed; top: 0 navigation bar puts global actions at the top edge, where the user can find them instantly without aiming. The trade-off is screen real estate — you've spent ~56px of vertical space.

html
<header style="position: sticky; top: 0; z-index: 50; background: white; border-bottom: 1px solid hsl(0 0% 90%);">
  <nav><!-- primary nav --></nav>
</header>

The same nav placed mid-page (without sticking) is slower to reach when the user has scrolled.

2. Bottom toolbars on mobile

A bottom-anchored navigation bar on mobile combines:

  • Edge advantage (cursor / thumb can fly to the bottom and stop).
  • Thumb-reach advantage (lower screen is easier for thumb).
  • Persistent visibility (always reachable, no scrolling required).

This is why mobile bottom-nav is the modern convention for primary navigation.

3. Full-bleed CTAs

A button that extends all the way to the screen edge is far easier to hit than the same button with 24px right margin. On mobile especially, "full-width" buttons are deliberately sized this way for Fitts's reasons.

html
<!-- Full-bleed CTA: edge advantage on left and right -->
<button style="width: 100%; padding: 16px; font-size: 16px;">Continue</button>

If the design feels like it "needs" margin around the button for aesthetic reasons, weigh the cost — you're spending speed for prettiness.

4. Side panels and drawers

A side panel that slides in from the right edge has the edge advantage on its right side: the user can fly the cursor right to reach the panel's controls without aiming. Same applies to bottom-sliding drawers.

5. The corner advantage

Corners are special. A button in a corner is the easiest target on the screen — the user can move toward both axes simultaneously without precision. Use this for:

  • Account menus (top-right corner is the convention).
  • Close buttons on full-screen overlays (top-right or top-left).
  • FAB (floating action button) on mobile (typically bottom-right corner).
  • "Skip to content" links (usually top-left, becomes visible on focus).

What to put at edges

Not everything belongs at the edge. The edge is finite; spend it on the high-value content:

  • Top edge: global navigation, search, account menu. (Things the user needs anywhere in the app.)
  • Bottom edge: primary action on mobile (FAB, "Save," "Continue"); on desktop, status bars or persistent CTAs in conversion flows.
  • Right edge: detail panels, properties panes, contextual sidebars.
  • Left edge: primary navigation in app shells (sidebar nav).
  • Corners: the rarest, highest-value targets — close, account, primary global action.

Where the edge advantage is lost

A few patterns that forfeit edge real estate:

"Card layout" pages with full margins

Modern web apps often render content inside a max-width: 1200px; margin: 0 auto; container with 24–48px page margins. Everything interactive is now mid-screen; no edge advantage anywhere.

This is sometimes the right trade-off (readable content width, breathing room, consistent layout across screen sizes), but it costs Fitts's Law performance. At minimum, ensure the global navigation chrome (sticky header, sidebar) does still use the edges.

Modal dialogs

A modal dialog floating in the middle of the screen has no edge advantage. The "close" X is mid-screen, not at the edge. Good modal libraries put the close button at the modal's top-right corner — close to the edge of the modal, even if not the screen.

When a dialog needs to be reachable quickly (e.g., a side sheet for editing a row), prefer a Sheet or Drawer that anchors to a screen edge over a centered Dialog.

Show full SKILL.md (499 more words)Show less
Paginated content with mid-screen prev/next

Content that "paginates" with prev/next buttons mid-screen forfeits the screen edge. Better: anchor prev/next to the screen edges so they're always findable.

Mobile drawers that don't reach the edge

A "bottom sheet" with rounded corners that floats above the bottom edge. The visual rounding is nice; the edge advantage is forfeited. On most modern designs the sheet is allowed to touch the bottom edge for the home-indicator-clearance area.

Browser chrome confounds

Web apps don't fully control the screen edges — the browser owns the very top (URL bar, tabs) and the very bottom on mobile (URL bar, system gestures). The "edge" available to a web app is the inside edge of the viewport.

This is why "fullscreen mode" exists in browsers: it gives back the screen edges to the app. Apps that benefit from edge advantages (drawing tools, video editors, presentation software) often offer a "Hide UI" or fullscreen toggle.

Worked examples

Example 1: a sticky header earning its space
html
<header style="
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(0 0% 92%);
">
  <a href="/" style="font-weight: 600;">Acme</a>
  <nav style="display: flex; gap: 16px; margin-left: 32px;">
    <a href="/products">Products</a>
    <a href="/pricing">Pricing</a>
    <a href="/docs">Docs</a>
  </nav>
  <div style="margin-left: auto; display: flex; gap: 8px;">
    <button>Sign in</button>
    <button class="primary">Get started</button>
  </div>
</header>

The header sticks to the top edge — easy to reach by flying upward. Account / "Get started" are top-right corner-adjacent.

Example 2: full-bleed mobile CTA
html
<div class="page-content" style="padding: 24px;">
  <h1>Confirm your order</h1>
  <p>...summary...</p>
</div>

<!-- Sticky CTA at the bottom edge, full width -->
<div style="
  position: sticky;
  bottom: 0;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid hsl(0 0% 92%);
">
  <button class="primary" style="width: 100%; height: 48px;">Place order</button>
</div>

The button is full-bleed (no horizontal margin), bottom-anchored. On mobile, the user's thumb flies down to the bottom and stops on the button. Two edge advantages stacked.

Example 3: a side sheet for row detail
html
<!-- Main view -->
<table>...</table>

<!-- Side sheet anchored to right edge when open -->
<aside style="
  position: fixed;
  top: 0; bottom: 0;
  right: 0;
  width: min(480px, 100vw);
  background: white;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
">
  <header style="display: flex; justify-content: space-between; padding: 16px;">
    <h2>Edit row</h2>
    <button aria-label="Close" style="width: 36px; height: 36px;">×</button>
  </header>
  <form>...</form>
</aside>

The sheet's right edge is the screen edge — the user can fly the cursor right to grab any control. The close button at the top-right is corner-adjacent.

Anti-patterns

  • The all-margin app. Every screen has 24–48px margins on all sides. No edge is reachable; every target requires precision. Common in "card-y" admin templates.
  • The middle-screen modal with edge controls. A centered modal where the close X is at the modal's edge but the modal is far from the screen edge. The user aims twice (to the modal, then to the X). Either anchor the modal to a screen edge (sheet) or accept that the close requires precision.
  • The hidden global nav. A hamburger menu that opens a panel mid-screen. Every primary navigation tap is now a precision aim. Stick the nav at an edge.
  • The "we'll add Wifi-symbol margin around everything" reflex. Margin-everywhere is the cosmetic fix that costs Fitts's. Reserve margin for places it actually serves visual hierarchy.

Heuristics

  1. Map the high-frequency interactions. What does the user do most? Are those at edges or mid-screen? If mid-screen, ask whether you can move them.
  2. The "fly to it" test. With your eyes closed, can you guess the rough location of the global navigation? If it's at an edge, yes. If it's centered with margin, no.
  3. The precision audit. Click each primary action. Was precision required, or did the cursor have a "wall" to stop against? Walls = edge advantage.
  • fitts-law (parent).
  • fitts-law-touch-targets — on touch, the safe-area inset complicates pure edge use.
  • affordance — the edge target still needs to look like a target.
  • visibility (cognition) — an edge-anchored control must be visible to be useful.

© hashgraph-online, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/HDeibler/universal-design-principles/plugins/interaction-and-control-principles/skills/fitts-law-screen-edges of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • references/edge-patterns.md

Open the folder on GitHubat commit 3e1456a

Compare with similar skills

Fitts Law Screen Edges next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fitts Law Screen Edges compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fitts Law Screen Edges this skillhashgraph-online/awesome-codex-plugins1.3k—~2.7kAutomated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k40 repos~769Automated safety check: PassApache-2.0
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Impeccablebestofjs/bestofjs3.1k26 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Web Interface Guidelines Reviewervercel-labs/openreview1.7k97 repos~308Automated safety check: PassNone

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed
  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 26 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 97 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 715 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.3k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.3k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.3k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.3k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.3k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.3k GitHub stars~618 tokensUpdated today
    Auto-check passed

Questions about Fitts Law Screen Edges

What does Fitts Law Screen Edges do?

A skill your agent uses when designing for the edges and corners of the screen — where the cursor cannot overshoot, making them effectively infinite-sized targets along one axis. Fitts Law Screen Edges is an agent skill from hashgraph-online/awesome-codex-plugins. Use this skill when designing for the edges and corners of the screen — where the cursor cannot overshoot, making them effectively infinite-sized targets along one axis.

When should I use Fitts Law Screen Edges?

Fitts Law Screen Edges fits situations like: designing for the edges and corners of the screen — where the cursor cannot overshoot; making them effectively infinite-sized targets along one axis; designing global navigation; full-bleed CTAs.

How do I install Fitts Law Screen Edges in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill fitts-law-screen-edges -a claude-code`. Or copy the skill folder (plugins/HDeibler/universal-design-principles/plugins/interaction-and-control-principles/skills/fitts-law-screen-edges in hashgraph-online/awesome-codex-plugins) into .claude/skills/fitts-law-screen-edges in your project. Claude Code loads it when a task matches its description.

How do I install Fitts Law Screen Edges in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill fitts-law-screen-edges -a codex`. Or copy the skill folder (plugins/HDeibler/universal-design-principles/plugins/interaction-and-control-principles/skills/fitts-law-screen-edges in hashgraph-online/awesome-codex-plugins) into .agents/skills/fitts-law-screen-edges in your project. Codex loads it when a task matches its description.

Can I use Fitts Law Screen Edges in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hashgraph-online/awesome-codex-plugins --skill fitts-law-screen-edges -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fitts-law-screen-edges, .gemini/skills/fitts-law-screen-edges, .github/skills/fitts-law-screen-edges and .opencode/skills/fitts-law-screen-edges in your project.

What does Fitts Law Screen Edges need to run?

SKILL.md names no scripts, command-line tools or credentials: Fitts Law Screen Edges is instructions for the agent only.

Does Fitts Law Screen Edges access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Fitts Law Screen Edges safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fitts Law Screen Edges use?

Fitts Law Screen Edges is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fitts Law Screen Edges use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Fitts Law Screen Edges?

Skills that share tags, products or a category with Fitts Law Screen Edges: Web Artifacts Builder (anthropics/skills, 180k stars), React Doctor (makeplane/plane, 61k stars), Impeccable (bestofjs/bestofjs, 3.1k stars) and Figma Design System Builder (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fitts Law Screen Edges?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,267 GitHub stars. The repository holds 716 skills in this directory. The repository was last updated on October 10, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.