openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Premium PDF

Generate premium enterprise-style PDFs from markdown content, with automatic de-AI text humanization (removes em dashes, AI filler phrases, overly formal lan...

媒体与内容

作者:bulldozzer @andreasozzo

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 0 · 20 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:andreasozzo/premium-pdf

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill appears to do what it claims (convert markdown to a styled PDF locally) and does not request extra credentials or unusual system access, but the provided generate_pdf.py listing was truncated so full source review is incomplete.

目的

Name/description (premium PDF from markdown with de-AI text processing) aligns with requirements and included files: a Python script plus standard PDF/graphics libraries. Requiring python3 and advising reportlab/Pillow is proportionate to the stated purpose.

说明范围

SKILL.md instructs the agent to run the local Python script, install dependencies via pip, and provide input/output paths (and optional logo). It does not instruct reading unrelated files, transmitting data to remote endpoints, or accessing environment variables beyond normal local file I/O. No vague 'gather whatever context you need' directives are present.

安装机制

There is no install spec; this is instruction-only with a bundled generate_pdf.py and a small requirements.txt recommending reportlab and Pillow (both standard). No downloads from untrusted URLs or archive extraction steps are present in the repository metadata or SKILL.md.

证书

The skill requires no environment variables or credentials. Its functionality (processing input markdown and writing a PDF file) doesn't justify any secret or cloud credentials, and none are requested.

持久

always is false and the skill is user-invocable. It does not request or declare any system-level persistence or modifications to other skills or agent-wide settings.

综合结论

What to consider before installing: 1) This package appears coherent and runs locally: it reads markdown (string or file), optionally a logo file, applies local text transforms, and writes a PDF. 2) You need Python 3 and the reportlab/Pillow Python packages; install them inside a virtualenv to avoid affecting system packages. 3) The provided generate_pdf.py in the submission was truncated; to be fully confident, review the complete script for …

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Premium PDF」。简介:Generate premium enterprise-style PDFs from markdown content, with automatic de…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/andreasozzo/premium-pdf/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: premium-pdf
description: Generate premium enterprise-style PDFs from markdown content, with automatic de-AI text humanization (removes em dashes, AI filler phrases, overly formal language) and a professional Navy + Gold design system.
version: 1.0.0
emoji: "📄"
homepage: https://github.com/andreasozzo/SkillsAI
metadata: {"openclaw": {"requires": {"bins": ["python3"]}, "os": ["macos", "linux"], "skillKey": "premium-pdf", "always": false}}
user-invocable: true
---

# Premium Enterprise PDF Generator

Generate high-quality, enterprise-grade PDF documents from markdown input. This skill applies a **de-AI humanization pipeline** to make LLM-generated text sound more natural, then renders it into a **premium PDF** with a professional Navy + Gold design system (marketing agency quality).

---

## When to Use This Skill

Invoke this skill when the user:
- Asks to create a PDF from markdown or text content
- Wants to generate a professional report, proposal, or document
- Needs to export content as a visually polished enterprise document
- Says phrases like: "create a PDF", "generate a report PDF", "export as enterprise PDF", "make a premium PDF"

---

## How to Invoke

### Basic usage (markdown string)

```bash
python3 premium-pdf/generate_pdf.py 
  --input "# Report Title

Your markdown content here..." 
  --output output.pdf 
  --title "Document Title"
```

### From a markdown file

```bash
python3 premium-pdf/generate_pdf.py 
  --input path/to/document.md 
  --output output.pdf 
  --title "Document Title"
```

### With a company logo in the header

```bash
python3 premium-pdf/generate_pdf.py 
  --input path/to/document.md 
  --output output.pdf 
  --title "Quarterly Report" 
  --logo path/to/company-logo.png
```

---

## Parameters

| Parameter | Required | Description |
|-----------|----------|-------------|
| `--input` or `-i` | Yes | Markdown text (string) or path to a `.md` file |
| `--output` or `-o` | Yes | Output PDF file path (e.g., `report.pdf`) |
| `--title` or `-t` | No | Document title shown in the header (default: "Enterprise Report") |
| `--logo` | No | Path to a PNG or JPG logo image to display in the header |

---

## What the Skill Does

### 1. De-AI Text Humanization

Before rendering, the skill automatically applies text transformations:

- **Em dashes** (`—`) → replaced with `, ` (natural comma-based flow)
- **En dashes** (`–`) → replaced with ` - `
- **Formal AI phrases** removed: "It is important to note", "Furthermore", "Moreover", "Additionally", "In conclusion", "In order to"
- **AI buzzwords** replaced: "utilize" → "use", "leverage" → "use", "delve into" → "explore", "comprehensive" → "complete", "robust" → "solid", "seamlessly" → "smoothly"
- **Unnecessary qualifiers** stripped: "basically", "literally", "actually", "quite"
- **Double spaces** normalized

### 2. Premium PDF Design (Navy + Gold)

The generated PDF features:

- **Color palette**: 60% white/light gray, 30% deep navy (#1A2B4A), 10% gold (#C9A84C)
- **Typography hierarchy**: H1 28pt → H2 20pt → H3 16pt → H4 13pt → Body 11pt
- **Professional header**: Navy background with white title + date (optional logo support)
- **Gold accent lines**: Under H2 headings and above the footer
- **Page numbers**: Centered footer with page count
- **Justified body text** for professional document appearance

### 3. Markdown Elements Supported

- Headings: `#`, `##`, `###`, `####`
- **Bold** and *italic* and ***bold-italic*** text
- Inline `code` and fenced code blocks
- Unordered lists (`-`, `*`, `+`) and ordered lists (`1.`, `2.`)
- Nested list items
- Blockquotes (`>`)
- Horizontal rules (`---`)
- Hyperlinks (rendered as bold text)

---

## Setup (First Time)

Install Python dependencies:

```bash
pip3 install -r premium-pdf/requirements.txt
```

Or install directly:

```bash
pip3 install "reportlab>=4.0.0" "Pillow>=9.0.0"
```

---

## Example Interaction

**User**: "Create a PDF from this markdown report and save it as quarterly-report.pdf"

**Agent action**:
```bash
python3 premium-pdf/generate_pdf.py 
  --input "[user's markdown content]" 
  --output quarterly-report.pdf 
  --title "Quarterly Report Q1 2026"
```

**Output**: `PDF generated successfully: /absolute/path/to/quarterly-report.pdf`

After running, inform the user of the output path so they can open the file.

---

## Error Handling

If the script returns an error:
1. Check that `reportlab` is installed: `pip3 install reportlab`
2. Verify the input markdown is not empty
3. Ensure the output directory is writable
4. Check that the logo file path exists (if `--logo` is used)