一键导入
gpt-weekly-limit-estimation
Estimate OpenAI weekly usage limits from ground-truth token cost + reproducible pricing snapshots (billing week resets 14:47 local).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Estimate OpenAI weekly usage limits from ground-truth token cost + reproducible pricing snapshots (billing week resets 14:47 local).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Shadow and version-control another agent's conversation. Use when asked to track an agent, create agent biography, shadow an agent, document agent work, or make agent output more accessible.
Configure Agent HQ Electron crash mitigations + diagnostics via repo .env (added after 2026-01-22 renderer crash).
Start the full agent stack (tmux sessions for Claude Code agents, SQLite ingestors, announcers, watchdog, and mitmproxy) after a fresh Mac reboot. This skill should be used when the user asks to "start everything", "bring up the agent stack", "start after reboot", "launch tmux sessions", or needs to initialize the development environment with all monitoring and agent processes.
Bootstrap the complete agentic ecosystem (Claude Code, Codex, vscode-shims, agent-box) on a remote machine. Use when user asks to install ecosystem, setup remote agent, bootstrap agent box, deploy to remote, or install claude/codex on another machine.
This skill should be used when containerizing a multi-service agentic ecosystem (UI + Agent Management Server, optionally launchers/ingestors) with Docker Compose while preserving localhost-only security, correct in-container networking, centralized log volume mounts, and working Codex/Claude CLIs.
Safe incremental deployment and updates for the agentic ecosystem after initial setup. Focuses on config preservation, safe service restarts, verification, and optional testing. Use after agentic-ecosystem-remote-deployment has completed at least once.
| name | gpt-weekly-limit-estimation |
| description | Estimate OpenAI weekly usage limits from ground-truth token cost + reproducible pricing snapshots (billing week resets 14:47 local). |
[Edited by Codex: 019bebf3-c7d3-75c1-b096-339970e5cbc0 2026-01-23]
Estimate weekly limit as:
weekly_limit_usd = cost_so_far_usd / percent_used
This skill intentionally does not re-implement token counting. It depends on two base skills:
compute-token-cost (ground truth token+cost computation)pull-pricing (live pricing snapshots + append-only historical JSONL)# 0) Pull live pricing snapshot (writes snapshot JSON + appends pulled_data.jsonl)
python ~/.claude/skills/pull-pricing/run_pull_pricing_and_log.py
# 1) Extract one billing-week window (OpenAI resets weekly at 14:47 local time)
python /Users/sotola/swe/token-computation/extract_codex_week.py \
--src ~/centralized-logs/codex/sse_lines.jsonl \
--dst /tmp/billing_week.jsonl \
--start "2026-01-15 14:47" \
--end "2026-01-22 14:47" \
--assume-sorted-by-t
# 2) Compute cost using a specific pricing snapshot (pick the newest snapshot file)
cd /Users/sotola/swe/token-computation && \
python compute_token_costs.py \
--codex /tmp/billing_week.jsonl \
--claude ~/centralized-logs/claude/sse_lines.jsonl \
--pricing-snapshot ~/centralized-logs/pull-pricing/snapshots/<pick-newest>.json
OpenAI’s weekly reset is Thursday 14:47 local time (confirm on the dashboard if unsure).
[start, end) where start = end - 7 days.CodexMonitor-style “delta of total_token_usage” can overcount when totals reset or multiple runs mix.
Ground truth is:
turn.token_count.info.last_token_usage and dedupe repeated snapshots per sid.If OpenAI dashboard shows you’ve used X% of your weekly limit:
cost_so_far = 147.20 # from compute_token_costs.py output
percent_used = 0.28 # from dashboard
weekly_limit = cost_so_far / percent_used
print(weekly_limit) # 525.714...
/Users/sotola/swe/token-computation/compute_token_costs.py/Users/sotola/swe/token-computation/extract_codex_week.py/Users/sotola/swe/token-computation/pull_pricing.py~/centralized-logs/codex/sse_lines.jsonl~/centralized-logs/claude/sse_lines.jsonl~/centralized-logs/pull-pricing/pulled_data.jsonl~/centralized-logs/pull-pricing/snapshots/