Tool v1.0.0

report-generator

根据特定模板生成结构化HTML报告,当用户希望从原始内容创建报告、幻灯片或摘要卡片时调用

ClawHub 更新于 2026-03-23 16 浏览
下载 SKILL

技能说明

根据特定模板生成结构化HTML报告,当用户希望从原始内容创建报告、幻灯片或摘要卡片时调用

使用场景

Generates structured HTML reports slides or summary cards from raw content using a template

查看英文原始说明

Generates a structured report HTML based on a specific template. Invoke when user wants to create a report, slide, or summary card from raw content.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/report-generator
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
name: "report-generator"
description: "Generates a structured report HTML based on a specific template. Invoke when user wants to create a report, slide, or summary card from raw content."
---

# Report Generator Skill
 
 This skill generates a beautifully formatted HTML report based on a clean, minimal business template style (Light & Concise).

## Capabilities

1. **Refine Content**: Structures raw text into a 4-quadrant format (Goal, Q1-Q4 details, Summary).
2. **Generate HTML**: Creates a responsive HTML file.
3. **Screenshot**: (Instruction) Guides the agent to convert the HTML to an image using the browser tool.

## Usage

### 1. Prepare Data

You need to extract the following information from the user's input:

- **title**: Report Title
- **goal**: One-sentence goal (Top section)
- **q1** to **q4**: Four main sections, each containing:
  - `title`: Short title (e.g., "稳交付")
  - `subtitle`: Explanatory subtitle
  - `slogan`: Catchy slogan
  - `items`: List of bullet points (Array of strings)
- **summary**: Array of 4 keywords for the bottom summary

### 2. Run Generation Script

Execute the python script with the JSON data:

```bash
python3 scripts/generate.py --output "workspace/reports" --data '{"title": "...", ...}'
```

### 3. Convert to Image (Agent Action)

After the script returns the `html_path`, use the **browser** tool to screenshot it:

1. Open the file: `file://<html_path>`
2. Take a screenshot of the full page.

## Example Data Structure

```json
{
  "title": "2024 Q3 述职报告",
  "goal": "构建可规模化的非平台件能力体系",
  "q1": {
    "title": "稳交付",
    "subtitle": "解决扛量问题",
    "slogan": "保交付,争第一",
    "items": ["保障核心需求上线", "降低事故概率"]
  },
  "q2": { ... },
  "q3": { ... },
  "q4": { ... },
  "summary": ["稳定性", "增长", "效率", "反馈"]
}
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。