agent-usage-optimizer-step-1-read-and-validate-quota-cache
Sub-skill of agent-usage-optimizer: Step 1 — Read and Validate Quota Cache.
Best use case
agent-usage-optimizer-step-1-read-and-validate-quota-cache is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of agent-usage-optimizer: Step 1 — Read and Validate Quota Cache.
Teams using agent-usage-optimizer-step-1-read-and-validate-quota-cache should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/step-1-read-and-validate-quota-cache/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agent-usage-optimizer-step-1-read-and-validate-quota-cache Compares
| Feature / Agent | agent-usage-optimizer-step-1-read-and-validate-quota-cache | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of agent-usage-optimizer: Step 1 — Read and Validate Quota Cache.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Step 1 — Read and Validate Quota Cache
## Step 1 — Read and Validate Quota Cache
```bash
QUOTA_FILE="$HOME/.cache/agent-quota.json"
# Check cache exists and is fresh (< 1 hour old)
if [[ ! -f "$QUOTA_FILE" ]]; then
echo "WARN: quota cache not found at $QUOTA_FILE"
echo "Run: bash scripts/monitoring/query-quota.sh"
echo "Falling back to default routing rules."
CACHE_FRESH=false
else
CACHE_AGE_SECS=$(( $(date +%s) - $(date -r "$QUOTA_FILE" +%s) ))
if [[ $CACHE_AGE_SECS -gt 3600 ]]; then
echo "WARN: quota cache is $(( CACHE_AGE_SECS / 60 ))m old — consider refreshing"
CACHE_FRESH=false
else
CACHE_FRESH=true
fi
fi
# Parse quota values (requires jq)
CLAUDE_PCT=$(jq -r '.agents[] | select(.provider=="Codex") | .pct_remaining' "$QUOTA_FILE" 2>/dev/null || echo 100)
CODEX_PCT=$(jq -r '.agents[] | select(.provider=="codex") | .pct_remaining' "$QUOTA_FILE" 2>/dev/null || echo 100)
GEMINI_PCT=$(jq -r '.agents[] | select(.provider=="gemini") | .pct_remaining' "$QUOTA_FILE" 2>/dev/null || echo 100)
CACHE_TS=$(jq -r '.timestamp' "$QUOTA_FILE" 2>/dev/null || echo "unknown")
```Related Skills
hermes-kanban-readability
Reapply the Hermes Kanban dashboard readability customizations (clickable bare URLs in card descriptions + readable card-text font, a visible horizontal scrollbar so all columns are reachable) as a user-override plugin that survives hermes-agent updates. Use when the Kanban board reverts to the Mondwest display font / plain-text Source URLs after a hermes update, or when bootstrapping a machine whose ~/.hermes was wiped.
worldenergydata-source-readiness
Route agents to the canonical worldenergydata source-readiness skill and summary script. Use when asked for worldenergydata data completeness, data locations, latest known data dates, scheduler freshness, source-readiness status, or acceptance-criteria inputs across the repo ecosystem.
orcawave-orcaflex-readiness-audit
Audit the real readiness of digitalmodel OrcaWave/OrcaFlex spec-driven workflows by reconciling workspace-hub issues, source/tests, semantic-equivalence boundaries, and wiki synthesis gaps.
read-only-pre-implementation-audit
Systematic cross-check workflow to validate assumptions before TDD coding begins
gtm-site-readiness-audit-local-vs-production
Audit GTM feature work by separating local artifact readiness from production deployment state, then fix common blockers in aceengineer-website and GTM collateral.
Codex-quota-failover-to-codex-for-overnight-plan-lanes
Recover an overnight multi-worktree planning wave when some Codex lanes hit quota by relaunching only the failed lanes with Codex in the same isolated worktrees and prompt files.
multi-machine-ai-readiness-and-issue-triage
Assess a multi-machine, multi-repo AI-enabled workspace for readiness, provider allocation, and issue prioritization.
pdf-text-extractor-readability-classification
Sub-skill of pdf-text-extractor: Readability Classification.
pdf-large-reader
Memory-efficient PDF processing library for large files exceeding 100MB and 1000 pages
gtm-cross-review-readiness
Adversarial review workflow for GTM feature work before user approval — validate shipped artifacts, live URLs, public-facing collateral, and issue/body status drift.
seo-optimizer
SEO optimization toolkit with scoring, keyword research, and technical SEO auditing. Use for improving search rankings, content optimization, and technical SEO fixes. Based on alirezarezvani/Codex-skills.
provider-session-quota-operations
Class-level provider/session operations for Codex, Codex, Gemini, Hermes, quotas, audit exporters, readiness dispatch, and utilization scorecards.