StopTimizer

Count tokens for GPT, Claude, and Gemini using official tokenizers.

1|Updated Sep 20, 2025
One-click install
npx skills add https://github.com/ShipFail/promptware --skill stoptimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: StopTimizer
Source: https://github.com/ShipFail/promptware/tree/main/os/skills/stoptimizer
Command: npx skills add https://github.com/ShipFail/promptware --skill stoptimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gpt-tokenizer, @anthropic-ai/tokenizer.

What problem does it solve?

StopTimizer counts tokens for GPT, Claude, and Gemini using official tokenizers as source of truth.

Core Features & Use Cases

  • Accurate tokenization across GPT family and Claude.
  • JSON and space-delimited outputs for flexible automation.
  • Use cases include STOP protocol validation, prompt design, and cost budgeting in AI workflows.

Quick Start

Use stoptimizer.ts to count tokens for your input text: deno run --allow-net <url>/stoptimizer.ts "hello world" By default, it returns space-delimited counts for all supported models. Use --json for a JSON object, or --model to query a single model.

Frequently Asked Questions about StopTimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I count tokens accurately for GPT, Claude, and Gemini models?

To count tokens accurately across GPT and Claude, StopTimizer uses official external tokenizers like gpt-tokenizer and the Anthropic tokenizer as its source of truth for precise prompt design and budgeting.

How do I get JSON output from a token counter for AI workflow automation?

You can get JSON output for AI workflow automation by running the Deno script with the --json flag, which returns a structured JSON object of token counts instead of the default space-delimited format.

Does StopTimizer support Deno for counting LLM tokens?

Yes, StopTimizer supports Deno for counting LLM tokens. You can execute the script directly using the deno run command with network permissions to fetch required external tokenizer dependencies.

What is the best way to validate STOP protocol token limits across different AI models?

The best way to validate STOP protocol token limits is by querying all supported models simultaneously, returning space-delimited counts to quickly verify if your prompt design fits within strict AI model budgets.

Can I check token counts for a single specific model instead of all supported models?

Yes, you can check token counts for a single specific model by using the --model flag, which restricts the tokenization query to only the AI model you specify instead of returning counts for all.