Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add jamditis/claude-skills-journalism/plugin install pdf-playgroundWrote 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/commands/jamditis/claude-skills-journalism/preview)<a href="https://agentmods.dev/commands/jamditis/claude-skills-journalism/preview"><img src="https://agentmods.dev/badge/commands/jamditis/claude-skills-journalism/preview/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/commands/jamditis/claude-skills-journalism/preview"><img src="https://agentmods.dev/badge/commands/jamditis/claude-skills-journalism/preview.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.00006 | $0.01442 |
| Opus 5 | $0.00003 | $0.00721 |
| Sonnet 5 | $0.00001 | $0.00288 |
| Haiku 4.5 | $0.00001 | $0.00144 |
Grade C, and why
preview scanned grade C with 1 finding 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 9d 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.
rm -rf <html-dir>/playground-controls <html-dir>/playground-wrapper.html How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Launch an interactive preview session for iterating on a document design.
Setup
- Read the document-design skill for guidance
- Resolve the HTML file path (see "File path" below)
- Start a local HTTP server to serve the file
- Set up the playground wrapper and controls
- Open the wrapper in the Playwright browser
Pre-flight check
Before proceeding, verify the control panel files exist:
- Check if the controls directory exists:
ls "${CLAUDE_PLUGIN_ROOT}/controls/control-panel.js" 2>/dev/null && echo "OK" || echo "MISSING" - If MISSING, tell the user:
Then STOP, do not continue with the preview workflow.Your PDF Playground plugin is outdated and missing the interactive control panel. Run this command to update, then restart Claude Code:
claude plugin update pdf-playground@claude-skills-journalism
Preview workflow
Step 1: Start local server
The Playwright browser cannot open file:// URLs. Start a local HTTP server instead:
- Determine the directory containing the HTML file
- Check if port 8787 is available:
python -c "import socket; s=socket.socket(); s.settimeout(1); result=s.connect_ex(('127.0.0.1',8787)); s.close(); print('free' if result!=0 else 'busy')" - If port 8787 is busy, try 8788, 8789, etc. until one is free
- Start the server in the background:
Run this withcd <directory-containing-html> && python -m http.server <port>run_in_background: true - Wait 1 second for the server to start
Step 2: Set up the playground wrapper
The playground uses an iframe-based architecture: the document lives in an iframe, and the control panel sits alongside it as a sidebar. This keeps the document HTML clean for PDF export while providing interactive design controls.
- Create a
playground-controls/directory in the same directory as the HTML file - Copy the control files from the plugin:
mkdir -p <html-dir>/playground-controls/template-maps cp ${CLAUDE_PLUGIN_ROOT}/controls/control-panel.css <html-dir>/playground-controls/ cp ${CLAUDE_PLUGIN_ROOT}/controls/control-panel.js <html-dir>/playground-controls/ cp ${CLAUDE_PLUGIN_ROOT}/controls/prompt-generator.js <html-dir>/playground-controls/ - Detect which template is being previewed and copy the matching template map:
cp ${CLAUDE_PLUGIN_ROOT}/controls/template-maps/<template-name>.js <html-dir>/playground-controls/template-maps/ - Copy the wrapper HTML to the same directory as the HTML file:
cp ${CLAUDE_PLUGIN_ROOT}/controls/playground-wrapper.html <html-dir>/
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.
- 9d ago First seen · 172 lines · 6 tokens per session scan C 06a0d38f5617
preview is a command published in the GitHub repository jamditis/claude-skills-journalism (389 stars, last pushed yesterday), licensed MIT. It adds 6 tokens to every session and 1,442 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
export-latex
Export the current paper draft to production-ready LaTeX (.tex) and PDF using the arxiv-style template. Converts draft.md + references.bib + figures/ into a complete LaTeX project with resolved citations, tables, and figures. Compiles to PDF automatically.
browse
Generate a single-file markdown browser HTML — tree sidebar + marked.js render. Scans project docs/ + /.claude/{plans,projects} by default.
ars-mark-read
ARS /ars-mark-read — record human-read signal for one or more citation keys.
ars-format-convert
ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown.
audit-xls
Audit an Excel workbook — formula errors, hardcoded cells, calculation arc cross-validation.
generate-pdf-document
Specify a generated PDF that survives variable content, with fonts, page breaks, and accessibility handled.