360 Secure SkillHub
360 安全技能中心

Report Builder

该 Skill 用 Node 脚本把夜间候选清单(含 date、summary、ideas 等字段的 JSON)确定性地构建成报告载荷文件,再通过 Telegram 发送 09:00 早报,并为入选创意附带 approve/reject/later 回调按钮;构建阶段即使缺少环境变量或查询出错也要求留下 JSON 载荷文件。

omermesebuken1
omermesebuken1
热度 45.77
最近更新 2026-05-18 12:38:47
分类:数据依赖:代码执行 / 读写文件 / 第三方 API应用场景:报告撰写 / 工作流 / 任务管理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add report-builder
Metadata
name
report-builder
description
Use when the main operator needs to turn the nightly shortlist into a Telegram morning report with inline approve/reject/later buttons.
metadata
{"openclaw":{"emoji":"📨","requires":{"bins":["node","openclaw"]}}}

report-builder

Use {baseDir}/scripts/send_report.mjs to send the 09:00 Telegram report. Use {baseDir}/scripts/build_report.mjs to deterministically build the payload file before send time.

Input shape

Pass a JSON file with:

  • date
  • summary
  • reportUrl (optional)
  • ideas: array of { id, title, score, reason, notionUrl }

See {baseDir}/references/report-schema.md.

Usage

node {baseDir}/scripts/build_report.mjs workspace/reports/latest-nightly-report.json
node {baseDir}/scripts/send_report.mjs report.json
node {baseDir}/scripts/send_report.mjs report.json 1565027149

Rules

  • Keep the report short.
  • Build phase must leave behind a JSON payload file, even when blocked by missing env or a Notion query error.
  • Include buttons only for the shortlisted ideas.
  • Button callbacks must be:
    • approve:<ideaId>
    • reject:<ideaId>
    • later:<ideaId>