Skip to content

feat: add credit-guardian skill β€” stop burning AI credits/tokens/coins#9

Open
fuseinimetadata-commits wants to merge 1 commit into
LeoYeAI:mainfrom
fuseinimetadata-commits:main
Open

feat: add credit-guardian skill β€” stop burning AI credits/tokens/coins#9
fuseinimetadata-commits wants to merge 1 commit into
LeoYeAI:mainfrom
fuseinimetadata-commits:main

Conversation

@fuseinimetadata-commits

Copy link
Copy Markdown

What this adds

credit-guardian β€” a lightweight token budget enforcer for any AI agent workflow.

The gap: There's no dedicated skill for managing API credit burn across platforms. Developers lose credits to runaway loops, all-frontier model usage, and uncompressed context. This skill fixes all three.

What it does

  • Pre-estimates tokens before each LLM call β€” stops before budget exceeded
  • Routes by complexity β€” haiku/phi/local for simple steps, frontier models only when needed
  • Context compression β€” summarize long context with a cheap model before sending to expensive one
  • Response caching β€” 100% savings on repeated prompts
  • Hard-stop enforcement β€” HITL gate before expensive loops

Savings benchmarks

Technique Savings
Haiku for simple tasks (was opus) 70–85% per call
Context compression 60–80% input tokens
Caching 100% on hits
Combined 65–80% overall

Platform coverage

Cursor, OpenAI, Anthropic, GitHub Copilot, Grok/xAI β€” with platform-specific guidance for each.

Code examples included

  • LiteLLM BudgetManager wrapper (Python)
  • TypeScript model router (haiku β†’ sonnet β†’ opus tiers)
  • Session budget hard-stop pattern

Why this fits OpenClaw Master Skills

Currently 0 utility/meta skills in the 339-skill collection address credit management. This is the #1 pain point in every AI agent community (Cursor Reddit, OpenAI forum, Anthropic Discord). Real usage need, no existing skill, clean implementation.


By @ERC3643Assessor β€” also author of the erc3643-compliance skill (PR #8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant