Skip to content
Agentmart
Submit a tool

wcag-audit-operable-target-size

Validate touch target sizes meet 44x44px minimum requirement

Skill by Jkense

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jkense-wcag-audit-operable-target-size

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Validate touch target sizes meet 44x44px minimum requirement

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/wcag-audit-operable-target-size

What's inside

Skill name
wcag-audit-operable-target-size
Description
Validate touch target sizes meet 44x44px minimum requirement
License
MIT
Instructions
86 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • check.js · scripts/

SKILL.md (first lines)

## When to Use
Use this tool when designing buttons, links, form controls, or any interactive elements to ensure they meet minimum touch target size requirements for accessibility.

## Usage

### Command Line
```bash
node scripts/check.js --width 48 --height 48
node scripts/check.js --width 32 --height 40 --spacing 8
node scripts/check.js --element "button" --dimensions "44x44"
```

### JSON Input
```bash
node scripts/check.js --json '{"width": 48, "height": 48, "spacing": 8}'
```

### Parameters
- `--width`: Element width in pixels
- `--height`: Element height in pixels
- `--spacing`: Minimum spacing between adjacent targets (optional)
- `--element`: Element type description (optional)
- `--dimensions`: Dimensions as "WxH" format (alternative to width/height)
- `--json`: JSON input with dimensions and spacing properties

### Output
Returns JSON with compliance status and recommendations:

```json
{
  "dimensions": {
    "width": 48,
    "height": 48
  },
  "minimumRequired": {
    "width": 44,
    "height": 44
  },
  "compliance": {
    "size": true,
    "spacing": true
  },
  "recommendations": []
}
```

## Examples

### Check a button size
```bash
$ node scripts/check.js --width 48 --height 48 --element "primary button"
✅ Size: PASS (48x48px meets 44x44px minimum)
✅ Spacing: PASS (8px spacing provided)
No issues found - this target meets accessibility requirements
```

### Check a small link
```bash
$ node scripts/check.js --width 24 --height 16 --element "footer link"
❌ Size: FAIL (24x16px is below 44x44px minimum)
❌ Spacing: FAIL (insufficient spacing between targets)
Recommendations:
- Increase width to at least 44px (currently 24px)
- Increase height to at least 44px (currently 16px)
- Ensure at least 8px spacing between adjacent interactive elements
```

## WCAG Standards

- **Minimum Size**: 44px by 44px (approximately 9mm) for touch targets
- **Spacing**: Adequate spacing between adjacent targets to prevent accidental activation
- **Exceptions**: Smaller targets allowed if identical function available with larger target within same page
- **Enhanced**: 44px by 44px strongly recommended, smaller targets only in exceptional cases

## Best Practices

1. **Use 44x44px minimum**: Design all touch targets at least this size
2. **Consider thumb size**: Account for finger/thumb size in mobile designs
3. **Provide spacing**: Ensure at least 8px between interactive elements
4. **Test on device**: Verify usability on actual touch devices
5. **Consider context**: Smaller targets may be acceptable in non-critical areas

## Learn More

For more information about [Agent Skills](https://agentskills.io/what-are-skills) and how they extend AI capabilities.

From Jkense/agent-skills-wcag, MIT.

More from Jkense/agent-skills-wcag

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Jan 19, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Jkense

Cite this page

wcag-audit-operable-target-size skill. Agent Mart. https://agentmart.dev/skills/jkense-wcag-audit-operable-target-size (last updated 2026-10-24)