# Token Counter

> Counts tokens in documentation to ensure compliance with AI context window limits. Reports token counts per page, identifies oversized content. Use when measuring documentation token counts for AEO compliance.

- Skill: `spirizeon/token-counter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add spirizeon/token-counter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/spirizeon/token-counter/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: Spirizeon (https://skillmd.com/u/spirizeon)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/spirizeon/token-counter

---


# Token Counter Skill

Counts tokens in documentation.

## When to Use This Skill

- Measure token counts
- Verify pages within limits
- Identify oversized content

## Token Limits

| Page Type | Recommended | Maximum |
|-----------|-------------|---------|
| Quick Start | < 15,000 | 20,000 |
| API Reference | < 25,000 | 30,000 |
| Conceptual Guide | < 20,000 | 25,000 |
| llms.txt | < 5,000 | 10,000 |

## Usage

```bash
# Count tokens in URL
python3 scripts/token_counter.py https://example.com/docs/quickstart

# Check against limits
python3 scripts/token_counter.py https://example.com/docs/api --check-limits

# JSON output
python3 scripts/token_counter.py https://example.com/docs --json
```
