limites-de-uso

Reads AI account quota windows from a local SQLite database and plans work around resets.

1|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/psiagoleal/ai-coding-agent-profiles --skill limites-de-uso-psiagoleal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: limites-de-uso
Source: https://github.com/psiagoleal/ai-coding-agent-profiles/tree/main/skills/limites-de-uso
Command: npx skills add https://github.com/psiagoleal/ai-coding-agent-profiles --skill limites-de-uso-psiagoleal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Subscription AI plans measure consumption in rolling windows (typically 5-hour and 7-day), but that percentage lives only in the CLI status bar and never reaches the model's context, so the agent plans as if quota were infinite and risks hitting the limit mid-edit with an inconsistent tree and no handoff written. ## Core Features & Use Cases - Quota visibility: A provider-agnostic Python script reads the persisted statusline data (SQLite, read-only) and reports 5h/7d window percentages, reset times, data age, and burn-rate projections in text, one-line, or JSON output. - Tiered planning posture: Defines concrete behavior per usage band (under 60%, 60-80%, 80-90%, over 90%), including when to warn the user, stop opening parallel subagents, and reserve budget for the handoff. - Optional prompt hook: A --gate mode stays silent below a configurable threshold and emits a single warning line when quota crosses it, so the agent is alerted without consuming context in calm sessions. - Use Case: Before starting a long refactor that will spawn parallel subagents, the agent checks the quota, sees the 5h window at 85% with exhaustion projected before reset, writes the handoff while budget remains, and proposes resuming after the reset. ## Quick Start Ask the agent to check how much account quota remains in the 5-hour and 7-day windows and whether the planned task fits before the reset.

Frequently Asked Questions about limites-de-uso

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my Claude Code usage quota from the command line?

Run the usage-limits.py script, which reads the statusline data persisted in ~/.claude/usage/usage.db and prints the 5-hour and 7-day window percentages with reset times. Use --oneline for a compact line or --json for programmatic consumption.

How can an AI agent plan work around quota limits?

The skill defines posture bands: below 60% work normally, 60-80% prefer committable increments, 80-90% warn the user once and negotiate scope, above 90% stop new work and write the handoff. The key rule is reserving budget for the handoff before the quota runs out.

Does the usage limits script work with agents other than Claude Code?

Yes, the script is agent-agnostic through a PROVIDERS list where each provider returns a normalized dictionary or None. To support another tool, add a provider_<name>(now) function and register it; nothing else in the script, skill, or hook changes.

Why does the quota script report stale or expired data?

Status stale means no session updated the status bar within 15 minutes, so the percentage may have drifted. Status expired means the window already reset and the stored percentage belongs to an old window, so the number must not be used.

How do I get automatic quota warnings without checking manually?

Register the script's --gate mode as a UserPromptSubmit hook with a threshold like --warn-at 80. It prints nothing below the threshold, so no context is consumed, and emits a single warning line only when quota crosses the limit.