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.

Install it, pinned
mdr add egorfedorov/claude-context-optimizer/token-check@git:20261017.dfb62c2

Pins 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

The exact contents, by fingerprint
mdr add egorfedorov/claude-context-optimizer/token-check@sha256:b59bdcf694049719

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7iuw4627mzfbb65n.svg)](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.

versioncommittedcommitsizeaudit
git:20261017.dfb62c2 latest2026-10-17 dfb62c2 1,981 BA view · diff
git:20261017.44e77a42026-10-17 44e77a4 1,981 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

cco SKILL.md skill
egorfedorov/claude-context-optimizer · skills/cco/SKILL.md · In Claude Code: what this session costs and where the tokens go, plus the tools to cut it — /cco for the board, /cco…
git:20261017.dfb62c2 · audit A · 121 stars
doc-digest SKILL.md skill
egorfedorov/claude-context-optimizer · skills/doc-digest/SKILL.md · Turn a long document, PDF, transcript, spreadsheet or log into a compact working digest the conversation can continue…
git:20261017.dfb62c2 · audit A · 121 stars
fresh-start SKILL.md skill
egorfedorov/claude-context-optimizer · skills/fresh-start/SKILL.md · Continue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use…
git:20261017.dfb62c2 · audit A · 121 stars
project-context SKILL.md skill
egorfedorov/claude-context-optimizer · skills/project-context/SKILL.md · Turn background the user keeps re-explaining or re-pasting into reusable instructions, so new chats start with it for…
git:20261017.dfb62c2 · audit A · 121 stars
sharpen-prompt SKILL.md skill
egorfedorov/claude-context-optimizer · skills/sharpen-prompt/SKILL.md · Rewrite a vague request into a precise prompt — goal, context, scope, constraints, what done looks like, output format…
git:20261017.44e77a4 · audit A · 121 stars

Every file in egorfedorov/claude-context-optimizer

Other files named token-check

token-check SKILL.md skill
devcodex-labs/devcodex · content/skills/token-check/SKILL.md · 授权占位规范 — 当前所有功能全量开放,无 tier 限制。Tier 门控为预留功能。
git:20260730.6ee304a · audit A · 433 stars

Browse by kind, by grade A, or by owner.