From scopi-cardnews
Capture screenshots and generate PNG/PDF output from existing HTML slides
How this skill is triggered — by the user, by Claude, or both
Slash command
/scopi-cardnews:buildThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are running the Scopi build pipeline. This takes existing HTML slides and runs the Puppeteer capture + PDF assembly pipeline. It can also run Playwright screenshot captures before building.
You are running the Scopi build pipeline. This takes existing HTML slides and runs the Puppeteer capture + PDF assembly pipeline. It can also run Playwright screenshot captures before building.
Read scopi.config.json for dimensions, pipeline settings, and capture targets.
The user can specify:
/scopi:build output/my-topicoutput/ for the most recent subdirectory with .html files, or falls back to output/html/)If pipeline.capture is true and capture targets exist (either in config or in assets/captures/):
Check if captures need to be refreshed. If assets/captures/ is empty or user requests fresh captures:
const { captureAll } = require('./templates/capture.js');
const config = require('./scopi.config.json');
const captures = await captureAll(
(config.identity.captureTargets || []).map(url => ({
name: url.replace(/https?:\/\//, '').replace(/[./]/g, '-'),
url: url,
viewport: `${config.dimensions.width}x${Math.round(config.dimensions.width * 0.75)}`
})),
{ outDir: 'assets/captures' }
);
Check the specified directory for .html files. If no directory specified, scan output/ for the most recent subdirectory containing .html files. If none found, report the error and suggest running /scopi:generate first.
Execute the generation pipeline:
node templates/generate.js --html=[html-dir] --out=[output-dir]
Build Complete!
Output: [output-dir]/
[N] PNG slides
carousel.pdf
Captures: [N] screenshots (if any)
Open [output-dir]/ to preview.
--retina / --no-retina — Override 2x scaling--format=png — Skip PDF generation--format=pdf — Skip PNG output (PDF only)--width=N --height=N — Override dimensions--capture — Force fresh screenshot captures before buildingnpx claudepluginhub hosungyou/scopi-cardnews --plugin scopi-cardnewsGuides exporting Slidev presentations to PDF, PPTX, PNG, static SPAs; covers CLI flags, options, and Playwright dependencies.
Guides exporting Slidev presentations to PDF, PPTX, PNG, and building static SPA sites. Configures export CLI flags and troubleshoots dependencies.
Generates single-file HTML presentations with viewport fitting, CSS/GSAP animations, and curated style presets. Useful for creating animated slides, web presentations, or converting PPTX to HTML.