360 Secure SkillHub
360 安全技能中心

Agent Dashboard Sync

核心功能:作为无LLM管道,同步OpenClaw集群运行时、心跳、定时任务等状态至Cloudflare KV,提供Worker读写API;负责收集器、KV数据合约、定时任务部署及看板数据源对接。典型场景:搭建或运营Agent Fleet Dashboard数据平面,替代Git存储高频状态。输入为集群节点状态数据,输出为符合KV合约的结构化看板数据,需遵循严格安全规范。

reed1898
reed1898
热度 62.09
最近更新 2026-05-11 17:29:21
分类:开发依赖:代码执行 / 第三方 API / 读写文件应用场景:DevOps / API 集成 / 自动化脚本 / 日程安排 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agent-dashboard-sync
Metadata
name
agent-dashboard-sync
description
Sync OpenClaw fleet runtime/heartbeat/cron status to Cloudflare KV and serve dashboard-ready data via Worker API. Use when setting up or operating the Agent Fleet Dashboard data plane (collector, KV schema, Worker ingest/read API, crontab scheduling, and migration away from Git-backed high-frequency state).

Agent Dashboard Sync

Operate dashboard data sync as a no-LLM pipeline.

Hard Rules

  1. Keep high-frequency state out of Git commits.
  2. Use Cloudflare Worker + KV for runtime sync.
  3. Run collector from local cron (*/2 * * * *) and do not call LLM in collector path.
  4. Never commit or print production tokens/secrets in files, logs, or screenshots.
  5. Do not publish absolute paths in skill docs; use relative paths or placeholders (<PROJECTS_ROOT>, <SHARED_ROOT>).

Scope Boundary

  • This skill owns: collector, Worker ingest/read API, KV schema, cron deployment, dashboard data source wiring.
  • This skill does not own: cross-agent protocol, constitution governance, Discord routing rules.

KV Data Contract (v1)

  • fleet:registry
  • fleet:heartbeat:<agent_id>
  • fleet:cron:<agent_id>
  • fleet:runtime:<agent_id>
  • fleet:events:recent
  • fleet:updated_at

See references/schema.md for payload shape.

Minimal Rollout

  1. Deploy Worker + KV namespace.
  2. Configure dashboard env to cloudflare mode.
  3. Install collector cron on each node with unique AGENT_ID.
  4. Verify /health, then /fleet, then dashboard UI.

Security Checklist

  • Store INGEST_TOKEN and READ_TOKEN as worker secrets.
  • Keep dashboard read token server-side (DASHBOARD_READ_TOKEN), never client-exposed.
  • Keep NEXT_PUBLIC_* vars non-sensitive only.
  • Redact tokens before sharing commands/logs.

Runbook Links

  • Worker setup and command sequence: references/worker-setup.md
  • Collector and crontab setup: references/collector-cron.md
  • Env variable matrix: references/env-matrix.md
  • Data schema reference: references/schema.md
  • Security policy for all agents: references/security-rules.md