check-usage-http

check-usage-http is a skill for Claude Code from leopu00/job-hunter-team. It costs 48 tokens per session (773 once invoked), scanned A, original, MIT.

A fast usage checker that asks an AI provider directly over the internet instead of starting a command-line session.

In plain words
What is it for?
It is for checking current and weekly provider usage and reset times after the connection bridge cannot read them normally.
Why use it?
It normally returns usage information quickly without using command-line tokens, while providing a fallback path when it is rate-limited or fails.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 /app/shared/skills/usage_record.py --manual \.

Good fit It is for checking current and weekly provider usage and reset times after the connection bridge cannot read them normally.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/leopu00/job-hunter-team
agentmods
npx agentmods add skills/leopu00/job-hunter-team/check-usage-http

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-usage-http

README.md
[![agentmods](https://agentmods.dev/badge/skills/leopu00/job-hunter-team/check-usage-http.svg)](https://agentmods.dev/skills/leopu00/job-hunter-team/check-usage-http)
Your own site
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/check-usage-http"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/check-usage-http.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 773 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00773
Opus 5 $0.00024 $0.00387
Sonnet 5 $0.00010 $0.00155
Haiku 4.5 $0.00005 $0.00077

Measured 4d ago against content hash db8cc06a799e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

check-usage-http scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/sentinella/_skills/check-usage-http/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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:

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:

{'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

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).

Read the full file on GitHub · 76 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 76 lines · 48 tokens per session scan A db8cc06a799e

Subscribe to this mod's changes

check-usage-http is a skill published in the GitHub repository leopu00/job-hunter-team (49 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 773 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.