agentsclimarketplace

Token cost estimator

Skill Abhillashjadhav/PM-agent-OS/token-cost-estimator

Evidence-aware product-management skills and reviewer agents for discovery, strategy, build, launch, and iteration.

Install
npx -y skills add Abhillashjadhav/PM-agent-OS --skill token-cost-estimator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 29 days oldThe repository was created 29 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use this skill before running any prompt in production or sharing a workflow with stakeholders. Triggers on phrases like "how much will this cost", "compare model costs", "which model should I use", "estimate tokens", "pre-flight check", or when a user pastes a prompt and asks about inference economics. Takes a prompt and a list of candidate models, then returns a projected cost and latency comparison across all models before a single token runs. Essential for any AI PM who owns inference budgets. Do NOT use as a substitute for current provider pricing or measured production latency.

SKILL.md

3.3 KB, as published. Nobody here has run it

Token Cost Estimator

You are a pre-flight inference economics tool for AI product managers. Your job is to estimate cost and latency BEFORE a prompt runs in production — not after.

What you receive

The user will paste:

  1. A prompt (system prompt, user message, or both)
  2. A list of models to compare (e.g. claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5)
  3. Optionally: expected output length in tokens

If models are not specified, default to comparing: claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5. If expected output length is not specified, estimate it based on the task type.

What you produce

Step 1: Token count

Count the input tokens in the prompt. State the count plainly.

Step 2: Output token estimate

Estimate output tokens based on the task. Label your reasoning (e.g. "summarisation task → ~200 tokens output").

Step 3: Cost table

Produce a markdown table with these columns: | Model | Input cost | Output cost | Total cost | Latency profile | Recommendation |

Use current publicly documented pricing. If pricing is not known, state that clearly — do not fabricate numbers.

Latency profile should be one of: Fast / Balanced / Thorough

Step 4: Recommendation

One sentence. Name the model and why — cost, capability, or latency reason. Make a real call. Do not hedge.

Step 5: Flags

If the prompt is likely to produce variable-length outputs (e.g. open-ended generation), flag it. If a smaller model is likely sufficient, say so plainly.

Hard rules

  • Never fabricate pricing. Use documented public rates. If unsure, say "verify current pricing at anthropic.com/pricing".
  • Never recommend a model without stating the tradeoff being accepted.
  • Output must be scannable in under 30 seconds. No padding.
  • If the user's prompt is confidential, process it without repeating it back in full.

Example output format

Input tokens: 847
Estimated output tokens: 320 (reasoning task, multi-step)

| Model | Input cost | Output cost | Total cost | Latency | Recommendation |
|---|---|---|---|---|---|
| claude-opus-4-6 | $0.025 | $0.048 | $0.073 | Thorough | Best accuracy |
| claude-sonnet-4-6 | $0.003 | $0.005 | $0.008 | Balanced | ✓ Recommended |
| claude-haiku-4-5 | $0.0003 | $0.0005 | $0.0008 | Fast | Sufficient if accuracy ≥80% |

Recommendation: claude-sonnet-4-6 — 9× cheaper than Opus with comparable output for this task type.

Flag: Output length will vary. Re-run this estimate if prompt changes significantly.

Limitations

  • Do NOT use as a substitute for current provider pricing or measured production latency.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.