← 返回 Skills 市场
flexrox

Flow PDF Generator

作者 FlexRox · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
5
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install flow-pdf-generator
功能描述
Generate professional PDF documents from structured JSON data. Use when user wants to create, export, or save content as a PDF file. Supports styled titles,...
使用说明 (SKILL.md)

PDF Generator

Generate styled PDF documents from structured JSON data using ReportLab.

Quick Start

python scripts/generate_pdf.py --output report.pdf --data '{
  "title": "Monthly Report",
  "subtitle": "March 2026",
  "author": "PragDev",
  "sections": [
    {"type": "text", "text": "Introduction text here."},
    {"type": "highlight", "text": "Key metric: +15%"},
    {"type": "list", "items": ["Item 1", "Item 2"]}
  ]
}'

JSON Schema Reference

See references/schema.md for complete schema documentation.

Output

  • PDF saved to path specified by --output or data.output
  • Default: output.pdf in current directory

Tips

  • Use accent_color and header_color for brand colors
  • Tables auto-alternate row backgrounds
  • Images must exist at the specified path
  • Page breaks create new pages
安全使用建议
This skill appears to do what it says: generate PDFs from JSON using the included script. Before installing/running: (1) Review the script yourself — it reads any file paths you provide in the JSON (images or a JSON filename), so do not pass sensitive filesystem paths. (2) Install reportlab in a virtualenv (pip install reportlab) — the dependency is not declared. (3) Note the CLI quirk: if --data contains invalid JSON the script will try to open that string as a filename, which can cause unexpected local file reads; avoid passing untrusted strings as --data. (4) Run the script as a non-privileged user or in a sandbox if you will process JSON from untrusted sources. If you want extra assurance, run the script on sample data first to confirm behavior.
功能分析
Type: OpenClaw Skill Name: flow-pdf-generator Version: 2.0.0 The skill is a legitimate PDF generation utility using the ReportLab library. It processes structured JSON data to create styled documents with support for tables, lists, and images. Analysis of 'scripts/generate_pdf.py' and 'SKILL.md' shows no evidence of malicious intent, data exfiltration, or unauthorized command execution; file access is limited to reading input data/images and writing the resulting PDF to a specified path.
能力评估
Purpose & Capability
Name/description match the provided code and schema. The included script implements PDF generation (titles, tables, lists, images, page breaks) using ReportLab, which is exactly what the description promises.
Instruction Scope
SKILL.md instructs running the included script with JSON via --data or a file. The script reads JSON from the CLI or a file and will read image files referenced in the JSON (expected for embedding images). Minor concern: parse_args tries json.loads(json_input) and on JSONDecodeError treats the same value as a filename and opens it — this can lead to unexpected local file reads if an invalid JSON string is passed. There are no network calls or secret exfiltration in the code.
Install Mechanism
No install spec is provided (instruction-only), which is low risk. However, the code requires the ReportLab Python package but SKILL.md does not include installation instructions or a requirements.txt; users must install reportlab (e.g., pip install reportlab) before running.
Credentials
The skill requests no environment variables, credentials, or config paths and the code does not access environment secrets. All file I/O is limited to user-specified JSON or image paths.
Persistence & Privilege
Skill is not always-enabled and does not modify other skills or system-wide agent config. It does not persist credentials or request elevated/system privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flow-pdf-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flow-pdf-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Renamed to Flow PDF Generator
元数据
Slug flow-pdf-generator
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Flow PDF Generator 是什么?

Generate professional PDF documents from structured JSON data. Use when user wants to create, export, or save content as a PDF file. Supports styled titles,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 5 次。

如何安装 Flow PDF Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install flow-pdf-generator」即可一键安装,无需额外配置。

Flow PDF Generator 是免费的吗?

是的,Flow PDF Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Flow PDF Generator 支持哪些平台?

Flow PDF Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Flow PDF Generator?

由 FlexRox(@flexrox)开发并维护,当前版本 v2.0.0。

💬 留言讨论