token-check SKILL.md skillA
token-check from egorfedorov/claude-context-optimizer is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add egorfedorov/claude-context-optimizer/token-check@git:20261017.dfb62c2Pins git:20261017.dfb62c2 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- egorfedorov/claude-context-optimizer
- Path
skills/token-check/SKILL.md- Versions recorded
- 2
- Latest version
- git:20261017.dfb62c2, committed Oct 17, 2026
- First version recorded
- Oct 17, 2026
- Size
- 1,981 bytes
- Repository stars
- 121
- License
- MIT
Estimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too large to send.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Token check Give a quick, honest estimate and the cheapest way to get the same result. These are estimates; say so. Exact counts come from the API's token counter. ## Estimate - English prose: about 4 characters per token, roughly 750 words per 1,000 tokens. A full page of text is 500–700 tokens. - Code, JSON, logs: about 3 characters per token. - Cyrillic, CJK and other non-Latin scripts: about 1.5–3 characters per token, so the same text costs noticeably more than in English. - Images: on the order of 1,500 tokens each at typical sizes. PDFs: the text, plus an image's worth for pages read as images. Give a range (for example "about 18–24K tokens"), and compare it with the context window: 1M tokens on current Opus, Sonnet and Haiku 5.5 models, 200K on older Haiku. ## Explain the real cost In a conversation, everything already in it is re-sent with every new message. A 20K-token document pasted early is paid for again on each of the next 30 messages, about 600K tokens in total. That, not the first send, is what uses up limits. ## Ways to cut it, cheapest first 1. Send only the part that matters: the section, the function, the failing lines of a log. …
Read the whole file at its exact version.
How to install
mdr add egorfedorov/claude-context-optimizer/token-check@sha256:b59bdcf694049719The line at the top of this page pins the label git:20261017.dfb62c2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_7iuw4627mzfbb65n)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on Oct 17, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261017.dfb62c2 latest | 2026-10-17 | dfb62c2 | 1,981 B | A | view · diff |
| git:20261017.44e77a4 | 2026-10-17 | 44e77a4 | 1,981 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (1981 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
egorfedorov/claude-context-optimizer · 121 stars · license MIT · pushed 2026-10-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7iuw4627mzfbb65n GET https://markdownregistry.com/api/v1/resolve?ref=egorfedorov/claude-context-optimizer/token-check GET https://markdownregistry.com/api/v1/blob/b59bdcf69404971968ce6fff8e8cf5707dec4c52f66bd05df707bb748e0de548
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from egorfedorov/claude-context-optimizer
Every file in egorfedorov/claude-context-optimizer