dojo.md
University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...
TokenGuard — LLM API 429 Prevention Engine
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install edmonddantesj/token-guard打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Version: 1.5.0
Author: Aoineco & Co.
License: MIT
Tags: rate-limit, 429, token-management, cost-optimization, llm-guard, high-performance
Prevents LLM API 429 (Rate Limit / Resource Exhausted) errors by intercepting requests before they're sent. Designed for users on free/low-cost API plans who need maximum intelligence per dollar.
Core philosophy: "Intelligence is measured not by how much you spend, but by how little you need."
When using LLM APIs (especially Google Gemini Flash with 1M TPM limit):
| Feature | Description |
|---|---|
| Pre-flight Token Estimation | Estimates token count before API call (CJK-aware, no tiktoken dependency) |
| Real-time Quota Tracking | Tracks per-model per-minute token usage with sliding window |
| Smart Throttle | Auto-waits when quota > 80%, blocks at > 95% |
| Duplicate Detection | Blocks identical requests within 60s window (3+ = runaway) |
| Response Caching | Caches successful responses for duplicate requests |
| Auto Model Fallback | Switches to cheaper/available model when primary is exhausted |
| 429 Error Parser | Extracts exact retry delay from Google/Anthropic error responses |
| Batch vs Mistake Detection | Distinguishes intentional bulk processing from error loops |
Pre-configured quotas for:
gemini-3-flash (1M TPM)gemini-3-pro (2M TPM)claude-haiku (50K TPM)claude-sonnet (200K TPM)claude-opus (200K TPM)gpt-4o (800K TPM)deepseek (1M TPM)Custom quotas can be added for any model.
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# TokenGuard — LLM API 429 Prevention Engine <!-- 🌌 Aoineco-Verified | S-DNA: AOI-2026-0213-SDNA-TG01 --> **Version:** 1.5.0 **Author:** Aoineco & Co. **License:** MIT **Tags:** rate-limit, 429, token-management, cost-optimization, llm-guard, high-performance ## Description Prevents LLM API 429 (Rate Limit / Resource Exhausted) errors by intercepting requests before they're sent. Designed for users on free/low-cost API plans who need maximum intelligence per dollar. **Core philosophy:** *"Intelligence is measured not by how much you spend, but by how little you need."* ## Problem When using LLM APIs (especially Google Gemini Flash with 1M TPM limit): - Large documents (docx, PDFs) can consume the entire minute quota in one request - Failed requests still count toward token usage - Retry loops after 429 errors waste more tokens → death spiral - No built-in way to detect runaway/duplicate requests ## Features | Feature | Description | |---------|-------------| | **Pre-flight Token Estimation** | Estimates token count before API call (CJK-aware, no tiktoken dependency) | | **Real-time Quota Tracking** | Tracks per-model per-minute token usage with sliding window | | **Smart Throttle** | Auto-waits when quota > 80%, blocks at > 95% | | **Duplicate Detection** | Blocks identical requests within 60s window (3+ = runaway) | | **Response Caching** | Caches successful responses for duplicate requests | | **Auto Model Fallback** | Switches to cheaper/available model when primary is exhausted | | **429 Error Parser** | Extracts exact retry delay from Google/Anthropic error responses | | **Batch vs Mistake Detection** | Distinguishes intentional bulk processing from error loops | ## Supported Models Pre-configured quotas for: - `gemini-3-flash` (1M TPM) - `gemini-3-pro` (2M TPM) - `claude-haiku` (50K TPM) - `claude-sonnet` (200K TPM) - `claude-opus` (200K TPM) - `gpt-4o` (800K TPM) - `deepseek` (1M TPM) Custom quotas can be added for any model. ## Usage ```...
University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...
OpenClaw Skill for stock data analysis
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...
macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance