leopu00/job-hunter-team/check-usage-http

Claude Code and agent skill by leopu00/job-hunter-team

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Check provider usage via HTTP fast path (~2s, zero CLI tokens). PRIMARY action when the bridge fails to read usage. Falls back to `check-usage-tui` if HTTP returns RATE_LIMIT or fails.

Install

npx vskill@latest install leopu00/job-hunter-team/check-usage-http

SKILL.md

The same SKILL.md was published earlier as leopu00/job-hunter-team/check-usage-http.

Skill — Check usage via HTTP (rapido, ~2s, ZERO token)

QUANDO USARLA

Primario quando ricevi [BRIDGE FAILURE] (= il bridge non riesce a leggere usage). HTTP è veloce, gratis (no spawn TUI), e quasi sempre funziona — solo Anthropic rate-limita aggressivamente con tick rapidi.

Ordine di fallback: HTTP → TUI → FATAL.

Step 1 — Leggi provider attivo

bash
python3 -c "import json; print(json.load(open('/jht_home/jht.config.json'))['active_provider'])"

Output: claude / kimi / codex.

Step 2 — Chiama HTTP via libreria del bridge

Usa le funzioni fetch_*_api esposte da sentinel-bridge.py come libreria:

bash
python3 -c "
import importlib.util
spec = importlib.util.spec_from_file_location('br', '/app/.launcher/sentinel-bridge.py')
br = importlib.util.module_from_spec(spec); spec.loader.exec_module(br)
print(br.fetch_claude_api()) # claude → /api/oauth/usage
# OPPURE: br.fetch_kimi_api() # kimi → /coding/v1/usages
# OPPURE: br.fetch_codex_rollout() # codex → file rollout JSONL locale
"

Output Python dict:

python
{'usage': 42, 'reset_at': '20:10', 'weekly_usage': 25}

Step 3 — Gestisci edge cases

Anthropic 429 (rate-limit)

fetch_claude_api() ritorna la stringa "RATE_LIMIT" invece del dict. Cooldown interno 5 min: prima di quello tornerà ancora "RATE_LIMIT". Significa: HTTP non disponibile per 5 min → cadi su L2 (TUI worker).

None / empty

API down, credenziali scadute, file rollout codex assente. Cadi su L2.

Step 4 — Scrivi sample nel JSONL

bash
python3 /app/shared/skills/usage_record.py --manual \
--usage <X> \
--reset-at <HH:MM> \
--weekly <W> \
--provider <claude|kimi|openai> \
--source sentinella-api

Lo script chiama internamente compute_metrics → calcola velocità, projection, status, throttle. Stampa il sample completo come JSON.

Step 5 — Procedi con la decisione

Hai ora un sample fresco con usage, proj, status. Aggiorna la tua memoria interna (vedi skill memory-state) e decidi se mandare ordine al Capitano (vedi skill order-formats).

Note

  • No spawn tmux, no token CLI consumati. ~2s totali.
  • Per Kimi e Codex: l'API è stabile, quasi sempre il check va liscio.
  • Per Claude: con tick troppo rapidi (< 2 min) Anthropic rate-limita. Se vedi RATE_LIMIT → cadi subito su TUI fallback (skill check-usage-tui).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/leopu00/job-hunter-team/check-usage-http/badge)](https://verified-skill.com/skills/leopu00/job-hunter-team/check-usage-http)

Something wrong with this skill or its page? Tell us.