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 agentmods add agents/bupt-gamma/masfactory/html_to_pdf_task_promptgit clone --depth 1 https://github.com/BUPT-GAMMA/MASFactoryWrote 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/agents/bupt-gamma/masfactory/html_to_pdf_task_prompt)<a href="https://agentmods.dev/agents/bupt-gamma/masfactory/html_to_pdf_task_prompt"><img src="https://agentmods.dev/badge/agents/bupt-gamma/masfactory/html_to_pdf_task_prompt.svg" alt="Measured on agentmods" 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.00000 | $0.00263 |
| Opus 5 | $0.00000 | $0.00131 |
| Sonnet 5 | $0.00000 | $0.00053 |
| Haiku 4.5 | $0.00000 | $0.00026 |
Grade A, and why
html_to_pdf_task_prompt scanned grade A with 0 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 6d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
HTML -> PDF Export Task Prompt Template
Export an HTML slide deck into a stable PDF.
Inputs
- HTML file:
{{html_path}} - Asset directory:
{{assets_dir}} - Output PDF:
{{pdf_output_path}} - Preview directory:
{{preview_dir}}
Task Requirements
- First decide on the export strategy:
- If the print CSS is stable, exporting directly from the browser to PDF is allowed.
- If print mode breaks the layout, switch to "capture each slide and assemble the PDF."
- After export, generate at least key-page PNG previews.
- Check:
- Whether the page count is correct
- Whether each page is complete
- Whether there are blank pages, pages missing images, or pages that only contain titles
- Whether fonts finished loading
- Whether animation initial states or lazy-loaded elements failed to appear
- If you find problems, do not stop at a bad result. Continue refining the export strategy.
Outputs
slides.pdfpreview/slide-*.pngexport_report.md- Which export strategy was used
- viewport / page size
- Which pages were validated
- What known issues still remain
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.
- 6d ago First seen · 35 lines · 0 tokens per session scan A 1288eff204da
html_to_pdf_task_prompt is an agent published in the GitHub repository BUPT-GAMMA/MASFactory (549 stars, last pushed 17d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 263 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
contract-review
Contract review agent. On a schedule it checks {{contractsfolder}} in Google Drive for contracts that haven't been reviewed yet, summarizes each against the contract-playbook, flags clauses that deviate, drafts redlines as Docs suggested edits on the contract, and posts the summary to {{legalchannel}} — holding every…
deep-reader
Deep reader — reads PDFs to extract quantitative findings, contradictions, and synthesis material. Prioritizes high-value sections (results, methods) over front matter. Final iteration produces sectionmap.md bridging reading to writing.
reference-builder
Creates exhaustive technical references and API documentation. Generates comprehensive parameter listings, configuration guides, and searchable reference materials. Use PROACTIVELY for API docs, configuration references, or complete technical specifications.
messaging-cache
Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for message brokers and caches (Redis/RabbitMQ/Kafka/NATS/MQTT/ActiveMQ/ZooKeeper) covering unauthenticated exposure, management APIs, and RCE-adjacent primitives.
round-trip-reconstructor
Act as a document reconstruction specialist. Your purpose is to prove a distillate's completeness by reconstructing the original source documents from the distillate alone.
Demonstrate
Agent for demonstrating VS Code features.