reaatech/agents-md-kit/cost-optimization

Claude Code and agent skill by reaatech/agents-md-kit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Routes requests to minimize inference costs while meeting quality requirements

Install

npx vskill@latest install reaatech/agents-md-kit/cost-optimization

SKILL.md

The same SKILL.md was published earlier as reaatech/agents-md-kit/cost-optimization.

Cost Optimization Skill

Capability

Optimizes LLM routing decisions to minimize inference costs while maintaining acceptable quality thresholds.

MCP Tools

ToolInput SchemaOutputRate Limit
estimate_costz.object({ prompt_tokens: z.number(), model: z.string() }){ cost_usd: number }100 RPM
find_cheapest_modelz.object({ min_quality: z.number(), max_latency_ms: z.number().optional() }){ model: string, cost_usd: number }50 RPM
get_pricingz.object({ provider: z.string().optional() }){ pricing: array }60 RPM
Tool: estimate_cost

Estimates the cost for a given prompt and model.

Input Schema:

typescript
z.object({
prompt_tokens: z.number().describe('Number of input tokens'),
model: z.string().describe('Model identifier'),
})

Output:

typescript
{
cost_usd: number;
breakdown: {
input_cost: number;
output_estimate: number;
};
}

Usage Examples

Estimate Cost

Request:

json
{
"name": "estimate_cost",
"arguments": {
"prompt_tokens": 1000,
"model": "gpt-4-turbo"
}
}

Response:

json
{
"cost_usd": 0.013,
"breakdown": {
"input_cost": 0.01,
"output_estimate": 0.003
}
}

Error Handling

Error TypeCauseRecovery
MODEL_NOT_FOUNDModel not in pricing databaseReturn error with available models
INVALID_TOKENSNegative or zero tokensReturn zero cost

Security Considerations

  • Pricing data is cached and refreshed periodically
  • No sensitive prompt data is logged

Testing

bash
npm test -- tests/skills/cost-optimization.test.ts

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
Repository forks
1
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Aug 2026, 3 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/reaatech/agents-md-kit/cost-optimization/badge)](https://verified-skill.com/skills/reaatech/agents-md-kit/cost-optimization)

Something wrong with this skill or its page? Tell us.