From token-cost
Token cost estimation appended to every response. UNIVERSAL skill that applies to EVERY SINGLE response regardless of topic or task. Whenever you finish responding to the user, append an estimated token count and cost line. This skill triggers on all prompts, all tasks, all conversations. No exceptions. If you just responded to the user, you should have included the token estimate line.
How this skill is triggered — by the user, by Claude, or both
Slash command
/token-cost:token-costThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Append an estimated token count and cost to every single response. This is a lightweight awareness tool, not a precise calculator.
Append an estimated token count and cost to every single response. This is a lightweight awareness tool, not a precise calculator.
At the end of every response, add this line:
Estimated tokens: ~Xk input, ~Y output. Cost: ~$Z.ZZ
You don't have access to exact token counts, so use reasonable approximations:
Input tokens: Estimate based on the conversation context visible to you. A typical user message is 50-200 tokens. System prompts and skill content add significant overhead (a loaded skill might add 1-3k tokens). Previous conversation turns accumulate. Round to the nearest thousand.
Output tokens: Count your response roughly. A short conversational reply is ~100-300 tokens. A medium response is ~500-1500. A long article or detailed analysis might be 2000-5000+. Roughly 1 token per 4 characters of English text, or about 0.75 tokens per word.
Cost: Use Claude Sonnet pricing as default unless you know the model:
The formula is: (input_tokens / 1M * input_rate) + (output_tokens / 1M * output_rate)
This is a rough estimate for awareness, not an invoice. Being within 2x of the actual cost is good enough. The point is to build intuition about what things cost, not to track pennies.
Keep the line brief. Don't explain the math. Just the one line at the bottom.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub noah-goodrich/claude-plugins --plugin token-cost