将 Markdown 文档转换为专业的苹果设计风格 PDF 白皮书。
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionhuashu-md-to-pdfExecute the skills CLI command in your project's root directory to begin installation:
Fetches huashu-md-to-pdf from alchaincyf/huashu-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate huashu-md-to-pdf. Access via /huashu-md-to-pdf in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
6
total installs
6
this week
78
GitHub stars
0
upvotes
Run in your terminal
6
installs
6
this week
78
stars
将 Markdown 文档转换为专业的苹果设计风格 PDF 白皮书。
# 转换单个文件
python scripts/convert.py input.md
# 指定输出文件名
python scripts/convert.py input.md -o "我的白皮书.pdf"
# 自定义标题和作者
python scripts/convert.py input.md --title "技术白皮书" --author "花叔"
你的 Markdown 文档应该遵循以下结构:
# 文档标题
## 1. 第一章
### 1.1 第一节
### 1.2 第二节
## 2. 第二章
### 2.1 第一节
关键规则:
## 1. 标题(数字 + 点 + 空格 + 标题)### 1.1 标题(数字.数字 + 空格 + 标题)如果需要自定义样式,可以修改 scripts/convert.py 中的 CSS 变量:
# 主色调
PRIMARY_COLOR = '#06c' # 苹果蓝
TEXT_COLOR = '#1d1d1f' # 主文本黑色
GRAY_COLOR = '#86868b' # 浅灰色
# 字体大小
COVER_TITLE_SIZE = '64pt'
H2_SIZE = '22pt'
H3_SIZE = '17pt'
BODY_SIZE = '11pt'
A: 确保你的 Markdown 使用了正确的章节格式:
## 1. 标题 而不是 ## 标题### 1.1 标题 而不是 ### 标题A: 确保使用三个反引号包裹:
```python
def hello():
print("Hello")
```
A: 使用标准的 Markdown 表格语法:
| 列1 | 列2 |
|-----|-----|
| 值1 | 值2 |
A: 编辑 scripts/convert.py 中的 CSS,修改 font-family 属性。
A: 检查是否有大量图片,考虑压缩图片或使用外链。
首次使用需要安装 Python 依赖:
pip3 install markdown2 weasyprint
如果遇到 WeasyPrint 安装问题(macOS):
brew install pango
pip3 install weasyprint
python scripts/convert.py tech-guide.md -o "技术指南.pdf"
python scripts/convert.py whitepaper.md --title "产品白皮书" --author "团队"
scripts/convert.py - 主转换脚本scripts/styles.css - CSS 样式定义(已嵌入脚本)templates/cover.html - 封面模板(已嵌入脚本)本 Skill 使用:
花叔出品 | AI Native Coder · 独立开发者 公众号「花叔」| 30万+粉丝 | AI工具与效率提升 代表作:小猫补光灯(AppStore付费榜Top1)·《一本书玩转DeepSeek》
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
yejinlei/pdf-ocr-skill
yejinlei/pdf-ocr-skill
duc01226/easyplatform
steipete/clawdis
claude-office-skills/skills
daymade/claude-code-skills
huashu-md-to-pdf fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for huashu-md-to-pdf matched our evaluation — installs cleanly and behaves as described in the markdown.
Solid pick for teams standardizing on skills: huashu-md-to-pdf is focused, and the summary matches what you get after install.
I recommend huashu-md-to-pdf for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
We added huashu-md-to-pdf from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Solid pick for teams standardizing on skills: huashu-md-to-pdf is focused, and the summary matches what you get after install.
We added huashu-md-to-pdf from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
huashu-md-to-pdf reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: huashu-md-to-pdf is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in huashu-md-to-pdf — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 28