بنقرة واحدة
token-chart
Generate a 7-day token usage chart (all chats) and post it to the web UI timeline.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate a 7-day token usage chart (all chats) and post it to the web UI timeline.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
ARCHIVED — project work items are tracked in GitHub Issues and GitHub Projects. Use the github-issues skill when installed, or use gh directly.
Diagnose and fix piclaw extension issues (imports, DB init errors, watcher perms), update skel, and restart safely.
Search the web via SearXNG (or DuckDuckGo fallback) and optionally fetch result pages as raw Markdown content.
Search via SearXNG (or DuckDuckGo fallback), fetch top results, and return sentence-level summaries plus optional converted page content.
Fetch a user's recent tweets (tweets, replies, retweets) using Playwright + Nitter fallbacks and produce compact JSON/Markdown summaries.
Write and review concise technical documentation using a plain-English voice guide and anti-trope filter. Use for READMEs, design notes, runbooks, API documentation, release notes, and pull-request text.
| name | token-chart |
| description | Generate a 7-day token usage chart (all chats) and post it to the web UI timeline. |
| distribution | public |
Generate token-usage charts from the database or from session files.
default — daily stacked token-usage bars across the last N daysprovider-model — stacked usage grouped by provider + model for attribution by model familyprovider-model-cost — estimated cost grouped by provider + model using the pricing reference bundled with the scriptDefault chart:
bun /workspace/piclaw/runtime/skills/operator/token-chart/token-chart.ts
Provider + model chart:
bun /workspace/piclaw/runtime/skills/operator/token-chart/token-chart.ts --mode provider-model
Estimated provider + model cost chart:
bun /workspace/piclaw/runtime/skills/operator/token-chart/token-chart.ts --mode provider-model-cost
Post to the web chat via IPC:
bun /workspace/piclaw/runtime/skills/operator/token-chart/token-chart.ts --ipc
Post via IPC and allow a Pushover nudge:
bun /workspace/piclaw/runtime/skills/operator/token-chart/token-chart.ts --ipc --nudge
token_usage rows in ${PICLAW_STORE}/messages.db--source sessions: read usage from session files under ${PICLAW_DATA}/sessions instead of SQLite--sessions-dir <dir>: override the session-file location explicitlyUse --source sessions when DB-backed token usage is unavailable or when you want to inspect raw session-file history directly.
--ipc writes an IPC message JSON file and, if needed, an SVG media file so piclaw posts the chart to the web timeline.--ipc, the script writes markdown to stdout with an embedded SVG data URL plus summary text.--output-svg <path> writes the SVG to a file in either mode.K / M labels.provider-model-pricing-reference.ts and the human-readable note provider-model-pricing-reference.md.