Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add martineserios/thebrana --skill export-pdfgit clone --depth 1 https://github.com/martineserios/thebranaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/martineserios/thebrana/export-pdf)<a href="https://agentmods.dev/skills/martineserios/thebrana/export-pdf"><img src="https://agentmods.dev/badge/skills/martineserios/thebrana/export-pdf/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/martineserios/thebrana/export-pdf"><img src="https://agentmods.dev/badge/skills/martineserios/thebrana/export-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.01588 |
| Opus 5.5 | $0.00012 | $0.00635 |
| Sonnet 5.5 | $0.00006 | $0.00318 |
| Haiku 4.5 | $0.00003 | $0.00159 |
Grade C, and why
export-pdf scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
6. After the PDF is generated (step 5), clean up: `rm -rf "$tmp_dir"`. Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
r = subprocess.run( How it starts
The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Export PDF — Markdown to PDF Converter
Convert a markdown file to a styled PDF using mdpdf.
Process
1. Parse arguments
If $ARGUMENTS is empty, ask the user for the markdown file path. If provided, use it directly (e.g., /brana:export-pdf propuesta-integracion-payway.md).
2. Resolve path
Resolve the file path:
- If relative, resolve against
$PWD - Validate the file exists and has
.mdextension - If the file doesn't exist, suggest matches using
Globwith**/*{slug}*.md
3. Pre-render Mermaid blocks
Check if the source file contains any Mermaid code blocks:
grep -c '```mermaid' "{source_file}"
If count is 0: skip this step — no Mermaid blocks found. render_source = {source_file}.
If count > 0:
-
Resolve
mmdc:mmdc_bin=$(which mmdc 2>/dev/null)If empty, warn the user: "Mermaid blocks found but
mmdcis not installed — they will render as raw code. Install with:npm install -g @mermaid-js/mermaid-clithenln -sf $(which mmdc) ~/.local/bin/mmdc". Setrender_source={source_file}and skip to step 4. -
Create a temp workspace and copy the source:
tmp_dir=$(mktemp -d) tmp_md="${tmp_dir}/$(basename '{source_file}')" cp "{source_file}" "$tmp_md" -
Write Puppeteer config — required on Ubuntu 23.10+ due to AppArmor namespace restrictions:
cat > "${tmp_dir}/puppeteer.json" <<'EOF' {"args":["--no-sandbox","--disable-setuid-sandbox"]} EOF -
Extract and render each block, replacing it with an image reference. Pass
$mmdc_binas a third argument so the Python subprocess uses the resolved path:uv run python3 - "$tmp_md" "$tmp_dir" "$mmdc_bin" <<'PYEOF' import re, subprocess, sys from pathlib import Path src = Path(sys.argv[1]) tmp = Path(sys.argv[2]) mmdc_cmd = sys.argv[3] # resolved from PATH content = src.read_text() puppeteer_cfg = tmp / "puppeteer.json" pattern = re.compile(r'```mermaid\n(.*?)```', re.DOTALL) def render_block(match, idx): diagram = match.group(1).strip() mmd = tmp / f"diagram_{idx}.mmd" png = tmp / f"diagram_{idx}.png" mmd.write_text(diagram) r = subprocess.run( [mmdc_cmd, "-i", str(mmd), "-o", str(png), "-p", str(puppeteer_cfg)], capture_output=True, text=True ) if r.returncode != 0: print(f"[warn] mmdc failed for block {idx}: {r.stderr.strip()}", file=sys.stderr) return match.group(0) # keep original block on failure return f"" counter = [0] def repl(m): counter[0] += 1 return render_block(m, counter[0]) new_content = pattern.sub(repl, content) src.write_text(new_content) print(f"Rendered {counter[0]} Mermaid block(s)") PYEOF
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 168 lines · 29 tokens per session scan C 4de820fc1131
export-pdf is a skill published in the GitHub repository martineserios/thebrana (3 stars, last pushed 3d ago), licensed MIT. It adds 29 tokens to every session and 1,588 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
document_export
Export text content to various formats (PDF, Excel, Markdown, Mermaid mindmap).
publishing
This skill should be used when the user asks to "self-publish", "publish my book", "ISBN", "copyright page", "book metadata", "BISAC", "keywords", "KDP", "IngramSpark", "Draft2Digital", "go wide", "Kindle Unlimited", "print interior", "trim size", "paperback", "ebook", "EPUB", "cover wrap", "spine width", "pricing"…
Use whenever the user works with PDF files — reading/extracting text from PDFs (lecture notes, textbook chapters, HW problems, HW solutions, hand-written answers), converting PDFs to markdown for downstream analysis, merging/splitting PDFs, or creating PDFs. For scanned or hand-written PDFs, OCR is required…
doc-converter
Universal document format converter - DOCX, PDF, Markdown, HTML, TXT.
geo-proposal
Auto-generate a professional, client-ready GEO service proposal from audit data. Creates a full proposal in markdown and PDF including executive summary, findings, recommended service packages (Basic/Standard/Premium), pricing, timeline, and terms. Use when user says "proposal", "proposta", "offerta", "preventivo"…
deck-publish
Publish presentation decks by converting HTML to PDF or PowerPoint (PPTX). Three modes: PDF (for distribution and archiving), screenshot PPTX (pixel-perfect, default — slides are images), and editable PPTX (real editable text boxes and shapes). Use this skill whenever the user wants to publish a deck, export slides…