# Interaction Latency

> Measure time from user tap to action completion. Use when tracking button response times, form submissions, add-to-cart, or any tap-triggered operation.

- Skill: `majiayu000/interaction-latency` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/interaction-latency`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/interaction-latency/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/interaction-latency

---


# Interaction Latency

Time from user tap to action successfully completed.

## When to Use

- "Add to cart" button tapped → cart updated
- "Submit" button tapped → form processed
- "Like" button tapped → state changed
- Any tap that triggers async work

## Measurement Pattern

```
TAP → START_SPAN → [async work] → END_SPAN
```

1. Capture tap timestamp
2. Start span with operation name
3. End span when action confirms success
4. Include success/failure outcome

## Key Thresholds

| Rating | Duration |
|--------|----------|
| Good | <300ms |
| Acceptable | <1s |
| Poor | >1s |

## Implementation

See `references/ui-performance.md` (Entry Point Latency section) for platform-specific code.

## Common Mistakes

- Ending span on API call start (not completion)
- Not tracking failure cases
- Missing the tap timestamp (starting late)

## Related Skills

- See `skills/navigation-latency` for screen-to-screen transitions (vs single-tap actions)
- Combine with `skills/user-journey-tracking` for friction detection on key interactions

