一键导入
report
HTML 报告发布工具。支持查询模板路径(resolve-template-path)与发布报告(publish)两个函数,基于智能体自带模板生成 HTML 报告并推送给订阅者。当需要生成并分发可视化报告(日报、周报、分析报告等 HTML 形式)时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
HTML 报告发布工具。支持查询模板路径(resolve-template-path)与发布报告(publish)两个函数,基于智能体自带模板生成 HTML 报告并推送给订阅者。当需要生成并分发可视化报告(日报、周报、分析报告等 HTML 形式)时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when running the virtual overnight-holding workflow for buy, sell-review, status, stop/resume, and audit report generation.
Multi-style WeChat article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting → auto-images → cover. Activated when users mention "write article", "write WeChat post", "create", or "draft".
WeChat Official Account topic planning and content calendar management. Based on WeChat article search and trending analysis, generates differentiated topic recommendations and outputs structured content calendars. Activated when users mention "topic", "planning", "content calendar", "trending", or "what to write next week".
Fetch today's trending topics from tophub.today across multiple platforms. Triggered when users ask "what's trending today", "hot topics", or "Weibo trending".
Generate images for WeChat articles using EasyClaw Seedream 5.0 Lite. This skill provides the image-generation primitive used after the agent decides whether inline images are needed. Called by article-writer after article completion. Supports multiple sizes and styles for different use cases.
Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, infographics, and optional bottom citations for external links. Use when user asks for "markdown to html", "convert md to html", "md转html", "微信外链转底部引用", or needs styled HTML output from markdown.
| name | report |
| description | HTML 报告发布工具。支持查询模板路径(resolve-template-path)与发布报告(publish)两个函数,基于智能体自带模板生成 HTML 报告并推送给订阅者。当需要生成并分发可视化报告(日报、周报、分析报告等 HTML 形式)时使用。 |
| license | MIT |
| allowed-tools | Bash |
| metadata | {"type":"platform-tool"} |
基于智能体自带 HTML 模板生成报告,上传后推送给订阅者。
模板放在智能体资产目录的 report-templates/<templateName>/ 下,至少包含:
index.html(入口,可使用 {{ key }} 或 {{ path.to.field }} 占位符)report.js(可选;包含 __REPORT_DATA__ 占位符时,自动注入 reportData)styles.css(样式)vendor/(本地依赖,禁止外链 CDN)硬性约束:
vendor/)。{{ ... }} 占位符,发布前会自动渲染并校验——任一占位符未填会直接报错并终止。report.js 中 __REPORT_DATA__ 必须恰好出现一次。publish;成功后复用返回的 url/reportId,禁止重复发布。resolve-template-path → publish
先调用 resolve-template-path 确认模板目录存在并拿到绝对路径,再用 templatePath 传给 publish。
node /assets/skills/report/scripts/index.js resolve-template-path '{"template":"my-template"}'
返回:{"success":true,"template":"my-template","templatePath":"/absolute/path/to/template"}
模板不存在时直接报错,不会静默返回空路径。
# title 和 summary 是顶层必填参数,不要放在 reportData 内
node /assets/skills/report/scripts/index.js publish '{
"template": "my-template",
"title": "报告标题(必填,顶层)",
"summary": "一句话摘要(必填,顶层)",
"reportData": { ... }
}'
| 参数 | 必填 | 说明 |
|---|---|---|
templatePath | ✓¹ | 模板目录绝对路径(由 resolve-template-path 返回的 templatePath) |
template | ✓¹ | 模板名(templatePath 未提供时使用,内部自动 resolve) |
title | ✓ | 报告标题 |
summary | ✓ | 报告摘要 |
reportData | - | 注入到模板的数据对象(替换 __REPORT_DATA__ 和 {{ path.to.field }} 占位符) |
templateVars | - | 字面量占位符字典,用于 {{ 这里填写xxx }} 这类键名 |
deliveries | - | 指定分发目标列表;不填则推送给所有订阅者 |
¹
templatePath与template二选一必填;templatePath优先级更高。
返回:{"success":true,"reportId":"...","url":"..."}
发布调用平台 API 时,优先级如下:
AGENT_TOKEN,直接使用 Authorization: Bearer <token>AGENT_TOKEN,但提供了 AGENT_APP_ID + AGENT_APP_SECRET(或兼容变量 DDM_APP_ID + DDM_APP_SECRET),skill 会先调用:POST /api/agent/auth
Authorization: Basic base64(appId:appSecret)
再自动复用返回的 JWT token 完成上传与发布。
说明:
默认优先读取 skill 目录下的 config.json。
仓库建议做法:
config.example.json 作为示例config.jsonconfig.json 不入仓,只保留在开发机或部署环境当前全局默认已切到 Cloudflare R2:
ddmhttps://ba837bd5c663afbcf718a974031733e3.r2.cloudflarestorage.comhttps://reports.bothub.run可通过环境变量覆盖:
REPORT_STORAGE_PROVIDERREPORT_R2_ENDPOINTREPORT_R2_BUCKETREPORT_R2_ACCESS_KEY_IDREPORT_R2_SECRET_ACCESS_KEYREPORT_PUBLIC_BASE_URLREPORT_KEY_PREFIX说明:
cloudflare-r2 配置,报告静态文件会直接上传到 R2,并返回稳定公网 URL。/agent/storage/* 上传链路。skills/report/references/html-report-guidelines.mdskills/report/demo/weekly-ops-report/