用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rcarmo/piclaw --skill token-chart命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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/.pi/skills/token-chart/token-chart.ts
Provider + model chart:
bun /workspace/.pi/skills/token-chart/token-chart.ts --mode provider-model
Estimated provider + model cost chart:
bun /workspace/.pi/skills/token-chart/token-chart.ts --mode provider-model-cost
Post to the web chat via IPC:
bun /workspace/.pi/skills/token-chart/token-chart.ts --ipc
Post via IPC and allow a Pushover nudge:
bun /workspace/.pi/skills/token-chart/token-chart.ts --ipc --nudge
token_usage rows in ${PICLAW_STORE}/messages.db--source sessions: read usage from session files under instead of SQLite${PICLAW_DATA}/sessions--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.