Agent Skillsrcarmo/piclaw › graphite-power-chart

graphite-power-chart

GitHub

用于生成Zigbee设备指标(如UPS功率、温度)的Graphite图表,并自动发布到Web时间线。支持自定义时长、重采样及数据源适配。

skel/.pi/skills/graphite-power-chart/SKILL.md rcarmo/piclaw

触发场景

需要查看Zigbee设备的近期监控图表 将时序数据可视化结果发布到Web界面

安装

npx skills add rcarmo/piclaw --skill graphite-power-chart -g -y
更多选项

非标准路径

npx skills add https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/graphite-power-chart -g -y

不安装直接使用

npx skills use rcarmo/piclaw@graphite-power-chart

指定 Agent (Claude Code)

npx skills add rcarmo/piclaw --skill graphite-power-chart -a claude-code -g -y

安装 repo 全部 skill

npx skills add rcarmo/piclaw --all -g -y

预览 repo 内 skill

npx skills add rcarmo/piclaw --list

SKILL.md

Frontmatter
{
    "name": "graphite-power-chart",
    "description": "Generate a Graphite chart (12h default) for a Zigbee device metric and post it to the web timeline.",
    "distribution": "public"
}

Graphite power chart

Use this skill to generate a 12-hour chart for a Zigbee device and post it to the web UI timeline. The script lives alongside this skill so it can be adapted to other data sources.

Usage

Power chart for the server closet UPS (default 12h)

bun /workspace/.pi/skills/graphite-power-chart/graphite-power-chart.ts \
  --device server_closet_ups_power --ipc

Temperature chart (explicit metric + unit)

bun /workspace/.pi/skills/graphite-power-chart/graphite-power-chart.ts \
  --metric zigbee.server_closet_temperature.temperature \
  --label Temperature --unit "°C" \
  --ipc

Override the window and resampling

bun /workspace/.pi/skills/graphite-power-chart/graphite-power-chart.ts \
  --device server_closet_ups_power --hours 24 --resample 10min --ipc

Notes

  • Default window is 12 hours.
  • Resampling is auto-selected based on window length using Graphite summarize(..., "avg").
  • Use --resample raw to disable resampling.
  • --ipc posts the chart to the web timeline as an inline SVG attachment (no push by default).
  • Default Graphite base URL: http://192.168.1.250:8086 (override with --base-url or GRAPHITE_BASE_URL).
  • Set a full --metric to adapt to other data sources.

版本历史

  • 5fa0ce5 当前 2026-07-25 10:25

同 Skill 集合

runtime/skills/builtin/reload/SKILL.md
runtime/skills/builtin/remote-peer/SKILL.md
runtime/skills/builtin/schedule/SKILL.md
runtime/skills/builtin/script-discovery-annotation/SKILL.md
runtime/skills/builtin/send-message/SKILL.md
runtime/skills/integrations/cdp-browser-vnc-setup/SKILL.md
runtime/skills/integrations/playwright/SKILL.md
runtime/skills/operator/graphite-power-chart/SKILL.md
runtime/skills/operator/token-chart/SKILL.md
skel/.pi/skills/adaptive-cards-authoring/SKILL.md
skel/.pi/skills/bootstrap-container/SKILL.md
skel/.pi/skills/debug/SKILL.md
skel/.pi/skills/export-timeline-pdf/SKILL.md
skel/.pi/skills/extension-design/SKILL.md
skel/.pi/skills/extension-troubleshoot/SKILL.md
skel/.pi/skills/feature-refinement-flow/SKILL.md
skel/.pi/skills/feed-digest/SKILL.md
skel/.pi/skills/graph-design/SKILL.md
skel/.pi/skills/kanban-management/SKILL.md
skel/.pi/skills/mcp-adapter/SKILL.md
skel/.pi/skills/playwright/SKILL.md
skel/.pi/skills/reload/SKILL.md
skel/.pi/skills/remote-peer/SKILL.md
skel/.pi/skills/schedule/SKILL.md
skel/.pi/skills/script-discovery-annotation/SKILL.md
skel/.pi/skills/send-message/SKILL.md
skel/.pi/skills/setup/SKILL.md
skel/.pi/skills/situate-daily-notes/SKILL.md
skel/.pi/skills/technical-docs/SKILL.md
skel/.pi/skills/timeline-cleanup/SKILL.md
skel/.pi/skills/token-chart/SKILL.md
skel/.pi/skills/twitter-summary/SKILL.md
skel/.pi/skills/web-search-summary/SKILL.md
skel/.pi/skills/web-search/SKILL.md

元信息

文件数
0
版本
d818352
Hash
19691317
收录时间
2026-07-25 10:25

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 23:01
浙ICP备14020137号-1