Agent skill
token-chart
Generate a 7-day token usage chart (all chats) and post it to the web UI timeline.
Install this agent skill to your Project
npx add-skill https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/token-chart
SKILL.md
Token chart
Generate a 7-day token usage chart (all chats) and post it to the web UI timeline as a message.
Steps
-
Run the standard chart script (default mode):
bashbun /workspace/.pi/skills/token-chart/token-chart.ts -
Run the alternative provider+model mode (stacked by provider + model):
bashbun /workspace/.pi/skills/token-chart/token-chart.ts --mode provider-model -
Post safely to the web chat (JSON-encoded, no Pushover nudge):
bashbun /workspace/.pi/skills/token-chart/token-chart.ts --ipc -
If you explicitly want a Pushover nudge as well:
bashbun /workspace/.pi/skills/token-chart/token-chart.ts --ipc --nudge
Notes
--ipcposts the chart as an inline SVG attachment via the IPC media mechanism.- Non-IPC output renders as embedded SVG via markdown image syntax.
- Numbers are formatted using K/M in labels and summaries.
- Uses the
token_usagetable in${PICLAW_STORE}/messages.dbby default; pass--source sessions(or--sessions-dir) to read session JSONL files. --mode provider-modelis an alternative mode that groups by provider + model and renders a stacked series chart.- Use this on demand (not scheduled yet).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
autoresearch-create
Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
portainer-container-compare-chart
Compare two containers using native portainer tool data collection and render SVG/CSV outputs.
proxmox-guest-compare-chart
Compare two Proxmox guests using native proxmox tool data collection and render SVG/CSV outputs.
schedule
Schedule a task to run later or on a recurring basis. Prefer the schedule_task tool; fallback to IPC only if needed.
reload
Reinstall piclaw from workspace source and force-restart the running process. Use after making code changes to piclaw.
send-message
Send a message to the chat immediately without waiting for the current task to finish. Useful for acknowledging requests or sending progress updates while working.
Didn't find tool you were looking for?