Skip to content
Skill

credit-optimizer

by rafsilva85

AI Summary

Audited across 53 real-world scenarios. 30-75% cost savings. 0% quality degradation. Analyze the incoming task and classify it into one of these categories: Before executing, evaluate the prompt:

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "credit-optimizer" skill in my project.

Please run this command in my terminal:
# Install skill into your project
mkdir -p .claude/skills/credit-optimizer-v5 && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/credit-optimizer-v5/SKILL.md "https://raw.githubusercontent.com/rafsilva85/credit-optimizer-v5/main/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Automatically optimize AI agent credit usage by routing tasks to the most cost-efficient execution path. Use when you want to reduce AI API costs by 30-75% without quality loss, classify task complexity before execution, route simple tasks to free or low-cost models, split complex tasks into optimized sub-tasks, or detect vague prompts before wasting credits.

Credit Optimizer v5

Automatically optimize AI agent credit/token usage by routing tasks to the most cost-efficient execution path — with zero quality loss. Audited across 53 real-world scenarios. 30-75% cost savings. 0% quality degradation.

When to Use This Skill

• Before executing any AI task that consumes credits or tokens • When you want to minimize API costs without sacrificing output quality • When processing batches of tasks with varying complexity • When you need to decide between different model tiers (free/standard/premium)

Step 1: Task Classification

Analyze the incoming task and classify it into one of these categories: | Category | Examples | Typical Savings | |----------|----------|-----------------| | Simple Q&A | Definitions, facts, conversions | 90-100% (use free tier) | | Code Generation | Scripts, functions, refactoring | 40-60% | | Research | Multi-source analysis, synthesis | 20-40% | | Creative Writing | Articles, stories, marketing copy | 30-50% | | Data Analysis | CSV processing, visualization | 40-70% | | Complex Reasoning | Multi-step logic, architecture | 10-20% |

Step 2: Prompt Quality Check

Before executing, evaluate the prompt: • Clarity Score (1-10): Is the request specific enough? • Score < 5: Ask for clarification BEFORE executing (saves wasted credits) • Score 5-7: Add reasonable assumptions and proceed • Score 8+: Execute directly • Scope Detection: Can this be split into smaller, cheaper sub-tasks? • If YES: Break into atomic tasks, route each independently • If NO: Route as single task • Data Requirement Check: Does this need real-time data? • If YES: Use tools/search first, then process with cheaper model • If NO: Use internal knowledge with appropriate model tier

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 6mo ago
◐ Stale
AdoptionUnder 100 stars
53 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars53
Forks13
Issues0
Updated6mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code
Cursor