token-counter

Installation
SKILL.md

Token Counter

Display token usage and limits

What it solves

A Token Counter pattern helps teams create a reliable way to make prompt size, response budget, and cost or truncation risk visible before users hit a hard limit. It is most useful when teams need prompt authoring with hard limits. Compared with adjacent patterns, this pattern should reduce friction without hiding the state, rules, or recovery paths people need to keep moving.

When to use

  • Prompt authoring with hard limits
  • Cost-sensitive AI tools
  • Debugging truncation and context overflow

When to avoid

Installs
3
GitHub Stars
212
First Seen
Mar 23, 2026
token-counter — thedaviddias/ux-patterns-for-developers