一键导入
pdf-mobile-friendly
Generar PDFs mobile-friendly desde Markdown usando WeasyPrint + CSS
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generar PDFs mobile-friendly desde Markdown usando WeasyPrint + CSS
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when generating scheduled reports from Reddit subreddits via Composio Reddit tools (REDDIT_GET_R_TOP, REDDIT_SEARCH_ACROSS_SUBREDDITS, REDDIT_RETRIEVE_POST_COMMENTS). Covers fetching posts, computing engagement, extracting top comments, and producing either a single-page PDF (fpdf2) or a text summary for group chat delivery.
Author in-repo SKILL.md: frontmatter, validator, structure, and writing-quality principles.
Manage the Hermes WebUI (nesquena/hermes-webui) deployment, configuration, and troubleshooting. Covers systemd service, settings.json, send_key behavior, Caddy reverse proxy, CI/CD integration via deploy.sh.
Systematically orient in a new project repository using Kairos governance, Hindsight memory banks, and documentary axis reading order. Covers REPOMAP, MASTER-SPEC, RULES, infrastructure exploration, and state verification.
Process, summarize, and extract information from YouTube videos. Covers metadata lookup, transcript extraction, and content analysis for wrestling analysis and general video research.
Workflow completo para mantener la Knowledge Base Personal (Narrativa Mitologica) de Martin. Cubre sesion de actualizacion, clasificacion KR2, propuesta KR1, ejecucion via Kilo CLI, compile y push.
| name | pdf-mobile-friendly |
| description | Generar PDFs mobile-friendly desde Markdown usando WeasyPrint + CSS |
Genera PDFs legibles en móvil con formato profesional. Usa WeasyPrint + CSS, no pandoc+typst.
pip3 install weasyprint markdown
Tipografías: DejaVu Sans + DejaVu Sans Mono (vienen con OL9, si no: sudo dnf install dejavu-sans-fonts dejavu-sans-mono-fonts)
import weasyprint
# 1. Convertir MD a HTML con pandoc
# pandoc entrada.md -o entrada.html
# 2. Envolver con CSS + portada
# 3. Generar PDF
doc = weasyprint.HTML(string=html_con_css)
doc.write_pdf("salida.pdf")
Usar:
scripts/generate-pdf.py — script autónomo para generar PDFs mobile-friendly.
python3 scripts/generate-pdf.py entrada.md salida.pdf "Título del Documento"
Requiere: pip3 install weasyprint markdown, pandoc en PATH.